Dropbox was out in full force at PyCon this year. We were the Financial Aid Sponsor for the event, hosted a workshop about how to use the Dropbox API, and had a lot of great conversations with attendees at our booth. Behind the scenes, the Dropbox platform kept PyCon speakers and captioners in sync through a custom Dropbox API app.
If you’re curious about the Dropbox workshop, here are the slides and the full source code for PEP8 Squad, the demo app. PEP8 Squad reformats any Python file you drag into Dropbox according to PEP8’s recommended style.
A common sticking point for developers when they begin using the Dropbox API is how to properly authorize users using OAuth. Dropbox uses OAuth 2, an open standard, to handle connecting apps to users’ Dropbox accounts.
To help developers get started, we just published the Dropbox API OAuth guide, covering OAuth and user authorization in general. Check it out and let us know what you think, either here in the comments or on the Dropbox API development forum.
April 22 – 24 in Amsterdam
As part of The Next Web Europe conference in Amsterdam next week, we’ll be sponsoring the Hack Battle. Join hundreds of hackers to compete for prizes and glory with a special prize for the best use of the Dropbox API. Dropbox Head of EMEA Marketing, Xabier Ormazel, will also be speaking at the conference about “The Collaboration Network: redefining teamwork for the mobile age”. Find out more.
DevOps @ EMC World
May 3 in Las Vegas
Come see our Developer Platform Product Manager,
We’ve been working on a new version of the Dropbox API for a while and it’s time to show you what we have so far. To start, we’ve implemented a select set of endpoints that highlight the big structural changes underway, and we’d like to know what you think!
Overall, we’ve simplified our use of HTTP. For example, most endpoints always use HTTP POST, including those that return structured data. Requests take JSON in the body and responses return JSON in the body.
We will continue to use other HTTP features in specific cases where they provide concrete benefits.
Some people think that Easter eggs are colorful hard-boiled chicken ova that you hide in a backyard once a year. Other people think Easter eggs are cute little surprises that developers build into their apps to delight their users. With the Dropbox API, Easter eggs can be both!
The Easter Eggs app creates a folder tree in your Dropbox with folders like “grass” and “drain pipe” and “under the back porch,” and then randomly adds image files of eggs. The aim of the game is to find all the eggs and drag the files to your “Easter basket”
There are a lot of HTTP status codes. At the time of this writing, Wikipedia lists 75 different status codes, most of which you’ve probably never encountered. Many of us have heard of the tongue-in-cheek “418 I’m a teapot,” but very few are familiar with these:
- 205 Reset Content
- 300 Multiple Choices
- 419 Authentication Timeout
- 450 Blocked by Windows Parental Controls
Most API providers stick to a rather small set of status codes, which they list in their documentation. Facebook’s Graph API takes this to the extreme;