Greg-DB Dropbox Community Moderator

Comments

  • Thanks, that's helpful! We'll look into it. By the way, I've redacted it from your post, but for the sake of security, you should revoke that access token. You can do so by revoking access to the app entirel, here: https://www.dropbox.com/team/admin/team_apps (Note that that will revoke all access tokens for that team-app…
  • This is fixed in v7.1.0: https://github.com/dropbox/dropbox-sdk-python/releases/tag/v7.1.0
  • That's right, reauthorizeClient isn't for this case. That's meant for when you want to retrieve an authorized client for a user account for which you already have an access token. For the revoked access token case, you can just catch the authorization failure (the InvalidAccessToken DBAUTHAuthError from DBRequestAuthError)…
  • Hi Keith, no, the Objective-C SDK doesn't have anything quite like that. You should still be able to do effectively the same thing though, by keeping track of the number of outstanding requests, similar to what you already have, by incrementing a counter each time you start a request and decrementing it each response…
  • Can you share the specific steps to reproduce these issues, and some sample output showing them? Thanks in advance!
  • I see, thanks for the context! For reference, while the browser will download the file when the URL is accessed directly due to the Content-Type, it looks like using it as a src for an img tag does work, so that may be a usable solution. (Again though, make sure you don't leak the access token to other users.)
  • You can use listSharedLinksBuilder to get the existing shared link for a file or folder. (If you're only interested in links to the exact path, you'll want to use withDirectOnly(true).)
  • Thanks! That behavior is expected (potentially dependent on the browser itself though) because the browser doesn't know that the data is an image it can display in the v2 case. Is that your app's actual use case though? That is, would the user be opening these in their browser directly like this (as opposed to say, using…
  • That's correct, the API v2 SDKs don't offer the exact same interface/functionality as the Sync SDKs did. You can replicate that functionality though, using listFolderLongpoll. That enables low-latency notification of changes in the account.
  • I see, thanks for clarifying. The /1/team/log/get_events endpoint doesn't return events for API calls like this. From the documentation, these events are only reported for the web app: files download_files Download files from the webapp files preview_files Preview files from the webapp
  • Unfortunately, no, we don't currently have a public Paper API available, but I'll pass this along as a request to the team.
  • Yes, you can use files_list_folder and files_list_folder_continue to list the files and folders in the connected Dropbox account.
  • The Content-Type header is reported differently (image/ in v1, and application/octet-stream in v2) but the actual thumbnail data returned is the same. Is the Content-Type header itself causing issues in your use case? I'll be happy to pass this along as feedback, but additional context would be helpful Anyway, no, there…
  • That error isn't related to your app's development or production status. Did you potentially use an access token for an app with the "file type" permission though (as opposed to full Dropbox or app folder)? The file type permission isn't supported by API v2.
  • You can do something like this: var membersAddLaunch = await this.client.Team.MembersAddAsync(newMembers); if (membersAddLaunch.IsComplete) { Console.WriteLine ("Adding members is complete."); foreach (var memberAdd in membersAddLaunch.AsComplete.Value) { if (memberAdd.IsSuccess) { Console.WriteLine ("Successfully…
  • The different versions of the API work differently, so it won't be a matter of just replacing /1/thumbnails with /2/get_thumbnail. For API v2, you'll need to use the 'authorization' and 'arg' URL parameters, per the documentation I linked to earlier:…
  • The /1/thumbnails endpoint is part of API v1 and will not be available after API v1 is retired. (The different hosts, e.g., api-content.dropbox.com and content.dropboxapi.com, are not tied to specific versions of the API. They each currently serve both API v1 and API v2.)
  • If IsComplete is true to begin with, you don't need to call MembersAddJobStatusGetAsync, since the operation already completed. Instead, you'd just use MembersAddLaunch.AsComplete to get the added member result. So, to summarize, when you call MembersAddAsync, the operation will either complete immediately, or if not, it…
  • That's a way of calling the API endpoint and supplying the credentials on the URL itself (instead of in a header), but the API call still returns the thumbnail data directly. API v2 does also offer a way to do this as well as documented here under "Content-download endpoints" (i.e., using the 'authorization' and 'arg' URL…
  • The API v1 /thumbnails endpoint also only returns the data, not a URL. You can find the deprecation timeline for API v1 here: https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/
  • Did you successfully build and install the SDK from the source (per the instructions here and here)? If you had trouble doing so, or if you just want to use a pre-built copy, you can instead replace this line in the build.gradle: compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing:…
  • The /2/files/get_thumbnail endpoint returns the raw thumbnail data directly in the response body, not as a URL. You'll want to read the response body out and save or display that as the thumbnail. The API doesn't offer a way to get links for thumbnails, but I'll be sure to pass this along as a feature request. Also, the…
  • For each API call, you'll want to handle both the route error (for errors specific to that call) as well as the general error (for errors that can happen on any call). For the route specific error for createFolder, which is DBFILESCreateFolderError, there is only the isPath case, since that error doesn't have any other…
  • I'm not sure I understand your question. What "event" exactly are you looking for from these API calls?
  • The 10814 error code you're getting for dbapi-3 is expected when no application is installed to handle that URL scheme. That would be expected, for example, if the Dropbox app isn't installed (e.g., on the simulator). Is that the case in your scenario? (The Dropbox Chooser is actually built in to the official Dropbox app,…
  • Yes, the order for that response is guaranteed to match. (I'll make a note to get that clearly documented.)
  • I don't have a sample available, but you'll want to use MembersAddLaunch.IsAsyncJobId to check if the MembersAddLaunch you got from MembersAddAsync is an async ****** ID, and then use MembersAddLaunch.AsAsyncJobId to get the MembersAddLaunch.AsyncJobId, which you can pass to MembersAddJobStatusGetAsync.
  • Apologies, I missed this thread last week, but I believe you also posted on StackOverflow here, now deleted: https://stackoverflow.com/questions/40138799/an-example-of-final-url-for-deleting-a-file-on-dropbox I shared an answer there, so you presumably sorted this out, but in case anyone else is having the same problem,…
  • Sorry about the trouble with the forum! I think that got cleared up though, so I went and deleted the duplicates. Anyway, these failure results don't return the session ID or path. (There's some complexity here unfortunately, but we'll consider it a feature request.) Instead, you should use the index of the result in the…
  • No, the Dropbox API doesn't currently offer a way to get thumbnails in bulk.