Category : agora.io

i am getting this response while getting resource id: {"code":2,"reason":"response detail error:2,errMsg:post method api body check failed!"} $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.agora.io/v1/apps/".$wo[‘config’][‘agora_app_id’]."/cloud_recording/acquire"); curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Authorization: Basic ‘.base64_encode($wo[‘config’][‘agora_customer_id’].":".$wo[‘config’][‘agora_customer_certificate’]),’Content-Type: application/json;charset=utf-8′)); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, ‘POST’); curl_setopt($ch, CURLOPT_POSTFIELDS,'{ "cname": "’.$cname.’", "uid": "’.$uid.’", "clientRequest":{ } }’); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $db->insert("ady_tbl", ["error" => $post_id, "where_error" => json_encode($ch)]); $response = curl_exec($ch); curl_close($ch); ..

Read more

I have a problem: I get DYNAMIC_USE_STATIC_KEY in console trying to establish a connection. 2 Tokens which are generated by an Agora Console and rtcTokenBuilder are different, the second is longer, and using it occurs this error. With console Token is everything ok. Token examples: Console: 0068bedd2631cf24edea47479b64ad219ceIAAYXDdhxjKQyDWQEoqK0qEiAYo+dLSyd/YNAaflVD4PJO/ZQc0AAAAAEACMMKzfQDg1YAEAAQA/ODVg rtcTokenBuilder: 0068bedd2631cf24edea47479b64ad219ceIAADpmWghbJIToZQMC9YrQjBhtFgpdZS4tIlOkXTjk+LKe/ZQc0h39v0IgCa0wUAjQY2YAQAAQA5tjRgAwA5tjRgAgA5tjRgBAA5tjRg rtcTokenBuilder Code snippet: $appID = "8*************************"; ..

Read more