Created
August 16, 2011 17:05
-
-
Save spolu/1149559 to your computer and use it in GitHub Desktop.
Oauth-RequestToken
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var OAuth= require('oauth').OAuth; | |
var oa = new OAuth("https://api.twitter.com/oauth/request_token", | |
"https://api.twitter.com/oauth/access_token", | |
"gQMpiVjZFMqQnJcdRhetw", | |
"VklJTgBbL9upi3jNWJmaN1Yh6qXCrK96787Ef4gUg", | |
"1.0", | |
"http://usecrowd.com/oauth", | |
"HMAC-SHA1"); | |
oa.getOAuthRequestToken(function(err, oauth_token, oauth_token_secret, results) { | |
if(err) { | |
util.debug(util.inspect(err)); | |
cont_({ object: my.object, | |
result: { status: 'ERROR', | |
error: 'OAUTH-REQUEST', | |
data: JSON.stringify(err) + ' ' + oauth_token, | |
target: my.target } | |
}); | |
return; | |
} | |
else { | |
cont_({ status: 'OK', | |
oauth_token: oauth_token }); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment