Twitch API using Javascript

I tried to use the Twitch API with Javascript. I tried this:

const header = {
    headers: {
        'Client-ID': client_id
fetch("", header).then(response => console.log(response))

but I only get this error
Can someone please help me?

PS: Sorry for my bad English.

All of Helix requires an oAuth token, you didn’t specify one

Authentication is documented here

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.