PHP code example of unisharp / gandi-api
1. Go to this page and download the library: Download unisharp/gandi-api 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/ */
unisharp / gandi-api example snippets
use Narno\Gandi\Api as GandiAPI;
try {
$api = new GandiAPI();
// set API key
$params = ['your_api_key'];
// fetches account informations...
$account = $api->account->info($params);
// and print
print_r($account);
} catch (\Exception $e) {
echo $e->getMessage();
}