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: 

How to get the UserId for HTTP File Dowload?

How to get the UserId for HTTP File Dowload?

lrjramkumar
Explorer | Level 3

https://www.dropbox.com/s/r3p1au45g3rylvs/advocated.jpeg 

 

How to get the UserId like this for my dropbox  r3p1au45g3rylvs

3 Replies 3

Greg-DB
Dropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/51823329/how-to-get-the-userid-for-dropbox-http-file-dowload ]

First, to clarify, note that the string in shared links like this, e.g., "r3p1au45g3rylvs" is not a user ID. It is a randomly generated string only used in the shared link.

If you want to get information about a shared link, you can use /2/sharing/get_shared_link_metadata:

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

This does not give you the user ID for the user that owns the link, however. (It will give you the team member ID of the user that owns the link, under 'team_member_info', if and only if the owner is on the same team as the connected user account for the API call.)

Also, note that that is a link 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.

lrjramkumar
Explorer | Level 3
How to generate the share links

Greg-DB
Dropbox Staff
To create shared links in the first place, you should use /2/sharing/create_shared_link_with_settings:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_...
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    lrjramkumar Explorer | Level 3
What do Dropbox user levels mean?