Here’s what I’m working with.
function fetchChatter()
{
fetch('https://api.twitch.tv/helix/streams?user_id=' + chatterUID, {
headers: {
'Client-ID': process.env.Client_ID,
'Authorization': 'Bearer ' + process.env.OAUTH_TOKEN
}
})
.then(function(resp)
{
console.log(resp.json());
//return resp.json();
})