Textlocal Logo

API Documentation

Get Users

A Reseller only serviceThis command can be used to get all the users created under a dual brand or white label provider account.

Resource URL

https://api.textlocal.in/get_users/

Sample Request

<?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;

Parameters

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.

Sample Response

{
	"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>

Errors

Error Codes
71 No users found.
72 No reseller account found.