Delete domain api error
I am having issues with removing / deleting addon domains from cpanel through api.
you can see my error screenshot here [Removed - Please Add to thread in CODE tags]
My code is as followed:
Can someone please help me?
get_debug();
$xmlapi->password_auth("wedoma5",'mypass');
$add_addon = $xmlapi->api2_query('', 'AddonDomain', 'deladdondomain',
array("domain" => "domainex.com",
"subdomain" => "domainex.com"));
print_r($add_addon);
?>Can someone please help me?
-
subdomain" => "domainex.com"));
Hello :) The subdomain should reflect the example in the following document: cPanel API 2 Functions - AddonDomain::deladdondomain - Software Development Kit - cPanel Documentation EX:addondomain_example.com
This is the addon domain's username, an underscore (_), and the addon domain's main domain. Thank you.0
Please sign in to leave a comment.
Comments
1 comment