I've always wondered this, so figured I'd ask here.
How should I go about posting this kind of information? Is is best to do something like this via javascript?
{"game_id":"33214", "title":"there are helicopters in the game? REASON TO PLAY FORTNITE found", "broadcaster_language":"en"}
This is the example given. Seeing as Construct always seems to struggle whenever a " appears, I immediately knew this was going to be a problem.
Does anyone have any idea how I should go about posting this? It's odd that it's asking for a PATCH, but then again, I don't know anything about this kind of thing :D
Try sending this instead in the Data field:
URLEncode("game_id=33214&title=there are helicopters in the game? REASON TO PLAY FORTNITE found@broadcaster_language=en")
Also, I never heard about "PATCH" method, try "POST"
(Edit - Apparently Scirra hates my at sign)
ughrgf@broadcasterlanguage?
https://dev.twitch.tv/docs/api/reference#modify-channel-information
Twitch specifically say it must be PATCH rather than POST (as do other people who have apparently gotten this working) :(
I've never had any luck sending DATA through Construct. I tend to send things simply up updating the URL.
Well, the method I posted always worked for me.
Data: "key=value&anotherkey=anothervalue&....."
And wrap the whole string in URLEncode()
Just to clarify, is it the at symbol of the and symbol?
The first example showed both, and the second showed just the at.
Ah, sorry, the 'and' symbol - &
Develop games in your browser. Powerful, performant & highly capable.
Sorry for not responding, but that worked! Thanks :)