AAPI creating User package

neo-hippie

Verified User
Joined
May 27, 2014
Messages
69
Location
The Netherlands (Holland)
Hello, i've created a reseller package and using the command /CMD_API_ACCOUNT_RESELLER i am able to create new resellers.
but when i want to add Users to that reseller through the api i get the message "no package".
as that Reseller has no user packages available. how can i create the using the API?

i presume as the webinterface uses /CMD_SHOW_USER_PACKAGE to create new, the API equivalent should be /CMD_API_SHOW_USER_PACKAGE
but what are the available/required form array values?

or am i able to copy a user package from another reseller?
 
okey never mind, nailed it.

PHP:
					$sock->query('/CMD_API_MANAGE_USER_PACKAGES',
						array(
							'action' => 'create',
							'add' => 'Submit',
							'packagename' => 'standard',
							'aftp' => 'OFF',
							'cgi' => 'ON',
							'dnscontrol'=> 'ON',
							'bandwidth' => 'unlimited',
							'domainptr' => 'unlimited',
							'ftp' => 'unlimited',
							'mysql' => 'unlimited',
							'nemailf' => 'unlimited',
							'nemailml' => '1',
							'nemailr' => '10',
							'nemails'=> 'unlimited',
							'nsubdomains' => 'unlimited',
							'quota' => '1000',
							'skin' => 'default',
							'ssh' => 'ON',
							'ssl'=> 'ON',
							'php' => 'ON',
							'spam' => 'ON',
							'catchall' => 'OFF',
							'cron' => 'OFF',
							'sysinfo' => 'OFF',
							'login_keys' => 'OFF',
							'vdomains' => 'unlimited',
							'suspend_at_limit' => 'Off'
						));
 
Back
Top