SMS
Contacts
Appointments

Get Company Numbers

Returns XML listing all your company phone numbers.
https://www.titanly.net/api/sms/numbers/getCompanyNumbers.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/sms/numbers/getCompanyNumbers.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>
	<response>success</response>
	<message> </message>
	<Data>
		<SmsNumber>
			<numberId>123</numberId>
			<number>1234567890</number>
			<created>Unix timestamp for when this number was bought</created>                
			<status>1 [1=Active, 0=Disabled]</status>
			<noteCount>2</noteCount>
		</SmsNumber>
		<SmsNumber>
			<numberId>321</numberId>
			<number>1214567890</number>
			<created>Unix timestamp for when this number was bought</created>                
			<status>0 [1=Active, 0=Disabled]</status>
			<noteCount>5</noteCount>
		</SmsNumber>
	</Data>
</Root>