For more information on using API

GET https://webapi.mymarketing.co.il/api/contacts/{id}/Statistics/Campaign/{campaignId}

Gets contact's statistics for specific campaign

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Contact id. Can be found using the endpoint "Get account's contacts list...."

integer

Required

campaignId

Can be found using the endpoint "Get account's email campaigns..." or in the UI (go to Emails->Emails Lists->click on the campaign's preview -> you'll find the id int the URL)

integer

Required

Body Parameters

None.

Response Information

Resource Description

ContactCampaignStatsDTO

Name

Description

Type

Additional information

opens

integer
open_​date

Last open date

date
clicks

integer
click_date

Last click date

date
bounce

boolean
bounceReason

string
​bounce​_date​

date
unsubscribe

boolean
unsubscribe_date

date
spam_complaint

boolean
spam_complaint_date​

date
customer_id

integer

Response Formats

application/json, text/json

Sample:
{
  "opens": 1,
  "open_​date": "2016-12-24T14:12:12",
  "clicks": 2,
  "click_date": "2016-12-24T14:12:12",
  "bounce": true,
  "bounceReason": "sample string 4",
  "​bounce​_date​": "2016-12-24T14:12:12",
  "unsubscribe": true,
  "unsubscribe_date": "2016-12-24T14:12:12",
  "spam_complaint": true,
  "spam_complaint_date​": "2016-12-24T14:12:12",
  "customer_id": 7
}

application/xml, text/xml

Sample:
<ContactCampaignStatsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <_x200B_bounce_x200B__date_x200B_>2016-12-24T14:12:12</_x200B_bounce_x200B__date_x200B_>
  <bounce>true</bounce>
  <bounceReason>sample string 4</bounceReason>
  <click_date>2016-12-24T14:12:12</click_date>
  <clicks>2</clicks>
  <customer_id>7</customer_id>
  <open__x200B_date>2016-12-24T14:12:12</open__x200B_date>
  <opens>1</opens>
  <spam_complaint>true</spam_complaint>
  <spam_complaint_date_x200B_>2016-12-24T14:12:12</spam_complaint_date_x200B_>
  <unsubscribe>true</unsubscribe>
  <unsubscribe_date>2016-12-24T14:12:12</unsubscribe_date>
</ContactCampaignStatsDTO>