Skip to main content
Question

Not finding legs in call logs

  • September 28, 2018
  • 1 reply
  • 287 views

I have the following code for extracting call log records from the api:


RingCentral.ExtensionCallLogResponse response;

mRecordList = new List<RingCentral.CallLogRecord>();


int pageNum = 0;


RingCentral.RestClient rc = new RingCentral.RestClient("fakeKey", "fakeSecret", true);


await rc.Authorize("fakeNumber", "fakeExt", "fakePassword");


do

{


pageNum++;

response = await rc.Restapi().Account("~").CallLog().List(new { dateFrom = fromDate, dateTo = toDate, page = pageNum.ToString(), perPage = recordsPerPage, detailed = "true" });

mRecordList.AddRange(response.records);

System.Threading.Thread.Sleep(7000);

} while (response.navigation.nextPage != null);


This returns 6391 records, but none of them have any leg info. Now I know it's possible that they don't have any leg info, but I just want to make sure the code I have above will return leg info.


Thanks!

1 reply

  • Author
  • Participating Frequently
  • 8 replies
  • September 28, 2018
Aha!  Found the problem.  detailed = "true" should be view = "Detailed" - and it's important that Detailed be capitalized.

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