PHP code example of ioguimaraes / vmware-rest-api
1. Go to this page and download the library: Download ioguimaraes/vmware-rest-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ioguimaraes / vmware-rest-api example snippets
ddress = '160.190.0.35';
$username = 'teste';
$password = 'teste1234';
$api = new vmwareRestApi($ipaddress, $username, $password);
$session_id = $api->vmwareCreateSessionId();
print_r($session_id);