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.


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

Lucky Shamrock: saving game state with the Datastore API

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

Happy St. Patrick’s Day! For the holiday, we created a simple game using the Datastore API to demonstrate saving game state with conflict resolution rules.

Play the Lucky Shamrock game!

The goal of the Lucky Shamrock game is easy, just find the four-leaf clover in the field of three-leaf clovers.

A resolution rule is how the Datastore API determines what do with a field in the case of a conflict.

Read more

Is it Christmas? Find out with Dropbox

Inspired by the novelty Twitter account @isitchristmas, a few of us here at Dropbox put together the website Is it Christmas?, which answers the question by adding a cute photo to your Dropbox each day. Not only is this app adorable, but it demonstrates how a service can periodically update a user’s Dropbox using copy_ref.

How it works

The app is built in Python and uses a handful of Core API methods:

Read more