Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
franklupo committed Feb 28, 2024
1 parent 181f32a commit cbf2ccc
Show file tree
Hide file tree
Showing 5 changed files with 1,660 additions and 1,666 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ This feature permit execute Api without using user and password.
If using **Privilege Separation** when create api token remember specify in permission.
Format `USER@REALM!TOKENID=TOKEN` (Usage example below)


## Installation

Recommended installation is using [Composer], if you do not have [Composer] what are you waiting?
Expand Down Expand Up @@ -158,7 +157,7 @@ if($client->login('root','password','pam')){
//result json result
$client->setResponseType('json');
var_dump($client->get('/version')->getResponse());

//set connection timeout (by default no timeout)
$client->setTimeout(2)->get('/version')->getResponse();
}
Expand Down Expand Up @@ -216,6 +215,7 @@ The parameter indexed end with '[n]' in documentation (method createVM in Qemu p
```

### Usage with API-token instead username/password

```php
<?php

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "corsinvest/cv4pve-api-php",
"description": "Corsinvest Proxmox VE Client API PHP",
"version": "8.1.1",
"version": "8.1.2",
"keywords": [
"Proxmox",
"Proxmox VE",
Expand Down
Loading

0 comments on commit cbf2ccc

Please sign in to comment.