Skip to main content
The First Step
December 18, 2020
Question

How to Use PHP on Cpanel to get Call Logs From All Users

I've been researching on how to access the logs for RingCentral for a while now and I'm having a bit of trouble. Essentially, I want to use a file on our web server to call the API and fetch all the records for every user (not just the owner account that I have the credentials set up on). Afterwards, I plan to store them in our database but I don't think I'll have issues there. From the link below, and other alternatives I've tried (Zapier), it appears that I need the username, password, and extension to get all this information collectively. Is there a way to get this information without requiring all users' passwords?

https://developers.ringcentral.com/guide/voice/call-log/reading-call-log#php

2 replies

PhongVu
Community Manager
Community Manager
December 18, 2020

You need to login your app with an admin user and use the account call log API:

https://developers.ringcentral.com/api-reference/Call-Log/readCompanyCallLog

The First Step
December 18, 2020

Thank you for reaching out!

I think that page leads me to have more questions. What is the accountid and where can I find it in the ringCentral account? What is the serverURL for the getenv variable? Also, the 27th line shows login information where the password is still required, right?