[doc] misleading
Describe the bug
the doc shows: const twitterClient = new TwitterApi('<YOUR_APP_USER_TOKEN>');
it's misleading
To Reproduce N/A
Expected behavior
const twitterClient = new TwitterApi({
appKey: process.env.TWITTER_CONSUMER_API_KEY,
appSecret: process.env.TWITTER_CONSUMER_API_SECRET,
accessToken: process.env.TWITTER_ACCESS_TOKEN,
accessSecret: process.env.TWITTER_ACCESS_SECRET,
});
this one works I hope the doc can be updated
Version N/A
Additional context N/A
In Twitter Api V2, you have the ability to generate a single "bearer token", so you can use both ways
In Twitter Api V2, you have the ability to generate a single "bearer token", so you can use both ways
I tried to use the bearer token generated here, but it did not work.
would you point me the direction where i can get the correct bearer token? Thank you very much!
When you say it doesn't work, can you clarify what happens/which error? It is supposed to work, and used to work at least.