Hi,
I'm having a tough time figuring out how to set the redirect URL for a domain I've just parked. I don't seem to be able to do it via the API (v2) when parking the domain, and the only other function that seems to do this is Park::setredirecturl in v1 of the API. But I can't for the life of me figure out how to format the command line to work properly. I'm calling it from Perl using LWP to send a GET request and my URL looks like this:
"http://$domain:2082/xml-api/cpanel?...ion=1&domain=$parkdomain&topdomain=$forwardto";
But I get an error "Could not find function 'setredirecturl' in module 'Park'" and the XML returns version 2 of the API. So I guess it makes sense that the function doesn't exist since it's not in v2 and the API thinks I'm calling a v2 function even though I specified v1
Looking at some examples in the docs, I also tried this format:
http://$domain:2086/xml-api/setredi...$user&domain=$parkdomain&topdomain=$forwardto
But that returns the error "Unknown app (setredirecturll) requested for this version (1) of the API. " The docs say it's in module "Park" but I don't see where to specify the module in the version 1 format of the command I'm using.
Can anyone suggest how to accomplish parking a domain with a redirect to another http: URL via the API?
Thanks!
I'm having a tough time figuring out how to set the redirect URL for a domain I've just parked. I don't seem to be able to do it via the API (v2) when parking the domain, and the only other function that seems to do this is Park::setredirecturl in v1 of the API. But I can't for the life of me figure out how to format the command line to work properly. I'm calling it from Perl using LWP to send a GET request and my URL looks like this:
"http://$domain:2082/xml-api/cpanel?...ion=1&domain=$parkdomain&topdomain=$forwardto";
But I get an error "Could not find function 'setredirecturl' in module 'Park'" and the XML returns version 2 of the API. So I guess it makes sense that the function doesn't exist since it's not in v2 and the API thinks I'm calling a v2 function even though I specified v1
Looking at some examples in the docs, I also tried this format:
http://$domain:2086/xml-api/setredi...$user&domain=$parkdomain&topdomain=$forwardto
But that returns the error "Unknown app (setredirecturll) requested for this version (1) of the API. " The docs say it's in module "Park" but I don't see where to specify the module in the version 1 format of the command I'm using.
Can anyone suggest how to accomplish parking a domain with a redirect to another http: URL via the API?
Thanks!