Skip to main content

Posts

Showing posts from 2017

An updated Dropbox API example

By far the most popular post on here (shock, I know!) was to do with using the Dropbox Java API from a desktop Java app . At the initial time of writing, this wasn't really documented, so the OAuth flow in particular required a bit of guesswork to get it going. I haven't done any work with this API in quite a number of years now, and it appears the original v1 API was switched off a few months back, so that example will no longer work. This API has much better documentation than the v1 API did back in 2012, and if you're doing any serious work with it then looking through the SDK and the SDK examples on Github  is a must. That being said, for completeness I thought I'd provide an equivalent code snippet for the v2 API. You'll need the appropriate Maven or Gradle dependency: <dependency> <groupid>com.dropbox.core</groupid> <artifactid>dropbox-core-sdk</artifactid> <version>3.0.5</version> </dependency&g