Skip to content

Commit

Permalink
Now required Client-ID fix
Browse files Browse the repository at this point in the history
Now sends a Client-ID when making http requests to twitch
  • Loading branch information
SReject committed Sep 26, 2016
1 parent ceeba1d commit 2a1e0fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mTwitch.StateToTopic.mrc
Expand Up @@ -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
Expand Down

0 comments on commit 2a1e0fc

Please sign in to comment.