Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mbm123
5 years agoExplorer | Level 4
Access without an "app"
Hey, I was wondering if it is possible to access a dropbox account without the token generated in the app console. What I mean is, can I use an api on my python script that will query an input drop...
- 5 years ago
Yes, that's correct.
mbm123
5 years agoExplorer | Level 4
Hey again.
I read through some API (python) and managed to create an app, generate my personal token and send file requests to dropbox.
That's nice, but I would like to be able to ask for username/password, instead of redirecting a user to the token page.
I found this example:
https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth.py
tl;dr
in the example it asks the user to:
print("1. Go to: " + authorize_url)
print("2. Click \"Allow\" (you might have to log in first).")
print("3. Copy the authorization code.")
Seems kind of silly, why can't i do it for the user with username/password?
I hope I made myself clear, I tried 🙂
Greg-DB
Dropbox Community Moderator
5 years agoOAuth 2 is an industry-standard protocol for authorization. Dropbox uses it to enable end-users to connect third party applications to their accounts without disclosing their credentials to the third parties.
- mbm1235 years agoExplorer | Level 4
I understand, so I cannot (and should not) ask the user for username/password and "do it myself" for the user.
I can open the link to the token generation, where the user will login and generate a code, which he would then pass to me, and revoke in case he wishes to cease the communication.
I got it right?
- Greg-DB5 years ago
Dropbox Community Moderator
Yes, that's correct.
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!