cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

get download link

get download link

alicera
Explorer | Level 3

How to get a file download link with python and javascript?

3 Replies 3

Greg-DB
Dropbox Staff

If you need to download a file via the API, you can do so directly by using /2/files/download. That's files_download in the Python SDK, and filesDownload in the JavaScript SDK.

 

If you do need to download a file from a URL instead of directly from an API call though, you can call /2/files/get_temporary_link to get a temporary link to the file, which you can then use to download the file. That's files_get_temporary_link in the Python SDK, and filesGetTemporaryLink in the JavaScript SDK

alicera
Explorer | Level 3

I want to put the fixed path

data/

     â”œâ”€â”€ folder1   

                 â”œâ”€â”€ hello.json

                 â”œâ”€â”€ haha.json

     â”œâ”€â”€ folder2   

                 â”œâ”€â”€ aa.json

 

Could I search the folder1 and get the link of hello.json and the link of haha.json with code?

Do you have suggestions?

Greg-DB
Dropbox Staff

I see you opened a new thread for this. I'll follow up with you there.

Need more support?
Who's talking

Top contributors to this post

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