For more information on using API

GET https://webapi.mymarketing.co.il/api/contacts/{id}/activity

Get contact's activity on any email that was sent to them

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

Body Parameters

None.

Response Information

Resource Description

Collection of ApiCustomeractivity

Name

Description

Type

Additional information

campaign_id

integer
last_sent_date

date
customer_id

integer
opened

boolean
clicked

boolean
total_opened

integer
total_clicked

integer

Response Formats

application/json, text/json

Sample:
[
  {
    "campaign_id": 1,
    "last_sent_date": "2016-12-24T14:12:12",
    "customer_id": 1,
    "opened": true,
    "clicked": true,
    "total_opened": 1,
    "total_clicked": 1
  },
  {
    "campaign_id": 1,
    "last_sent_date": "2016-12-24T14:12:12",
    "customer_id": 1,
    "opened": true,
    "clicked": true,
    "total_opened": 1,
    "total_clicked": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfApiCustomeractivity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <ApiCustomeractivity>
    <campaign_id>1</campaign_id>
    <clicked>true</clicked>
    <customer_id>1</customer_id>
    <last_sent_date>2016-12-24T14:12:12</last_sent_date>
    <opened>true</opened>
    <total_clicked>1</total_clicked>
    <total_opened>1</total_opened>
  </ApiCustomeractivity>
  <ApiCustomeractivity>
    <campaign_id>1</campaign_id>
    <clicked>true</clicked>
    <customer_id>1</customer_id>
    <last_sent_date>2016-12-24T14:12:12</last_sent_date>
    <opened>true</opened>
    <total_clicked>1</total_clicked>
    <total_opened>1</total_opened>
  </ApiCustomeractivity>
</ArrayOfApiCustomeractivity>