https://www.titanly.net/api/sms/groups/getGroups.php
Get Groups
Returns XML of all your SMS groups with the keyword and number of contacts in each group (does not contain the contacts themselves).
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/groups/getGroups.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> <SmsGroup> <groupId>GroupId</groupId> <name>Group Name</name> <keyword>Group Keyword</keyword> <number>Phone Number Associated with the group</number> <contactsCount>Number of Contacts</contactsCount> <created>When the group was created</created> <status>Status of the group</status>'; </SmsGroup> <SmsGroup> <groupId>GroupId 2</groupId> <name>Group Name 2</name> <keyword>Group Keyword 2</keyword> <number>Phone Number Associated with the group</number> <contactsCount>Number of Contacts</contactsCount> <created>When the group was created</created> <status>Status of the group</status>'; </SmsGroup> </Data> </Root>