Comments
-
@"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'.
-
Thanks for the detailed report! We'll look into it.
-
@"kir_ko" These properties, such as LinkPermissions.RequirePassword, should now be available in the SDK as of v6.10.2.
-
[Cross-linking for reference: https://stackoverflow.com/questions/68294541/dropbox-api-filemetadata-how-to-determine-a-file-is-a-new-file-added-to-dropbo ] Without comparing with your previously retrieved metadata for the file (i.e., to see if there was any), the Dropbox Metadata information doesn't offer a way to…
-
Based on the error message, it looks like the HTTP request may have been malformed, causing the call to fail. I see you're supplying an empty 'Content-Type:', but that may not be the cause. I just tried this code myself, plugging in my own test access token and path, and it worked for me. Can you check that your…
-
Thanks for the feedback!
-
There isn't a way to have the API itself automatically perform logic and additional calls for you like this. The /2/sharing/create_shared_link_with_settings and /2/sharing/list_shared_links routes are distinct endpoints on the Dropbox API, and each require their own request from the API client (i.e., the code calling the…
-
What error(s) are you getting? You should check the HTTPS response body for the error information. Also, you should revoke that access token, since you posted it publicly.
-
That link was for Dropbox API v1, which has been retired. You should use Dropbox API v2 now. You can find everything you need to get started with Dropbox API v2 here. For reference, the API v2 equivalent of that API v1 "longpoll-delta" endpoint is /2/files/list_folder/longpoll.
-
No, whether you're using the OAuth flow to request a long-lived access token or a short-lived access token/optional refresh token, the user needs to manually authorize the app, and they need to be logged in to Dropbox to do so. If they are not already logged in, they will be prompted to log in before they can choose to…
-
The Dropbox API does not offer a way to configure automatic deletions like this, nor does it offer a way to specify a wildcard like that or otherwise just delete everything in a particular folder without deleting the folder itself, but I'll pass this along as a feature request. I can't promise if or when that might be…
-
Exactly how you interact with Paper docs via the API for any particular account will depend on what version of Paper that account is configured to use. Please refer to the Paper Migration Guide for information on the two versions and what endpoints you should use for each. Once you've done so, if you're still having any…
-
I can't help with FileMaker Pro itself as that's not made by Dropbox, but I'll try to offer whatever guidance I can on the Dropbox side of things. If you want to create a shared link for any particular file or folder, calling /2/sharing/create_shared_link_with_settings is the correct way to do so. Note though that this…