/mahertw-api

Send and Receive data with twitter api

Primary LanguagePHPMIT LicenseMIT

MaherTW - Easy Twitter API!

A simple api for getting data from twitter. Made with Lumen framework.

You should have a Twitter Developer Account

Before Start

  • 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

How To Use?

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! :)