Thank you @Dist, I was able to find examples of this in C#.
For instance, for me to send a request to the Root URL like is shown under the Requests section at https://dev.twitch.tv/docs/v5
The block of code that worked for me was as follows:
private const string TWITCH_ENDPOINT = “https://api.twitch.tv/kraken/”;
public void SendRequest() {
WWWForm form = new WWWForm();
Dictionary<string, string> headers = form.headers;
headers[“Accept”] = “application/vnd.twitchtv.v5+json”;
headers[“Authorization”] = “OAuth [My OAuth token without the brackets]”;
WWW request = new WWW(TWITCH_ENDPOINT, null, headers);
StartCoroutine(OnResponse(request));
}
private IEnumerator OnResponse(WWW req) {
yield return req;
print(req.text);
}
That works fine, and the response I got back is in the same format as the documentation shows. However, when I modified this to get the room UUID, adding in the Client-ID header, and changing the endpoint string to ‘https://api.twitch.tv/kraken/chat/thatchcastle/rooms’ the response is {"_total":0,“rooms”:[]}.
I made an extra room while testing this, so I expected to see either one or two rooms in the response, any thoughts on why it’s coming back zero?