“If we always helped one another, no one would need luck.”
It’s Monday, and that means we’re back with another post aimed at helping you overcome some of the most commonly asked questions about the APIs we work with here at Kloudless. Every Monday, we will aim to help answer some of the more repeated inquiries into the world’s most popular APIs or cloud services. Today, we will be turning back to one of the industry’s top names when it comes to cloud storage: Dropbox.
Boasting more than 500 million users, DropBox has been a bona fide giant of the cloud-based file storage world since its release in 2008. DropBox became the first of the ‘folder sync’ storage applications to become a household name, having been originally conceived when one of its co-founders left his USB flash drive at home and was stuck with no way to access his necessary files for a college class. As a result, DropBox has become ubiquitous with users looking to manage their files and documents in the cloud, and heavily utilized by applications looking to provide their users with storage integrations.
Dropbox provides a wonderful UI tool to access their API called the Dropbox API Explorer. The API Explorer lets you easily learn about the cloud storage API and test your own calls without writing any code at all. For each endpoint, you can submit an API call with your own parameters and see the code for that call, as well as the API response. We here at Kloudless use a similar tool for our API called the Kloudless API Explorer. These tools are not for use in your application, as they are essentially an interactive means of documentation, but they can help you get started on learning the details of an API.
Let’s walk through getting set up and started with the Dropbox API Explorer!
First off, head over to the Dropbox developers portal and sign in to your account. You will have to create a new app to use under your account, but no additional work is required on your account’s side after that.
Next, head over to the list_folder endpoint so we can check that everything is working. At the very top, you’ll see a button that says
Get Token. Click that and the explorer will auto-generate an access token for your connected account. That’s all you need, for now, so scroll down and click on
Just below, you’ll be given a visual of the JSON response from the successful call that looks like so:https://mlpwp7ewkcnn.i.optimole.com/w:auto/h:auto/q:90/https://kloudless.com/wp-content/uploads/2019/11/Screen-Shot-2019-11-18-at-3.45.48-PM.png” alt=”” class=”wp-image-7643″ width=”361″ height=”497″/>