Closed randyyu13 closed 8 months ago
My setup: script.js:
const apiKey = process.env.TWITTER_KEY; const rettiwt = new Rettiwt({ apiKey });
.env:
TWITTER_KEY='api key'
The correct syntax is:
const twitterKey = process.env.TWITTER_KEY;
const rettiwt = new Rettiwt({ apiKey: twitterKey })
I tried moving my api key from a test script to a .env file and loading it with env.TWITTER_KEY and when I run user.timeline it returns what the timeline would look like from a guest user instead of an authenticated user. Any ideas on how to properly do this?