I am trying to get the last 3 tweets from my twitter account. I am running express.js with node.js and have installed ntwitter. The app has been authenticated and I entered in the correct security tokens. When I test to see if the app authenticated I get a success response but then when I send a request for the tweets I get a null response. Perhaps ntwitter is installed in the wrong directory or I could be issuing the request wrong.
Code:
twit
.verifyCredentials(function (err, data) {
console.log("Verifying Credentials...");
if(err)
console.log("Verification failed : " + err);
else
console.log("Verification succeeded");
});
twit.get('/statuses/user_timeline.json', { count: 1 }, function(data) {
console.log(util.inspect(data));
});
Console:
Express server listening on port ...:
Verifying Credentials...
Verification succeeded
null
Any and all help would be appreciated. Thank you.