<!-- Intent: get the scheduled alert profile for schedulecode 597737 
	-->

<?php
$curl_h = curl_init('http://api.v4.swiftreach.com/api/Alerts/Schedules/597737');

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;

?>

<!-- example return value -->
{
	"CreateStamp":"2013-04-02T10:40:55.4",
	"ChangeStamp":"2013-04-02T13:59:00.513",
	"CreatedByUser":"sample",
	"ChangedByUser":"sample",
	"LastRunDate":"0001-01-01T00:00:00",
	"IsActive":false,
	"ScheduleCode":597737,
	"ScheduleType":0,
	"TaskDateTime":"4/2/2015 12:00 PM",
	"TaskName":"My Scheduled Alert 2",
	"Description":"Example of a scheduled alert that will run on a specific date and time",
	"ContactLists":[668447],
	"VoiceCode":0,
	"FaxCode":0,
	"EmailCode":0,
	"SMSCode":660197,
	"PagerCode":0,
	"HotlinePhone":"",
	"HotlineSettings":null
}