Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Mark L.45
10 years agoCollaborator | Level 9
API example for SwiftyDropBox v2.0 sharing
#!/usr/bin/python
import dropbox
dbx = dropbox.Dropbox('ab-X')
dbx.users_get_current_account()
for entry in dbx.files_list_folder('/Shared').entries:
print(entry.name)
# OUTPUT:
dbx.files_downl...
Greg-DB
Dropbox Community Moderator
10 years agoTo clarify, does the Swift version literally do nothing, or does it print out "nothing ..."? In either case, you should make sure you're handling the error in that else block in the Swift version.
Also, note that these two aren't really equivalent. In the Python version, files_list_folder('/Shared') is listing the folder at the specific path "/Shared", while the Swift version uses sharing.listFolders which would list any and all shared folders. The equivalent of files_list_folder would be the listFolder file route.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!