Permalink
Browse files

Add support for /delta

  • Loading branch information...
1 parent d438950 commit 6a77a3e8009894e1535ba8a9305c609674efafaa @jcayzac committed Mar 31, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 dbox.js
View
13 dbox.js
@@ -64,6 +64,19 @@ exports.createClient = function(config){
})
},
+ delta: function(options, cb){
+ var params = sign(options)
+ var args = {
+ "method": "POST",
+ "headers": { "content-type": "application/x-www-form-urlencoded" },
+ "url": "https://api.dropbox.com/1/delta",
+ "body": qs.stringify(params)
+ }
+ request(args, function(e, r, b){
+ cb(r.statusCode, JSON.parse(b))
+ })
+ },
+
get: function(path, options, cb){
var params = sign(options)

0 comments on commit 6a77a3e

Please sign in to comment.