How to get a file download link with python and javascript?
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.
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?
I see you opened a new thread for this. I'll follow up with you there.