Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
PHAnetwork
2 years agoHelpful | Level 5
Python API Short-lived access token for Dropbox
I may not be fully understanding this, but here's the issue. I'm trying to get a short-lived token that can be used repeatedly. The first time through, I am prompting through the command line. I can ...
- 2 years ago
Okay, I see the problem, and now realize that it's time for me to retire from this business😔!!
I was pasting the initial code from the Dropbox authorization section, which is used to obtain the access token instead of the actual access token. That's where the confusion was. I'm familiar with what the access token should look like, so I'm not sure why I didn't recognize that earlier.
It's working now. Thanks for your help and patience!
Здравко
2 years agoLegendary | Level 20
Здравко wrote:... As I supposed you have skipped the refresh token (part of the result also). ...
PHAnetwork wrote:... I can't seem to find out how to request a refresh token using the Python API.
Do I need to say (or rather repeat) that you have it done already? 🤔
PHAnetwork
2 years agoHelpful | Level 5
Okay, still confused.
You said, "As I supposed you have skipped the refresh token" and then you said, "I have done it already". Did I skip the refresh token, or did I do it correctly?
Sorry, but your reply really didn't help.
- Здравко2 years agoLegendary | Level 20
Nobody can help you when you don't read your own writings!
Yes, you have requested and received refresh token (offline declaration is enough), but later skipped it. You have fetched from the result only access token, but not the refresh token! 🤦 Why?
I cannot say it clearer.
PS: The example here shows how you can do it - to initialize client object from oauth result.
- PHAnetwork2 years agoHelpful | Level 5
Okay, I see the problem, and now realize that it's time for me to retire from this business😔!!
I was pasting the initial code from the Dropbox authorization section, which is used to obtain the access token instead of the actual access token. That's where the confusion was. I'm familiar with what the access token should look like, so I'm not sure why I didn't recognize that earlier.
It's working now. Thanks for your help and patience!
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!