X
- Go to the X Developer Dashboard.
- Create a project and an application.
- Add the environment variables below.
.env
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET=your_api_secret_key
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret
- Install Necessary Packages
Terminal
bun add twitter-api-v2