question

kakar avatar image
kakar asked NuCare Admin commented

VIew call login for all users from app using rest api

Hello all,
i have created the app from developers.ringcentral.com, now i want to view all users call logs using the rest api but i am getting only one extension's logs

rest api
1 |3000

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

Yatin Gera avatar image
Yatin Gera answered NuCare Admin commented

Have you tried this API?
https://developers.ringcentral.com/api-reference/Call-Log/readCompanyCallLog
This should give you call logs for all the numbers for the account

Make sure your app has the "ReadCallLog" permission.
Make sure your user (the credentials you are using to access the API) has the "ReadCompanyCallLog" permission

Hope this is helpful
Cheers!

1 comment
1 |3000

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

That is not a solution, I did it already, but it keeps an error.

I allowed ReadCallLog permission to my app, but I am getting an error below when I test api using Postman.

{ "errorCode" : "InsufficientPermissions" , "message" : "In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user." , "errors" : [ { "errorCode" : "CMN-408" , "message" : "In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user." , "permissionsName" : "ReadCompanyCallLog" } ], "permissionsName" : "ReadCompanyCallLog" }


Please see this.

https://prnt.sc/UDJ-YWFmJrEK


I am not clear why it keeps an error above.

0 Likes 0 ·
NuCare Admin avatar image
NuCare Admin answered NuCare Admin commented

Hi Yatin.

Nice to meet you, yes, I allowed ReadCallLog permission to my app, but I am getting an error below when I test api using Postman.

{ "errorCode" : "InsufficientPermissions" , "message" : "In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user." , "errors" : [ { "errorCode" : "CMN-408" , "message" : "In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user." , "permissionsName" : "ReadCompanyCallLog" } ], "permissionsName" : "ReadCompanyCallLog" }


Please see this.

https://prnt.sc/UDJ-YWFmJrEK


I am not clear why it keeps an error above.

Please let me know. Please help me!!

Thanks.

2 comments
1 |3000

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

Hello Joshi.

Thanks for your reply.

But I am not clear on how to allow permissions. I thought, I already allowed ReadCallLog permission.

Please see this. It wants me to allow ReadCallLog permission for my app. so I did it.

https://prnt.sc/nbc-RN5AVNL_

https://prnt.sc/dKj8qOJL9bKL

Please let me know your opinion.

Thanks.

0 Likes 0 ·