Hello i'm having a problem where i'm need api token to never expire but everytime it says "Token expired"
And i can't find a tutorial how to do that. thanks.
I tried to watch dropbox tutorials but they never mentioned how to do that.
Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here.
Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.
For the official Dropbox Python SDK, you can find examples of this flow at the following links: