hello my friend!
I test your code and works well but i get many information about user but not email!
I used helix like you
fetch(
'https://api.twitch.tv/helix/users/?id=' + channel_id,
{
method: 'GET',
headers: helix,
}
)
but i get public data and i need email, i saw that you can get app acces token how to get
{
client_id: config.client_id,
client_secret: config.client_secret,
grant_type: 'client_credentials'
}
the flow is:
get user Id with helix , get app acces token with https://id.twitch.tv/oauth2/token (i dont know if that show a login popo up) and with this result token i will try to get private data email?
thanks