PHP code example of wefabric / acronis-php

1. Go to this page and download the library: Download wefabric/acronis-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/ */

    

wefabric / acronis-php example snippets




use Wefabric\Acronis\AcronisClient;
use Wefabric\Acronis\Credentials;
use Wefabric\Acronis\UrlResolver;

Client(new UrlResolver($domainUrl), new Credentials($clientId, $clientSecret));
$alertsResponse = $acronis->getClient()->get('/api/alert_manager/v1/alerts');

// Retrieve the alerts as decoded Json
$alertsResponse->json();
bash
composer