Comments
-
It's possible you actually have multiple versions of Python installed, so make sure you've installed the Dropbox package in the same Python environment that you're using to run your program. (For instance, you mentioned you're using Python 3.9.7, so depending on your setup you may need to use "pip3" to install packages…
-
Thanks for following up. Yes, the Dropbox webhooks system expects a 200 specifically, but I'll pass this along as a feature request to allow 2xx. I can't promise if or when that might be implemented though.
-
It sounds like the file(s) you're referring to were not marked restricted prior to that time.
-
No, unfortunately the API does not offer an option to bypass that error.
-
A 'restricted_content' error from /2/files/download means: restricted_content Void The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims. If the file is marked restricted like this, you will not be able to use the Dropbox API to…
-
@"FarukTest" No, I don't have any news on this request. Dropbox doesn't offer a special kind of account for testing like that.
-
1. To retrieve existing links, you can use listSharedLinks or listSharedLinksBuilder. 2. You can modify shared links for different behaviors, such as direct file content access, using the URL parameters documented here.
-
A 'path/not_found' error like that indicates that the call failed because there was nothing found at the specified 'path' value. There are a few things that will affect this: * Which account is being accessed: each API call is made using an access token, and that access token is specific to a particular account. Make sure…
-
I'll follow up with you on your GitHub issue. For future reference, note that you don't need to post on both the forum and GitHub repo. Either is fine. Also, as noted in an earlier thread, you should not post your access token. I've redacted it from your posts, but you should make sure you revoke it for the sake of your…
-
Yes, those examples happen to use the sharingGetSharedLinkFile method, but accessing the result works the same way as filesDownload. As for the latest issue, I see you opened a new forum thread and GitHub issue, so I'll follow up with you there.
-
Apologies, I've fixed the first link. Depending on the type of environment, the file data itself will be available in either the object's 'fileBlob' or 'fileBinary' property.
-
[Cross-linking for reference: https://stackoverflow.com/questions/69320818/how-to-download-dropbox-pictures-locally-to-a-folder-with-javascript ] Exactly how you save/display them depends on your app/environment, but the filesDownload method is the right way to download a file's data from Dropbox. You can get the resulting…
-
The filesDownload method downloads a single file. If you want to download multiple files, such as all of the files in a folder, you can iterate through them and call it for each one. If you want to download an entire folder at once, you can use filesDownloadZip instead. Note that this will give you a zip of the folder…
-
The path value should not end with a "/". For example, if the file is named "test" and is in the root, the path should be "/test". Or as another example, if the name of the file is "test.jpg" and it is inside a folder named "folder", then the path would be "/folder/test.jpg". I recommend reading the File Access Guide for…
-
A 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That…
-
To use the 'Dropbox' constructor, that should be 'new Dropbox' instead of 'new Dropbox.Dropbox'. By the way, I redacted it from your post, but note that access tokens enable access to Dropbox accounts, so for the sake of security, you should never share access tokens like this. Since this access token has been shared here,…
-
Thanks for writing this up! 1. The Dropbox Chooser doesn't offer a way to get the full metadata, such as the path, like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 2. Unfortunately the Dropbox Chooser wasn't originally really built to work with the API…
-
Refresh tokens don't expire automatically, though they can be revoked by the app or user.
-
It looks like the file you're referring to is located in the "team space". API calls default to the "member folder", not the team space though, so to access anything in the team space you will need to also specify the "Dropbox-API-Path-Root" header. Please refer to the Team Files Guide for information on using that:…
-
No, the creation of new long-lived access tokens is now deprecated, and will be retired in the future. For reference, we don't currently have a plan to disable existing long-lived access tokens though. (If that changes, we will of course announce that ahead of time.) That being the case, you can continue using existing…
-
The API Explorer doesn't know which permission is needed for each endpoint, so if you "Get Token" with "App Permission" set to the wrong permission for the current endpoint, you'll get this error when making the call. For example, /2/team/team_folder/list requires the "Team member file access" permission, so you'd need to…
-
Thanks for the report! I'll ask the team to fix this up. I can't promise a timeline for that though, so feel free to open an API ticket with the relevant app key(s) to ask for an extension.
-
Thanks for the report! We'll investigate and I'll follow up here once I have an update.
-
The /2/files/get_temporary_link endpoint does not offer a way to upload files to Dropbox. It is a way to get a link that can be used to download file data from Dropbox. The 'path' value should be the relative path of the file in the connected account, which would look like "/shirt.png". A "path/not_found" error indicates…
-
We'll be happy to help with this. Please open an API ticket here with the relevant app key(s) (but not secret(s)).
-
Thanks for clarifying! I'm sending this along as a feature request, though I can't promise if or when that might be implemented.
-
No, there's no need to open anything else. This forum thread serves as the reference to your request. Thanks!
-
@"msullybos" Yes, the /2/files/list_folder endpoint supports namespace ID paths in the 'path' parameter, so you can use the team_folder_id for a team folder as the 'path' value, like "ns:123456789", where 123456789 is the team_folder_id. (For information on how to interact with a team space though, refer to the Team Files…
-
You do not need to apply any special logic for the expiration of an access token near the boundary of the expiration time; the Dropbox API servers will authenticate each request and either allow or reject it. For any given API request, the request will either be authenticated and then proceed, or it will not (e.g., if the…
-
It sounds like you're referring to the kind of link with "/scl/fi", which can enable editing access, and you're calling /2/sharing/list_shared_links without specifying a "path" value to list all shared links, but aren't seeing the "/scl/fi" links returned. These "/scl" links aren't standard shared links, so they don't get…