Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
HE A.
9 years agoNew member | Level 2
Get contents of a shared folder
I have a web app built in PHP, so I'm using v1 of the Dropbox API. When I request the metadata for a folder, it only returns a list of entries (files in the folder) if the folder is not shared. How w...
HE A.
9 years agoNew member | Level 2
Thanks for the help. I included the code for the call and the resulting response below. The "subfolder" contains a file, but that file doesn't appear in the entries. When I make the same call to the "superfolder", it does include any files in the folder.
I thought the difference was that the subfolder is shared, but maybe it's related to something else?
Also, the "has_more" value is true, but I'm not sure how to call back again -- do I change one of the parameters or just make the same call right away?
Last note -- I'm setting the cursor to null, because I'm not yet tracking the cursor.
CALL
$cursor = null;
$pathPrefix = '/superfoldername/somesubfoldername';
$result = Dropbox::getDelta($cursor, $pathPrefix);
RESULT
array(4) {
["has_more"]=> bool(true)
["cursor"]=> string(302) "somecursorstring"
["entries"]=> array(1) {
[0]=> array(2) {
[0]=> string(49) "/superfoldername/somesubfoldername"
[1]=> array(13) {
["rev"]=> string(10) "2047cde5ef"
["thumb_exists"]=> bool(false)
["path"]=> string(49) "/superfoldername/somesubfoldername"
["is_dir"]=> bool(true)
["icon"]=> string(11) "folder_user"
["read_only"]=> bool(false)
["modifier"]=> NULL
["bytes"]=> int(0)
["modified"]=> string(31) "Sun, 01 May 2016 16:38:32 +0000"
["shared_folder"]=> array(2) {
["shared_folder_id"]=> string(10) "1205541233"
["is_team_only_shared_folder"]=> bool(false) }
["size"]=> string(7) "0 bytes"
["root"]=> string(7) "dropbox"
["revision"]=> int(32)
}
}
}
["reset"]=> bool(true)
}
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!