Kloudless Blog

Kloudless Unified APIs enable you to code once and integrate many

This week our product team is excited to roll out these new features! As always, they are inspired by you and created by us. 🙂

Pagination for folder contents

You can now efficiently iterate over a folder’s contents, retrieving up to 1000 items at a time, via the folder contents endpoint. Previously, retrieving contents of large folders would either be very slow or truncate the list returned. Pagination provides the best solution to this issue.

Check out this example response from our interactive docs:

Upload files from a URL

Rather than providing the file’s contents in your upload request, you can now specify a URL from which the API will obtain the file. This simplifies the process by eliminating the need to download a file prior to uploading — Kloudless handles the file directly, so you don’t have to.

We created this functionality based on a conversation with one of our developers. He was using Rackspace Mailgun to store incoming email attachments. Before the Kloudless API allowed developers to upload files from a URL, he would have to download the attachment to his own server before uploading it to the desired cloud storage service — Dropbox, Google Drive, Box, etc. Now, all he must do is specify a URL as the source for the file to be uploaded directly through the Kloudless API.

While this particular use case involved Mailgun, we expect the developer community to find other uses for these two features. They are immediately available for anyone with a Kloudless Developer account. Get your free account at kloudless.com. You’ll also find additional resources including SDKs and interactive docs to help you get started quickly.

If you still have questions, please leave us a comment below, email us, open an issue in the relevant github repository or reach out to us on Twitter @KloudlessAPI, or talk with us on IRC on FreeNode in #kloudless.

Categories: