SMS
Contacts
Appointments

Get Contacts

You can grab up to 250 contacts at a time via this API page. The response will send you the total number of entries in order to create pagination.
https://www.titanly.net/api/contacts/getContacts.php
Name Status Description
ApiKey Required Your company API Key which can be found in the dashboard under account.
Limit Optional This is the number of entries you want to pull right now. 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/contacts/getContacts.php";
	$fields['ApiKey'] = urlencode('Your API Key');
	$fields['Limit'] = urlencode('How many entries to pull down');
	$fields['Page'] = urlencode('What page number you need');

	//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>
	<total>123</total>
	<Contact>
		<contactId>123</contactId>
		<type>2</type>
		<status>1</status>
		<field1Name>asdf</field1Name>
		<field2Name>asdf</field2Name>
		.
		.
		.
		<field-Name>asdf</field-Name>
	</Contact>
	<Contact>
		<contactId>321</contactId>
		<type>2</type>
		<status>1</status>
		<field1Name>dfgh</field1Name>
		<field2Name>dfgh</field2Name>
		.
		.
		.
		<field-Name>dfgh</field-Name>
	</Contact>
</Root>