Re-ordered the arguments on the getresource thingy.

This commit is contained in:
ciaranj
2010-04-19 22:34:30 +01:00
parent 6113ed72af
commit 313f65ed0d
2 changed files with 2 additions and 3 deletions

View File

@ -174,7 +174,7 @@ exports.OAuth.prototype.getOauthAccessToken= function(oauth_token, oauth_token_s
request.end();
}
exports.OAuth.prototype.getProtectedResource= function(oauth_token, oauth_token_secret, url, responseListener) {
exports.OAuth.prototype.getProtectedResource= function(url, method, oauth_token, oauth_token_secret, responseListener) {
var oauthParameters= {
"oauth_timestamp": this._getTimestamp(),
"oauth_nonce": this._getNonce(32),
@ -195,7 +195,6 @@ exports.OAuth.prototype.getProtectedResource= function(oauth_token, oauth_token_
}
}
var method= "GET";
var sig= this._getSignature( method, url, this._normaliseRequestParams(oauthParameters), oauth_token_secret);
var orderedParameters= this._sortRequestParams( oauthParameters );