PHP code example of narno / zendservice-gandi
1. Go to this page and download the library: Download narno/zendservice-gandi 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/ */
narno / zendservice-gandi 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();
}