Skip to content

Class to manage DNS records using the dnsimple.com API

Notifications You must be signed in to change notification settings

nfacha/dnsimple-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This class is used to manage (list,create and delete) DNS records on dnsimple.com using its API.

You will need obtain your AccountID and API Key to use this library, you can do so from the "Account" option of the dashboard then head over to the "Automation" tab.

Usage:
 $dnSimple    = new dnSimpleApi( "DNSIMPLE_API_KEY", "DNSIMPLE_ACCOUND_ID" );
 $dnsResponse = $dnSimple->createRecord( "example.com", [
     'type'    => 'a',
     'name'    => 'squirrel',
     'content' => '8.8.8.8'
 ] );
 if ( array_key_exists( 'data', $dnsResponse ) && array_key_exists( 'id', $dnsResponse['data'] ) ) {
     $dnSimple->deleteRecord( "example.com", $dnsResponse['data']['id'] );
 };

Official docs available here: https://dnsimple.com/api

About

Class to manage DNS records using the dnsimple.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages