A Reseller only service Requires Advanced Reseller API This command can be used to get all the users with their account details, credit thresholds, API keys and other information 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": "277112", "loginID": "example.user1@example.in", "Credits": 10, "api_hash": "1848ca2c189562792b87939a9df6eba07e2e6a5f", "default_sender_name": "TXTLCL", "last_sent": "0000-00-00", "signup_date": "2015-09-18 11:40", "timezone": "Asia/Kolkata", "activated": true, "name": "Example User 1", "address": "IMImobile Pvt. Ltd, Plot No. 770, Road No. 44, Jubilee Hills", "postcode": "500018", "town": "Hyderabad", "county": "Telangana", "country": "India", "telephone": "918123456789", "credit_alerts": { "email": "", "thresholds": [ 50, 20, 10, 5 ] }, "api_keys": [] }, { "id": "277235", "loginID": "example.user0@example.in", "Credits": 25, "api_hash": "254ba9cf3039c216fc1c3e00fe6499cbac06eb34", "default_sender_name": "INDMOB", "last_sent": "0000-00-00", "signup_date": "2015-09-18 14:49", "timezone": "Asia/Kolkata", "activated": true, "name": "Example User 0", "address": "IMImobile Pvt. Ltd, Plot No. 770, Road No. 44, Jubilee Hills", "postcode": "500018", "town": "Hyderabad", "county": "Telangana", "country": "India", "telephone": "918987654321", "credit_alerts": { "email": "example.user0@example.in", "thresholds": [ 50, 20, 10, 5 ] }, "api_keys": [ { "api_key": "GSi8ihLplrc-L1FJ4KVQW9UTPIX0E7NC8YZA5RGMOS", "notes": "Example API Key", "ip_addresses": [ "123.123.123.123" ] } ] } ], "status": "success" }
<?xml version="1.0" encoding="UTF-8" ?> <response> <users> <user> <id>277112</id> <loginID>example.user1@example.in</loginID> <Credits>10</Credits> <api_hash>1848ca2c189562792b87939a9df6eba07e2e6a5f</api_hash> <default_sender_name>TXTLCL</default_sender_name> <last_sent>0000-00-00</last_sent> <signup_date>2015-09-18 11:40</signup_date> <timezone>Asia/Kolkata</timezone> <activated>1</activated> <name>Example User 1</name> <address>IMImobile Pvt. Ltd, Plot No. 770, Road No. 44, Jubilee Hills</address> <postcode>500018</postcode> <town>Hyderabad</town> <county>Telangana</county> <country>India</country> <telephone>918123456789</telephone> <credit_alerts> <email></email> <thresholds> <threshold>50</threshold> <threshold>20</threshold> <threshold>10</threshold> <threshold>5</threshold> </thresholds> </credit_alerts> <api_keys></api_keys> </user> <user> <id>277235</id> <loginID>example.user0@example.in</loginID> <Credits>25</Credits> <api_hash>254ba9cf3039c216fc1c3e00fe6499cbac06eb34</api_hash> <default_sender_name>INDMOB</default_sender_name> <last_sent>0000-00-00</last_sent> <signup_date>2015-09-18 14:49</signup_date> <timezone>Asia/Kolkata</timezone> <activated>1</activated> <name>Example User 0</name> <address>IMImobile Pvt. Ltd, Plot No. 770, Road No. 44, Jubilee Hills</address> <postcode>500018</postcode> <town>Hyderabad</town> <county>Telangana</county> <country>India</country> <telephone>918987654321</telephone> <credit_alerts> <email>example.user0@example.in</email> <thresholds> <threshold>50</threshold> <threshold>20</threshold> <threshold>10</threshold> <threshold>5</threshold> </thresholds> </credit_alerts> <api_keys> <api_key> <api_key>GSi8ihLplrc-L1FJ4KVQW9UTPIX0E7NC8YZA5RGMOS</api_key> <notes>Example API Key</notes> <ip_addresses> <ip_addresse>123.123.123.123</ip_addresse> </ip_addresses> </api_key> </api_keys> </user> </users> <status>success</status> </response>
Error Codes | |
71 | No users found. |
---|---|
72 | No reseller account found. |