News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
A question on retrieving call logs using the API
Tags: sdk
Jul 21, 2015 at 3:48pm   •   2 replies  •  0 likes
ak

We have recently added our call records to the sandbox and are now trying to retrieve the call logs via the API; however, I am getting the following result saying there are 0 records. Can you tell me if call logs are available via API as soon as they are created?



Thank you,



{
  "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/call-log?view=Simple&dateFrom=xxxx-xx-xxT00:00:00.000Z&page=1&perPage=100",
  "records" : [ ],
  "paging" : {
    "page" : 1,
    "perPage" : 100
  },
  "navigation" : {
    "firstPage" : {
      "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/call-log?view=Simple&dateFrom=xxxx-xx-xxT00:00:00.000Z&page=1&perPage=100"
    }
  }
}


--


Answer:

There is usually a delay of 30 seconds when you try to retrieve the call logs using the GET request. The service web populates all the call log information instantly but when you try to retreive this information through an API ( GET request ) :

/v1.0/account/{accountId}/extension/{extensionId}/call-log

due to this delay not all the active calls would be displayed. In order to retrieve all the active calls you could use the "Get Active Calls" API:

/v1.0/account/{accountId}/active-calls



2 Answers
answered on Jul 22, 2015 at 1:56pm  

We tried emulating the issue but we were able to populate the call logs. I would suggest you to try our API explorer :

http://ringcentral.github.io/api-explorer/


Kindly authenticate your sandbox credentials 

Get Token

and then try to retrieve the call logs using the API:

Get Call Log Records by Filter

 0
answered on Jul 22, 2015 at 6:38am  
Okay, so why are we not seeing call logs returned still?  According to your "Retrieving Call Logs" tutorial, https://developer.ringcentral.com/library/tutorials/get-call-log.html, I can use the following GET command after authentication to retrieve call logs. When I use this URI, I receive a 200 okay status, but no call logs using the following URI:
https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/call-log

That URI returns:

200 okay status:

{
uri: "https://platform.devtest.ringcentral.com/restapi/v1.0/account/131330004/extension/131330004/call-log?view=Simple&dateFrom=2015-07-15T00:00:00.000Z&page=1&perPage=100"
records: [
0]
paging: {
page: 1
perPage: 100
}
-

navigation: {
firstPage: {
uri: "https://platform.devtest.ringcentral.com/restapi/v1.0/account/131330004/extension/131330004/call-log?view=Simple&dateFrom=2015-07-15T00:00:00.000Z&page=1&perPage=100"
}
-

}
-

}

However, when I try and retrieve account extension information everything works fine and the Sandbox account information is returned properly using the following GET URI.
https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~

All call logs were added yesterday so I am not sure why I am unable to retrieve the information as documented in your Call Log tutorial.  Can you please help explain what the issue might be?

Thank you

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us