Skip to content

Obtain Extra Referrer Data

Request

If you have an AVANSER C2C (Click-to-Connect) button, this call requests information on the button click.

Server Response

KeyDescription
c2c_idUnique c2c identification.
c2c_spooleridCorresponds to getCDR spooler_id field.
callvalid / 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_ipIP Address of caller.
user_browserWeb user agent (browser information).
referrerWeb user referrer.
dateYYYY-MM-DD HH:MM:SS (AEST Time).
Security
HTTP_BASIC or sessionToken
Query
account_idstringrequired

Provided by AVANSER. Required only for token-based authentication.

Example:account_id=example.user
tokenstringrequired

Token received from Phase 2 of Authentication. Required only for token-based authentication.

Example:token=bzNDGPOMUu4pmGZZ0yyzvTlQZZNPnQPP
date_fromstringrequired

Start Date.

Example:date_from=2017-10-27
date_tostringrequired

End Date.

Example:date_to=2017-10-28
last_idstring

ID of the last CDR result.

Example:last_id=34560626
limitnumber

Maximum number of CDRs in reply.

Default:1000
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'

Responses

If you have an AVANSER C2C (Click-to-Connect) button, this call requests information on the button click.

Bodyapplication/json
resultsinteger
callsArray of objects
Response
{ "results": 1, "calls": [ { … } ] }