Is there a way to only pull the latest tweet using ‘statuses/usertimeline’ (I am using twit npm)? I am trying to only look at the latest tweet from a particular user. Most the time it returns the latest tweet this user has made, but occasionally it returns older tweets instead of the most recent.
var twitParams =
{
exclude_replies: false,
count: 1,
screen_name: ‘********’
}
function go()
{
T.get(‘statuses/user_timeline’, twitParams, gotData);
setTimeout(go,1000);
}
function gotData(err, data, response)
{
console.log(data);
}
1 Like