src/XQueue/Maileon/API/Reports/ReportsService.php
function getBlocksCount(
        $fromDate = null,
        $toDate = null,
        $contactIds = null,
        $contactEmails = null,
        $contactExternalIds = null,
        $reasons = null,
        $oldStatus = null,
        $newStatus = null,
        $excludeAnonymousBlocks = false)
    {

        $params = $this->createCountQueryParameters($fromDate, $toDate, $contactIds, $contactEmails, $contactExternalIds, null, null);

        if (isset($excludeAnonymousBlocks)) $params['exclude_anonymous_blocks'] = ($excludeAnonymousBlocks == true) ? "true" : "false";

        $params = $this->appendArrayFields($params, "reasons", $reasons);
        if (isset($oldStatus)) $params['old_status'] = $oldStatus;
        if (isset($newStatus)) $params['new_status'] = $newStatus;

        return $this->get('reports/blocks/count', $params);
    }
function getBlocksCount(
        $fromDate = null,
        $toDate = null,
        $contactIds = null,
        $contactEmails = null,
        $contactExternalIds = null,
        $reasons = null,
        $oldStatus = null,
        $newStatus = null,
        $excludeAnonymousBlocks = false)
    {

        $params = $this->createCountQueryParameters($fromDate, $toDate, $contactIds, $contactEmails, $contactExternalIds, null, null);

        if (isset($excludeAnonymousBlocks)) $params['exclude_anonymous_blocks'] = ($excludeAnonymousBlocks == true) ? "true" : "false";

        $params = $this->appendArrayFields($params, "reasons", $reasons);
        if (isset($oldStatus)) $params['old_status'] = $oldStatus;
        if (isset($newStatus)) $params['new_status'] = $newStatus;

        return $this->get('reports/blocks/count', $params);
    }
Count blocks.

@param long $fromDate
If provided, only the blocks 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 blocks 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 $contactIds
Multivalued parameter to filter the blocks by contacts. Each value must correspond to a contact id.
@param array $contactEmails
Multivalued parameter to filter the blocks by email addresses.
@param array $contactExternalIds
Multivalued parameter to filter the blocks by external ids. Each value must correspond to a contacts external id.
@param array $reasons
Filter by reason, valid: blacklist, bounce_policy.
@param string $oldStatus
Filter by old status, valid: allowed, blocked.
@param string $newStatus
Filter by new status, valid: allowed, blocked.
Filters the bounces by their source: mta-listener / reply.
@param bool $excludeAnonymousBlocks
If this is set to true (default), only bounces that have not yet been anonymized (due to deletion/unsubscription) are returned.
@return com_maileon_api_Page