Skip to main content
The First Step
June 2, 2017
Question

Update User Queue Agent Presence

I am trying to update the dndStatus for end users if they are not in the Q. So far I have this


$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "https://platform.ringcentral.com/restapi/v1.0/account/" . $RCaccountId . "/extension/" . $callerID . "/presence");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $FINALHEADERS);
curl_setopt($curl_handle, CURLOPT_PUT, true);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, '{"dndStatus": "TakeAllCalls"}');

$buffer = curl_exec($curl_handle);



The response I get is

Fatal error: Maximum execution time of 30 seconds exceeded


Any help will be much appreciated.


Thank You

Andy


11 replies

andy-haasThe First StepAuthor
The First Step
June 3, 2017
On the API how do I log in as an admin. Currently when I get my token I log in as the main account which is a Super Admin already.

Thank You
Andy