Skip to content

Commit

Permalink
Add more method and login with @realm
Browse files Browse the repository at this point in the history
  • Loading branch information
franklupo committed Sep 16, 2017
1 parent 5779dfa commit 4a9b348
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 23 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ require_once 'vendor/autoload.php';
$client = new EnterpriseVE\ProxmoxVE\Api\Client("192.168.0.24");
$client->login('root','password','pam');

//get version from get method
var_dump($client->get('/version'));

// $client->put
// $client->post
// $client->delete

//loop nodes
foreach ($client->getNodes()->Index()->data as $node) {
echo "\n" . $node->id;
Expand Down
Loading

0 comments on commit 4a9b348

Please sign in to comment.