naviciroel
New member
- Joined
- Oct 31, 2014
- Messages
- 1
Hi I've been having problems on adding addon domain in an account using the DA APi.
I can't get it working here's my code:
$sub = strstr($domain, '.', true) . '.' . $main_domain;
$api->server_connect();
$api->set_login($username, $password);
$api->set_method('POST');
$api->query('/CMD_SUBDOMAIN', array('action' => 'create', 'domain' => $domain, 'subdomain' => $sub));
$result = $this->fetch_body();
can someone explain why is it not working and help me how to make it work?
I can't get it working here's my code:
$sub = strstr($domain, '.', true) . '.' . $main_domain;
$api->server_connect();
$api->set_login($username, $password);
$api->set_method('POST');
$api->query('/CMD_SUBDOMAIN', array('action' => 'create', 'domain' => $domain, 'subdomain' => $sub));
$result = $this->fetch_body();
can someone explain why is it not working and help me how to make it work?