https://www.titanly.net/api/sms/groups/removeGroupContact.php
Remove Group Contact
Remove a contact from a group
Name | Status | Description |
---|---|---|
ApiKey | Required | Your company Api Key which can be found in the dashboard under account. |
GroupId | Required | The key Id of the contact to remove from the group (kId from Get Group Contacts) |
ContactId | Required | The Contact Id. |
Base Example
PHP
<?php //Setup Variables $url = "https://www.titanly.net/api/sms/groups/removeGroupContact.php"; $fields['ApiKey'] = urlencode('Your API Key'); $fields['GroupId'] = urlencode('ID of the group'); $fields['ContactId'] = urlencode('ID of the contact'); //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> </Data> </Root>