src/XQueue/Maileon/API/Transactions/TransactionsService.php
function getRecentTransactions($type_id, $count = 1000, $minExcludedTxId = 0) {
		if($count < 1 || $count > 2000) { throw new MaileonAPIException("the given count is not in the [1..2000] range"); }
		if($minExcludedTxId < 0) { throw new MaileonAPIException("the given $minExcludedTxId must be greater or equal to 0"); }

	   $queryParameters = array(
		   'type_id' => $type_id,
		   'count' => $count,
		   'min_excluded_transaction_id' => $minExcludedTxId
	   );

	   return $this->get("transactions", $queryParameters, "application/json",
			   array('array', 'com_maileon_api_transactions_RecentTransaction'));
	}
function getRecentTransactions($type_id, $count = 1000, $minExcludedTxId = 0) {
		if($count < 1 || $count > 2000) { throw new MaileonAPIException("the given count is not in the [1..2000] range"); }
		if($minExcludedTxId < 0) { throw new MaileonAPIException("the given $minExcludedTxId must be greater or equal to 0"); }

	   $queryParameters = array(
		   'type_id' => $type_id,
		   'count' => $count,
		   'min_excluded_transaction_id' => $minExcludedTxId
	   );

	   return $this->get("transactions", $queryParameters, "application/json",
			   array('array', 'com_maileon_api_transactions_RecentTransaction'));
	}
function getRecentTransactions ( $ type_id , $ count = 1000 , $ minExcludedTxId = 0 ) { if ( $ count < 1 || $ count > 2000 ) { throw new MaileonAPIException ( "the given count is not in the [1..2000] range" ) ; } if ( $ minExcludedTxId < 0 ) { throw new MaileonAPIException ( "the given $minExcludedTxId must be greater or equal to 0" ) ; } $ queryParameters = array ( 'type_id' => $ type_id , 'count' => $ count , 'min_excluded_transaction_id' => $ minExcludedTxId ) ; return $ this -> get ( "transactions" , $ queryParameters , "application/json" , array ( 'array' , 'com_maileon_api_transactions_RecentTransaction' ) ) ; }
Gets the last $count transaction events of a given transaction type.

@param int $type_id
the ID of the transaction type to get transaction events for
@param int $count
The number of last transactions to get. Valid range: [1..2000]
Gets the last $count transaction events of a given transaction type .