cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Create and automatically share folder with anyone

Create and automatically share folder with anyone

masudhossain
New member | Level 2

What I'm building: 

A ruby on rails app that automatically creates a folder and will share it with people they choose. BUT i don't want the customer to have to go to dropbox.com to do all this. 

 

Is it possible to do this through my ruby on rails app without redirecting my users to dropbox.com (i understand they will still need to authenticate their dropbox account)? 

1 Reply 1

Greg-DB
Dropbox Staff

Yes, after you send the user to the Dropbox web site to process the app authorization flow, your app recieves an access token it can use to make API calls for the user's account, without sending the user to the Dropbox web site again. This includes API calls for sharing folders.

 

To share a folder in the user's account, you should use the /2/sharing/share_folder call:

 

https://www.dropbox.com/developers/documentation/http/documentation#sharing-share_folder

 

And then to invite other people to that folder, you should use the /2/sharing/add_folder_member call:

 

https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_folder_member

 

Hope this helps! 

Need more support?