Is it possible to set the channel mature content via api?
eg (php):
$twitch_curlhandler = curl_init();
curl_setopt($twitch_curlhandler, CURLOPT_URL, $twitch_url);
curl_setopt($twitch_curlhandler, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($twitch_curlhandler, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($twitch_curlhandler, CURLOPT_POST, 1);
$twitch_fields = array(
'channel[status]' => $title,
'channel[game]' => $game,
'channel[mature]' => $mature
);
curl_setopt($twitch_curlhandler, CURLOPT_POSTFIELDS, $twitch_fields);
curl_setopt($twitch_curlhandler, CURLOPT_HTTPHEADER, array('Authorization: OAuth '.$twitch_token));
$twitch_output = curl_exec($twitch_curlhandler);
$twitch_response = json_decode($twitch_output, true);
this would be great, the code above doesn’t work
thanks in advance
Felix