We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
SirAider
8 years agoExplorer | Level 3
Script Copy Dropbox Link to Apple Mail
Dear All I want to do a script on my os x sierra which copy the "Copy Dropbox Link" of a file in a new apple mail from the default mail account. Also, in the file name there is an email address - t...
Greg-DB
Dropbox Community Moderator
8 years agoIt sounds like you're referring to the feature of the official Dropbox desktop client where you can right click on a file or folder and choose "Copy Dropbox Link" to get a shared link for that file or folder.
The Dropbox API doesn't offer a way to interact with the Dropbox desktop client itself, but you can use the Dropbox API to communicate with the Dropbox servers to get the same kind of shared link.
To create a shared link like that, you would call /2/sharing/create_shared_link_with_settings:
Or, to retrieve an existing shared link, you would call /2/sharing/list_shared_links:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
I can't offer guidance with the non-Dropbox side of things though, such as choosing a good programming language for your platform, or interacting with Apple Mail.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!