A simple api for getting data from twitter. Made with Lumen framework.
You should have a Twitter Developer Account
- Clone the repository with git clone
- Copy .env.example file to .env and edit database credentials there
- Run composer install
- Choose a random String and replace them to APP_KEY in .env
- Replace Twitter_Api_Key in .env
- Replace Twitter_Secret_Key in .env
- Replace Twitter_Bearer_Token in .env
- Replace Twitter_ACCESS_TOKEN in .env
- Replace TWITTER_ACCESS_TOKEN_SECRET in .env
- Run php -S 127.0.0.1:8000 -t public
Route | Method | Value |
---|---|---|
/api/v1/home-timeline | Get | home-timeline.json |
/api/v2/tweet/:id | Get | Single Tweet (id + text) |
/api/v2/tweets/:ids | Get | Multiple Tweet (id + text + author info) |
This list will be updated! :)