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
santhoshkelathodi
2 years agoNew member | Level 2
How to specify folder path in the team level folders.
I want to use the Dropbox API to access the Dropbox for managing my data storage. I am successfully able to connect to dropbox by adding an app by setting appropiate permissions to the app and by gen...
Здравко
Legendary | Level 20
When you didn't specify something else, the default behavior is your member folder to be used as a root (as you find it out already). Team accounts are organized in namespaces (take a look here for more info) and you can select what to be your root in Dropbox Python SDK using with_path_root method.
Hope this gives direction about your main concern.
santhoshkelathodi wrote:...# Token Generated from dropboxTOKEN = "<Generated_TOKEN>"dbx = dropbox.Dropbox(TOKEN)...
Hm..🤔 Are you aware that access token is short lived and you will need to regenerate it regularly? To avoid doing it by hand, you can use refresh token. Handy example how you can use it can be seen here. A complete example application may be of your interest too.
santhoshkelathodi wrote:...
Step 4: Make all the files and folders at the folder path to online-only to avoid the local storage to be optimized.I do not know how to do it
You cannot do that, since it's per application setting and you need direct communication to every particular application, where you need to set file status, not to Dropbox server. At present, Dropbox API may communicate to Dropbox servers only, not to installed applications directly.
santhoshkelathodi
2 years agoNew member | Level 2
Thank you for the answers. I will go through the examples and the solutions provided to check if I can access the other folders. Regarding the question on whether I can set the local folders to online-only mode ( By the way, this is possible by right clicking on the respective folder), is your answer that it is not possible programmatically using dropbox APIs?
- Здравко2 years agoLegendary | Level 20
santhoshkelathodi wrote:... ( By the way, this is possible by right clicking on the respective folder), ...
Exactly, in such a case you're accessing no the cloud folder, but local application folder! 🙂 Hope you can make difference.
santhoshkelathodi wrote:..., is your answer that it is not possible programmatically using dropbox APIs?
As I said, API accesses only the cloud. So, Yes. Let's hope this will be changed, but better don't rely on.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 7 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!