function getOutboundMessages($count = 100, $offset = 0, $recipient = NULL,
		$fromEmail = NULL, $tag = NULL, $subject = NULL, $status = NULL, 
		$fromdate = NULL, $todate = NULL, $metadata = NULL) {

		$query = array();
		$query["recipient"] = $recipient;
		$query["fromemail"] = $fromEmail;
		$query["tag"] = $tag;
		$query["subject"] = $subject;
		$query["count"] = $count;
		$query["offset"] = $offset;
		$query["status"] = $status;
		$query["fromdate"] = $fromdate;
		$query["todate"] = $todate;

		if($metadata != NULL) {
			foreach($metadata as $key => $value) {
				$query["metadata_$key"] = $value;
			}
		}

		return new DynamicResponseModel($this->processRestRequest('GET', '/messages/outbound', $query));
	}
function getOutboundMessages($count = 100, $offset = 0, $recipient = NULL,
		$fromEmail = NULL, $tag = NULL, $subject = NULL, $status = NULL, 
		$fromdate = NULL, $todate = NULL, $metadata = NULL) {

		$query = array();
		$query["recipient"] = $recipient;
		$query["fromemail"] = $fromEmail;
		$query["tag"] = $tag;
		$query["subject"] = $subject;
		$query["count"] = $count;
		$query["offset"] = $offset;
		$query["status"] = $status;
		$query["fromdate"] = $fromdate;
		$query["todate"] = $todate;

		if($metadata != NULL) {
			foreach($metadata as $key => $value) {
				$query["metadata_$key"] = $value;
			}
		}

		return new DynamicResponseModel($this->processRestRequest('GET', '/messages/outbound', $query));
	}
function getOutboundMessages ( $ count = 100 , $ offset = 0 , $ recipient = NULL , $ fromEmail = NULL , $ tag = NULL , $ subject = NULL , $ status = NULL , $ fromdate = NULL , $ todate = NULL , $ metadata = NULL ) { $ query = array ( ) ; $ query [ "recipient" ] = $ recipient ; $ query [ "fromemail" ] = $ fromEmail ; $ query [ "tag" ] = $ tag ; $ query [ "subject" ] = $ subject ; $ query [ "count" ] = $ count ; $ query [ "offset" ] = $ offset ; $ query [ "status" ] = $ status ; $ query [ "fromdate" ] = $ fromdate ; $ query [ "todate" ] = $ todate ; if ( $ metadata != NULL ) { foreach ( $ metadata as $ key => $ value ) { $ query [ "metadata_$key" ] = $ value ; } } return new DynamicResponseModel ( $ this -> processRestRequest ( 'GET' , '/messages/outbound' , $ query ) ) ; }
Search messages that have been sent using this Server.

@param  integer $count How many messages to retrieve at once (defaults to 100)
@param  integer $offset How many messages to skip when 'paging' through the massages (defaults to 0)
@param  string $recipient Filter by recipient.
@param  string $fromEmail Filter by sender email address.
@param  string $tag Filter by tag.
@param  string $subject Filter by subject.
@param  string $status The current status for the outbound messages to return defaults to 'sent'
@param  string $fromdate Filter to messages on or after YYYY-MM-DD
@param  string $todate Filter to messages on or before YYYY-MM-DD
@param  string $metadata An associatative array of key-values that must all match values included in the metadata of matching sent messages.
@return DynamicResponseModel
Search messages that have been sent using this Server .