SMS
Contacts
Appointments

Contact Search

The contact search allows you to search for any string within any contact field.
https://www.titanly.net/api/contacts/searchContact.php
Name Status Description
ApiKey Required Your company API Key which can be found in the dashboard under account.
QueryStr Required This can be any string. The API page will search all contact fields for those consecutive characters.
Base Example
PHP
<?php
	//Setup Variables
	$url = "https://www.titanly.net/api/contacts/searchContact.php";
	$fields['ApiKey'] = urlencode('Your API Key');
	$fields['QueryStr'] = urlencode('The string you want to find');

	//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>
		<Contact>
			<contactId>312</contactId>
			<Field>
				<key>name</key>
				<value>David Jones</value>
			</Field>
			<Field>
				<key>phone</key>
				<value>1234567890</value>
			</Field>
			<Field>
				<key>email</key>
				<value>fake@email.com</value>
			</Field>
		</Contact>
		<Contact>
			<contactId>6755</contactId>
			<Field>
				<key>name</key>
				<value>John Davidson</value>
			</Field>
			<Field>
				<key>phone</key>
				<value>4321567890</value>
			</Field>
			<Field>
				<key>email</key>
				<value>fake2@email.com</value>
			</Field>
		</Contact>
	</Data>
</Root>