G
gcc4
Guest
HI!
I found:
http://forum.parallels.com/pda/index.php/t-81079.html
Can you please tell how to add a subdomain to an existing domain?
http://search.cpan.org/~nrg/API-Plesk-1.09...omainAliases.pm
try:
I return:
what's wrong?
what is the possibility to add a subdomain of an existing domain?
through the API? (perl,php,etc)
be an example?
I found:
http://forum.parallels.com/pda/index.php/t-81079.html
Can you please tell how to add a subdomain to an existing domain?
http://search.cpan.org/~nrg/API-Plesk-1.09...omainAliases.pm
try:
Code:
#!/usr/bin/perl
use API::Plesk;
#use API::Plesk::Response;
use API::Plesk::DomainAliases;
use Data::Dumper;
my ($plesk_ver, $plesk_user, $plesk_pass, $plesk_url) = qw(1.5.0.0 user pass https://s.s.com/login_up.php3);
my ($domain, $username, $ftp_user, $ftp_pass, $ip, $dom_template) = ($ARGV[0], $ARGV[1], $ARGV[2], $ARGV[3], $ARGV[4], $ARGV[5]);
my $plesk_client = API::Plesk->new('api_version'=>$plesk_ver,'username'=>$plesk_user,'password'=>$plesk_pass,'url'=>$plesk_url,'debug'=>'1','request_debug'=>'1' );
#print Dumper $plesk_client;
my $res = $plesk_client->DomainAliases->create(
domain_name => 'v.com',
);
# my $res = $plesk_client->Func_Module->operation_type(%params);
print Dumper $res;
# print $res->is_success;
# my $a = $res->get_data; # return arr ref of answer blocks
# print $a;
$res->is_success ? my $userid = $res->get_data->[0]{'id'} : print $res->get_error_string, " \n";
print $userid;
I return:
Code:
plesk_query: blank request
what's wrong?
what is the possibility to add a subdomain of an existing domain?
through the API? (perl,php,etc)
be an example?