Greg-DB Dropbox Community Moderator

Comments

  • @"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.
  • Sure, you can use this by setting the "Range" header. You can find information on the syntax in the spec. For example, here's a call that would download only bytes 0 through 5: curl -X POST https://content.dropboxapi.com/2/files/download \ --header "Authorization: Bearer <ACCESS_TOKEN>" \ --header "Dropbox-API-Arg:…
  • No, unfortunately the SDK doesn't offer a way to bypass that flow, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • @"Lito" Thanks for the note! I'll follow up here once I have an update on this issue.
  • @"Moodle FHS" Can you double check that you're using the app key for the particular app for which you've enabled the necessary scopes? If you'd like help troubleshooting your app, you can open an API ticket here so you can share the details privately if you'd like.
  • Thanks for following up with the additional feedback. By the way though, since Dropbox enforces TLS (i.e., it will redirect any http:// shared link URLs to https://), I believe you can technically rely on TLS to ensure integrity of the download against any corruption in transit. The TLS specification states: The primary…
  • Thanks for writing this up. Unfortunately, Dropbox currently doesn't offer an API for Dropbox Transfer, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • Dropbox does offer an API you can use for programmatically listing, uploading, and downloading files, among other operations. If you're a developer and wish to build this kind of integration, you can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:…
  • The /2/files/create_folder_v2 endpoint that the files_create_folder_v2 method uses only supports the Dropbox-API-Select-Admin "Team Admin" mode, meaning: The endpoint can access content of team folders but not team member's private files. Since you're using "as_admin", that's setting the "Dropbox-API-Select-Admin" header,…
  • @"homedeck" No, unfortunately I still don't have an update on this feature request. I'll follow up here if/when I do. I can't connect you directly with engineering, but if you have any questions or issues regarding the Dropbox API you can always open an API ticket here.
  • This appears to indicate that the Dropbox library wasn't successfully loaded. Were you able to add it as instructed in my earlier comment? Did the Gradle sync complete successfully after that?
  • I see you also opened a support ticket for this, so we'll follow up with you there.