From 76a77cffbf304e42737bc85d22c093eb44b93727 Mon Sep 17 00:00:00 2001 From: Thomas Saquet Date: Fri, 27 Aug 2021 15:05:37 +0200 Subject: [PATCH] fixes Request Channel Id function Quotes added to select only the channel we want --- EventSub-Twitch-Flow.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EventSub-Twitch-Flow.json b/EventSub-Twitch-Flow.json index 6968c2a..296a2f2 100644 --- a/EventSub-Twitch-Flow.json +++ b/EventSub-Twitch-Flow.json @@ -1540,7 +1540,7 @@ "z": "7c36e6b244586b90", "g": "ebb10d640f7ac801", "name": "Request channel ID", - "func": "msg = {\n \"headers\" : {\n \"Client-ID\" : flow.get('ClientID'),\n \"Authorization\" : flow.get('AppToken'),\n \"Accept\" : \"application/vnd.twitchtv.v5+json\"\n },\n \"url\": \"https://api.twitch.tv/helix/search/channels?query=\" + flow.get(\"Channel\")\n}\nreturn msg;", + "func": "msg = {\n \"headers\" : {\n \"Client-ID\" : flow.get('ClientID'),\n \"Authorization\" : flow.get('AppToken'),\n \"Accept\" : \"application/vnd.twitchtv.v5+json\"\n },\n \"url\": 'https://api.twitch.tv/helix/search/channels?query=\"' + flow.get(\"Channel\") + '\"'\n}\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", @@ -4945,4 +4945,4 @@ ] ] } -] \ No newline at end of file +]