npm init
npm i -S oauth
npm i -S dotenv (input your access token and secret key from twitter put into file .env)
routes |
HTTP |
Description |
/twitter/timeline |
GET |
User can see all their timeline |
/twitter/post |
POST |
Posting something new. Input on x-www-form-urlencoded body (key: your status update) |
/twitter/search |
GET |
input params (key: value) e.g (key: hacktiv8). The result will be show all about hacktiv8. |
/twitter/followers |
GET |
User can see all their followers |
.
├── README.md
├── controllers
│ └── twitterController.js
├── routes
│ └── twitter.js
│ └── index.js
├── package.json
├── app.js
├── .env.template