Comments
-
We have a new example for using PKCE in the browser with the latest version of the JavaScript SDK, currently v9.4.0, here: https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/pkce-browser/index.html
-
[Cross-linking for reference: https://stackoverflow.com/questions/66801474/how-to-get-shared-links-for-editing ] I sounds like you're referring to the kind of link with "/scl/fi", which can enable editing access, and you're calling list_shared_links to list the shared links, but aren't seeing the "/scl/fi" links returned.…
-
No, it is not possible to use a short-lived access token to programmatically generate another access token. If you need long-term access without manual user intervention, you should use the OAuth flow to get a refresh token, which can be used to programmatically retrieve new short-lived access tokens on demand. Please…
-
1: Here's an example of how you can drill down into this kind of error: switch callError as CallError {case .authError(let authError, let userMessage, let errorSummary, let requestId): switch authError { case .missingScope(let tokenScopeError): print("Missing scope error: \(tokenScopeError)") print("The required scope is:…
-
The Dropbox API doesn't offer a way to process copy references in batch, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, using shared folders may be a better option. For instance, you can share folders using /2/sharing/share_folder and…
-
I don't have an example for fetch in particular handy, but if you using JavaScript we recommend using the official Dropbox API v2 JavaScript SDK. There's an example of using filesListFolder with that here. Otherwise, feel free to share the code you have so far and the error/output you're getting so we can take a look and…
-
[Cross-linking for reference: https://stackoverflow.com/questions/66787691/create-file-with-text-with-dropbox-api-rest-or-http ] Yes, the /2/files/upload endpoint is a "content-upload" style endpoint, so you can supply the file data to upload in the HTTPS request body. You may need to refer to the documentation for…
-
To upload a small file, you'd use the /2/files/upload endpoint: https://www.dropbox.com/developers/documentation/http/documentation#files-upload That's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:…
-
New Dropbox API apps do default to using "short-lived" access tokens now. I recommend reading the OAuth Guide and this blog post for more information on how to use these and the different options available.
-
The Dropbox API uses HTTPS for communication, but it is not a REST API and so does not follow the REST pattern you may be familiar with, for instance. You can find the documentation for the Dropbox API v2 request and response formats here. You may also be interested in these old blog posts about the original design of API…
-
The authorization for any team or user account always requires some sort of manual interaction, but note that the app can store and re-use the access token/refresh token after that.
-
The sharing_list_file_members method is for listing the members of a shared file, and doesn't support listing the members of a shared folder. Accordingly when you call it for a shared folder, it fails with 'access_error/is_folder' like this. To list the members of a shared folder, you should instead…
-
The ListFolderAsync interface is paginated and is not guaranteed to return all of the results in a single call. You may need to call back to ListFolderContinueAsync to retrieve more entries, sometimes repeatedly. Please refer to the ListFolderAsync and ListFolderContinueAsync documentation for more information on using…
-
@"ravindra007" To list the contents of a path via the Dropbox API, you should use the /2/files/list_folder and /2/files/list_folder/continue endpoints. Those are already paginated, meaning that you may need to make multiple calls in order to retrieve all of the results. The exact page size isn't guaranteed though. You can…
-
From your code I see you're attempting to upload to a "shared link" (the "https://www.dropbox.com/sh/..." link). That only offers the ability to read the linked content though, not the ability to upload to it. To programmatically upload a file, you can use the /2/files/upload Dropbox API endpoint. You can find information…
-
No, Dropbox doesn't offer access tokens for an app itself. Dropbox access tokens are always for a particular app-team pair or app-user pair, both of which require authorization, from a team admin or user respectively.
-
@"thesongcompany" I don't have an update on this yet. I'll follow up here once I do.
-
The "list" and "grid" options for "view" can be set when using the Embedder but only via JavaScript, not via anchor tags. I'll pass this along as a feature request but I can't promise if or when that might be implemented.
-
@"John Thomson" Dropbox doesn't offer an official way to detect conflicted copies like this, or a full list of the translations of "conflicted copy", but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
No, I don't have a screenshot of that. The text would be "You're about to link an app that will consume your team's available upload API quota." though.
-
It sounds like you're referring to the "1 billion API calls/month" noted here: https://www.dropbox.com/plans?trigger=nr This is a limit on the number of upload API calls that can be made per team per month, for certain Dropbox Business team plans. I don't have a specific list of these apps available to see which are…
-
@"Andrey K.1" Thanks for the feedback! I've sent this to the team to get the examples updated, but I can't offer a timeline for that. It seems that using a custom URL scheme with the PKCE flow works though. I don't have an official example to offer, but while I'm not a UWP programmer myself, it looks like the necessary…
-
If you want to get a list of all the shared folders in the connected account using the Dropbox Objective-C SDK, you should use the DBSHARINGUserAuthRoutes.listFolders and DBSHARINGUserAuthRoutes.listFoldersContinue methods. (Note that these are different from the DBFILESUserAuthRoutes.listFolder…
-
If you want the access token to have access only to a specific member's account, then no, the Dropbox API doesn't offer anything quite like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You can get new short-lived access tokens on demand, without further…
-
I just wanted to follow up on this to let you know that this is now available. Please refer to this post for more information: https://dropbox.tech/developers/new-paper-endpoints-released-in-preview
-
I just wanted to follow up on this to let you know that this is now available. Please refer to this post for more information: https://dropbox.tech/developers/new-paper-endpoints-released-in-preview
-
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers Note that this is intended for programmers who are looking…
-
The /2/file_requests/create endpoint is an "RPC" style endpoint, meaning that it takes takes its parameters as JSON sent in the request body. Looking at your code, I see you seem to be sending your JSON parameters in a header (named 'data'), not in the request body. You'll need to move that to the request body, via…
-
The documentation and this error are referring to "lock contention" which is an inability to make multiple changes in the same account (or more accurately, namespace) at the same time. I recommend reading the Performance Guide for more information for context, if you haven't already. So, you should only run one…
-
@"nashworth" Thanks for sharing that link! @"Semaphore" Thanks for the feedback! I'll pass it along to the team to see if we can get that working again. I can't make any promises myself though as web views weren't officially supported for this, and the app authorization page is part of the Dropbox web site and so subject…