Anonymous
Anonymous

Reputation: 1

Twitch API (Events)

is there a possibility to enter multiple broadcaster_user_ids in a substription?

JsonObject requestBody = new JsonObject()
    .put("type", "stream.online")
    .put("version", "1")
    .put("condition", new JsonObject().put("broadcaster_user_id", BROADCASTER_ID))
    .put("transport", new JsonObject()
        .put("method", "webhook")
        .put("callback", CALLBACK_URL)
        .put("secret", "DEIN_GEHEIMNIS")
    );

I thought that this would work too with BROADCASTER_ID being an Array of strings, but that doesnt work.

(https://api.twitch.tv/helix/eventsub/subscriptions)

Upvotes: 0

Views: 18

Answers (0)

Related Questions