@Aurelia Just checking in as I have not fixed this.
I abandoned Postman and made a server. I’m using the twitter NPM. I copied the code from the page and it comes back as
ERROR [ { code: 32, message: 'Could not authenticate you.' } ]
var Twitter = require('twitter');
const client = new Twitter({
consumer_key: process.env.CONSUMER_KEY,
consumer_secret: process.env.CONSUMER_SECRET,
access_token_key: process.env.ACCESS_TOKEN_KEY,
access_token_secret: process.env.ACCESS_TOKEN_SECRET
})
var params = {screen_name: 'nodejs'};
client.get('statuses/user_timeline', params, function(error, tweets, response) {
if (!error) {
console.log(tweets);
}
});
I triple checked my credentials and they match and are not null or undefined. What am I doing wrong?