Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

getVisitedLinks method

Вы здесь:

Get a report on the links visited by users in the specified email campaign.

Principle of use

Syntax and URL to call the method
getVisitedLinks (int campaign_id, bool group)
https://api.unisender.com/en/api/getVisitedLinks?format=json&api_key=KEY&campaign_id=ID &group=1
Arguments
api_key *API access key.
campaign_id *Campaign identifier received when calling createCampaign method.
groupGroup results by the links visited. If the user has visited the link several times, the results will be represented by one record indicating the number of visits in the count field.
Return value
JSON-object with the following fields:
fieldsArray of field names. It includes the email (user address), url (visited link), request_time (visit time), ip (user’s ip address) and count (number of the link visits if the group parameter is specified) fields.
dataArray of the results of the visited links. Each result is an array of fields, described in the fields.
If there are any errors or warnings, they are returned in the error/warnings fields as described.
Example of the return value:

{
  "result":{
    "fields":["email","url","request_time","ip"] ,
    "data":[
      ["one@gmail.com","http://yandex.ru","2011-01-27 09:38:01","127.0.0.1"]
      ["two@hotmail.com","http://google.com","2011-01-27 09:38:02","127.0.0.1"]
      ["three@yandex.ru","http://gmail.com","2011-01-27 09:38:03","127.0.0.1"]
    ]
  }
}