<!-- Intent: search the records for the fax alerts sent for job 1546907 to
	any EntityName that contains the text "Sample".
	This will retrieve the 1st page of 5 records sorted by TimeStamp
	in an Ascending direction.
	-->

<?php
$curl_h = curl_init('http://api.v4.swiftreach.com/api/Alerts/Reports/Fax/Search/1546907/0/5/BeginStamp/ASC/EntityName/Sample');

curl_setopt($curl_h, CURLOPT_HTTPHEADER,
    array('Accept: application/json', 'Content-Type: application/json', 'SwiftAPI-Key: 123456')
);

# do not output, but store to variable
curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($curl_h);

# output for testing
echo $response;

?>