Up to now, I have been successful working with the api with my php scripts. I would like to add some of the features of CMD_API_DNS_CONTROL, but this one doesn't work like the rest.
CMD_API_DNS_CONTROL
I would like to do something like
I do not want to do it like
http://domain.com:2222/CMD_API_DNS_CONTROL?domain=domain.com&action=add&type=A&name=testing&value=192.168.0.2
because it requires someone to login.
CMD_API_DNS_CONTROL
I would like to do something like
PHP:
$sock = new HTTPSocket;
$sock->connect($this->domain,2222);
$sock->set_login($this->username,$this->password);
$sock->query('CMD_API_DNS_CONTROL',
array(
'domain' => $this->domain,
'action' => 'add',
'type' => 'A',
'name' => 'test',
'value' => '192.168.0.1'
)
);
$result = $sock->fetch_parsed_body();
return($result);
I do not want to do it like
http://domain.com:2222/CMD_API_DNS_CONTROL?domain=domain.com&action=add&type=A&name=testing&value=192.168.0.2
because it requires someone to login.