Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
OLIM
4 years agoExplorer | Level 3
get Auth token with AppKey and Appsecret error
Why did the freaks remove the possibility of eternal tokens? now we'll have to look for another service, redo all the applications.
Здравко
4 years agoLegendary | Level 20
Don't make partial posting! 🤔 Where is the code actually?
OLIM
4 years agoExplorer | Level 3
Function gettoken(appkey, appsecret, accesscode) As String
Set http = CreateObject("WinHttp.WinHttpRequest.5.1")
http.Open "POST", "https://api.dropboxapi.com/oauth2/token", False
http.setRequestHeader "Authorization", "Basic " & EncodeBase64(appkey & ":" & appsecret)
http.setRequestHeader "Content-Type", "application/json"
http.setRequestHeader "grant_type", "authorization_code"
http.Send ("{""oauth1_token"":""i dont now what is it"",""oauth1_token_secret"":""i dont now what is it""}")
gettoken = http.ResponseText
End Function
- Здравко4 years agoLegendary | Level 20
OLIM wrote:...
http.Send ("{""oauth1_token"":""i dont now what is it"",""oauth1_token_secret"":""i dont now what is it""}")
...Me too... 🤷 Where came "oauth1_token" and "oauth1_token_secret" from? Do you have some outdated v1 tokens and want to transform them to v2 (the actual one)? You need to provide the temporary code to confirm the authentication - token provided as result of authorization. Did you read carefully the referred topic I linked to? I (or somebody else) haven't posted there anything similar!
By the way... "grant_type" is parameter, not header!
This call can be performed with GET request, so, I hope, you can make you life easy. 😉
- OLIM4 years agoExplorer | Level 3
да я уже что попадается то и вкладываю из примеров, целый день убил на это
перекинул code на параметр, теперь говорит : ResponseText : "{"error": "invalid_grant", "error_description": "code doesn't exist or has expired"}" : String
заебался короче
нету просто токен годовой хотя бы, надо все усложнаять
- Здравко4 years agoLegendary | Level 20
Не разбирм руски, но от резултата на заявката ясно се вижда, че пак си поропуснал "code" параметъра... Нямам какво да добавя повече! Само ще повторя, че трябва да прочетеш още веднъж публикацията към която съм публикувал връзка и да следваш точно посоченото там.
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!