This command can be used to retrieve all the sender names associated with your account.
https://api.textlocal.in/get_sender_names/
<?php // Account details $apiKey = urlencode('Your apiKey'); // Prepare data for POST request $data = array('apikey' => $apiKey); // Send the POST request with cURL $ch = curl_init('https://api.textlocal.in/get_sender_names/'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Process your response here echo $response; ?>
<?php // Account details $apiKey = urlencode('Your apiKey'); // Prepare data for POST request $data = $apiKey; // Send the GET request with cURL $ch = curl_init('https://api.textlocal.in/get_sender_names/?' . $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Process your response here echo $response; ?>
<?php require('Textlocal.class.php'); $Textlocal = new Textlocal(false, false, 'your apiKey'); $response = $Textlocal->getSenderNames(); print_r($response); ?>
There are no additional parameters for this command | |
Login Parameters (Additional Information) | |
apiKey | You can create these in your Messenger Control Panel (click here) for each application, and limit the usage of them by host IP Address. |
{ "default_sender_name":"MyName", "sender_names":[ "TXTLCL", "INDMOB" ], "status":"success" }
<?xml version="1.0" encoding="UTF-8" ?> <response> <default_sender_name>MyName</default_sender_name> <sender_names> <sender_name>TXTLCL</sender_name> <sender_name>INDMOB</sender_name> </sender_names> <status>success</status> </response>