SMS
Contacts
Appointments

Get Predefined Msg

Returns XML of all your predefined messages.
https://www.titanly.net/api/sms/predefinedMessages/getSmsKeywords.php
Name Status Description
ApiKey Required Your company Api Key which can be found in the dashboard under account.
Base Example
PHP
<?php
	//Setup Variables
	$url = "https://www.titanly.net/api/sms/predefinedMessages/getSmsKeywords.php";
	$fields['ApiKey'] = urlencode('Your API Key');

	//Turn the $fields array into a POST string.
	$fieldString = '';
	foreach($fields as $key=>$value)
	{ 
		$fieldString .= $key.'='.$value.'&'; 
	}
	rtrim($fieldString, '&');

	// Use Curl To send the reqeust
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, count($fields));
	curl_setopt($ch, CURLOPT_POSTFIELDS, $fieldString);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
	$userData = curl_exec($ch);
	$info = curl_getinfo($ch);
	curl_close($ch);
?>
Base Payload
Payload
<Root>
	<response>success</response>
	<message> </message>
	<Data>
		<PredefinedMessage>
			<predefinedId>123</predefinedId>
			<name>name/title of message</name>
			<message>The message</message>
			<created>Unixtimestamp for when it was first created</created>                
			<status>1 [1=Active, 0=disabled]</status>
		</PredefinedMessage>
		<PredefinedMessage>
			<predefinedId>321</predefinedId>
			<name>name/title of message 2</name>
			<message>The message 2</message>
			<created>Unixtimestamp for when it was first created</created>                
			<status>0 [1=Active, 0=disabled]</status>
		</PredefinedMessage>
	</Data>
</Root>