Fixes Issue 16. Now uses POST to get hold of the access tokens as per the specification.

Tested against Twitter/FourSquare and Yahoo.
This commit is contained in:
ciaranj
2010-12-05 22:58:17 +00:00
parent f5beadcee4
commit b3175f8b21
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ exports.OAuth.prototype.getOAuthAccessToken= function(oauth_token, oauth_token_s
extraParams.oauth_verifier= oauth_verifier;
}
this._performSecureRequest( oauth_token, oauth_token_secret, "GET", this._accessUrl, extraParams, null, null, function(error, data, response) {
this._performSecureRequest( oauth_token, oauth_token_secret, "POST", this._accessUrl, extraParams, null, null, function(error, data, response) {
if( error ) callback(error);
else {
var results= querystring.parse( data );