src/XQueue/Maileon/API/Reports/ReportsService.php
function getRecipients(
        $fromDate = null,
        $toDate = null,
        $mailingIds = null,
        $contactIds = null,
        $contactEmails = null,
        $contactExternalIds = null,
        $excludeDeletedRecipients = false,
        $standardFields = null,
        $customFields = null,
        $embedFieldBackups = false,
        $pageIndex = 1,
        $pageSize = 100)
    {

        $params = $this->createQueryParameters($pageIndex, $pageSize, $fromDate, $toDate, $contactIds, $contactEmails, $contactExternalIds, $mailingIds, null, $embedFieldBackups);

        $params = $this->appendArrayFields($params, "standard_field", $standardFields);
        $params = $this->appendArrayFields($params, "custom_field", $customFields);
        if (isset($excludeDeletedRecipients)) $params['exclude_deleted_recipients'] = ($excludeDeletedRecipients == true) ? "true" : "false";

        return $this->get('reports/recipients', $params);
    }
function getRecipients(
        $fromDate = null,
        $toDate = null,
        $mailingIds = null,
        $contactIds = null,
        $contactEmails = null,
        $contactExternalIds = null,
        $excludeDeletedRecipients = false,
        $standardFields = null,
        $customFields = null,
        $embedFieldBackups = false,
        $pageIndex = 1,
        $pageSize = 100)
    {

        $params = $this->createQueryParameters($pageIndex, $pageSize, $fromDate, $toDate, $contactIds, $contactEmails, $contactExternalIds, $mailingIds, null, $embedFieldBackups);

        $params = $this->appendArrayFields($params, "standard_field", $standardFields);
        $params = $this->appendArrayFields($params, "custom_field", $customFields);
        if (isset($excludeDeletedRecipients)) $params['exclude_deleted_recipients'] = ($excludeDeletedRecipients == true) ? "true" : "false";

        return $this->get('reports/recipients', $params);
    }
Returns a page of recipients.

@param long $fromDate
If provided, only the recipients after the given date will be returned. The value of from_date must be a numeric value representing a point in time milliseconds afterJanuary 1, 1970 00:00:00
@param long $toDate
If provided, only the recipients before the given date will be returned. The value of to_date must be a numeric value representing a point in time milliseconds afterJanuary 1, 1970 00:00:00
@param array $mailingIds
Multivalued parameter to filter the recipients by mailings. Each value must correspond to a mailing id.
@param array $contactIds
Multivalued parameter to filter the recipients by contacts. Each value must correspond to a contact id.
@param array $contactEmails
Multivalued parameter to filter the recipients by email addresses.
@param array $contactExternalIds
Multivalued parameter to filter the recipients by external ids. Each value must correspond to a contacts external id.
@param bool $excludeDeletedRecipients
Supported values: true / false. If set to true, the recipients that have been removed from maileon will be excluded.
@param bool $standardFields
The list of standard contact fields to return.
@param bool $customFields
The list of custom contact fields to return.
@param bool $embedFieldBackups
Supported values: true / false. Field Backups are the values of contact fields that have been backed up for mailings because of a backup instruction. For each unsubscription, the corresponding field backups will be returned if available. Note that this only applies for non anonymizable field backups.
@param integer $pageIndex
The index of the result page. The index must be greater or equal to 1.
@param integer $pageSize
The maximum count of items in the result page. If provided, the value of page_size must be in the range 1 to 1000.
@return com_maileon_api_Page