Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sambapy
4 years agoHelpful | Level 5
Listing files using Dropbox Python
I am trying to access files stored on my Dropbox using the offical Dropbox SDK for Python.. I tried a few ways of putting in the directory name whose contents I wanted to have listed based off of a s...
- 4 years ago
OMG!
Yes, such things don't have to be shared (can be dangerous - direct access to your account on the wider public)!
That what you are sharing looks like access token. It's NOT application key.
The application key is ID of the application you have registered. You need this key, not the access token. The last error comes from erroneous places free text on place where client ID is expected (nothing related to access token). You application ID (or key) can be seen on your application page when you select your application here (the same link I post above, but seems you skipped it). Find out your application key there and put it on the APP_KEY var initialization into the example.
Hope now all will be Ok.
Здравко
4 years agoLegendary | Level 20
For an example using Python, take a look here. You can keep the refresh token and use for follow up instantiation without full OAuth flow. Just put file listing procedure on the place of 'users_get_current_account' method there. 😉
Hope this helps.
sambapy
4 years agoHelpful | Level 5
Thanks for sticking around, and patiently responding to my queries.
I get the following error:
Error (400)
It seems the app you were using submitted a bad request. If you would like to report this error to the app's developer, include the information below.
More details for developers
Invalid client_id: "this is long-gibberish"
- Здравко4 years agoLegendary | Level 20
Oh sambapy, Be more careful!!!
What's this: this is long-gibberish ??? 🤦 Seems you have NOT made even a small try to get familiar with structure of such code and just trying to "shot on directions". Take the real client id (or app key too) and put it there. Follow the same rule on all other places where you have to put something!
🙋 Fake ID -> Error (of course - can be expected 😁 - would be strange if passed - real security HOLE)
- sambapy4 years agoHelpful | Level 5
I didn't share the access token considering security reasons, and replaced it instead.
For e.g. the app key looks like in my case like 'ge.BP55pDouXGwKHtJ-Z2ohkoWUDiDIUvHDATvcBeCsNxEpCT7-HLGuWHWI6rl15UBimLfsAhi7N7XJ4n2sP31P_Tzxp13Izab44hsCxDEFP3qXYZw'Is it supposed to be like that or something else?
Sorry, I am unfamiliar with these new concepts. Thanks for your responses. - Здравко4 years agoLegendary | Level 20
OMG!
Yes, such things don't have to be shared (can be dangerous - direct access to your account on the wider public)!
That what you are sharing looks like access token. It's NOT application key.
The application key is ID of the application you have registered. You need this key, not the access token. The last error comes from erroneous places free text on place where client ID is expected (nothing related to access token). You application ID (or key) can be seen on your application page when you select your application here (the same link I post above, but seems you skipped it). Find out your application key there and put it on the APP_KEY var initialization into the example.
Hope now all will be Ok.
- sambapy4 years agoHelpful | Level 5
Thanks for helping resolving the issue.
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!