Integrations

Test a Twitch reaction

POST/api/integrations/twitch/test
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Runs that event's reaction, as if it happened.

Request body application/json

kindstringrequired
One of "follow" "subscribe" "resub" "gift" "raid" "cheer"

Responses

200OKapplication/json
oktruerequired
400The body isn't valid JSON, or a value is wrong.application/json
errorstringrequired

What went wrong, in a sentence for people.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/integrations/twitch/test' \
  -H 'content-type: application/json' \
  -d '{
  "kind": "raid"
}'
Response
{
  "ok": true
}
Edit on GitHub