PHP code example of mrsam / dnsimple-forwarder

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

    

mrsam / dnsimple-forwarder example snippets


$fw = new DNSimple_Forwarder('<your token>');
$accounts = $fw->getAccounts();
var_dump($accounts);

$fw = new DNSimple_Forwarder('<your token>');
$domains = $fw->getDomains($account_id);
var_dump($domains);