public function search($query = '*', $dateFrom = NULL, $dateTo = NULL, array $tags = array(), array $senders = array(), array $apiKeys = array(), $limit = 100) {
        return $this->request('search', array(
            'query' => $query,
            'date_from' => $dateFrom,
            'date_to' => $dateTo,
            'tags' => $tags,
            'senders' => $senders,
            'api_keys' => $apiKeys,
            'limit' => $limit
        ));
    }
public function search($query = '*', $dateFrom = NULL, $dateTo = NULL, array $tags = array(), array $senders = array(), array $apiKeys = array(), $limit = 100) {
        return $this->request('search', array(
            'query' => $query,
            'date_from' => $dateFrom,
            'date_to' => $dateTo,
            'tags' => $tags,
            'senders' => $senders,
            'api_keys' => $apiKeys,
            'limit' => $limit
        ));
    }
public function search ( $ query = '*' , $ dateFrom = NULL , $ dateTo = NULL , array $ tags = array ( ) , array $ senders = array ( ) , array $ apiKeys = array ( ) , $ limit = 100 ) { return $ this -> request ( 'search' , array ( 'query' => $ query , 'date_from' => $ dateFrom , 'date_to' => $ dateTo , 'tags' => $ tags , 'senders' => $ senders , 'api_keys' => $ apiKeys , 'limit' => $ limit ) ) ; }
Search the content of recently sent messages and optionally narrow by date range, tags and senders
@param string $query the search terms to find matching messages for
@param string $dateFrom start date YYYY-MM-DD
@param string $dateTo end date
@param array $tags an array of tag names to narrow the search to, will return messages that contain ANY of the tags
@param array $senders an array of sender addresses to narrow the search to, will return messages sent by ANY of the senders
@param array $apiKeys an array of API keys to narrow the search to, will return messages sent by ANY of the keys
@param int $limit the maximum number of results to return, defaults to 100, 1000 is the maximum
@return array
@link https://mandrillapp.com/api/docs/messages.JSON.html#method=search
Search the content of recently sent messages and optionally narrow by date range tags and senders