Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
MateusP
8 years agoHelpful | Level 6
How to migrate previous API v1 authentication to APIv2?
Hi All,
So I've successfully migrated my Android app to Dbx API v2 (hooray!) but there's one bit missing. I need to tranfer previous APIv1 authentication to APIv2 otherwise everyone will be fo...
- 8 years agoYes, OAuth 2 access tokens only have one piece. That is, each OAuth 2 access token is just one long string.
In your API v1 code, you're storing that via the access_token variable under DROPBOX_PREFS_SECRET.
In your API v2 code, you're storing that via the access_token variable under DROPBOX_PREFS_TOKEN.
(Part of the confusion may be that API v1 supported both OAuth 1 and OAuth 2. OAuth 1 access tokens are comprised of two pieces, a key and secret. API v2 only supports OAuth 2. OAuth 2 access tokens only have the one piece.)
Greg-DB
Dropbox Community Moderator
8 years agoYes, OAuth 2 access tokens only have one piece. That is, each OAuth 2 access token is just one long string.
In your API v1 code, you're storing that via the access_token variable under DROPBOX_PREFS_SECRET.
In your API v2 code, you're storing that via the access_token variable under DROPBOX_PREFS_TOKEN.
(Part of the confusion may be that API v1 supported both OAuth 1 and OAuth 2. OAuth 1 access tokens are comprised of two pieces, a key and secret. API v2 only supports OAuth 2. OAuth 2 access tokens only have the one piece.)
In your API v1 code, you're storing that via the access_token variable under DROPBOX_PREFS_SECRET.
In your API v2 code, you're storing that via the access_token variable under DROPBOX_PREFS_TOKEN.
(Part of the confusion may be that API v1 supported both OAuth 1 and OAuth 2. OAuth 1 access tokens are comprised of two pieces, a key and secret. API v2 only supports OAuth 2. OAuth 2 access tokens only have the one piece.)
MateusP
8 years agoHelpful | Level 6
Thanks dude, that worked! :grinning:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!