Greg-DB Dropbox Community Moderator

Comments

  • You can find this information in the 'FileMetadata' object for the file. Specifically, FileMetadata.server_modified is the date/time when the file was last changed, and FileMetadata.sharing_info.modified_by contains the account ID for the user that last changed the file, if the file is in a shared folder. You can get…
  • No, the Dropbox API doesn't offer a way to programmatically retrieve the permission or access type for the app, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. For context, can you elaborate on why you need or want to be able to do so? Thanks!
  • No problem, thanks for confirming. Anyway, yes, I meant adding a new 10 second delay before the next /2/sharing/share_folder call.
  • Apologies, I'm not sure I follow. In your original message, the error output you shared appears to be from the response to a call to /2/sharing/check_share_job_status (for checking the job started by calling /2/sharing/share_folder). In your latest message though, you just said you're getting an error from…
  • Thanks for the additional information. I see you have extra \ values in your JSON string. You may have copied those from the command-line curl examples in the documentation. Those are only needed in contexts where you need to escape the subsequent " values, such as in bash, like in those examples, since the " character is…
  • @"kshpytsya" Yes, that should work as well. 
  • The /2/files/download endpoint is a "content-download" style endpoint, so it expects the parameters (such as "path") as JSON in a 'Dropbox-API-Arg' request header. This "could not decode input as JSON" error indicates that the value supplied in the 'Dropbox-API-Arg' request header could not be successfully parsed, likely…
  • No, the Dropbox Business API doesn't offer a way to download invoices, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • @"Dennyw" No, unfortunately I don't have any news on this request.
  • We can't offer help on the Databricks/Pyspark side of this, as that's made by a third party, but to programmatically download file data from a password-protected Dropbox shared link, we recommend using the official Dropbox API v2 Python SDK. Specifically, you can use the sharing_get_shared_link_file method to download file…
  • Thanks for the additional information! That's helpful. Performing these serially is good, but unfortunately due to some complexities with the implementation of nested shares like this on the backend, it is still possible to run in to some asynchronous/delayed contention when doing so. That being the case, can you try…
  • @"lekha" Thanks for letting me know. It looks like the documentation link format changed. I edited my post with the new correct ones.
  • Thanks for the report! We can help look into this, but it looks like we could use some more information. Could you also: * share some sample API requests for the earlier API calls you're making (i.e., steps 1 and 2 in your outline), like you did for /check_share_job_status * let me know if you're sending the requests in…
  • Are you referring to how you read off just a piece, i.e., a "chunk", of the file to upload at a time? That would depend on your platform/programming language and isn't really about the Dropbox API itself, so I'm afraid I can't offer much guidance on that. I recommend referring to the documentation for platform/programming…
  • @"Makhlouf" In case it helps with your the networking troubleshooting, note that the redirects to get to the file data when using 'raw=1' or 'dl=1' also go through other Dropbox domains that look like '*.dl.dropboxusercontent.com'.
  • Dropbox itself doesn't have listings of developers to hire. There may be third party marketplaces online where you can search for developers to hire, but we can't recommend any in particular.
  • Yes, the upload session endpoints allow you to upload a large file by sending it in multiple pieces. (Each piece can be up to 150 MB in size, but something smaller, such as 8 MB, is recommended.) You should send the pieces in order, and you can optionally send them to any of the three endpoints. That is, you can include…
  • Thanks, in that case the empty file isn't surprising since the call is failing, with the 'CURL_COULDNT_RESOLVE_HOST' error. I did just try it myself, and the Dropbox domain is resolving properly for me. That error indicates a DNS issue, so you'll need to troubleshoot your DNS configuration/server. I can't offer support for…
  • Yes, as you found, since the /2/files/upload endpoint only officially supports uploading files up to 150 MB in size, you should use "upload sessions" to upload larger files. You can find the documentation for the upload session endpoints here: * /2/files/upload_session/start * /2/files/upload_session/append_v2 *…
  • To get a direct link to a file via the API you can call the /2/files/get_temporary_link endpoint. In the official Dropbox API v2 Python SDK, that's available as files_get_temporary_link. Note that those links are only valid for four hours. If you need longer-lived links, you can instead…
  • There are a few things that I notice that you may want to address: * You should get rid of the "dl=0" URL, since that's not expected to work. (It is supposed to return an HTML page, which isn't what you want.) * You're attempting to use both 'URLDownloadToFile' and 'curl', but you only need one. You should probably just…
  • I'm not sure I follow. Can you share your code and whatever error/output you're getting when you try to download from a shared link with dl=1? Thanks in advance! 
  • You can download a file from a shared link directly without using an access token, like you tried initially. Note that by default however, Dropbox shared links point to an HTML preview page, not the file data itself. You can modify the link to point to the file data though, as described here:…
  • This limit applies to upload calls made by third party apps, only when connecting to Business accounts on certain Business plans. You can find more information on this here: https://www.dropbox.com/developers/reference/data-transport-limit
  • Yes, you can certainly use ParseTokenFragment with the native system browser flow. That's shown in the example here: https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm
  • It looks like this is being caused by an SSL configuration issue on your https://app.astodi.com server, specifically, an incomplete chain (under "Chain issues"): https://www.ssllabs.com/ssltest/analyze.html?d=app.astodi.com&hideResults=on You should be able to fix this by including the intermediate certificates on your…
  • [Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-dotnet/issues/108 ] I see you also posted this on our GitHub repo so I'll close this forum thread in favor of that issue and follow up with you there shortly.
  • You should be able to use the API to connect to different accounts by using different access tokens. 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 number of the platform and SDK/library you are using, if any * the…
  • Using a web view for the app authorization flow is not officially supported, so I can't recommend doing so. In any case, if you call ParseTokenFragment and it returns successfully, the return value will be a OAuth2Response. You can get the access token from OAuth2Response.AccessToken.
  • Thanks for the report! It looks like this may already be fixed in the latest version of the Java SDK, currently v3.1.3. Can you update to that and let me know if you're still seeing the issue with that? Thanks in advance!