lib/stats/Stats.php
public function getSubuserMonthly(
        $subuser = null,
        $sortByMetric = 'delivered',
        $sortByDirection = 'desc',
        $limit = 5,
        $offset = 0
    ) {
        $this->validateOptions(
            'sortByDirection',
            $sortByDirection,
            self::OPTIONS_SORT_DIRECTION
        );
        $this->validateInteger('limit', $limit);
        $this->validateInteger('offset', $offset);
        return [
            'date' => $this->startDate,
            'subuser' => $subuser,
            'sort_by_metric' => $sortByMetric,
            'sort_by_direction' => $sortByDirection,
            'limit' => $limit,
            'offset' => $offset
        ];
    }
public function getSubuserMonthly(
        $subuser = null,
        $sortByMetric = 'delivered',
        $sortByDirection = 'desc',
        $limit = 5,
        $offset = 0
    ) {
        $this->validateOptions(
            'sortByDirection',
            $sortByDirection,
            self::OPTIONS_SORT_DIRECTION
        );
        $this->validateInteger('limit', $limit);
        $this->validateInteger('offset', $offset);
        return [
            'date' => $this->startDate,
            'subuser' => $subuser,
            'sort_by_metric' => $sortByMetric,
            'sort_by_direction' => $sortByDirection,
            'limit' => $limit,
            'offset' => $offset
        ];
    }
public function getSubuserMonthly ( $ subuser = null , $ sortByMetric = 'delivered' , $ sortByDirection = 'desc' , $ limit = 5 , $ offset = 0 ) { $ this -> validateOptions ( 'sortByDirection' , $ sortByDirection , self :: OPTIONS_SORT_DIRECTION ) ; $ this -> validateInteger ( 'limit' , $ limit ) ; $ this -> validateInteger ( 'offset' , $ offset ) ; return [ 'date' => $ this -> startDate , 'subuser' => $ subuser , 'sort_by_metric' => $ sortByMetric , 'sort_by_direction' => $ sortByDirection , 'limit' => $ limit , 'offset' => $ offset ] ; }
Retrieve monthly stats by subuser

@param string  $subuser         Subuser account
@param string  $sortByMetric    blocks|bounce_drops|bounces|
clicks|deferred|delivered|
invalid_emails|opens|processed|
requests|spam_report_drops|
spam_reports|unique_clicks|
unique_opens|unsubscribe_drops|
unsubsribes
@param string  $sortByDirection asc|desc
@param integer $limit           The number of results to return
@param integer $offset          The point in the list to begin
retrieving results

@return array
@throws \Exception
Retrieve monthly stats by subuser