Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Need help figuring out reseller api

MSMM

Extended Member
Ext. Member
Joined
Mar 14, 2020
Messages
3
Reaction score
4
Points
11
Location
Mars
Right, so i have been banging my head for awhile and thought i could ask for some help here.
I am trying to do some simple user creation through the reseller api which is located at the "http://panelurl:25500/reseller/reseller_api.php" endpoint.

Now i am trying to create users using this php script:
Code:
$key = 'wrGE2GmHzsOK7Kq'; //apikey reseller
$url= "http://panelurl:25500/reseller/reseller_api.php";


$cURL = curl_init();
curl_setopt($cURL,CURLOPT_URL, $url);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
$post = array(
    'api_key' => $key, // Enter the API key 
    'action' => 'usercreate',
    'package' => '2', //Package id here;
    'username' => 'Test',
    'password' => 'Test',
    'trial' => '0', //For trial use 1 and for official 0
    'reseller_notes' => 'TEST TEST TEST'
) ;

curl_setopt($cURL, CURLOPT_POST, true);
curl_setopt($cURL, CURLOPT_POSTFIELDS, $post);
$result = curl_exec($cURL);
curl_close($cURL);
echo $result;

This seems to do half of the job, it creates users and assigns them a package and reseller notes, but for some reason it generates random username and password and doesn't use the provided ones, so the answer to this api request looks something like this:

Code:
{"result":"success","username":"ziaGThck9W","password":"8GKwMCBR0y","message":"User operation was completed successfully."}

My question is how can i pass the username and password params into the api request so that it creates users with those parameters?
Thanks for any help.
 
from my point of view it is better to intercept api request responsible for the creation of the user hence recreat simlaire one to see needed parameter this will save time
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top