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
Hi OLIM,
I'm not sure what you ask for actually, but your example has nothing to do about tokens. There Basic authentication is used and it's something specific to this type of authentication, not just something Dropbox specific, and has always been performing using base64 encoding. You can't just concatenate the things!
About tokens, new issued access token is always short lived. There was time when long lived access token used to issue and such tokens, if you have some, are still usable, but are deprecated currently. If you want long lived access you need refresh token. It doesn't expire automatically. Take a look here for more info.
Hope this helps.
OLIM
4 years agoExplorer | Level 3
give me a real example for getting a token if you are truthful. For example, in VBA. curl it is not possible to run on the client machine. It doesn't work with EncodeBase64 either, if that's what you're talking about.
- OLIM4 years agoExplorer | Level 3
does not take all values of grant_type- Здравко4 years agoLegendary | Level 20
Don't make partial posting! 🤔 Where is the code actually?
- OLIM4 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
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!