From bdda6143e1b2ce07a0137bb82e7d20a404124230 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 3 Aug 2022 17:17:08 -0500 Subject: [PATCH] Send twitch eventsub requests Co-authored-by: sigonasr2 --- src/sig/client.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sig/client.java b/src/sig/client.java index d5f0154..577307b 100644 --- a/src/sig/client.java +++ b/src/sig/client.java @@ -81,12 +81,13 @@ public class client { HashMap transport = new HashMap<>(); condition.put("broadcaster_user_id","39404108"); transport.put("method","webhook"); - transport.put("callback","https://projectdivar.com/twitch/streamonline"); + transport.put("callback","https://projectdivar.com/twitch/streamoffline"); transport.put("secret",SECRET); - obj.put("type","stream.online"); + obj.put("type","stream.offline"); obj.put("version","1"); obj.put("condition",condition); obj.put("transport",transport); + //obj.put("challenge","testKey"); GETRequest res = new GETRequest("https://api.twitch.tv/helix/eventsub/subscriptions",30000,"Authorization","Bearer vk5jyguposazau2gc1e0kjktv5xc4y","Client-Id","otppg8l1x7xbrfnqex1np1qba47mzf"); System.out.println(((HttpResponse)res.run()).body()); /*