Unable to delete user through web service

You can share your Lua Scripts with everybody here.

Unable to delete user through web service

Postby jvillavi » Sat Feb 13, 2016 3:25 am

Hi everybody,

I'd like to learn how to delete a user through web service in php.
I'm able to create one but unable to delete it.
Please, I'd be very thankful if anyone sent me an example.

Thanks.
jvillavi
 
1
 
Sat Feb 13, 2016 3:15 am

Re: Unable to delete user through web service

Postby FTP » Mon Feb 15, 2016 12:49 pm

PHP example:
Code: Select all
$strUrl = "http://127.0.0.1:5466/admin_webservice.html";
$strUrlParam = "?admin=demo&pass=demo123&cmd=";
$strLuaScript = <<<EOT
    c_DeleteUser("DomainName", "UserName")
EOT;

$strResult = file_get_contents($strUrl.$strUrlParam.rawurlencode($strLuaScript));
FTP
Site Admin
 
1876
 
Tue Sep 29, 2009 6:09 am


Return to Lua scripts

Who is online

Users browsing this forum: No registered users and 2 guests

cron