Comments
-
Why do you want to bypass the login prompt? Do you mean after the user has already authorized the app once you don't want to prompt them to do so again? In that case, you should store and re-use the access token as discussed in the tutorial: https://www.dropbox.com/developers/core/start/android Here's the constructor for…
-
Yes, for a client-side app, such as on Android, you should use /longpoll_delta. The /longpoll_delta endpoint and webhooks both serve the same basic purpose, that is, low-latency notification of changes, but they're built for different scenarios, that is, client-side apps and server-side apps, respectively. In both cases,…
-
Can you elaborate on what your scenario is? Webhooks are meant for server-side apps, and require a pre-registered URI where Dropbox can send notifications. Perhaps you actually mean /longpoll_delta?
-
The Dropbox Saver uses the User-Agent: "DropboxSaver/1.0". Anyone else can also set that though of course, so you shouldn't use just that for access control if possible. (E.g., include unguessable tokens in the links, make the links expire, etc.)
-
You can get an API app key and secret (a.k.a. consumer key and secret) by creating a Dropbox 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 here:…
-
Yes, if you just need a temporary link for accessing file content, you can use /media: https://www.dropbox.com/developers/core/docs#media For longer-lived shareable links, you can use /shares: https://www.dropbox.com/developers/core/docs#shares Note that those links goes to a preview page by default, but you can modify…
-
Thanks! That link appears to work, and using it with the Dropbox API /save_url endpoint does successfully save a file to my account. Inspecting the file, however, shows that it actually just saves the HTML page. The file begins with: <html> <head> <title>Microsoft OneDrive ...and so on. That makes sense though, as your…
-
When I try to access that link directly in my browser to test it, I get the following error: This item might not exist or is no longer available This item might have been deleted, expired, or you might not have permission to view it. Contact the owner of this item for more information. If that's not the cause of the…
-
Can you share your code and whatever output/errors you get?
-
Allek, are you using the Dropbox Java SDK for API v2 on Android? If so, there's a sample that shows the authorization flow here: https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android
-
Your summary is correct, authenticationSuccessful only returns true right after the auth flow. Simply returning to the app normally won't have it return true.
-
The auth flow works a bit differently between the two SDKs. You can find instructions for setting up the auth flow in the Core SDK here: https://www.dropbox.com/developers/core/start/android#authenticating You use the authenticationSuccessful method to check if the user is coming back from the app auth flow. If not, it…
-
So, to clarify, you're using the latest version (currently 1.3.13) of the Dropbox iOS Core SDK from here: https://www.dropbox.com/developers/core/sdks/ios and you're getting some errors now? Can you post the relevant code and the errors?
-
Are you referring to the functionality shown in this screenshot? When using the Dropbox Chooser, the app only gets access to the specific files you select. The Chooser is actually part of the Dropbox site, so you (and only you) can see the rest of your Dropbox when selecting files to send to the app. The app just receives…
-
That's certainly a reasonable request, and I've sent it along to the right people as a feature request.
-
Thanks! Just adding ?raw=1 would do the same thing in the new format, since it already has parameters added with a ?. You should instead parse the URL in order to add a parameter. Anyway, thanks for the new details. We're disabling this for you now and will investigate potential solutions. Also, the links from /media…
-
For the most part, the dl and raw parameters aren't meant for the /view links to begin with, since the /view links already return the content directly. Those parameters are really meant for www.dropbox.com/s/ which go to a preview page by default. I think the only difference is the Content-Disposition header, which isn't…
-
Thanks! It sounds pretty likely you ran in to the same (or a similar) issue then, since the link you have works. How exactly were you testing it though? E.g., were you manually copying and pasting it into your browser or something, or did you click it from your terminal?
-
We've disabled this change for the time being. To help us investigate, can you copy an actual sample of where/how you tried to access the returned URL? Can you check if an extra ' or %27 was added at the end? (I encountered the same issue where my terminal included the ' from the end of the quoted string in the JSON when…
-
Thanks for the report. We're looking into it.
-
No, the Dropbox API doesn't provide a hash like this, but I'll be sure to pass this along as a request.
-
Unfortunately, because the Dropbox IPs are subject to change as servers are added and removed, or as maintenance occurs, we are unable to provide you with a list of our IPs.
-
Are you referring to using the Dropbox API? With the API, your app can choose what and when to upload. When it does want to upload something, it can then use the API calls e.g., /files_put to do so. After that, it can perform any cleanup necessary. That's all up to your and your app though.
-
You can catch the Exception_NetworkIO exception in your code like any other exception and have your app handle it however desired. E.g., have your app continue showing previous results, display a warning, etc.
-
This error is indicating that the connection to the Dropbox API is occurring very slowly. This can be due to network issues, or server issues on our side. In most cases, this is transient and will resolve itself, so you can just have your app retry the request. If you're seeing this consistently though, please open an API…
-
The Dropbox API does have an endpoint you can use to get metadata for a shared link: https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata This existing forum thread was about a specific aspect of using the API though. If you'd like help using the API, please open a new thread…
-
The API doesn't offer a way to get additional information about other arbitrary users like this. If you need more information about a particular user, you'll need to have them authorize your app and then use the /account/info call with their access token (like you did with /shared_folders for the original user).
-
Yes. You can get a basic idea of how it works by looking through the tutorial: https://www.dropbox.com/developers/sync/start/ios
-
Both the Sync API and the Core API offer the ability to upload and download files to and from Dropbox, so either should work in this case. Can you elaborate on any specific issues you're experiencing? Regarding your "database structure", this is probably also possible, depending on what exactly you mean and what you want…
-
The PHP Core SDK doesn't currently offer a way to track progress on file uploads using uploadFile, but I'll be sure to pass this along as a request. For reference, the uploadFile method just blocks until the upload is complete. Alternatively, especially for larger files, you may want to use the "chunked uploading" methods…