Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > Suggestions > Topic : Admin SDK docs are wrong



Threaded Mode | Print  

 Admin SDK docs are wrong (1 Replies, Read 3380 times)
Keage
Group: Member
Post Group: Newbie
Posts: 44
Status:
The docs show this at 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.
IP: --   

Admin SDK docs are wrong
asim_shaikh
Group: Member
Post Group: Elite Member
Posts: 381
Status:
Hi,

We have made the required changes in our SDK and will be releasing in the upcoming version itself.




-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 11:48 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.019