I’m trying to consume wowza rest api using php with curl following is my code
$url = 'https://api-sandbox.cloud.wowza.com/api/v1.3/live_streams';
$headers = array(
"wsc-access-key:myaccessKy;
wsc-api-key:myapikey");
$cr = curl_init($url);
curl_setopt($cr,CURLOPT_POST,1);
curl_setopt($cr, CURLOPT_HTTPHEADER,$headers);
$res = curl_exec($cr);
curl_close($cr);
dd($res);
when i dd the response i get this
{“meta”:{“status”:401,“code”:“ERR-401-NoApiKey”,“title”:“No Api Key Error”,“message”:“No API key sent in header.”,“description”:""}}
What could be the reason,
Thanks.