Hi
Since this working my access_token is no more working, i have :
{"error":"Unauthorized","status":401,"message":"Must provide a valid Client-ID or OAuth token"}
I tried to regen a new Bearer Token
$ curl -X POST "https://id.twitch.tv/oauth2/token?client_id=MY_ID&client_secret=MY_SECRET&grant_type=client_credentials&scope=clips:edit"
it give me :
{"access_token":"TOKEN","expires_in":5651106,"scope":["clips:edit"],"token_type":"bearer"}
For now, everything is OK
But then :
$url = 'https://api.twitch.tv/helix/clips?broadcaster_id=121445595';
$ch = curl_init();
$headers=['Authorization: Bearer TOKEN'];
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
var_dump($response);
it give me :
{"error":"Unauthorized","status":401,"message":"Missing clips:edit scope"}
but as we saw before, scope is OK.
Do you have clue to help me please ?