Files
piratepoet/doc/api_methods/GetSubscribers.md
Jan Lysý 3773bc4985 Add link to subscriber doc
Because we want to avoid duplicities, we added a link to the method getting a subscriber.
[MAILPOET-4716]
2022-10-13 11:12:10 +02:00

1.5 KiB

back to list

Get Subscribers

array getSubscribers(array $filter = [], int $limit = 50, int $offset = 0)

This method returns a list of subscribers. To see the subscriber data structure, please check getSubscriber() documentation.

Arguments

Argument Type Default Description
$filter (optional) array empty Filters to retrieve subscribers
$limit (optional) int 50 The number of results that are returned
$offset (optional) int 0 From where to start returning data

Filter

Filter argument supports following array keys.

Key Type Description
status string Specific status of subscribers. One of values: unconfirmed, subscribed, unsubscribed, bounced, inactive
list_id int List id or dynamic segment id
min_updated_at DateTime\int DateTime object or timestamp of the minimal last update of subscribers