GET https://webapi.mymarketing.co.il/api/contacts/Subscription/CustomersStatus?FromDate={FromDate}&ToDate={ToDate}
Get statistics of contacts' statuses from specific dates. You can choose to get statistics between specific dates (from/to date, the defualt is three months back)
Request Information
URI Parameters
Name
Description
Type
Additional information
from_date
The first date the contacts you want were created
date
to_date
The last date the contacts you want were created
date
Body Parameters
None.
Response Information
Resource Description
Name
Description
Type
Additional information
count
integer
Response Formats
application/json, text/json
Sample:
{ "count": 1, "customers_status": [ { "date": "2016-12-24T14:12:12", "active": 1, "unsubscribes": 2, "quarantines": 3, "bounced": 4, "spam_complaints": 5, "inactive": 6, "user_request": 7 }, { "date": "2016-12-24T14:12:12", "active": 1, "unsubscribes": 2, "quarantines": 3, "bounced": 4, "spam_complaints": 5, "inactive": 6, "user_request": 7 } ] }
application/xml, text/xml
Sample:
<ApiCustomersStatusList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models"> <count>1</count> <customers_status> <ApiCustomersStatus> <active>1</active> <bounced>4</bounced> <date>2016-12-24T14:12:12</date> <inactive>6</inactive> <quarantines>3</quarantines> <spam_complaints>5</spam_complaints> <unsubscribes>2</unsubscribes> <user_request>7</user_request> </ApiCustomersStatus> <ApiCustomersStatus> <active>1</active> <bounced>4</bounced> <date>2016-12-24T14:12:12</date> <inactive>6</inactive> <quarantines>3</quarantines> <spam_complaints>5</spam_complaints> <unsubscribes>2</unsubscribes> <user_request>7</user_request> </ApiCustomersStatus> </customers_status> </ApiCustomersStatusList>