A Reseller only serviceThis command can be used to get all the users created under a dual brand or white label provider account.
https://api.textlocal.in/get_users/
<?php
$data = [
'apiKey' => 'Your API Key',
];
// Send the POST request with cURL
$ch = curl_init('https://api.textlocal.in/get_users/');
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 API key');
// Prepare data for GET request
$data = '&apikey=' . $apiKey;
// Send the GET request with cURL
$ch = curl_init('https://api.textlocal.in/get_users/?' . $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// Process your response here
echo $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. |
{
"users":[{
"id":"123456",
"loginID":"Test@me.com",
"Credits":"4723"
},
{
"id":"123455",
"loginID":"Test@gmail.com",
"Credits":"73"
}],
"status":"success"
}<response> <users> <user> <id>123456</id> <loginID>Test@me.com</loginID> <Credits>4723.2</Credits> </user> <user> <id>123455</id> <loginID>Test@gmail.com</loginID> <Credits>73</Credits> </user> </users> <status>success</status> </response>
| Error Codes | |
| 71 | No users found. |
|---|---|
| 72 | No reseller account found. |