Greg-DB Dropbox Community Moderator

Comments

  • @"eranga119" This error message indicates that instead of just sending the expected "application/json" value in your "Content-Type" header, you're instead sending that plus the JSON string for the API call parameters, as Здравко said. That JSON should be sent in the request body, not a header. The code you shared does seem…
  • Long-lived access tokens are now considered deprecated, but we don't currently have a plan to disable existing long-lived access tokens. (If that changes, we will of course announce that ahead of time.) That being the case, your users can continue using their existing long-lived access token(s). And yes, you can test your…
  • We can't provide support for S3 itself, but if you can get a link to a file on S3, you could then pass that link to /2/files/save_url to save the linked file to Dropbox, without downloading it locally. That's available as files_save_url in the official Dropbox API v2 Python SDK. That can be used by any kind of Dropbox…
  • A 'path/conflict/folder' error like this indicates "There’s a folder in the way". That is, the folder could not be created because there's already a folder at the specified path. 
  • It looks like there are a few things here, so I'll try to address them each: First, note that you don't need to register a redirect URI of "https://db-ht5jlmr230u0823" on the Dropbox web site. The SDK and API will handle that for you. You just need to register your URL scheme of "db-ht5jlmr230u0823" as instructed. The…
  • Thanks for the feedback! I can't speak to why any particular feature was or wasn't implemented, but we appreciate you taking the time to share this. I'll send it along. If you have a shared link for a folder and wish to get a direct link to that, you can likewise modify that as documented here. For folders, that will give…
  • Right, whenever possible, it's best to avoid unnecessarily uploading/downloading locally, for the sake of reliability and efficiency. Passing a link between two services, if supported, would likely be faster. In this case, if you need a direct link to a file hosted on Dropbox, the specifics will depend on if the file…
  • This "Your app is not permitted to access this endpoint" error indicates that the access token you're using to make the call does not have the necessary scope needed for calling that particular endpoint. As indicated by the error message in this case, the app would need the "files.metadata.read" scope. You can add it via…
  • If you want to run the SDK tests, you'll need to plug in the relevant values here. (Running the SDK tests isn't strictly necessary for using the SDK in your own app though.)
  • It sounds like you're using the Dropbox API v2 Objective-C SDK. That implements the app authorization flow redirect by using a custom URL scheme that you need to register for your app. In your case, based on the output here, your URL scheme would be "db-03609z0wg843bb3". Make sure you've registered that in your app's…
  • That example and the SDK are not limited to only your own account. That example implements the OAuth app authorization flow, to get an access token for the end-user, whoever that may be. I recommend reading the OAuth Guide for an overview of how that works.
  • @"Freddy shaddy" If you are not able to make the modification required, you'll need to reach out to the developers of Moodle for help. Dropbox can't offer help configuring and using Moodle itself, as it's made by a third party.
  • @"liftbox" Здравко is correct; the number of events returned per single response is not guaranteed. Due to various implementation details, a single page may even contain zero events. In any case, your app should always check the 'has_more' value and then call back to /2/team_log/get_events/continue if it's 'true', and so…
  • All Dropbox API calls must be made over SSL/TLS, so your app needs to be able to make SSL/TLS connections, but it doesn't need its own certificate. The Dropbox API servers themselves are served with their respective certificates, which your client just needs to trust.
  • We have an official .NET SDK you can use. You can find information on getting started with that, including installation instructions and example code, here: https://github.com/dropbox/dropbox-sdk-dotnet For example, to save files to a connected user's account, you could use the UploadAsync method:…
  • It looks like your client is truncating the error message. I recommend configuring it to show the whole message, if possible. For reference though, it would read: Error in call to API function "auth/token/revoke": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an…
  • Unfortunately, the Dropbox API doesn't offer a way to copy from a shared link into the connected Dropbox account via the API like this, but I'll pass this along as a feature request as well. I can't promise if/when that might be implemented though. The /2/files/copy_v2 call (or native method in an SDK) that you're…
  • @"Freddy shaddy" Здравко is correct, this should ideally corrected in the third party app's code itself. If you're not the developer of the app, you may want to reach out to them to request they update the app accordingly.
  • Thanks! We'll look into it and follow up with you soon.
  • @"Lito" Thanks for the report! Would you be able to share an unredacted request and response (please do redact the access token itself of course) showing this issue so we can better investigate? Please do so by opening an API ticket if so. Thanks in advance.
  • Based on this output, it looks like there's an issue with your network connection. The Dropbox API servers themselves are currently resolving and working correctly. It looks like you're trying to connect to a private IP address (10.16.121.33, not Dropbox) and that's failing. You'll need to debug your network connection to…
  • @"Itai M." We can help you with this via a support ticket. If you haven't already, please open an API ticket from the account that owns the app in question.
  • Thanks! That's helpful. While your app is registered for all scopes, that authorization URL includes the "scope" parameter but doesn't actually specify any scopes to use, leading to that error. The app should specify just the scopes it needs on that authorization URL. You may want to check with the developer of the app to…
  • Could you share the full URL of the page showing that "Error (400)" so we can check on this for you? Feel free to open an API ticket if you'd prefer to share privately. Thanks in advance! 
  • Thanks for the feedback. I'll send it along to the team.
  • This should be fixed now. Please try again and let us know if you're still seeing any issues. Thanks!
  • It sounds like your own app is probably registered for the "app folder" access type, while the API v2 Explorer has the "full Dropbox" access type. Apps with the "app folder" access type can only access the contents of the special app folder created for them (by default at "/Apps/<app name/" for accounts using the English…
  • Thanks for the post. Can you elaborate on your use case a bit? Do you mean you want to be able to get a link to the file in your account on the Dropbox web site just from the file ID? Dropbox files don't have links on the API by default, e.g., unless they're shared. A Dropbox file ID uniquely identifies a file, and enables…
  • [Cross-linking for reference: https://stackoverflow.com/questions/64764134/why-i-cant-stream-an-audio-stored-in-dropbox-using-android-exoplayer ] It looks like you already have an accepted answer on StackOverflow, but let us know if there's still anything we can help with.
  • I've been testing on a physical device. I've also had it connected to my computer though, to receive the output in Xcode. I'm not sure why that would interfere in your case, but I'm glad to hear it is working for you otherwise.