Hi everyone,
I'm using the cPanel APi successfully for many different functions: creating account, terminating accounts, DNS functions, etc.
All runs perfectly fine as expected. Only the API2 function Park::park doesn't do what I want.
Simple example:
Existing account: domainname.com.au with acc name: domainna
Domain I want to park on to of the existing account : domainname.com
Both domains are under our management and point to the correct nameserver.
I tried to use the API2 module Park with the function park to park the domain.
Unfortunately that doesn't work. I get the following error message:
The only thing in there that makes me wonder is the part I highlighted. Why is the domainname there twice (domainname.com.au.domainname.com.au)?
And now the strange part.
If I go into WHM and try to park the domain via DNS Functions > Park a Domain, it works fine.
Hope someone can help.
Cheers,
Bjorn
I'm using the cPanel APi successfully for many different functions: creating account, terminating accounts, DNS functions, etc.
All runs perfectly fine as expected. Only the API2 function Park::park doesn't do what I want.
Simple example:
Existing account: domainname.com.au with acc name: domainna
Domain I want to park on to of the existing account : domainname.com
Both domains are under our management and point to the correct nameserver.
I tried to use the API2 module Park with the function park to park the domain.
PHP:
$acc_name = 'domainna';
$dom_to_park = 'domainname.com';
$dom_top_name = 'domainname.com.au';
$xmlapi->api2_query($acc_name, "Park", "park", array(domain=>$dom_to_park, topdomain=>$dom_top_name);
Code:
{"cpanelresult":{"error":"Error from park wrapper: The following domain is not configured for this account: [B]domainname.com.au.domainname.com.au[/B]: @Cpanel::DOMAINS=(domainname.com.au)\\n","data":[{"result":0,"reason":"Error from park wrapper: The following domain is not configured for this account: domainname.com.au.domainname.com.au: @Cpanel::DOMAINS=(domainname.com.au)\\n"}],"event":{"result":1},"module":"Park","apiversion":2,"func":"park"}}
And now the strange part.
If I go into WHM and try to park the domain via DNS Functions > Park a Domain, it works fine.
Hope someone can help.
Cheers,
Bjorn