Greg-DB Dropbox Community Moderator

Comments

  • I've sent this along as a feature request, but I can't promise if or when it would be implemented.
  • Making changes to a Dropbox Paper document won't trigger webhook notifications. Webhook notifications only fire for Dropbox file changes. I'll send this along as a feature request though.
  • Can you post the full error/stack trace? Thanks in advance!
  • Whether or not your app is using an app folder, you should be able to download or get a temporary or shared link for a file, e.g., using filesDownload, filesGetTemporaryLink, or sharingCreateSharedLinkWithSettings, respectively. If something's not working as expected, please share any relevant code and output. Thanks!
  • I can't make any promises, but I'll pass this along as a feature request.
  • Can you specify what exactly isn't working? If the verification step failing, or did that succeed and you just aren't receiving the notifications? If your webhook URI is successfully added/verified, there are some other things to check as well: - Make sure you've linked an account to the app, and are making changes in that…
  • The cursor length depends on the number of shared folders, team folders, and app folders in the account, as well as the amount of file activity. I don't recommend asking the user to modify their behavior or account to avoid this. I instead recommend updating your app to accommodate cursors of any length.
  • Unfortunately, API v2 doesn't directly return the deleted time in DeletedMetadata, but I'll pass this along as a feature request.
  • Yes, you can use these methods for files/folders inside a shared folder even if you are not the owner of the shared folder. As long as you are a member of the shared folder, the contents will exist in your account for you to use, the same as you can see on the website. The 'id' for a file/folder is just another way to…
  • The file properties functionality was only recently added to the list_folder API endpoint, and that hasn't yet been implemented in the Java SDK. That should be available in the next Java SDK release, but I don't have a timeline for that right now.
  • My sample there is still returning Content-Length for me. Can you share a sample and output that isn't working as expected for you? Thanks in advance!
  • If you use a "Dropbox API" app, that operates on individual users accounts, so you don't need to specify this additional information when calling user-specific endpoints. If you use a "Dropbox Business API" app, that operates on entire Business teams, so you need to specify which team member to operate on when calling…
  • When making a local DropboxClient object, the string you supply as an access token isn't validated against the API. That is only done when you actually make API call. If you want to check if an access token is still valid, you can make an API call, such as get_current_account.
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: - the name and version of the platform and SDK/library you are using - the full text of the error/any output - the relevant code snippet(s)
  • While it was previously true that only Business apps could create templates, this is no longer the case. User apps can also now create templates, via /2/file_properties/templates/add_for_user: https://www.dropbox.com/developers/documentation/http/documentation#file_properties-templates-add_for_user
  • You can iterate through the file list (e.g., as returned by filesListFolder and filesListFolderContinue) and call sharingCreateSharedLinkWithSettings for each desired item.
  • Thanks! There doesn't seem to be a clear pattern in that unfortunately. For reference, the Dropbox Java SDK contains a "sdk-version.txt" file with the version number for the SDK in it, for use in the User-Agent header string. Based on the stack trace you shared, it appears the exception is occurring inside Java's…
  • [Cross-linking for reference: https://stackoverflow.com/questions/47537572/exception-while-dropbox-api-tries-to-read-a-resource-might-be-multidex-issue ] I unfortunately have not seen this issue before. Do you know if it seems to be specific to any particular Android version, device, etc.?
  • There isn't a way to create a shared link for every file in a folder without making a call for each one unfortunately. You'll need to list the files and call sharingCreateSharedLinkWithSettings on each one.
  • Thanks for the report! An InternalServerError can occur on any call, and just indicates that something failed on our side. When this occurs, the API doesn't return much information to the client, so you'll only get that error without any useful details. We're looking into this particular error, and I'll follow up here once…
  • [Cross-linking for reference: https://stackoverflow.com/questions/47385233/xcode-use-dropboxsdk-framework-objective-c-failed-when-building-for-simulator ] It sounds like you're trying to install the official Dropbox API v2 Objective-C SDK. Which of the three installation methods are you using? 
  • Using the API v2 Java SDK on Android, you can check if the app authorization was approved and get the access token using getOAuth2Token as shown here. It will return null if not. The DropboxClientFactory.init method just builds a local client object, using whatever access token you give it, so you don't need to check for…
  • You can use sharingCreateSharedLinkWithSettings to make a shared link for any file or folder: https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings__anchor Or, if the shared link already exists, you can use sharingListSharedLinks to retrieve it:…
  • The web site uses a somewhat different piece of infrastructure than the API, so that may not be a good comparison. If you want to test your connection to the Dropbox API content servers directly though, you can test a simpler /2/files/upload API call, e.g., using curl:…
  • Please open an API ticket with details, sample code, etc. so we can look into it: https://www.dropbox.com/developers/contact Thanks!
  • The uploaded file path in Dropbox is defined by the "path" parameter in Dropbox-API-Arg. So, for example, to upload a file "test_php_upload.txt" to root, the path parameter should be "/test_php_upload.txt". Here's a version of my previous example that would do that: <?php $path = 'test_php_upload.txt'; $fp = fopen($path,…
  • Yes, time_taken is extracted from the media information in the file, such as DateTimeOriginal in EXIF data.
  • The Dropbox API doesn't offer an alternative for this, but I'll pass this along as a feature request. The temporary links contain a randomly generated token though, so they should be effectively impossible to guess. For reference, the way to directly access file content in an authenticated fashion is to use filesDownload:…
  • Thanks for the detailed post and feedback. API v2 does separate out some things like this, where API v1 would return everything in one call. This was done partly because the API v1 calls didn't scale well, and sometimes failed when there were too many items to return in a single call. Also, the Dropbox API does have a rate…
  • Unfortunately, it's not possible to limit the cursor size (the length depends on the amount of information it needs to encode, which will vary by account). I'll send this along as a feature request though.