View Single Post
  #1  
Old 15th December 2010, 12:16
holykim holykim is offline
Member
 
Join Date: Jan 2009
Posts: 53
Thanks: 15
Thanked 3 Times in 2 Posts
Default ISPConfig 3.0.3.1 API

Hi Till

Thank you for your reply. My code is below which is the exactly same with a sample code just except the params. Please advise exactly what I have to change?

Thanks

Harry


PHP Code:
try {
    
    
$params = array(        'server_id' => 1,
                            
'company_name' => $mb_2,
                            
'contact_name' => $contact_name,
                            
'username' => $mb_mid,
                            
'password' => $mb_password,
                            
'language' =>'en',
                            
'usertheme' =>'default',
                            
'street' => $street,
                            
'zip' => $mb_zip,
                            
'city' => $mb_city,
                            
'state' => $mb_state,
                            
'country' => $mb_country,
                            
'telephone' => $telephone,
                            
'mobile' => $mobile,
                               
'fax' => $fax,
                               
'email' => $mb_email,
                            
'internet' =>'',
                            
'icq' =>'',
                               
'notes' =>'',  
                            
'template_master' => '0',
                            
'template_additional' => '',
                            
'default_mailserver' => '1',
                            
'limit_maildomain' => '-1',
                            
'limit_mailbox' => $limit_mailbox,
                            
'limit_mailalias' => '-1',
                            
'limit_mailaliasdomain' => '-1',
                            
'limit_mailforward' => '-1',
                            
'limit_mailcatchall' => '-1',
                            
'limit_mailrouting' => '0',
                            
'limit_mailfilter' => '0',
                               
'limit_fetchmail' => '-1',
                            
'limit_mailquota' => $limit_mailquota,
                            
'limit_spamfilter_wblist' => '0',
                            
'limit_spamfilter_user' => '0',
                            
'limit_spamfilter_policy' => '0',
                            
'default_webserver' => '1',
                            
'limit_web_domain' => $limit_web_domain,
                            
'limit_web_quota' => $limit_web_quota,
                               
'web_php_options' => 'no,fast-cgi,cgi,mod,suphp',
                            
'limit_web_aliasdomain' => '-1',
                            
'limit_web_subdomain' => '-1',
                            
'limit_ftp_user' => $limit_ftp_user,
                            
'limit_shell_user' => $limit_shell_user,
                            
'ssh_chroot' => 'jailkit',
                            
'default_dnsserver' => '1',
                            
'limit_dns_zone' => '-1',
                            
'limit_dns_record' => '-1',
                            
'limit_client' => $limit_client,
                            
'default_dbserver' => '1',
                            
'limit_database' => $limit_database,
                            
'limit_cron' => '-1',
                            
'limit_cron_type' => 'url',
                               
'limit_cron_frequency' => '5',
                            
'limit_traffic_quota' => $limit_traffic_quota);


    
$return_client_id $client->client_update($session_id$client_id$reseller_id$params);
    
    
} catch (
SoapFault $e) {
    die(
'SOAP Error: '.$e->getMessage());

Reply With Quote
Sponsored Links