Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
RDev
9 years agoNew member | Level 2
Generation access token for V2 using V1 access key and secret key
Hi I have been trying to generate oauth 2 access token for my app (which was created using core api 1 in java), based on the documentation provided for migration but every time I tried it I got {"e...
Greg-DB
Dropbox Community Moderator
9 years agoYou're using the same accessKey/secretKey pair for both your app info and access token. These should actually be different pairs of strings. The app key and secret (a.k.a. consumer key and secret) identify your app. They can be found on the app's page on the App Console. The access token key and secret are different strings that are specific to the user.
So, these two lines should look like this, with the correct and distinct values for each of the four parameter variables:
DbxAppInfo appInfo = new DbxAppInfo(appKey, appSecret);
oAuth1AccessToken = new DbxOAuth1AccessToken(oauth1AccessTokenKey, oauth1AccessTokenSecret);
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!