Comments
-
You're correct that the API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical…
-
Yes, the user would need to re-link the app the same as the first time, i.e., it would be done via the official app or web.
-
The updateAccessToken method doesn't allow you to fix expired access tokens, and access tokens don't actually expire anyway. So, in any case you get sessionDidReceiveAuthFailure you should prompt the user to re-link the app to their account if they want to continue using the app.
-
The API itself doesn't offer an option for this, as the Dropbox API app authorization page is just a normal web page on the Dropbox web site, so this would be more of a browser behavior. That is, you can instruct the browser to open a link in a new tab/window (e.g., see these StackOverflow posts: Open link in new tab, How…
-
No, the API doesn't currently offer the ability to create account programmatically, but I'll be sure to pass this along as a request.
-
No problem, we'll be happy to help. Can you post any other relevant code as well as the exception you're getting so we can look into it/reproduce it? Thanks in advance!
-
Hi Kathleen, I noticed this was also posted on StackOverflow, but has since been removed. Are you still having trouble with this?
-
You can get an API app key and secret (a.k.a. consumer key and secret) by creating a Core or Sync API app at: https://www.dropbox.com/developers/apps/create Note that Drop-ins do not have app secrets. Once you have an app created, the app key and secret will be available by going to the App Console and selecting the app…
-
It sounds like you registered a "Drop-ins" app, which is only allowed to use the Drop-ins functionality, and not the full OAuth app authorization flow. You can find more information about the different permissions here: https://www.dropbox.com/developers/reference/devguide#app-permissions You can register a new Dropbox API…
-
Version 2.3.5.10 of the Dropbox app is a bit old now. Can you update to the latest version (currently 2.5.0.4 on Google Play) and let me know if you still see the issue?
-
Also, can you let me know the version number for the Dropbox app installed on the HTC Once device(s) you've seen this on?
-
Thanks! That's helpful. We'll look into it.
-
Thanks! Have you set up the db-{YOUR_APP_KEY} intent filter, per the instructions? Can you post that too?
-
[Cross-linking for reference: https://stackoverflow.com/questions/30212974/dropbox-sync-api-startlink-not-working-on-htc-one-which-has-system-installed ] Does this only happen on HTC One devices with the Dropbox app installed, or does it happen on any Android device with the Dropbox app installed? (If you haven't tried the…
-
You can either use the /search endpoint to search for the filename occasionally: https://www.dropbox.com/developers/core/docs#search Or use the /delta endpoint to keep a local representation of the Dropbox account state and search that metadata for where the last path component of the path is the filename you're looking…
-
[Moved from "Bug & Troubleshooting" to "API Development"] Thanks for the report. Have you been able to reproduce this issue yourself? The API, on api.dropbox.com, is being served with a valid certificate: https://www.ssllabs.com/ssltest/analyze.html?d=api.dropbox.com&latest That being the case, if this isn't happening for…
-
This thread was originally only about potentially using wild cards in the redirect URI, so please open a new thread so I can help you with further questions without spamming the others on this thread. Thanks!
-
If you want to use the implicit flow, your response_type should be set to "token". The client_id should be your app key, and the redirect URI should be some URI where you want the user sent back to after they approve your app to connect to their account. For the implicit a.k.a. token flow, the access token is returned to…
-
No, the entire URI needs to match. I recommend using the state parameter to pass along data as necessary instead.
-
Thibaud, no, there currently isn't a way to programmatically register new apps, but I'll be sure to pass this along as a request. (Also, your question doesn't really seem related to this thread, so for future reference, in cases like this, please be sure to create a new thread for your question.)
-
This isn't currently possible, as all OAuth 2 redirect URIs are required to be pre-registered as a matter of security. I'll be sure to pass this along as feedback though. As mentioned though, one thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state'…
-
The rate limiting is mostly just designed to prevent abuse, so I doubt this would be an issue. Be sure to make use of /delta and /longpoll_delta though, for the sake of efficiency: https://blogs.dropbox.com/developers/2013/12/efficiently-enumerating-dropbox-with-delta/…
-
Unfortunately the APIs don't offer that functionality, but I'll be sure to pass this along as a request.
-
No, revs are not recycled or re-used. There currently isn't a good method for tracking moved/renamed files via the API.
-
You can think of the 'rev' of a file as an address in the history of the account, and not as a unique identifier of the contents of the file. * If you mean "unique file snapshot ID" in reference to the file content, no, other files, or the same file, with different revs may contain the same data. Or, if you are asking if a…
-
The /delta returns null for deleted items, just to tell your app that there is now nothing at that path, and not metadata, so that wouldn't work directly. You could then use /metadata or /revisions to see what you need though.
-
You could technically use both the Sync and Core SDKs together in the same app, but we don't recommend doing so. They weren't built with that in mind, so it's relatively difficult to do, and we don't have any specific instructions for making it work. Yes, /delta notifies you of deleted files.
-
Do you mean you're trying to manually keep a local filesystem in sync with the Dropbox account? The Sync SDK wasn't really designed for that use case. Instead, it's intended that you'd use the Sync SDK as the source of truth for the files, where you let it maintain consistency with the server itself, cache files, etc. The…
-
Based on the error message, it sounds like your machine is behind a proxy that requires credentials. Do you know if that's the case?
-
Thanks for the report! This is fixed now.