public function Load($statuses, $from = null, $to = null, $channelName = null, $limit = 0, $offset = 0, $includeEmail = true, $includeSms = true, array $messageCategory = array(), $email = null, $useStatusChangeDate = false) {
        return $this->sendRequest('log/load', array(
                    'statuses' => (count($statuses) === 0) ? null : join(';', $statuses),
                    'from' => $from,
                    'to' => $to,
                    'channelName' => $channelName,
                    'limit' => $limit,
                    'offset' => $offset,
                    'includeEmail' => $includeEmail,
                    'includeSms' => $includeSms,
                    'messageCategory' => (count($messageCategory) === 0) ? null : join(';', $messageCategory),
                    'email' => $email,
                    'useStatusChangeDate' => $useStatusChangeDate
        ));
    }
public function Load($statuses, $from = null, $to = null, $channelName = null, $limit = 0, $offset = 0, $includeEmail = true, $includeSms = true, array $messageCategory = array(), $email = null, $useStatusChangeDate = false) {
        return $this->sendRequest('log/load', array(
                    'statuses' => (count($statuses) === 0) ? null : join(';', $statuses),
                    'from' => $from,
                    'to' => $to,
                    'channelName' => $channelName,
                    'limit' => $limit,
                    'offset' => $offset,
                    'includeEmail' => $includeEmail,
                    'includeSms' => $includeSms,
                    'messageCategory' => (count($messageCategory) === 0) ? null : join(';', $messageCategory),
                    'email' => $email,
                    'useStatusChangeDate' => $useStatusChangeDate
        ));
    }
public function Load ( $ statuses , $ from = null , $ to = null , $ channelName = null , $ limit = 0 , $ offset = 0 , $ includeEmail = true , $ includeSms = true , array $ messageCategory = array ( ) , $ email = null , $ useStatusChangeDate = false ) { return $ this -> sendRequest ( 'log/load' , array ( 'statuses' => ( count ( $ statuses ) === 0 ) ? null : join ( ';' , $ statuses ) , 'from' => $ from , 'to' => $ to , 'channelName' => $ channelName , 'limit' => $ limit , 'offset' => $ offset , 'includeEmail' => $ includeEmail , 'includeSms' => $ includeSms , 'messageCategory' => ( count ( $ messageCategory ) === 0 ) ? null : join ( ';' , $ messageCategory ) , 'email' => $ email , 'useStatusChangeDate' => $ useStatusChangeDate ) ) ; }
Returns logs filtered by specified parameters.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<\ElasticEmailEnums\LogJobStatus> $statuses List of comma separated message statuses: 0 for all, 1 for ReadyToSend, 2 for InProgress, 4 for Bounced, 5 for Sent, 6 for Opened, 7 for Clicked, 8 for Unsubscribed, 9 for Abuse Report
@param ?DateTime $from Starting date for search in YYYY-MM-DDThh:mm:ss format.
@param ?DateTime $to Ending date for search in YYYY-MM-DDThh:mm:ss format.
@param string $channelName Name of selected channel.
@param int $limit Maximum of loaded items.
@param int $offset How many items should be loaded ahead.
@param bool $includeEmail True: Search includes emails. Otherwise, false.
@param bool $includeSms True: Search includes SMS. Otherwise, false.
@param array<\ElasticEmailEnums\MessageCategory> $messageCategory ID of message category
@param string $email Proper email address.
@param bool $useStatusChangeDate True, if 'from' and 'to' parameters should resolve to the Status Change date. To resolve to the creation date - false
@return \ElasticEmailEnums\Log
Returns logs filtered by specified parameters .