Hackathons!
We’ll also be stopping by several upcoming hackathons to join lots of developers in hacking on the Dropbox APIs. Join us for Hack Out West in Gothenburg, Sweden (Aug 11 – 12), Hack the North at the University of Waterloo in Canada (Sept 18 – 20), and HackZurich in Switzerland (Oct 2 – 4).

Hope to see you there!

]]>https://blogs.dropbox.com/developers/2015/07/upcoming-events-for-the-dropbox-developer-platform/feed/0leahatdropboxAPI v2 developer site (preview!)https://blogs.dropbox.com/developers/2015/06/api-v2-developer-site-preview/
https://blogs.dropbox.com/developers/2015/06/api-v2-developer-site-preview/#commentsThu, 25 Jun 2015 21:32:44 +0000http://blogs.dropbox.com/developers/?p=2365In April we announced API v2, a new version of our Dropbox API. Over the past few weeks, we also released preview versions of SDKs for Swift, Python, and .NET that work with API v2. And now we’ve put this all together in a new developer site, specifically for API v2.

The content is mostly the same as our previous blog posts, but now it’s in a single easy-to-find location.

]]>In April we announced API v2, a new version of our Dropbox API. Over the past few weeks, we also released preview versions of SDKs for Swift, Python, and .NET that work with API v2. And now we’ve put this all together in a new developer site, specifically for API v2.

The content is mostly the same as our previous blog posts, but now it’s in a single easy-to-find location. For each SDK we’ve included installation instructions, a tutorial, full documentation, and links to example apps. You can find all the SDK documentation here and the full API v2 HTTP documentation here.

]]>https://blogs.dropbox.com/developers/2015/06/api-v2-developer-site-preview/feed/0dropbloxleahatdropboxdropbloxIntroducing a preview of the new Dropbox.NET SDK for API v2https://blogs.dropbox.com/developers/2015/06/introducing-a-preview-of-the-new-dropbox-net-sdk-for-api-v2/
https://blogs.dropbox.com/developers/2015/06/introducing-a-preview-of-the-new-dropbox-net-sdk-for-api-v2/#commentsTue, 23 Jun 2015 14:20:28 +0000http://blogs.dropbox.com/developers/?p=2348Today we’re announcing the Dropbox.NET SDK, a new SDK that you can use to try out our new API v2 preview. We’ve built this SDK to support the Microsoft development community and we’d love to get your thoughts and feedback.

The Dropbox.NET SDK is a Portable Class Library that works with multiple platforms including Windows, Windows Phone, and Mono.

Please keep in mind that both the SDK and API v2 are in preview mode so please don’t use them for your production apps just yet. We’ll let you know when the final versions are ready.

]]>Today we’re announcing the Dropbox.NET SDK, a new SDK that you can use to try out our new API v2 preview. We’ve built this SDK to support the Microsoft development community and we’d love to get your thoughts and feedback.

The Dropbox.NET SDK is a Portable Class Library that works with multiple platforms including Windows, Windows Phone, and Mono.

Please keep in mind that both the SDK and API v2 are in preview mode so please don’t use them for your production apps just yet. We’ll let you know when the final versions are ready.

Install the Dropbox.NET SDK

Register a Dropbox API app

If you haven’t already, you’ll need to register a new app in the App Console. Select Dropbox API app and choose your app’s permission. You’ll need to use the app key created with this app to access API v2.

That’s it! You’re ready to try out the Dropbox.NET SDK.

Link an account

In order to make calls to the API, you’ll need a DropboxClient instance. To instantiate, pass in the access token for the account you want to link.

Documentation

]]>https://blogs.dropbox.com/developers/2015/06/introducing-a-preview-of-the-new-dropbox-net-sdk-for-api-v2/feed/0leahatdropboxNow available in preview: Python SDK for API v2https://blogs.dropbox.com/developers/2015/06/preview-python-sdk-for-api-v2/
https://blogs.dropbox.com/developers/2015/06/preview-python-sdk-for-api-v2/#commentsTue, 16 Jun 2015 16:29:14 +0000http://blogs.dropbox.com/developers/?p=2307We’ve been hard at work on API v2, and today we’re releasing a second preview SDK: the Dropbox Python SDK!

It’s no secret that we love Python here at Dropbox, so we hope you’ll try out the SDK and send us your thoughts. This blog post will show you how to install the Python SDK and help you get started making calls using the Dropbox API v2.

If you’re familiar with API v1, you’ll notice a few differences in this new SDK. For more context on v2, including an overview of how we’re updating the Core API,

It’s no secret that we love Python here at Dropbox, so we hope you’ll try out the SDK and send us your thoughts. This blog post will show you how to install the Python SDK and help you get started making calls using the Dropbox API v2.

If you’re familiar with API v1, you’ll notice a few differences in this new SDK. For more context on v2, including an overview of how we’re updating the Core API, check out this blog post.

Keep in mind that this is a preview version of the Python SDK and API v2. Both might change in the coming months, so please don’t use them in production.

Install the Python SDK

In your directory of choice, install the SDK.

pip install dropbox-sdk-python-master.zip

Now you can do “import dropbox” in your python app, or in a python interpreter.

import dropbox

Register a Dropbox API app

If you haven’t already, you’ll need to register a new app in the App Console. Select Dropbox API app and choose your app’s permission. You’ll need to use the app key created with this app to access API v2.

That’s it! You’re ready to start using the Python SDK v2 preview.

Link an account

In order to make calls to the API, you’ll need a Dropbox instance. To instantiate, pass in the access token for the account you want to link. (Tip: You can generate an access token for your own account through the App Console).

dbx = dropbox.Dropbox('YOUR_ACCESS_TOKEN')

Test it out to make sure you’ve linked the right account:

dbx.users_get_current_account()

Try some API requests

You can use the Dropbox object you instantiated above to make API calls. Try out some of the files requests.

Documentation

You can read more in the documentation. There’s also a sample script called “updown.py” in the examples folder. Check it out!

]]>https://blogs.dropbox.com/developers/2015/06/preview-python-sdk-for-api-v2/feed/0alexf2015Programmatically saving a URL to Dropboxhttps://blogs.dropbox.com/developers/2015/06/programmatically-saving-a-url-to-dropbox/
https://blogs.dropbox.com/developers/2015/06/programmatically-saving-a-url-to-dropbox/#commentsFri, 12 Jun 2015 16:00:01 +0000http://blogs.dropbox.com/developers/?p=2286We’ve recently introduced a new feature to the Dropbox API: /save_url. This new endpoint lets app developers upload files to Dropbox by just providing a URL, without having to download the file first. It’s analogous to the Dropbox Saver but works without any user interaction.

To try out /save_url, you’ll first need an OAuth access token, as you would to use any Core API endpoint. There are a number of ways to obtain an access token, and our OAuth guide will help you get started.

]]>We’ve recently introduced a new feature to the Dropbox API: /save_url. This new endpoint lets app developers upload files to Dropbox by just providing a URL, without having to download the file first. It’s analogous to the Dropbox Saver but works without any user interaction.

To try out /save_url, you’ll first need an OAuth access token, as you would to use any Core API endpoint. There are a number of ways to obtain an access token, and our OAuth guide will help you get started.

Once you have an access token, calling /save_url is quite simple. Using curl:

Note that the destination path is part of the URL. In the above case, it’s /images/downloaded.png. The file to download is specified in the url form post parameter. The response will be JSON that looks like this:

{"status": "PENDING", "job": "PEiuxsfaISEAAAAAAADw7g"}

The job ID can be used to periodically check a save URL job’s status using the /save_url_job endpoint. For example:

]]>https://blogs.dropbox.com/developers/2015/06/programmatically-saving-a-url-to-dropbox/feed/0jennifyitJoin us at Summer Hack Day, a hackathon for women internshttps://blogs.dropbox.com/developers/2015/06/summer-hack-day/
https://blogs.dropbox.com/developers/2015/06/summer-hack-day/#commentsTue, 09 Jun 2015 15:45:00 +0000http://blogs.dropbox.com/developers/?p=2253This summer, Dropbox is hosting Summer Hack Day, a hackathon for women who are interning in the Bay Area. Come join us June 26th – 27th, and be a part of the most delightfully refreshing hackathon of the summer.

There will be delicious food and awesome prizes, and we’ll also have mentors from Dropbox to help the teams with their hacks, and industry representatives who will be speaking and judging. Applications close on Thursday, June 11th at 6:00 pm PDT,

]]>This summer, Dropbox is hosting Summer Hack Day, a hackathon for women who are interning in the Bay Area. Come join us June 26th – 27th, and be a part of the most delightfully refreshing hackathon of the summer.

There will be delicious food and awesome prizes, and we’ll also have mentors from Dropbox to help the teams with their hacks, and industry representatives who will be speaking and judging. Applications close on Thursday, June 11th at 6:00 pm PDT, so be sure to tell all of the women interns you know!

]]>https://blogs.dropbox.com/developers/2015/06/summer-hack-day/feed/0rainbow_transparentalexf2015rainbow_transparentSwiftyDropbox SDK talk video and sample apphttps://blogs.dropbox.com/developers/2015/06/swiftydropbox-sdk-talk-video-and-sample-app/
https://blogs.dropbox.com/developers/2015/06/swiftydropbox-sdk-talk-video-and-sample-app/#commentsTue, 09 Jun 2015 00:28:45 +0000http://blogs.dropbox.com/developers/?p=2264A few weeks ago, I gave a talk at the Twilio Signal conference about our new SwiftyDropbox SDK.

I demoed PhotoWatch, a sample app built with SwiftyDropbox that displays photos from your Dropbox on your Apple Watch. PhotoWatch uses two methods from the SwiftyDropbox SDK to interact with Dropbox: filesListFolder and filesDownload. Check out the source code on GitHub.

I demoed PhotoWatch, a sample app built with SwiftyDropbox that displays photos from your Dropbox on your Apple Watch. PhotoWatch uses two methods from the SwiftyDropbox SDK to interact with Dropbox: filesListFolder and filesDownload. Check out the source code on GitHub.

This week we made a breaking change to the serialization format of the API v2 preview. SwiftyDropbox has now been updated it accordingly. All you need to do to upgrade to SwiftyDropbox v0.2 is change the version number in the tag of your Podfile like so:

then run:

In SwiftyDropbox v0.2, we’ve also added a Dropbox helper class to make everything cleaner and simpler in the case where your app only expects each user to link one Dropbox account.

This week we made a breaking change to the serialization format of the API v2 preview. SwiftyDropbox has now been updated it accordingly. All you need to do to upgrade to SwiftyDropbox v0.2 is change the version number in the tag of your Podfile like so:

In SwiftyDropbox v0.2, we’ve also added a Dropbox helper class to make everything cleaner and simpler in the case where your app only expects each user to link one Dropbox account. Check out the original blog post about SwiftyDropbox for updated example code.

SwiftyDropbox is still in preview mode so watch for more changes!

]]>https://blogs.dropbox.com/developers/2015/06/swiftydropbox-v0-2/feed/0leahatdropboxDropbox at STRV Apple Watch Hackathonhttps://blogs.dropbox.com/developers/2015/05/dropbox-at-strv-apple-watch-hackathon/
https://blogs.dropbox.com/developers/2015/05/dropbox-at-strv-apple-watch-hackathon/#commentsThu, 28 May 2015 22:10:48 +0000http://blogs.dropbox.com/developers/?p=2223Join us on Saturday, June 6th in San Francisco for the STRV Apple Watch Hackathon.

This year, Dropbox released Firefly, our instant, full text search for our Dropbox for Business users. We’re excited to bring a full text search endpoint to developers as part of the Dropbox API v2 preview.

Try it out!

The search endpoint will accept query, path, start, max_results, and mode keys in a JSON object.

]]>[EDIT June 4, 2015]This post has been updated to reflect the latest API v2 syntax.

This year, Dropbox released Firefly, our instant, full text search for our Dropbox for Business users. We’re excited to bring a full text search endpoint to developers as part of the Dropbox API v2 preview.

Try it out!

The search endpoint will accept query, path, start, max_results, and mode keys in a JSON object. The start parameter is for paging through search results. With the path parameter, you can limit results to only be within a certain folder. The mode parameter specifies the type of content to search and can be “filename”, “filename_and_content”, or “deleted_filename”.

The search endpoint returns both filename and full-text search results for Dropbox for Business users, while other users will receive filename search results only.

Remember that this is a preview version and should not be used in production. Endpoints will change as we gather feedback and continue to improve the preview of the API. Please let us know what you think in the comments or on our developer forum.