PHP code example of idcf / client

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

    

idcf / client example snippets



key = '';
$secret_key = '';
$client = new \Idcf\Client\Compute($api_key, $secret_key, 'compute.jp-east.idcfcloud.com');
$args = array('command' => 'listZones');
$client->get($args);


key = '';
$secret_key = '';
$client = new \Idcf\Client\Ilb($api_key, $secret_key, 'ilb.jp-east.idcfcloud.com');
$client->get('loadbalancers');


key = '';
$secret_key = '';
$client = new \Idcf\Client\Dns($api_key, $secret_key);
$client->get('zones');


key = '';
$secret_key = '';
$client = new \Idcf\Client\Your($api_key, $secret_key);
$client->get('billings/history');


key = '';
$secret_key = '';
$client = new \Idcf\Client\CdnZero($api_key, $secret_key);
$args = array('api_key' => $api_key);
$client->get('fqdns', $args);