A REST API to generate reports for Charity Royale streamers
GET
/
(generates charity royale report for streamer)
name type data type description streamer required string path, specifies which streamerdata should be used to generate the report type required 'instagram' or 'twitter' path, specifies in which format the report should be generated wish optional string queryparam, specifies generation of a specific wish via wishSlug
http code content-type response 200
image/png
-
400
text/html
-
500
text/html
-
GET
/
(returns a dataset of active twitch streams)
name type data type description channels required string returns an array of livestreams that are currently streaming, format: https://dev.twitch.tv/docs/api/reference/#get-channel-information, if the livestream is not live it will not be in he response dataset
http code content-type response 200
application/json
-
500
text/html
-
curl -X GET http://localhost:6200/streams?channels=asdf1,asdf2,asdf3
see .env.example
curl -X POST \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=client_credentials" \ https://id.twitch.tv/oauth2/token
https://dev.twitch.tv/docs/api/reference/#get-users
docker build -t stats .
docker run -p 6200:6200 stats
docker-compose up --build
docker-compose up -d -p 6200:6200