I'm performing a GET to /restapi/v1.0/account/{accountId}/recording/598205453028/content
and receiving a
* The requested URL returned error: 403 Forbidden
According to https://developer.ringcentral.com/api-docs/latest/index.html#!#AccessingCallLogs.html
GET/restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log
is forbidden but I'm retrieving /account/{accountId}/recording/{sessionId}/content
Is anyone else trying to download the Call Log mp3s?
Since you are using an unsupported access method, it can be removed at any time.
Dear eramon:
Currently, call recording access via our API is enabled on the sandbox for testing purposes. We are intending to release that feature later in the fall.
You are welcome to write to us and explain your use case needs by emailing the developer support team or opening a support ticket and include 'feature request - call recordings' in your subject line.
Thanks,
Teo
$ch = curl_init ($url);
if($login)
{
$poststring = 'LoginName='.$Username.
'&country=2'.
'&Password='.$Password;
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $poststring);
}
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7");
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'RC_Cookie.txt');
curl_setopt ($ch, CURLOPT_COOKIEFILE, 'RC_Cookie.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$data = curl_exec ($ch);
curl_close($ch);
return $data;
}
$Username = '1713XXXXXXX';
$Password = 'XXX';
getURL('https://service.ringcentral.com/login/main.asp',true);
file_put_contents('data.mp3',getURL('https://service.ringcentral.com/mobile/media?cmd=downloadMessage&msgid='.$MessageID));
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder