Top Game endpoint

I am trying to get the top 20 games endpoint but i keep getting an error stating no parameter found for ‘X’. should i be doing something different?

The below shows what i am sending except without the actual app access token and client id.

curl -X GET ‘https://api.twitch.tv/helix/games/top
-H ‘Authorization: Bearer xxxxxxxx’
-H ‘Client-Id: xxxxxxxxxxx’

You on Windows or mac?

On Windows curl is not curl by InvokeWebRequest.

So the parameters are wrong.

You an try the TwitchCLI for testing the API instead of cURL which may help