Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

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:
PHP:
$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:

PHP:
{"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.
 

hazdo

Extended Member
Ext. Member
Joined
Feb 6, 2020
Messages
53
Reaction score
273
Points
64
Location
germany
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock