Hey guys, I am very very new to Twitch’s API (so new in fact that it was in the last 5 hours that I became a dev, made an app, and set everything up) so I would very much appreciate some help from someone who knows what they are doing
I started by running the following command in CMD:
curl -X POST “https://api.twitch.tv/helix/chat/messages” -H “Authorization: Bearer ” -H “Client-Id: ” -H “Content-Type: application/json” -d “{"broadcaster_id": "", "sender_id": "", "message": "Hello, world! twitchdevHype"}”
(Obviously is just a substitute for what I actually put there, same for the )
Which gave me the error:
{“error”:“Unauthorized”,“status”:401,“message”:“The ID in sender_id must match the user ID found in the request’s OAuth token.”}
So I also tried running:
curl -X POST “https://api.twitch.tv/helix/chat/messages” -H “Authorization: Bearer ” -H “Client-Id: ” -H “Content-Type: application/json” -d “{"broadcaster_id": "", "sender_id": "", "message": "Hello, world! twitchdevHype"}”
Since it looked like I maybe should’ve used that instead, but yet I got this error again:
{“error”:“Unauthorized”,“status”:401,“message”:“The ID in sender_id must match the user ID found in the request’s OAuth token.”}
What am I doing wrong?? (I have terrible luck when it comes to APIs, please help me if you can )