question

Chong Li avatar image
Chong Li asked ·

Can not see records once App graduate from sandbox

$rcsdk = new RingCentral\SDK\SDK( $cid, $secret, $surl );

$platform = $rcsdk->platform();

$platform->login( $RINGCENTRAL_USERNAME, $RINGCENTRAL_EXTENSION, $RINGCENTRAL_PASSWORD );

// var_dump($platform);

$queryParams = array(

'type' => 'Voice',

'withRecording' => 'True',

'dateTo' => '2020-05-21',

'dateFrom' => '2020-05-20',

);

$callLogRecords = $platform->get('/account/~/extension/~/call-log', $queryParams)->json();

var_dump($callLogRecords);

This code works in sandbox, I was able to see the records Object if there's is any.

once the App graduated and I updated the credential info, however when I call this code the record Object is blank and there's data in the call log. Can anyone shed some light as to whats going on?

after app graduation
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

If there is no error and the response is blank (empty array) then it means you don't have any call with call recording at all during that period of time.

If you are sure you have some call history, you can verify if the code works well by make the date range wider (e.g. dateFrom = 2020-01-20 ), or remove the "withRecording" to read all call log w/o call recording. BTW, the "withRecording" is deprecated and you should use the "recordingType" instead.

1 comment Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hmm.. I see thank you. It appears the code works on calls logs when it is recorded by the actual phone itself. If it's call logs from a call forward it doesn't retrieve those logs even though it can be found in the call log report

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.