Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Good Afternoon
I triyed to update my OAuth 1 token to OAuth 2 through this HTTP request :
https://api.dropboxapi.com/2/auth/token/from_oauth1
But the response looks like this :
{"error_summary": "invalid_oauth1_token_info/.", "error": {".tag": "invalid_oauth1_token_info"}}
This kind of error references to the token information ( key:secret ).
The parameter's data is :
$auth = $key.':'.$secret
array("oauth1_token"=>$auth,"oauth1_token_secret"=>$secret);
But the values was correct !( I think so...)
Whats going on ?
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, i.e., the OAuth 1 access token secret.
These 4 strings would all be different strings.
Are you sending up all 4 of those?
Thank you for quickly response.
1) Am I need to pass ( appKey: appSecret ) in the Authorization header ?
3) oauth1_token is the appKey ?
4) oauth1_token_secret is the secret ?
My request is made by this way :
I have to explain my situation...
I used to use SDK's maded to PHP, but with this nes upgrade with the new update this become obsolete.
What the way i can get to migrate my app ?
I think this https://api.dropboxapi.com/2/auth/token/from_oauth1 is the better way to i can finish the migration.
Can you help me ?
Yes thats it.
Howerver in this link " https://www.dropbox.com/developers/documentation " dont appear PHP language.
What I have to change exactly ?
The call of yours new Api ?
I just want to use "getMetadataWithChildren" and "uploadFile", where i have to chage ?
Thank's for your attention in this case.
Forget about it..
I get the access but, has something change in getMetadataWithChildren parameters ?
Every path passed in the parameter return "null".
I'm almost done..
When I make upload chunked in the moment to append the existing files already uploaded I got this response :
Unexpected HTTP status 409 {"error_summary": "incorrect_offset/.", "error": {".tag": "incorrect_offset", "correct_offset": 15}}
Why the correct_offset is 15 ?
The operation to calculate the byteOffset is wrong ?
Gratefull to help me in this situation !
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!