Comments
-
Yes, you need an access token to upload to an account via the API. If you just need to upload to your own account, you can get an access token for your app-user pair by using the "Generate" button on your app's page on the App Console. Otherwise, to get an access token for any arbitrary account, you'll need to use the…
-
Hi Eytan, you can use the Dropbox API to programmatically upload to the Public folder just like any other folder. Using the API v2 .NET SDK, for example, you can use the UploadAsync method to upload into the Public folder, e.g., by supplying a path like "/Public/uploadedfile.ext".
-
Hi Eugene, yes, you can still construct an API v2 call for a "content-download" endpoint like this using just a URL. You can find information on this in the formats section of the documentation. For example, for the /2/files/download endpoint, instead of the typical way as shown in the example: curl -X POST…
-
We don't currently document or guarantee a maximum possible page size for /list_folder, but if I recall correctly, you will generally see 1-2 thousand entries per page. I've sent this along as requests for a documented maximum, as well as the ability to set custom page sizes.
-
Steve is correct, this isn't available in API v2, but I'll be sure to pass this along as a feature request.
-
Thanks for writing this up. Unfortunately, API v2 doesn't offer a way to specifically request particular Content-Type like this. I'll send this along as a feature request, but I can't promise that it will be implemented. Apologies I don't have a better answer for you!
-
For reference, the known issue with lowered path_display values for deleted files in particular should be fixed now.
-
Thanks for following up with that Todd. That behavior is expected. Dropbox itself is case-insensitive, with attempts to be case-preserving. However, due to various specifics, the API can't always return the expected case for every path component. So, for any file or folder metadata, the filename/last path component should…
-
Hi Todd, this is a good place to report bugs like this. Are you seeing this only for deleted metadata, or for all metadata? There's a known issue for this for deleted metadata, but if you're also seeing this for non-deleted metadata, please share a sample so we can look into it. Thanks in advance!
-
This is moving beyond the scope of API support now, so I'm afraid I'm not the best person to help with this. Please contact Dropbox for Business support for further help with team and SSO setup: https://www.dropbox.com/support
-
Hi Francisco, apologies for the delay! We've heard back from the team, and it sounds like the cause here is that invited members can only join through SSO if the domain has been verified.
-
I don't believe there's much you can do with the Auth class beyond just checking if the getOAuth2Token method returns null. If using AuthActivity directly works better for your use case I think that would be fine to do.
-
Are you using one of the official Java SDKs? If you're using the v1 Java SDK, you can use the getFile method: https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxClient.html#getFile(java.lang.String,%20java.lang.String,%20java.io.OutputStream) In the v2 Java SDK, you would use the download…
-
I don't have an update on this yet. We'll follow up here once we do.
-
Thanks for the report! We're looking into it.
-
1. This depends on how your app is set up. Access via the Dropbox API comes down to the access token though. The access token identifies the app, user or team (depending on the app type), and level of access that app has to that user or team. So, if you want your web app to just connect to a single Dropbox account, you can…
-
Hi Jon, this forum is intended for developers using the Dropbox API, but it looks like you're attempting to interface with the Dropbox desktop client. The Dropbox desktop client doesn't offer an official programmatic interface, so I'm afraid we can't offer help with this.
-
Hi John, the Dropbox API doesn't offer this, but I'll be sure to pass this along as a feature request.
-
If you're not getting an error, the response should be the file content. Is it possible the file is 0 bytes? You can check on the Dropbox web site.
-
That endpoint requires OAuth 1 signing. For example, see step 4 in this blog post: https://blogs.dropbox.com/developers/2012/07/using-oauth-1-0-with-the-plaintext-signature-method/
-
API v2 only supports OAuth 2, not OAuth 1, so you won't be able to use an OAuth 1 access token with OAuth 2. The OAuth 2 endpoints are documented here: https://www.dropbox.com/developers/documentation/http/documentation#authorization (If you need to, you can use existing OAuth 1 tokens to get OAuth 2 tokens…
-
Hi Erik, if you want to integrate with the Dropbox API using Python, I recommend using the official Dropbox Python SDK: https://www.dropbox.com/developers/documentation/python You can find a tutorial, examples, and documentation there to help you get started. You can have your users authorize your app to connect to their…
-
What error are you getting? (By the way, that's for the API v1 version of the SDK. If you're starting a new app, you should use v2, via https://www.dropbox.com/developers/documentation/python , e.g., the files_list_folder method.)
-
[Cross-linking for reference: https://stackoverflow.com/questions/39074097/dropbox-api-v2-get-current-user ] Can you post the full response body? It should have a more useful error message.
-
When running an app, the code will use the file system of the machine it's running on. In the case of a web app, that's the server it's running on, so when you deploy it to your remote server, it will use that server's filesystem, and not your computer's. If you want the web app to interact with files on the user's…
-
[Cross-linking for reference: https://stackoverflow.com/questions/39135256/dropbox-api-cursors-how-long-are-they-valid-for-and-using-them-properly-over-ti ] Cursors don't expire (but they can be "reset"). To stay up to date though, you shouldn't call listFolderGetLatestCursor after you've already begun getting a listing.…
-
Thanks for the report! It looks like you also opened a ticket about this so we'll follow up on this there.
-
Thanks for posting Ted. Richard's right, fundamentally, client-side apps can't keep secrets, so we don't recommend embedding your own access tokens like this in client-side apps. We'll consider this a feature request for short-lived access tokens, as well as more specific permissions, such as upload-only.
-
The API doesn't currently offer any functionality for events or recents, but I'll be sure to pass this along as a feature request. That being the case, the method of staying up to date with list_folder is the best solution.
-
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. We recommend you only use the domains if possible. You can find a help article with a list of official domains here: https://www.dropbox.com/help/217