For more information on using API

GET http://webapi.mymarketing.co.il/api/campaignreports/{id}/unsubscribed?FromDate={FromDate}&ToDate={ToDate}&Page={Page}&Limit={Limit}

Get a specific user unsubscribed by campaign id

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Get unsubscribers by campaign id

integer

Required

from_date

The first date the contacts you want were created

date
to_date

The last date the contacts you want were created.(Default values is 3 last months)

date
page

Get a specific page (number of pages is limited)

integer

Range: inclusive between 1 and 2147483647

limit

Limit the number of items you get in the results.

integer

Range: inclusive between 1 and 100

Body Parameters

None.

Response Information

Resource Description

ApiUnsubscribeReportList

Name

Description

Type

Additional information

campaign_id

The campaign id

integer
total_items

Total number of unsbscribe contacts

integer
unsubscribes

List of contacts

Collection of ApiUnsubscribeReport

Response Formats

application/json, text/json

Sample:
{
  "campaign_id ": 1,
  "total_items ": 2,
  "unsubscribes ": [
    {
      "id": 1,
      "first_name": "sample string 2",
      "last_name": "sample string 3",
      "resone_id": 4,
      "customer_reason": "sample string 5",
      "email": "sample string 6",
      "state_id": 7,
      "unsubscribe_date": "2016-12-24T14:12:12"
    },
    {
      "id": 1,
      "first_name": "sample string 2",
      "last_name": "sample string 3",
      "resone_id": 4,
      "customer_reason": "sample string 5",
      "email": "sample string 6",
      "state_id": 7,
      "unsubscribe_date": "2016-12-24T14:12:12"
    }
  ]
}

application/xml, text/xml

Sample:
<ApiUnsubscribeReportList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models.CampaignReport">
  <campaign_id_x0020_>1</campaign_id_x0020_>
  <total_items_x0020_>2</total_items_x0020_>
  <unsubscribes_x0020_>
    <ApiUnsubscribeReport>
      <customer_reason>sample string 5</customer_reason>
      <email>sample string 6</email>
      <first_name>sample string 2</first_name>
      <id>1</id>
      <last_name>sample string 3</last_name>
      <resone_id>4</resone_id>
      <state_id>7</state_id>
      <unsubscribe_date>2016-12-24T14:12:12</unsubscribe_date>
    </ApiUnsubscribeReport>
    <ApiUnsubscribeReport>
      <customer_reason>sample string 5</customer_reason>
      <email>sample string 6</email>
      <first_name>sample string 2</first_name>
      <id>1</id>
      <last_name>sample string 3</last_name>
      <resone_id>4</resone_id>
      <state_id>7</state_id>
      <unsubscribe_date>2016-12-24T14:12:12</unsubscribe_date>
    </ApiUnsubscribeReport>
  </unsubscribes_x0020_>
</ApiUnsubscribeReportList>