Hi, i try to get user info with this code :
let fetchLink = "https://api.twitch.tv/kraken/user"
fetch(fetchLink, {
mode: 'no-cors',
method: 'get',
headers: new Headers({
'Client-ID': 'my client id',
'Authorization': 'OAuth my token with user_read scope'
})
}).then(function (response){
console.log(response);
return response.json();
}).then(data => {
console.log(data);
})
}
And i got :
{“error”:“Bad Request”,“status”:400,“message”:“No client id specified”}
I don’t know why because i specify the cliend id
Thx for help