Skip to content

Instantly share code, notes, and snippets.

@stefanbuck
Created March 20, 2014 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanbuck/9676259 to your computer and use it in GitHub Desktop.
Save stefanbuck/9676259 to your computer and use it in GitHub Desktop.
Get twitter favs with request in node.js
var oauth = {
consumer_key: config.twitter.clientID,
consumer_secret: config.twitter.clientSecret,
token: twitterUser.token,
token_secret: twitterUser.tokenSecret
};
var params = {
user_id: twitterUser.id,
count: 200
}
request({
oauth: oauth,
url: 'https://api.twitter.com/1.1/favorites/list.json?' + qs.stringify(params)
}, function (err, request, body) {
res.jsonp(body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment