Skip to main content
Question

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

  • December 18, 2020
  • 2 replies
  • 747 views

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
Forum|alt.badge.img
  • Community Manager
  • 2423 replies
  • 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


  • Author
  • New Participant
  • 1 reply
  • 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?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings