Make a request ยป
OptOutService.GetOptOutAllByDateIntervalPaginated
Get global optout list for an account between dates. (Paginated) See code examples
URL Parameters
Http verb: Get
URI: Full url: http://se.api.anpasia.com/optouts/v2/global/{startDateStr}/{endDateStr}/{pageNumber}/{pageSize}
URL parameters:
startDateStr | String | The start of the date interval. Format YYYYMMDDTHHMMSS |
endDateStr | String | The end date of the interval. Format YYYYMMDDTHHMMSS |
pageNumber | String | The page in the resultset to return, starts with 1 |
pageSize | String | The size of each page resultset, minimum 1 |
Body parameters
Body parameters
Not used |
Response
Body parameters
returns | A response object which includes the paginated result, status code and a message.
|
Body Example
{ "Code" : 1, "Message" : "OK" , "Result" : { "TotalCount" : 1, "TotalPages" : 1, "Items" : [ { "CountryCode" : "46" , "Created" : "\/Date(1015286583000+0800)\/" , "Email" : "noreply@apsis.com" , "ExternalId" : "externalId" , "Format" : "Html" , "Id" : 456, "MailingListId" : 456, "Name" : "Patrik" , "PhoneNumber" : "555-456" , "Reason" : "Hard Bounce" , "SendQueueId" : 456, "SubscriberId" : 456 } ] } } |
< Code >1</ Code > < Message >OK</ Message > < Result > < TotalCount >1</ TotalCount > < TotalPages >1</ TotalPages > < Items > < OptOutAllItem > < CountryCode >46</ CountryCode > < Created >2002-03-05T08:03:03</ Created > < Email >noreply@apsis.com</ Email > < ExternalId >externalId</ ExternalId > < Format >Html</ Format > < Id >456</ Id > < MailingListId >456</ MailingListId > < Name >Patrik</ Name > < PhoneNumber >555-456</ PhoneNumber > < Reason >Hard Bounce</ Reason > < SendQueueId >456</ SendQueueId > < SubscriberId >456</ SubscriberId > </ OptOutAllItem > </ Items > </ Result > </ Response > |
Help
Code examples
curl -i -X GET -H 'Content-type: application/json' -H 'Accept: application/json' -H 'Authorization: basic $api_key_64baseformat' url http: //se.api.anpasia.com/optouts/v2/global/{startDateStr}/{endDateStr}/{pageNumber}/{pageSize} |