Contamos con una API REST usando autorización oAuth2

Ejemplo para obtener historial de llamadas

$ curl -s 'https://api.anura.com.ar/GCAPI/rest/tenants/1/stats/cdrs/?endDate=2019-08-16+23:59&filter=&startDate=2019-08-16+00:00'  -H 'Authorization: Bearer   xxxACCESS_TOKENxxxx'  
[
  {
    "duration": 13,
    "price": 0,
    "status": "ANSWER",
    "direction": "IN",
    "account": {
      "id": 46399,
      "name": "Carlos Esterlizi"
    },
    "calling": "9009",
    "called": "3006",
    "callingName": "Click2Call",
    "calledName": "Carlos Esterlizi",
    "dialTime": 1565967840545,
    "billSeconds": 11,
    "routePriceTypeName": "INTERNO",
    "wasRecorded": true,
    "lastAction": "DIAL",
    "id": 393608182
  },
  {
    "duration": 13,
    "price": 0,
    "status": "ANSWER",
    "direction": "OUT",
    "account": {
      "id": 53027,
      "name": "Click2Call"
    },
    "calling": "9009",
    "called": "3006",
    "callingName": "Click2Call",
    "calledName": "Carlos Esterlizi",
    "dialTime": 1565967840448,
    "billSeconds": 11,
    "routePriceTypeName": "INTERNO",
    "wasRecorded": true,
    "lastAction": null,
    "id": 393608179
  },
  {
    "duration": 15,
    "price": 0,
    "status": "NOANSWER",
    "direction": "IN",
    "account": {
      "id": 46399,
      "name": "Carlos Esterlizi"
    },
    "calling": "9009",
    "called": "3006",
    "callingName": "Click2Call",
    "calledName": "Carlos Esterlizi",
    "dialTime": 1565967797748,
    "billSeconds": 0,
    "routePriceTypeName": "INTERNO",
    "wasRecorded": false,
    "lastAction": "DIAL",
    "id": 393607565
  },
  {
    "duration": 15,
    "price": 0,
    "status": "NOANSWER",
    "direction": "OUT",
    "account": {
      "id": 53027,
      "name": "Click2Call"
    },
    "calling": "9009",
    "called": "3006",
    "callingName": "Click2Call",
    "calledName": "Carlos Esterlizi",
    "dialTime": 1565967797642,
    "billSeconds": 0,
    "routePriceTypeName": "INTERNO",
    "wasRecorded": false,
    "lastAction": null,
    "id": 393607560
  }
]

Documentación

https://api.anura.com.ar:8093/swaggerui/

¿Encontró su respuesta?