Comments
-
Yes, you can use the API v2 /sharing/add_folder_member endpoint to invite a user to a shared folder. In JavaScript, it would look like this: $.ajax({ url: 'https://api.dropboxapi.com/2/sharing/add_folder_member', type: 'POST', processData: false, data: JSON.stringify({"shared_folder_id": "84528192421","members":…
-
Thanks for reporting this! I can't make any promises, but I'm sending this along to the team.
-
The Dropbox API does enable you to build an app that users can connect their accounts to, in order to interact with their files. For example, once a user is linked to your app, the app can upload and download files to and from their account, as well as share files. To get started, we recommend using one of the official…
-
What error/output do you get when you try to run with the absolute path?
-
Thanks! It looks like these aren't the actual raw requests though. How are you printing out the request headers you're sending? Can you print out the raw requests, and double check that you're sending the exact "Range" header that you're intending to?
-
I can't seem to reproduce this behavior. Can you share the raw requests and responses so we can look into it? Just be sure to redact the access token. Thanks in advance!
-
The error:"(null)" indicates that this is working properly. Are you seeing any broken functionality? This is related to new protections in iOS 9, but as long as you've set up the SDK as documented, which is sounds like you have, this log message can be safely ignored.
-
You can use the API to list files uploaded to Dropbox. The API can't tell you about files that are currently uploading, but not yet complete, though. For example, to list files in a folder, you can use the listFolder method in the Java SDK. You can also perform other operations like uploading and downloading files.
-
What do you mean be "control" exactly? What operations do you need to perform?
-
Hi Dennis, SwiftyDropbox supports iOS 9+, not just iOS 10. You can find the requirements in the README here: https://github.com/dropbox/SwiftyDropbox (Also, the Swift 2.3 branch supports iOS 8+.)
-
Thanks for the additional information! It sounds like you're referring to changes in Swift 2.2 in particular. If you've already made the changes, feel free to submit a pull request. Otherwise, we'll look into it too. Also, I can't make any promises regarding tvOS support, but I'll be sure to pass this along as a feature…
-
I believe the SwiftyDropbox SDK should work on iOS 9.3. Are you seeing any issues, beside the one reported in your other thread? If so, please let us know the details so we can look into it.
-
I see, yes, only the start endpoint gives you a new session ID, so it does look like your method is getting called more than once. You only need to call successfully start once per file though. If you're having trouble with the API once you sort that part out, let us know.
-
Can you elaborate on what you mean when you say you "get a brand new [session ID] it seems during the next call"? Only /files/upload_session/start returns session IDs. Can you log and share the responses you're getting?
-
Your HTTP client seems to be overriding the Content-Type you're trying to set. There was another thread with the same issue using RestClient here that should be helpful: https://www.dropboxforum.com/hc/en-us/community/posts/205222763-Not-getting-response-when-I-call-2-files-listfolder-method
-
To follow up here, SwiftyDropbox does now support OS X/macOS.
-
I just heard back from the team, and we do still plan on adding OS X/macOS SDK support, but I don't have a timeline to offer right now. If you're using SwiftyDropbox, there is a pull request for it here, but note that we haven't yet fully vetted that code: https://github.com/dropbox/SwiftyDropbox/pull/49
-
Hi Dennis, I don't have any news on API v2 SDK support for OS X/macOS right now, but I'll check in with the team to see if I can get an update for you and reply here.
-
Hi Joe, when offline, the HTTPError case doesn't contain any useful specific HTTP error information as you saw (since there was no response to use). For now you can just consider this case to be a general network failure, but I'll send this along as a feature request to expose the more specific underlying error from the…
-
This should be fixed now. Let me know if you're still having any trouble with it.
-
Thanks for the report! We're looking into it.
-
Hi Gerard, from the documentation for /2/files/list_folder/longpoll, the endpoint is: https://notify.dropboxapi.com/2/files/list_folder/longpoll You seem to be using: https://notify.dropboxapi.com/2/files/list_folder/longpoll? Please remove the extra ? and try again and let me know if that doesn't help.
-
This isn't currently possible, but I'll be sure to pass this along as a feature request.
-
Thanks for the feedback! I'm sending it along now.
-
Unfortunately, the 5 minute timeout for the Saver isn't configurable, nor is there a workaround for avoiding it. I'm sending this along as a request to increase the timeout. Apologies I can't be of more help!
-
Thanks for the idea Robert! I'm sending it along to the team now.
-
Thanks for the feedback and recommendation! This looks very interesting. I'll send it along to the team. As it stands though, API apps do need to process the app authorization using the OAuth flow, either via the user's own default system browser (preferably) or via an in-app browser. Also, API v2 is production ready. I…
-
Hi Robert, our normal recommendation is to use the platform specific SDK for each platform, as available. So, that would be SwiftyDropbox for Swift (and the forthcoming Objective-C library for Objective-C. ETA August), the .NET SDK for Windows, the Java SDK for Android, etc. If you need to support all of these though, that…
-
Yes, you should use that parameter for downloading from shared links. It's documented in this help center article: https://www.dropbox.com/help/201
-
That error can occur in some cases, in which case the response status code will be 503. If the response status code is non-200, you should consider the upload failed. This error generally indicates that there was simultaneous activity in the account preventing your app from making the state-modifying call (e.g., adding or…