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
jimmythemic
8 years agoNew member | Level 2
Automating Sending Email With Link to client files..
My business needs to email our clients and within the email provide a read only link to their file in Dropbox. I know the manual way to do the shared link, but we need a way to automate the process. ...
- 8 years ago
To this using the Dropbox API, you can use /2/files/list_folder[/continue] to retrieve the metadata, including both path and id, for existing and new files in the connected Dropbox account.
You can then use to get a shared link /2/sharing/create_shared_link_with_settings. The API doesn't offer a way to have Dropbox send the email with the link itself, so you'd need to send the email from your app.
- 8 years agoI'm not sure if I've understood your last questions properly, so please let me know if I've missed anything.
To make a call to a Dropbox API endpoint, such as /2/files/list_folder, you need an OAuth access token for the account you want to access. The Dropbox API v2 uses OAuth 2 in particular. You can find information on how this works here:
https://www.dropbox.com/developers/reference/oauth-guide
In short, you need to log in (or already be logged in) to the Dropbox web site once to first authorize the app to access your account. From there, you get an access token that you can store and re-use for API calls, without going through that app authorization process again.
Also, here's a basic example of making an API call in PHP using curl:
https://stackoverflow.com/documentation/dropbox-api/412/listing-a-folder/1370/listing-the-root-folder-via-curl-in-php-and-the-curl-extension#t=201701302112566040782
Alternatively, you can use a third party library:
https://www.dropbox.com/developers/documentation/communitysdks
MikeKowa
7 years agoNew member | Level 2
Hey Jimmy,
Collectizi does that. You can automate your clients files collection, approve them, track completion and share the requests with your team if needed.
And you don't need to do emails anymore :)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years 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!