PHP code example of exavault / evapi-php
1. Go to this page and download the library: Download exavault/evapi-php 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 example snippets
$account_url = "https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";
$accountApi = new ExaVault\Api\AccountApi(
new GuzzleHttp\Client(),
(new ExaVault\Configuration())->setHost($account_url)
);
$resourcesApi = new ExaVault\Api\ResourcesApi(
new GuzzleHttp\Client(),
(new ExaVault\Configuration())->setHost($account_url)
);
$usersApi = new ExaVault\Api\UsersApi(
new GuzzleHttp\Client(),
(new ExaVault\Configuration())->setHost($account_url)
);