Created
June 3, 2010 18:39
-
-
Save mape/424281 to your computer and use it in GitHub Desktop.
This file contains 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 sys = require('sys'); | |
var OAuth = require('oauth').OAuth; | |
var oauthToken = 'IcanHazToken'; | |
var oauthSecret = 'ScoobyDoo'; | |
var oa = new OAuth('http://twitter.com/oauth/request_token', 'http://twitter.com/oauth/access_token', '************', '******************', '1.0', 'HMAC-SHA1'); | |
var url = 'http://api.twitter.com/1/users/show.json?screen_name=mape'; | |
oa.getProtectedResource(url, 'GET', oauthToken, oauthSecret, function (error, data) | |
{ | |
var profileData = JSON.parse(data); | |
sys.puts(sys.inspect(profileData)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment