Comments
-
If you're using authorizeFromControllerV2, the SDK will take care of the rest for you automatically. It requests "offline" access, so it gets a refresh token, and uses that refresh token to automatically perform the refresh process to get new short-lived access tokens whenever needed, without requiring you to handle that…
-
Can you elaborate on what you mean when you say they "can not successfully upload files"? Please show the rest of the relevant code you have implemented and whatever error/unexpected output you're getting.
-
You can use the API to access anything in the connected account that the account has access to and has mounted. The connected account doesn't need to be the owner. Using the /2/files/list_folder[/continue] endpoints is the right way to list the contents of any particular path, and then you can use /2/files/download to…
-
I see you already have an open support ticket for this, so there's no need to email in again. The support team will reply to your ticket and you'll get the response by email.
-
I can't monitor your account like that, so I recommend working with support via your email to check on your account.
-
We did recently have an issue where the "Use a different account" option in the Dropbox app would redirect to the developers site instead of the app authorization flow, but we recently fixed that. Are you still seeing this issue if you try again now?
-
It looks like this is due to a very large amount of activity on your account. This should resolve on its own after some time, but you'll need to make sure you do actually stop all calls to your account, or it will just reset the rate limiting. So, make sure you've stopped all calls to the account/team. For instance, make…
-
The files_search_v2 method returns a SearchV2Result, which has a list of SearchMatchV2 in its 'matches' variable. Each SearchMatchV2 has a MetadataV2 object in its 'metadata' variable, so you can access the Metadata object and its variables, such as 'path_lower', like this: search_result = dbx.files_search_v2('Test')for…
-
遅れてしまったことをお詫びします!なんらかの理由でこのスレッドの通知はありませんでした。 とにかく、DropboxはプログラムでDropboxにアップロードするために使用できるAPIを提供します。 Nodeを使用している場合は、公式のDropbox API v2 JavaScriptSDKを使用することをお勧めします。これを使用してノードからアップロードする例がここにあります。 -----------– 読みやすい翻訳をご提供できず申し訳ございません。当社からの返答にはオンライン翻訳を使用しています。どの言語にも対応することが理想ではありますが、現時点ではそれが可能ではありません。こちらが英語版です。 -----------– Please…
-
The app authorization page in the browser connects back to the native app using a custom URL scheme, which the app sets in its plist file, from this step in the setup documentation. Specifically, it's the "db-<APP_KEY>" set in CFBundleURLSchemes under CFBundleURLTypes. (The Dropbox web page knows to redirect back to a URL…
-
Yes, that's correct.
-
I don't believe there's any specific guidance with respect to threading for the authorization process. The official documentation for implementing the app authorization flow can be found here.
-
@"mkamalkayani" No, unfortunately I don't have an update on this issue to share.
-
If you use authorizeFromControllerV2, the SwiftyDropbox SDK will automatically store and use the refresh token for you. You should just use authorizedClient to get the client and the SDK will take care of the refresh process.
-
Thanks for following up. I'm not aware of anything with the SwiftyDropbox SDK itself that would cause that. In my test, for instance, the entire completion handler runs pretty much instantaneously.
-
@"kailasbhole" No, I don't have an update on this request.
-
I just gave this a try by setting up a new macOS project with your code snippets here, and it worked successfully for me. It got to "handleGetURLEvent: Success! User is logged into Dropbox.". Can you let me know what versions of Xcode and macOS you're using? Also, what method did you use to install the SwiftyDropbox…
-
Dropbox does not offer a way to extend the Embedder, but Dropbox does offer a general 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:…
-
The API doesn't offer the ability to programmatically create symlinks, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
@"cadboss" Dropbox does have some special integrations with partners like that, but yes, for the standard Dropbox developer platform, the authorization flow is still initiated from the third party app.
-
Yes, that's right. If a user processed the flow with authorizeFromController before they change, they received a long-lived access token. 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…
-
Once Dropbox stops issuing new long-lived access tokens, any users processing the old authorization flow, e.g., using authorizeFromController, will still be able to authorize the app but will receive new short-lived access tokens instead of new long-lived access tokens. That means that the app will only be access the…
-
[Cross-linking for reference: https://stackoverflow.com/questions/68394583/unable-to-show-list-and-upload-file-from-dropbox-in-swift-5 ] I see you also posted this on StackOverflow with more information, so I've shared an answer there.
-
@"Radhika Girigalla" I'll follow up with you on your GitHub issue.
-
@"adminHbits" You can find the instructions, including information on how to remove an Embedder, in the Embedder documentation here.
-
@"mabramsphoto" Also, note that Dropbox won't consider it a conflict (that is, won't make a new file), if you upload the same contents as the existing file. You should upload different contents to see that behavior, or set "strict_conflict" to true if you want that behavior even for identical contents.
-
Thanks for following up with the additional information!
-
The Dropbox API itself does offer the ability to download a folder as a zip via /2/files/download_zip. It doesn't offer the same ability for individual files. It also doesn't offer the ability to produce a zipped folder/file on Dropbox without downloading/uploading it, but I'll pass this along as a feature request. I can't…
-
That endpoint is meant for use with legacy Paper docs (i.e., the old version, where Paper docs are not part of the Dropbox filesystem). If you are using legacy Paper docs, you can get the list of Paper doc IDs from /2/paper/docs/list and /2/paper/docs/list/continue. (By the way, note that the alpha endpoint you linked to…
-
Thanks, that's helpful. I see your client is passing up 'Content-Length: -1', which is incorrect. Mine is not doing that, so it may depend on what version of curl/PHP you're using. Try explicitly specifying a header of: 'Content-Length: 0'.