Comments
-
The API itself doesn't offer sorting options, but you can sort the entries however you want client-side in your own code.
-
I can't see what `db` is in your code, but the rest of the code doesn't look obviously wrong. To troubleshoot this, can you first check whether or not `fileData` has the expected length when calling `uploadData`?
-
@"Giordano58" If you cancel the upload before it completes, the partial data is never "committed" and you don't need to do anything to remove it.
-
@"mrramos" If you need the file listing under a folder, you should use /files/list_folder and /files/list_folder/continue. API v2 isn't a drop-in recplament for API v1, so you'll need to make code changes. There are curl examples in the documentation for those showing how to call them.
-
I'm glad to hear you got this sorted out already. For future reference, if you check the response body, it should contain a more specific error message indicating the issue. By the way, I redacted it from your post, but since you initially posted your access token, for the sake of security, you should disable that access…
-
Hi Mike, you don't need to delete/recreate the app itself. You can just unlink the app here using the 'x' for the app: https://www.dropbox.com/account/connected_apps That will revoke all of the access tokens for that app on your account. You can then get a new access token for that app on your account, by relinking the app…
-
If it's printing 0.0.0, that should indicate that your copy was just pulled from master, as opposed to installed from a particular release. Do you know recall you got the SDK exactly? For example, if you cloned it, please pull the latest from master. Alternatively, please install the latest, e.g., using pip.
-
The official Dropbox API v2 Java SDK does offer the ability to upload and download files programmatically, just like in API v1. For example, in the Dropbox API v2 Java SDK, you can use the upload method to upload files:…
-
No, the API only accepts the Content-Type values mentioned as expected in the error message.
-
@"BMurri" Can you try v4.4.1 and let me know if that does or doesn't fix the issue for you? Thanks in advance!
-
Are you referring to this PHP SDK? https://github.com/dropbox/dropbox-sdk-php That SDK already used OAuth 2, not OAuth 1. If you were using that, you shouldn't have OAuth 1 tokens, so you don't need to use /2/auth/token/from_oauth1. You should just use the existing OAuth 2 access tokens with API v2.
-
Hi Danny, thank for the report. I'm sending this along to the right people to take a look. Thanks in advance for your patience.
-
You can see the version by printing dropbox.__version__. The latest release is v8.2.0. If you're not already on that, please upgrade and try again. If you are seeing this on the latest version, please share the whole stack trace. I can't seem to reproduce this issue with v8.2.0, and it's unclear in which line of your code…
-
Yes, it is possible to connect just to a single Dropbox account in API v2, similar to how you could with API v1. 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. We…
-
You do need to pass the app key and secret in the Authorization header. The oauth1_token is not the app key, and the oauth1_token_secret is not the app secret. These all should be different strings. The oauth1_token is the key portion of the OAuth 1 access token. The oauth1_token_secret is the secret portion of the OAuth 1…
-
@"gill5" In that case it sounds like you're a user of the app, not the developer. The developer is the person who creates the app and releases it on the App Store. You'll need to contact support for that app for help with it.
-
@"gill5" If you're not the developer of the app, you'll need to contact the developer for an updated version. If you are the developer, you'll need to update your app to use API v2.
-
To properly call /2/auth/token/from_oauth1, you will need four pieces: - In the "Authorization" header, as Basic authentication, you need to provide the 1) app key and 2) app secret. - In the request body, as JSON, you need to provide the 3) oauth1_token, i.e., the OAuth 1 access token key, and 4) oauth1_token_secret,…
-
The addFolderMember members parameter takes a list of AddMember. The MemberSelector in each AddMember can be specified by email or Dropbox ID. Using MemberSelector.dropboxId you can pass in a group ID, e.g., for the team group to share with the team.
-
[Cross-linking for reference: https://stackoverflow.com/questions/46531209/dropboxapi-metadata-1000-null-true-null-is-null ] The SDK you're using uses API v1. As announced last year, API v1 has been retired. You can find more information in the blog post here: https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/…
-
Can you share the code that produces this, and the version number of the SDK you have installed? Thanks in advance!
-
It looks like you've named your own file "dropbox.py", which is confusing the Python import. Try renaming it to something else instead. (Also, be sure to delete any dropbox.pyc of your own left over.)
-
Hi, "the /token/from_oauth1 API call, which however requires the client_secret (I don't understand why though)" The /2/auth/token/from_oauth1 endpoint is an API v2 endpoint and isn't signed using the normal OAuth 1 protocol, but it does require all four token pieces (app key, app secret, access token key, access token…
-
Hi Mike, it looks like you were using the API v1 /files endpoint to download the file content. In API v2, the replacement is /files/download. The standard way of using that endpoint is via a POST with 'Authorization' and 'Dropbox-API-Arg' headers, as shown in the example in the documentation in the "Request and response…
-
@"suzuka" pcworld is correct, it is listed there, just not in the sidebar. Here's the direct link for the OAuth 2 documentation. The OAuth guide may also be useful. Also, the "Get Token" button on the API Explorer does use the OAuth 2 "token" flow. In any case though, if you're using Java, we recommend using the…
-
There isn't an option for forcing this flow to be used, but I'll pass this along as a feature request.
-
By the way, if you need more time to migrate your app to API v2, we can offer an extension for access to API v1. To request that, please open an API ticket with the relevant app key(s).
-
@"blink" For reference, your app should never be directly handling the user's username and password. The user should only ever put those in to the Dropbox web site, e.g., when logging in to the Dropbox web site during the OAuth app authorization flow to authorize the API app. This applies to both API v1 and API v2. For API…
-
@"philister" The Ruby Core SDK (source) does use API v1, so further API calls made with it will fail. Unfortunately we don't have plans for an official Ruby SDK for Dropbox API v2. I'm sending this along as a feature request for one though. Instead, you can use the HTTPS endpoints themselves or a third party library. If…
-
Thanks for the report! I see you also opened this as a ticket, so we'll follow up there privately as we'll likely want to look into this more specifically for you.