Backend API for retrieving haiku from social media comments. The frontend project is here
Clone or download the git repository to your local development environment, then run
php composer.phar install
- Rename the
.env.example
to.env
. - Add your app name, Google API key and a secret key to the
.env
file, add your app name. - Point your web server to the public directory.
Currently, the API only has one route:
GET https://example.com/comments
The route accepts the following parameters:
id A YouTube video ID
nextPageToken Optional token from the YouTube API. One is provided in the response if your YouTube video has more than 100 comments.
type The social media site to access (currently only accepts 'youtube').
This application is licensed under The MIT License (MIT). See the LICENSE file for more details.