Starts a mock server implementing the Twitch API based on twitch-cli. Includes an optional webhook.
964
Repo: https://gitlab.com/winterberry/twitch-mock-api/
Starts a mock server implementing the Twitch API based on twitch-cli.
More info on twitch-cli: https://dev.twitch.tv/docs/cli
Optionally, this container also runs a webhook through which commands can be received. It will be enabled if a valid configuration is found in /hook/hook.yaml.
The webhook is based on this program: https://github.com/adnanh/webhook
To start the container:
docker run -d \
-v $(pwd)/sample-hook:/hook \ # Mount the hook directory
-p 8080:8080 \ # Listen on port 8080: Twitch API Server
-p 9000:9000 \ # Listen on port 9000: Webhook Server
snowpoke93/twitch-mock-api
To call verify-subscription on the webhook (assuming the sample hook is loaded):
curl "http://localhost:9000/hooks/verify-subscription?forward-address=https://example.com&secret=test-secret"
Content type
Image
Digest
Size
41.6 MB
Last updated
over 4 years ago
docker pull snowpoke93/twitch-mock-api