SMS
Contacts
Appointments

Schedule Message

Our Schedule SMS feature allows you to do just that. Pick a time, a phone number to send from, who to send to (phone number, contact, and/or group), and a message source (either a custom message or a predefined message ID). From there your message will be sent out at the appropriate time.
https://www.titanly.net/api/sms/schedule/scheduleSms.php
Name Status Description
Api Key Required Your API key found in your account area.
To Required The phone number you sending to, this can be used in conjunction with "Contact", or "Group". OR it can be used to replace "Contact" or "Group".
Contact Optional The contact ID from our contact system that you want to send the message to, this can be used in conjunction with "To", or "Group". OR it can be used to replace "To" or "Group".
Group Optional The contact ID from our contact system that you want to send the message to, this can be used in conjunction with "To", or "Contact". OR it can be used to replace "To" or "Contact".
Message Required The message to be sent.
From Optional The phone number that you are send the message from. This phone number must be a phone number in our system. If you do not assign this value, the system will attempt to choose a number from your list. We highly recommend filling this out, however you do not have to.
PredefinedId Optional Can be used in place of "Message". Both "Message" and "PredefinedId" can not be filled out at once.
SendTime Required Unix Timestamp of the time you want to send the message out. This time will be converted to the timezone in your account settings.
Base Example
PHP
<?php
	//Setup Variables
	$url = "https://www.titanly.net/api/sms/schedule/scheduleSms.php";
	$fields['ApiKey'] = urlencode('Your API Key');
	$fields['Group'] = urlencode('Group ID, can be found in the dashboard');
	$fields['From'] = urlencode('From Phone Number');
	$fields['PredefinedId'] = urlencode('Predefined message ID, can be found in the dashboard');
	$fields['SendTime'] = urlencode("Unix Time Stamp of when you want the message to send.");
		

	$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);
?>