Get Easter eggs in your Dropbox

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”

Read more

Fix dress colors with Dropbox

For some reason, white and gold things appear blue and black to a large number of people. As a demo for BattleHack LA, I built an app that automatically corrects the colors in your images in Dropbox so you can see their true white and gold nature.

The full code is on GitHub at github.com/dropbox/whitegold. The app uses webhooks and the Core API (/delta, /thumbnails, and /files_put).

Read more

New! Lists sample app

Update: The Sync and Datastore SDK has been deprecated. Learn more here.

We’ve created a sample app to show off both shared datastores and local datastores, two of the newest features in the Datastore API.

Lists is an iOS, Android, and JavaScript web app that lets you create lists of items and share them with others. For example, you could create a shopping list, a project to-do list, or a list of your favorite pizza joints in San Francisco.

Read more

dropbox_hook.py: a tool for testing your webhooks

A lot of early questions we got after launching the new webhooks feature were around how to develop and test a webhook locally.

I put together a small command-line tool to make testing webhooks easier. It’s called dropbox_hook.py, and it sends fake webhook requests to mimic what Dropbox itself sends.

Usage

To generate a verification request, run the following:

Once you’ve tested the verification step, you’ll want to send fake notification requests to your webhook. To do that, run the following:

The --secret option should be your Dropbox app secret.

Read more

Click the Box: a cross-platform, open-source game using the Datastore API

Update: The Sync and Datastore SDK has been deprecated. Learn more here.

Here on the Dropbox developer relations team, one of our favorite things to do with the Dropbox Datastore API is to play games. Hot on the heels of our runaway successes Dropbox 2048 and Lucky Shamrock, today we’re releasing Click the Box, a really simple game that demonstrates how the Datastore API can be used to sync game state.

You can play the game in your browser at clickthebox.site44.com. Try opening it in multiple browser tabs to see it sync in real-time!

Read more

Dropbox 2048 saves your current game and high scores

Update: The Sync and Datastore SDK has been deprecated. Learn more here.

Maybe you’ve seen the game 2048? It’s fun and highly addictive. We’ve been playing it a lot (maybe too much?) here at Dropbox and thought it would be fun to add some modifications.

The original source code is on GitHub, so we forked it and added two new features that take advantage of the Dropbox Datastore API: the ability to save your current game and a list of your high scores.

Read more