<!-- Intent: retrieve a list of alerting campaigns between the 
		given dates of 12/1/2012 and 12/31/2012.
	-->

<?php
$curl_h = curl_init('http://api.v4.swiftreach.com/api/Alerts/List/12-1-2012/12-31-2012');

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;

?>