cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

create and return shared link to file Android example

create and return shared link to file Android example

Dan R.23
New member | Level 1

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 1

Greg-DB
Dropbox Staff

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:

https://www.dropboxstatic.com/static/developers/dropbox-android-sdk-1.6.3-docs/com/dropbox/client2/D...

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

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?