March 17, 2012
Having a user authorize your application to access his or hers Dropbox account consists out of 3 steps. Using OAuth you must:
Before retrieving an access token you must wait until the user has authorized your application. There’s no way to determine when this has happened. Up until now we just waited a little while and hoped for the best. However, when you instruct the user to authorize your application, you can also specify a callback URL which will automatically be called when the authorization process has been completed.
Let’s create a sample web application that demonstrates this.
March 11, 2012
In the last part of the Dropbox series, we handled file downloads. This time I’ll show you how you can easily upload files to your Dropbox account.
To follow along, download the code of part #4 (article 66) from the download page, unzip it and open the solution in Visual Studio.
Let’s get started…
February 26, 2012
So far we’ve covered the following topics in the Dropbox series:
Once you are authenticated you can make API requests such as requesting your account information, creating, deleting folders…etc. One particular type of request is downloading a file from your Dropbox account. Once you’ve worked your way through the previous 3 parts this becomes trivially easy.
If you want to follow along go to the download page and download the code for the third part (article #65). Unzip it and open it up in Visual Studio.
February 19, 2012
In the previous part (part 2: API Requests) I mentioned that the third part would show you how to perform various folder operations such as creating, deleting and moving folders.
Well it has been a month, so let’s get to it. Go to the download page and download the source code of part 2 (Article #63). Unzip and open the solution in Visual Studio. Make sure you modify the API key and secret located in the console application (Program.cs code file). Replace the values with your own application’s key and secret.
Ready? Set? OK, let’s start with creating folders…
January 8, 2012
Once you have an access token, you can use it to access the main Dropbox REST API. Let’s demonstrate this by using some of the API’s requests such as retrieving account information and file (and directory) metadata.
It’s actually surprisingly easy. In the next part we’ll explore other options such as creating, deleting and moving folders.
Let’s get started…
December 29, 2011
I’ve been using Dropbox for about 6 months now. Before that I relied on Google Documents to share my files between the computers I use. Of course I had to login first and then I had to download them. Kind of a drag, certainly with big files.
With Dropbox that’s a thing of the past. Just install the client software and it will synchronize all of your files automatically. They are neatly downloaded into a local Dropbox folder on each of your computers. And only the parts of the file that actually changed are transferred, greatly reducing the download time.
Another neat feature is that other applications can use your Dropbox folder to store their data. For instance, I use a password manager (AgileBit’s 1Password) to securely save my login accounts. If I create a new account for a site on my laptop, then when I start my desktop it will automatically be known there once Dropbox has synched 1Password’s files (which is nearly instantanously).
This is made possible thanks to the Dropbox REST API. Let’s find out how we can use it…