Permalink
Browse files

allow custom access_tokens per request

  • Loading branch information...
1 parent 8443681 commit b98edcaf447b5c5d2c3f21ea06071706054fc43b @impronunciable committed Dec 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tuiter.js
View
@@ -86,7 +86,7 @@ var APIRequest = function(endpoint, params, callback) {
});
var req = request(endpoint.method, url)
- .sign(self.oa, self.access_token_key, self.access_token_secret)
+ .sign(self.oa, params.access_token_key || self.access_token_key, params.access_token_secret || self.access_token_secret)
.query(params)
.set('Accept', '*/*')
.set('User-Agent', 'Tuiter for node.js')

0 comments on commit b98edca

Please sign in to comment.