<!-- Intent: retrieve the records for calls into the hotline (866) 802-0837 sent between 3/1/2013 and 3/31/2013
	sorted by time stamp from newest to oldest.
	This will retrieve the 1st page of 5 records.
	-->

<?php
$curl_h = curl_init('http://api.v4.swiftreach.com/api/Hotlines/Reports/8668020837/3-1-2013/3-31-2013/1/5/BeginStamp/DESC');

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;

?>