API / Script method to download entire folder?
Hello, seems obvious but I couldn't figure it out via documentation. Is there a way to do this? Thanks
-
Currently we don't have an API that would let you download an entire folder in a single API call. You can get all the content of a folder in multiple API calls.
You would need to recursively call the Get Folder's Item endpoint to get the list of items in the folder. The process would be:
1. Call Get Folder's Items endpoint for the needed folder.2. Call the Download File endpoint for each file returned in step 1.
3. For all folders returned from step 1, call the Get Folder's Items API for each of them and download the files in those folders.
4. Repeat this process until no more subfolders are returned. -
Is this still the case? I can see you have a service that zips folders for download:
https://${domain}.app.box.com/index.php?rm=box_v2_zip_folder&folder_id=${folderId}
. . . but it seems that it doesn't want to talk to the javascript SDK. Is there a way to use this to programmatically provide a folder-zip link to a user?
サインインしてコメントを残してください。
コメント
6件のコメント