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.
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" параметъра... Нямам какво да добавя повече! Само ще повторя, че трябва да прочетеш още веднъж публикацията към която съм публикувал връзка и да следваш точно посоченото там.
- OLIM4 years agoExplorer | Level 3
получается у этих долбоёбов еще и code тоже временная. Гады
- OLIM4 years agoExplorer | Level 3
What thread is there no intelligible manual? the user must open the browser and receive the code, from there paste it into the application, then use it once, and all over again?
- OLIM4 years agoExplorer | Level 3
It turns out that it is necessary to distribute access from the account to everyone ?
- OLIM4 years agoExplorer | Level 3
X9l0F84JUAAAAAAAAAAB8FhCxgouMy95JIjMG4GWLAM
App key9t8amcdf27ecsetApp secret<REDACTED>дружище, помоги пожалуйста авторизацией, пару дней и на другой сервис все переделаю. Задолбало.
- Здравко4 years agoLegendary | Level 20
OLIM wrote:... the user must open the browser and receive the code, from there paste it into the application, ...
This is one possibility. I chose such a flow for clarity and simplicity. As mentioned there, you can automate this process using redirection. Then you will receive the same code through request parameter and use it further in the same way.
OLIM wrote:..., then use it once, ...
Yes, this is single "shot" code and once used can't be used anymore.
OLIM wrote:..., and all over again?
No... You have to keep the refresh token and use it further on, as mentioned, not the initial code.
- OLIM4 years agoExplorer | Level 3
I do not know where to store this token. I can't control users in 3 countries when they want to update data from Dropbox. I just need a repository where some upload data and others update from there. And they don't necessarily have a Dropbox profile
- Здравко4 years agoLegendary | Level 20
OLIM wrote:I do not know where to store this token. ...
Hm...🤔 really... 😁 Where you are keeping your application configurations? 🧐 ... different registry types, config file, some local wallet,... etc. 😉 The choice is yours! Most probably you have already made it if I have to bet, but you still don't understand it.
- OLIM4 years agoExplorer | Level 3
everyone runs it on their computers, everyone has separate copies, two types of everything, those who update the data, and those who download them. Previously, one token was, of course, hidden from the user, and there were no problems.
- OLIM4 years agoExplorer | Level 3
I am currently sitting in Lebanon, uploading data until morning, the token changes twice. The last token is saved on my computer. . And the user who is in Turkey starts work in the morning, and he still has the token that was yesterday.
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!