Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Dan R.23
9 years agoNew member | Level 1
create and return shared link to file Android example
I have an android app that uses the dropbox api to upload a file to drop box. This functionality is working as expected. Now I want to create a shared link to the file I just uploaded. I am confused and unable to get this working. Is there an example of how to do this for android that you can point me to? I'm missing something.
Thanks.
1 Reply
Replies have been turned off for this discussion
- Greg-DB9 years ago
Dropbox Community Moderator
What library, are you using, if any? For example, if you're using the Dropbox API v1 Android library, you can use the shares method to get a shared link to a file or folder:
I don't have a good sample of using that handy, but usage should just look like:
dropboxLink = client.shares("/path/to/file")
dropboxLink.url // the share link URL
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!