<!-- Intent: get list of all the scheduled alert profiles
	-->

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

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 -->
[
	{
		"$type":"API.V4.DataWrappers.Schedule_Run_Once, API.V4",
		"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
	},{
		"$type":"API.V4.DataWrappers.Schedule_Run_Once, API.V4",
		"CreateStamp":"2013-04-02T13:47:48.807",
		"ChangeStamp":"2013-04-02T13:47:48.807",
		"CreatedByUser":"sample",
		"ChangedByUser":"",
		"LastRunDate":"0001-01-01T00:00:00",
		"IsActive":true,
		"ScheduleCode":597747,
		"ScheduleType":0,
		"TaskDateTime":"4/2/2015 12:00 PM",
		"TaskName":"My Scheduled Alert",
		"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
	}
]