PHP code example of exavault / evapi-php-guzzle-compat

1. Go to this page and download the library: Download exavault/evapi-php-guzzle-compat 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/ */

    

exavault / evapi-php-guzzle-compat example snippets


// Replace YOUR_ACCOUNT_NAME_HERE with your account name!
$account_url = "https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";
$accountApi = new ExaVault\Api\AccountApi(
    null,
    (new ExaVault\Configuration())->setHost($account_url)
);

$resourcesApi = new ExaVault\Api\ResourcesApi(
    null,
    (new ExaVault\Configuration())->setHost($account_url)
);

$usersApi = new ExaVault\Api\UsersApi(
    null,
    (new ExaVault\Configuration())->setHost($account_url)
);