You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
sambapy
3 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...
- 3 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.
sambapy
Helpful | Level 5
Is a token sufficient to establish connection with my Dropbox or is there any other step before that?
Здравко
3 years agoLegendary | Level 20
If you mean, what's needed to authenticate a regular call to API endpoint, Yes - valid access token is enough. As I said access token validity is limited in time to no more than 4 hours (could be less) - exact period is denoted on access token receiving. If you mean, additional steps for long term access, refreshing is usually performed automatically by SDK itself, but you need to supply refresh token on client object (dbx) realization (not access token only).
- sambapy3 years agoHelpful | Level 5
Do I need some special permissions to download the files using this API, if I am a newly added member to the Dropbox group? I have given myself the permission for files.content.read.
- Здравко3 years agoLegendary | Level 20
sambapy wrote:Do I need some special permissions to ...
If you mean scopes, Yes (but they are not special 🙂). Every operation falls to some group that expect particular scope. Your application (and all associated tokens) needs granted appropriate set of scopes to be able perform needed operations. Scopes can be changed in your application page here (go to Permissions tap). The same (or needed, at least) scopes need to be granted on authorization time! Take in mind once a scope gets changed, new token are needed, so any changes can take effect (such type of changes are NOT retroactive).
One more thing. When you try files listing (such operations are granted by default), take in mind that first call does NOT mandatory return entire result, you may need to call follow up list continuation calls.
Don't try to interpret things you don't intend to use (like openID for instance). 😉 Go further with the basics (initially least).
- sambapy3 years agoHelpful | Level 5
This is what my OpenID Scopes reads:
Scopes used for OpenID Connect.At this time, team-scoped apps cannot request OpenID Connect scopes.Should I interpret it to mean that I cannot list/access the files on my Dropbox?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 2 hours agoIf 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 or Facebook.
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!