Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Haiku Ninja Backend API

Backend API for retrieving haiku from social media comments. The frontend project is here

Installation

Clone or download the git repository to your local development environment, then run

php composer.phar install

Configuration

  1. Rename the .env.example to .env.
  2. Add your app name, Google API key and a secret key to the .env file, add your app name.
  3. Point your web server to the public directory.

Usage

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').

License

This application is licensed under The MIT License (MIT). See the LICENSE file for more details.

About

API for the Haiku Ninja website. Fetches comments from YouTube and tries to convert them to haiku.

Topics

Resources

License

Packages

No packages published

Languages