NOTE: This is just the sample code to interact with twitter apis. There is chance for lot of improvment. Ex. In-house nodejs based rest apis can be developed to do all the calls individually and these apis can be exposed to frontend. Thus, verification for following, retweeting etc.. all can be done using nice UI.
- Clone the repo
- run
npm install
- Create a
.env
file and addBEARER_TOKEN
(provided by twitter api) - run
node twitter_apis.js
- find sample responsed for these api calls inside
responsed.js
file.