Retrieve Unsubscribes
Note that you can use
either
the days parameter
or
the start_date and end_date parameter.
| Parameter |
Required |
Requirements |
Description |
| user |
Yes |
Customer must be registered under your
account |
The customer we are retrieving unsubscribes
from |
| task |
Yes |
Must be set to
get
|
This will allow you to retrieve the
unsubscribes for the specified customer |
| date |
No |
Must be set to 1 |
Retrieves the timestamps, it will return a
date in a MySQL timestamp format - YYYY-MM-DD HH:MM:SS |
| method |
Yes |
Must be set to
unsubscribes
|
Allows you to access unsubscribe functionality |
XML Call
1
| https://sendgrid.com/api/distributor.manage.xml?api_user=username&api_key=secureSecret&method=unsubscribes&user=customer@example.com&task=get&date=
|
Response