Permalink
Browse files

? added to get calls with optargs passed

  • Loading branch information...
CrabDude committed Jun 17, 2011
1 parent de0f80c commit 5c1329a2e0ae2df098f207df3ebb153d8400a28b
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dropbox-node.js
View
@@ -139,7 +139,7 @@ DropboxClient.prototype.putFile = function(file, path, optargs, cb) {
DropboxClient.prototype.getMetadata = function(path, optargs, cb) {
if (typeof optargs == 'function') cb = optargs, optargs = {};
path = escapePath(path);
- this.oauth.get(API_URI + '/metadata/dropbox/' + path +
+ this.oauth.get(API_URI + '/metadata/dropbox/' + path + '?' +
stringifyParams(optargs)
, optargs.token || this.access_token
, optargs.secret || this.access_token_secret
@@ -156,7 +156,7 @@ DropboxClient.prototype.getMetadata = function(path, optargs, cb) {
DropboxClient.prototype.getThumbnail = function(path, optargs, cb) {
if (typeof optargs == 'function') cb = optargs, optargs = {};
path = escapePath(path);
- this.oauth.get(CONTENT_API_URI + '/thumbnails/dropbox/' + path +
+ this.oauth.get(CONTENT_API_URI + '/thumbnails/dropbox/' + path + '?' +
stringifyParams(optargs)
, optargs.token || this.access_token
, optargs.secret || this.access_token_secret

0 comments on commit 5c1329a

Please sign in to comment.