Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add top-level readme

  • Loading branch information...
commit df51d8ab24d8ca0e6f44b0c09af7d99ddcbd2c3a 1 parent 03f8ee1
@bdarnell authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 README
View
24 README
@@ -0,0 +1,24 @@
+Introduction
+============
+
+This is an asynchronous python interface to the Dropbox API, using the
+Tornado IOLoop. It is designed to be similar to the existing interfaces
+in the `tornado.auth` module.
+
+Example usage
+=============
+
+ class MainHandler(tornado.web.RequestHandler,
+ async_dropbox.DropboxMixin):
+ @tornado.web.authenticated
+ @tornado.web.asynchronous
+ def get(self):
+ self.dropbox_request(
+ "api", "/1/metadata/sandbox/"
+ access_token=self.current_user["access_token"],
+ callback=self._on_metadata)
+
+ def _on_metadata(self, response):
+ response.rethrow()
+ metadata = json.loads(response.body)
+ self.render("main.html", metadata=metadata)

1 comment on commit df51d8a

Please sign in to comment.
Something went wrong with that request. Please try again.