PortalAdmin.WebAPI

<back to all web services

admin.calls.list

Return Calls List.
Require admin authentification.
Authenticate in Http Headers Authorization: Basic Base64(login#admin:SHA1(password)).

REST Paths

The following REST paths are available for this service.

POST admin.calls.list

To override the Content-type in your clients HTTP Accept Header, append ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/syncreply/admin.calls.list HTTP/1.1 
Host: talk.vltelecom.com 
Content-Type: application/json
Content-Length: length

{"calledNumber":"String", "callFromDate":"0001-01-01T00:00:00.0000000", "callToDate":"0001-01-01T00:00:00.0000000", "clientType":0,"login":"String", "idTariff":0,"callerId":"String", "showSms":false,"sortColumn":"String", "sortAsceding":false,"pageOffset":0,"pageSize":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":[{"idCall":0,"login":"String", "callStart":"0001-01-01T00:00:00.0000000", "callEnd":"0001-01-01T00:00:00.0000000", "pdd":0,"calledNumber":"String", "callerId":"String", "callerIp":"String", "tariff":"String", "routeType":"String", "routeTypeName":"String", "idRoute":0,"tariffDescription":"String", "tariffPrefix":"String", "tariffId":0,"idClient":0,"clientType":0,"clientTypeName":"String", "duration":0,"durationStr":"String", "effectiveDuration":0,"effectiveDurationStr":"String", "revenue":0,"cost":0,"profit":0,"res1Cost":0,"res2Cost":0,"res3Cost":0,"idCC":0}],"total":0,"responseStatus":{"errorCode":"String", "message":"String", "stackTrace":"String", "errors":[{"errorCode":"String", "fieldName":"String", "message":"String"}]}}