<!-- Intent: retrieve the profile for voice message with voicecode of 100000 
	-->

<?php
$curl_h = curl_init('http://api.v4.swiftreach.com/api/Messages/Voice/100000');

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;

?>

<!-- Sample Return Value -->

{
	"AutoReplays":0,
	"RoutingPhone":"2012361344",
	"EnableAnsweringMachineMessage":false,
	"ContentProfile":[{
			"SpokenLanguage":"English",
			"TTY_Text":null,
			"VoiceItem":[{
					"VoiceItemType":1,
					"AudioSource":[{
							"$type":"SwiftReach.Swift911.Core.Messages.Voice.AUDIO_SOURCE_VOICE, SwiftReach.Swift911.Core",
							"VoiceCode":100307,
							"Content":"this is just a test. press any key and you can talk to someone.",
							"AutoGenerateVoice":false,
							"FileVersion":0,
							"AudioType":0
							}]
					}]
			}],
	"DefaultSpokenLanguage":"English",
	"BridgeDTMF":null,
	"CallerID":"2012361344",
	"CapacityLimit":0,
	"RingSeconds":60,
	"CongestionAttempts":3,
	"AutoRetries":0,
	"AutoRetriesInterval":3,
	"EnableWaterfall":false,
	"EnableAnsweringMachineDetection":false,
	"CreateStamp":"2012-09-21T17:31:41.06",
	"ChangeStamp":"2012-09-21T17:31:41.06",
	"LastUsed":"0001-01-01T00:00:00",
	"CreatedByUser":"sample",
	"ChangedByUser":"",
	"Name":"The Voice Link",
	"Description":"this is a test",
	"VoiceCode":647007,
	"VoiceType":17,
	"Visibility":0,
	"DeleteLocked":false
}