ok so i’m getting a bit further.
I finally figured out it was a damn typo in the oauth key… but i’m now getting a “length required” error which as you can see is being put into the headers, ideas?
$headers = {
‘Accept’ => ‘application/vnd.twitchtv.v3+json’,
‘Content_Type’ => ‘application/json’,
‘Content_Length’ => 63,
‘Authorization’ => ‘OAuth mykey’
};
$jsondata = ‘{“channel”:[{“game”:null,“status”:“THIS+IS+A+TEST”,“delay”:0}]}’;
$server_reply = {
‘error’ => ‘Internal Server Error’,
‘message’ => undef,
‘status’ => 500
};
(and in the console)
curl: (3) [globbing] bad range in column 13
411 Length Required411 Length Required
nginx curl: (3) [globbing] bad range in column 13 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 174 100 174 0 0 342 0 --:--:-- --:--:-- --:--:-- 343