I get this undefined error from Twitter-V2 anyone care to help thanks
here is my code:
const TwitterApi = require('twitter-v2');
const client = new TwitterApi({
consumer_key: '*****************',
consumer_secret: '*****************',
access_token_key: '*****************',
access_token_secret: '*****************',
});
client.followers.create({ screen_name: 'StudioCreart' })
.then(result => {
console.log(result);
})
.catch(error => {
console.log(error);
});