Re-ordered the arguments on the getresource thingy.
This commit is contained in:
@ -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 );
|
||||
|
Reference in New Issue
Block a user