I keep getting Must provide a valid Client-ID or OAuth token

I’m having a tough time with this api to be honest. When I run the sample code with ‘curl’ in my terminal i get:
I changed client ID to my client ID for my app.

curl: (6) Could not resolve host: MYCLIENTID'
curl: (6) Could not resolve host: \
curl: (1) Protocol "'https" not supported or disabled in libcurl

And when I try to make a basic request through the browser I get “Must provide a valid Client-ID or OAuth token”
It seems like no matter what I try I can’t even get past the first hurdle of making a basic request. Can anyone help me?

Sounds like you malformed the curl command somehow

This could also indicate that cURL is not configured right or WAAAAAAY outta date on your system.

I google your error: curl - Protocol "https" not supported or disabled in libcurl - Ask Ubuntu

What the actual command you are running? Since it shouldn’t say “MYCLIENTID” as that should have your actual clientID in it and now the words “MYCLIENTID” unless you substituted that for the purpose of posting to the forums. (ClientID’s are public so it’s “ok” to release them)

I actually figured it out and it was not installed correctly. When I ran the command from Git bash it worked no problem.

Another question if you don’t mind; is the client-id header specific to the twitch api? I don’t think I’ve ever heard of it before I started today.

Many API’s use a ClientID

Various API’s have various way’s of providing the ClientID.

Header is one of them another is Query String.

In my experience more API’s prefer an Authorisation Token over a ClientID for most requests,

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