If you have an AVANSER C2C (Click-to-Connect) button, this call requests information on the button click.
| Key | Description |
|---|---|
| c2c_id | Unique c2c identification. |
| c2c_spoolerid | Corresponds to getCDR spooler_id field. |
| call | valid / invalid – If an invalid phone number is entered or a request is made to a non-existent branch. Invalid calls will have a 0 in the c2c_spoolerId field. |
| user_ip | IP Address of caller. |
| user_browser | Web user agent (browser information). |
| referrer | Web user referrer. |
| date | YYYY-MM-DD HH:MM:SS (AEST Time). |
Security
HTTP_BASIC or sessionToken
- Avanser Productionhttps://api.avanser.com/JSON?action=getC2C
- AVANSER Mock Serverhttps://avanser.redocly.app/_mock/web-api/references/JSON?action=getC2C
curl -i -X GET \
-u '<username>:<password>' \
'https://api.avanser.com/JSON?action=getC2C?account_id=example.user&token=bzNDGPOMUu4pmGZZ0yyzvTlQZZNPnQPP&date_from=2017-10-27&date_to=2017-10-28&last_id=34560626&limit=1000'Response
{ "results": 1, "calls": [ { … } ] }