Zip Download support now available in all SDKs & CLI

Cristiano Betta
Box Developer Blog
Published in
2 min readOct 20, 2020
Zip archives can now be downloaded using all our SDKs & CLI

In July we announced the general availability of the new Zip Download APIs. Today we’re happy to announce that support for Zip Downloads has arrived to all our server-side SDKs and CLI.

CLI

Starting with version 2.6.0 the Box CLI now supports downloading a Zip using the box files:zip command.

The command requires a name for the Zip file, and a list of one or more item values to add to the Zip, each with an item type (file or folder) and an item ID. For more details, please see the CLI documentation.

Java SDK

Starting with version 2.49.0 the Box Java SDK now supports downloading a Zip with the BoxZip.download method.

Calling this method will create a new zip file (with the specified file name) containing the specified items (files or folders) and download it to the stream that is passed in.

The object passed to the callback function is a status object that contains information about the download, including whether it was successful or not. For more details please check out the Node SDK documentation.

Python SDK

Starting with version 2.10.0 the Box Python SDK now supports downloading a Zip with the client.download_zip method.

Calling this method will create a new zip file (with the specified file name) containing the specified items (files or folders) and download it to the file pointer that is passed in.

For more details please check out the Python SDK documentation.

Windows SDK

Starting with version 3.25.0 the Box Windows SDK now supports downloading a Zip with the FilesManager.DownloadZip method.

Calling this method will download a new zip file (with the specified file name) containing the specified items (files or folders).

For more details please check out the Windows SDK documentation.

The object passed to the callback function is a status object that contains information about the download, including whether it was successful or not. For more details please check out the Node SDK documentation.

Node SDK

Starting with version 1.34.0 the Box Node SDK now supports downloading a Zip with the files.downloadZip method.

Calling this method will create a new zip file (with the specified file name) containing the specified items (files or folders) and download it to the stream that is passed in.

The object passed to the callback function is a status object that contains information about the download, including whether it was successful or not. For more details please check out the Node SDK documentation.

--

--

Cristiano Betta
Box Developer Blog

Senior Developer Advocate 🥑 at Box 📦. Developer Experience Enthusiast. Codes in Ruby & JS. Addicted to open source software.