Greg-DB Dropbox Community Moderator

Comments

  • 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 job 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.
  • Every API call for uploading or downloading to/from a Dropbox account requires an access token for that account. You can easily generate an access token for your own account, but to get them for other users of your app, you'll need to send them through the OAuth app authorization flow. We have an OAuth guide here that…
  • You should poll MembersAddJobStatusGetAsync after MembersAddAsync to get the result.
  • Thanks! It looks like you were using both the Core SDK and the Sync SDK. They both use API v1, so you'll want to replace both of them with a single API v2 SDK. The new API v2 SDKs are built more like the Core SDKs, giving you direct access to the API calls for uploading and downloading files, among other operations. You'll…
  • That isn't part of the public Dropbox API, which doesn't currently offer a bulk thumbnails call, but I'll be sure to pass this along as a feature request.
  • This thread was about getting temporary links in bulk, and didn't mention thumbnails. I see you've posted a new thread about this so I'll follow up there: https://www.dropboxforum.com/t5/API-support/Getting-multiple-thumbnails-of-multiple-files-at-once/m-p/191818#M8428
  • The /redirect_receiver page you're using is just a blank page on dropbox.com for receiving the redirect. You'll want to send the user elsewhere or just close the browser after that, depending on what you want your app to do.
  • No, upgrading your account doesn't affect the operation of your API app.
  • The Swift 3 branch has the DropboxClient constructor just taking the access token as a string now, but the Swift 2.3 branch still requires a DropboxAccessToken object there. You can construct it like this: DropboxClient.init(accessToken: DropboxAccessToken(accessToken:"ACCESS_TOKEN_HERE", uid:"USER_ID_HERE"))
  • No problem, and yes, it looks like you have this right. 1. No, you'll just need to poll occasionally. 2. The complete result from finish batch itself is actually not currently used, and is just there for flexibility in the future. We may update that in the future to use that result and include the metadata there, but for…
  • Yes, in that case you would end up sending an empty chunk, but that won't make any difference in the resulting file. And yes, using the finish batch method is the best way to commit multiple files at the same time without causing lock contention with yourself. And that's correct, the strategy you described is reccomended…
  • For that sample, you should add "https://localhost/authorize" as a redirect URI for your app on the App Console: https://www.dropbox.com/developers/apps
  • The start and append methods don't return space errors. Only the finish calls do, as that's when the final file size is known and checked against the available quota space when attempting to commit the file. 
  • The parent_shared_folder_id field will contain the shared folder ID for the shared folder that contains the item, regardless of how many levels up that is. If you want the immediate parent of an item, whether or not it is the shared folder itself, you can strip the last element off of the item's path_lower. Using that…
  • That method doesn't offer a way to request a short URL, but I'll be sure to pass this along as a feature request. (The only place this is available in API v2 is createSharedLink, but that is deprecated.)
  • Can you elaborate on what you mean when you say you can't catch the access token? What specifically isn't working?
  • No, unfortunately I don't have an update on this.
  • The 5 MB chunk size is somewhat arbitrary, and up to the app. The best size would depend on various factors. When the connection is reliable, larger chunk sizes mean better overall performance. If there are connection errors, smaller chunk sizes means you have to retransmit fewer bytes when requests do fail. You may want…
  • 1. That's correct, since overwrite is NO, destinationURL will be the same as downloadURL. (The documentation is a little misleading due to an old reference to "closure". We'll get that fixed up.) 2. and 3. These methods have these modifications to avoid some reserved keyword/prefix constraints in Objective-C/Cocoa. It's…
  • Yea, I don't believe the API v2 Objective-C SDK stores the app key in the credential store/keychain like the API v1 Core SDK does.
  • Hi Keith, for reference, yes, in API v1 it was also possible to just overwrite a file without a rev. In either though, it's generally not reccomended, as its easy to overwrite data you didn't intend to due to race conditions that way. 1. That's correct, with autorename set to NO, the API won't attempt to find somewhere to…
  • Thanks! That error indicates that the app key is missing. Make sure you filled in the DropboxAppKey and DropboxAppSecret values in Web.config for that sample app.