From 2a1e0fc6f95bce9301b21fd31cf39e1abea9aa6f Mon Sep 17 00:00:00 2001 From: SReject Date: Mon, 26 Sep 2016 10:12:37 -0400 Subject: [PATCH] Now required Client-ID fix Now sends a Client-ID when making http requests to twitch --- mTwitch.StateToTopic.mrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mTwitch.StateToTopic.mrc b/mTwitch.StateToTopic.mrc index 243d569..6afd8f1 100644 --- a/mTwitch.StateToTopic.mrc +++ b/mTwitch.StateToTopic.mrc @@ -24,7 +24,9 @@ alias mTwitch.StateToTopic { while ($hget(mTwitch.StateToTopic.Streams, %x).item) { %streams = $addtok(%streams, $mid($v1, 2-), 44) if (!$calc($numtok(%streams, 44) % 10) || (%streams && %x == $hget(mTwitch.StateToTopic.Streams, 0).item)) { - JSONOpen -u mTwitch.StateToTopic https://api.twitch.tv/kraken/streams?channel= $+ %streams + JSONOpen -uw mTwitch.StateToTopic https://api.twitch.tv/kraken/streams?channel= $+ %streams + JSONUrlHeader mTwitch.StateToTopic Client-ID e8e68mu4x2sxsewuw6w82wpfuyprrdx + JSONUrlGet mTwitch.StateToTopic if (!$JSONError) { %len = $JSON(mTwitch.StateToTopic, streams, length) %y = 0