Start a new topic

API Call to get total inbound and outbound calls for today

Hi,


I need to do an API call for the total number of inbound and outbound calls for a date - effectively for the current day.


Presumably I need to use GetOutboundCallingHistory and GetInboundCallingHistory?


How must the call be formatted so that I can get this value for the sum of all extensions for the current date?


Assuming I use a date range, does it return newest to oldest, or the other way around? 

1 Comment

Hi David, long time!


Your XML should be formatted as below:


Outbound:

<?xml version="1.0" encoding="UTF-8"?>

<XML>

<Tenant>

    <Name>Euphoria</Name>

    <Auth>Auth-Key</Auth>

</Tenant>

<ActionName>GetOutboundCallingHistory</ActionName>

<pageSize>100</pageSize>

<startAt>0</startAt>

<startDate>2017-09-07</startDate>

<endDate>2017-09-07</endDate>

</XML>


Inbound: 

<?xml version="1.0" encoding="UTF-8"?>

<XML>

<Tenant>

    <Name>Euphoria</Name>

    <Auth>Auth-Key</Auth>

</Tenant>

<ActionName>GetInboundCallingHistory</ActionName>

<accountID>4</accountID>

<pageSize>100</pageSize>

<startAt>0</startAt>

<startDate>2017-09-07</startDate>

<endDate>2017-09-07</endDate>

</XML>


You will notice that there is an additional parameter in this call, "accountID" this can be found in the tms as in the example below:


image


That actually is your account ID, so use 466 in your call! a list of more action names can be found here


Hope this helps, let me know if you need any more info, thanks!



Login or Signup to post a comment