Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.getMentions = function(req, res, callback){
callback = callback || analyzeTweets;
oauth.get(
'https://api.twitter.com/1.1/statuses/mentions_timeline.json?count=800',
process.env.ACCESS_TOKEN_KEY,
process.env.ACCESS_TOKEN_SECRET,
function (e, data, res){
if (e) return console.error(e);
callback(data);
// res.send(200,'tweets obtained!')
});
}