SMS
Contacts
Appointments

Get Contact Fields

This page allows you to pull down all of the contact fields that your contact has available. Please see the payload example below.
https://www.titanly.net/api/contacts/getContactFields.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/contacts/getContactFields.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>
	<ContactField>
		<contactStructureId>123</contactStructureId>
		<contactFieldId>312</contactFieldId>
		<fieldName>name</fieldName>
		<dashboard>0</dashboard>
		<required>0</required>
		<unique>0</unique>
		<pos>1</pos>
		<status>1</status>';
	</ContactField>
	<ContactField>
		<contactStructureId>333</contactStructureId>
		<contactFieldId>222</contactFieldId>
		<fieldName>name2</fieldName>
		<dashboard>1</dashboard>
		<required>0</required>
		<unique>1</unique>
		<pos>2</pos>
		<status>0</status>
	</ContactField>
</Root>