Model/Apiconnector/Client.php
public function getEmailStats($date, $endDate = null, $aggregatedBy = null)
    {
        $url = $this->getApiEndpoint() . '/v2/email/stats/since-date/' . $date;
        if ($endDate && $aggregatedBy) {
            $url .= '?endDate=' . $endDate . '&aggregatedBy=' . $aggregatedBy;
        }

        $response = $this->setUrl($url)
            ->setVerb('GET')
            ->execute();

        if (isset($response->message)) {
            $this->helper->log('GET EMAIL STATS : ' . $response->message);
        }

        return $response;
    }
public function getEmailStats($date, $endDate = null, $aggregatedBy = null)
    {
        $url = $this->getApiEndpoint() . '/v2/email/stats/since-date/' . $date;
        if ($endDate && $aggregatedBy) {
            $url .= '?endDate=' . $endDate . '&aggregatedBy=' . $aggregatedBy;
        }

        $response = $this->setUrl($url)
            ->setVerb('GET')
            ->execute();

        if (isset($response->message)) {
            $this->helper->log('GET EMAIL STATS : ' . $response->message);
        }

        return $response;
    }
public function getEmailStats ( $ date , $ endDate = null , $ aggregatedBy = null ) { $ url = $ this -> getApiEndpoint ( ) . '/v2/email/stats/since-date/' . $ date ; if ( $ endDate && $ aggregatedBy ) { $ url .= '?endDate=' . $ endDate . '&aggregatedBy=' . $ aggregatedBy ; } $ response = $ this -> setUrl ( $ url ) -> setVerb ( 'GET' ) -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ this -> helper -> log ( 'GET EMAIL STATS : ' . $ response -> message ) ; } return $ response ; }
Gets transactional email reporting statistics for a specified time period.

@param string $date
@param null $endDate
@param null $aggregatedBy 'AllTime', 'Month', 'Week', 'Day'

@return mixed
Gets transactional email reporting statistics for a specified time period .