Thank you BarryCarlyon
It work now
axios.request({
url: 'https://api.twitch.tv/helix/users?login=sardoche&login=teuf',
method: 'get',
headers: {
'Client-Id': '<secret>',
'Authorization': 'Bearer <secret>'
}
}).then(function (data) {
console.log(data.data.data[0].profile_image_url, data.data.data[1].profile_image_url);
});
get result:
https://static-cdn.jtvnw.net/jtv_user_pictures/2b1b9e13-5b9f-41ee-b375-54d3c6491bb2-profile_image-300x300.png https://static-cdn.jtvnw.net/jtv_user_pictures/3ebda7f8-ab67-4197-841a-9b8d58595c1d-profile_image-300x300.png
Do you have suggestion to detect when viewers send bits ?