We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Rushik Binary
3 years agoNew member | Level 2
Get token through api
Hi
I have to get a token from API because I want to upload and acquire images from Dropbox. Still, I can't get the token from API I have to click on refresh token, again and again, can you please give me any reference that how can I get the token from api?
2 Replies
- Здравко3 years agoLegendary | Level 20
Rushik Binary wrote:...
I have to get a token from API ...Hi Rushik Binary,
In general API consumes access token (refresh tokens too - indirect), it doesn't give you any token. Different types of tokens (access/refresh) can be acquired through OAuth flow in one (access token only - short lived) or more steps (optional - also a refresh token - long lived).
Rushik Binary wrote:... I have to click on refresh token, again and again, ...
Can you clarify where you clicked "refresh token"? 🤔 I don't know for such thing on Dropbox side. Maybe you have something in your application that you have done and want to improve.
Access tokens are short lived and if you want long term access you have to manage refresh token, if that's what you ask for. A simple example can be seen here. If you're using official SDK, you don't need to implement the last step there (the refreshing); it's implemented by Dropbox and you only need to pass the refresh token (and application key/secret of course).
Hope this gives direction.
- Greg-DB3 years ago
Dropbox Community Moderator
Rushik Binary You can also find more information on this at the following locations:
About Discuss Dropbox Developer & API
Make connections with 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!