Hi there
I'm deveopping a custom class using HTTPSocket.php class, to make querys to Directadmin API, altough i'm having some problemas, hope someone can help:
$this->sockit is a new HttpSocket and its right instanciated.
// Method to get all users from reseller
function getResellerUsers(&$result,$reseller)
{
$this->sockit->query('/CMD_API_SHOW_USERS',array('reseller'=>$reseller));
$result = $this->sockit->fetch_parsed_body();
}
Thanks
I'm deveopping a custom class using HTTPSocket.php class, to make querys to Directadmin API, altough i'm having some problemas, hope someone can help:
$this->sockit is a new HttpSocket and its right instanciated.
// Method to get all users from reseller
function getResellerUsers(&$result,$reseller)
{
$this->sockit->query('/CMD_API_SHOW_USERS',array('reseller'=>$reseller));
$result = $this->sockit->fetch_parsed_body();
}
Thanks
Last edited: