Callback not getting triggered #88

Closed
jgendr2 opened this Issue Feb 26, 2012 · 0 comments

Projects

None yet

1 participant

@jgendr2
jgendr2 commented Feb 26, 2012

I am able to get access_token and access_token_secret back from Twitter, but when I go to make a GET request to the rest api using the supplied get() method, my callback function is not being triggered.

Example:

function consumer() {
return new OAuth(
"https://api.twitter.com/oauth/request_token",
"https://api.twitter.com/oauth/access_token",
_twitterConsumerKey,
_twitterConsumerSecret,
"1.0A",
"http://1.1.1.1/auth/twitter/callback",
"HMAC-SHA1"
);
}

consumer().get("https://api.twitter.com/1/account/verify_credentials.json", req.session.oauthAccessToken, req.session.oauthAccessTokenSecret, function (error, data, response) {
res.send("Callback triggered.");
});

Any suggestions on where to go with this problem? Thanks in advance.

@jgendr2 jgendr2 closed this Feb 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment