List recent Twitch streams
/api/twitch/streamsThe channel's most recent streams as the poll saw them, newest first, each with the calendar event it is linked to. For choosing a stream to link to an event.
Needs the ManageCalendar permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/twitch/streams"[ { "id": "string", "title": null, "category": null, "viewers": 0, "peakViewers": 0, "startedAt": "2019-08-24T14:15:22Z", "endedAt": null, "eventId": null, "eventTitle": null, "link": null }]Get whether the channel is live on Twitch GET
What the Live and Now pages' Live on Twitch card shows: `on` is false when the poll is off or Twitch is not set up, and `stream` is null when the channel is not live. The card redraws on the live stream's `modbot.twitch.` facts. Needs the `ViewLiveInstances` permission.
Link a Twitch stream to a calendar event PUT
Sets the calendar event a stream is shown under, or clears it with a null `eventId`. Modbot links a stream to the one event on when it started and leaves it unlinked when events overlap; a person's choice here is never changed by the poll. Needs the `ManageCalendar` permission.