Comments
-
No, Dropbox API apps should use the OAuth app authorization flow to let the user authorize the app in their browser. This way, apps never handle the user's username and password. There's an example of this in the Java SDK here: https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/authorize Note that once your…
-
Nothing appears wrong with your call to GetCurrentAccountAsync, and if anything goes wrong you should certainly get some sort of error. I just tried it anyway and it worked for me (except that I don't have your Upload definition). You don't appear to be using the return value `full` in this code though, and you also…
-
Yes, to list files and folders in Dropbox, you should use the /2/files/list_folder[/continue] endpoints: https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue To list root, use the empty string ""…
-
Thanks! Since you downloaded the source, did you run `python setup.py install` as instructed here? https://github.com/dropbox/dropbox-sdk-python#installation Please do so if you haven't already. If you did, did you get any errors?
-
No, unfortunately upgrading an app from API v1 to API v2 requires code changes in the app, which needs to be done by a developer of the app.
-
The best thing to do is to make sure the email address on the account that owns your API app(s) is up to date, since the main channel of notification we use for this is email. Depending on what's changing, we may also post on: - the Dropbox Developer Blog (RSS) - the @DropboxAPI Twitter account - the Dropbox API forum
-
Hi Justin, we don't have any plans to remove that, so it's safe to use. Removing it would be a breaking change, so we'd be sure to notify developers and give them time to update their apps in the case that we do need to.
-
Thanks for the detailed feedback @"Hank66"! I'm sending this along to the team.
-
The https://www.dropbox.com/developers/documentation link is for the HTTP interface itself. We don't have plans for an official PHP SDK for Dropbox API v2, but you can use a third party library if you don't want to call the HTTPS endpoints directly: https://www.dropbox.com/developers/documentation/communitysdks For…
-
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!