Skip to content

Instantly share code, notes, and snippets.

@dshaw002
Created December 28, 2015 00:24
Show Gist options
  • Save dshaw002/639e2f3dab1e9a2a7ed4 to your computer and use it in GitHub Desktop.
Save dshaw002/639e2f3dab1e9a2a7ed4 to your computer and use it in GitHub Desktop.
Sharing a folder in Dropbox
Step 1 - Sharing/Share Folder
https://api.dropboxapi.com/2/sharing/share_folder
{
"path": {your path},
"force_async": false,
"acl_update_policy": "editors"
}
it returns the shared folder id in the root as shared_folder_id
Step 2 - Add Folder Member
https://api.dropboxapi.com/2/sharing/add_folder_member
{
"shared_folder_id": "{your shared folder id}",
"members": [
{
"member": {
".tag": "email",
"email": "[email protected]"
},
"access_level": {
".tag": "editor"
}
},
{
"member": {
".tag": "dropbox_id",
"dropbox_id": "dbid:AAEufNrMPSPe0dMQijRP0N_aZtBJRm26W4Q"
},
"access_level": {
".tag": "viewer"
}
}
],
"quiet": false,
"custom_message": "Documentation for launch day"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment