Admin SDK docs are wrong https://www.softaculous.com/board/index.php?tid=9292 <![CDATA[Admin SDK docs are wrong]]> https://www.softaculous.com/board/index.php?tid=9292&tpg=1#p31825
We have made the required changes in our SDK and will be releasing in the upcoming version itself.


]]>
Thu, 30 Jun 2016 03:07:16 GMT https://www.softaculous.com/board/index.php?tid=9292&tpg=1#p31825
<![CDATA[]]> https://www.softaculous.com/board/index.php?tid=9292&tpg=0#p31819 http://www.virtualizor.com/wiki/API_Create_VPS:

PHP Code

 $output $admin->addvs($post);
    
    
//Use this call instead if creating VPS on Slave Server
    //$output = $admin->addvs($post, $cookies); 




However the second parameter is required:

PHP Code

 function addvs($post$cookies){
        
$path 'index.php?act=addvs';
        
$post $this->clean_post($post);
        
$ret $this->call($path''$post$cookies);
        return array(
            
'title' => $ret['title'],
            
'error' => @empty($ret['error']) ? array() : $ret['error'],
            
'vs_info' => $ret['newvs'],
            
'globals' => $ret['globals']
        );
    } 




The docs should read
PHP Code

 $output $admin->addvs($post, []); 

or the $cookies parameter should default to an empty array.]]>
Wed, 29 Jun 2016 21:01:37 GMT https://www.softaculous.com/board/index.php?tid=9292&tpg=0#p31819