SMS
Contacts
Appointments

Get Group Contacts

Returns XML contact information for all the contacts in a group. Includes the first name, last name, and phone number.
https://www.titanly.net/api/sms/groups/getGroupContacts.php
Name Status Description
ApiKey Required Your company Api Key which can be found in the dashboard under account.
GroupId Required Id of the group.
Limit Optional The number of entries to pull down. Min=1, Max=250, Default=100.
Page Optional This is the current page that you want to pull down. for instance if your Limit is 50 and your page is 3 you will be pulling items 101-150. Min=1, Default=1.
Base Example
PHP
<?php
	//Setup Variables
	$url = "https://www.titanly.net/api/sms/groups/getGroupContacts.php";
	$fields['ApiKey'] = urlencode('Your API Key');
	$fields['GroupId'] = urlencode('ID of the group');
	$fields['Limit'] = urlencode('ID of the contact');
	$fields['Page'] = urlencode('ID of the contact');

	//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>
		<totalContacts>43</totalContacts>
		<Contact>
			<contactId>Contact ID</contactId>
			<groupId>Group ID</groupId>
			<created>Unix Timestamp for the contact was added to the group</created>
			<status>Status of the contact</status>
		</Contact>
		<Contact>
			<contactId>Contact ID 2</contactId>
			<groupId>Group ID 2</groupId>
			<created>Unix Timestamp for the contact was added to the group</created>
			<status>Status of the contact</status>
		</Contact>
	</Data>
</Root>