Skip to content

PointDNS/php-pointdns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

php-pointnds

This library provides easy access to point zone & record management. For information about the services offered on Point see the website

Authentication

To access your Point account, you'll need to define your username & apitoken. The username is your email address and the apitoken is the API token which, can be found in My Account tab.

Example

Load module

require('pointdns.php');
$point = new PointDNS('john@example.com', 'secret-key');

Create a new zone

$zone = $point->addZone( array('name' => 'example.com') );

Get list of zones

$zones = $point->getZones();

Get list of zones by group

$zones = $point->getZones( array(group => 'Clients') );

Update a zone

$zone = $point->updateZone( 
    array(zone_id => 1), 
    array(group => 'Services')
);

Get zone

$zone = $point->getZone( array(zone_id => 1) );

Delete zone

$zone = $point->deleteZone( array(zone_id => 1) );

Create a new record

$record = $point->addRecord(
    array(zone_id => 1),
    array(name => "site", record_type => "A", data => "1.2.3.4")
);

Update a record

$record = $point->updateRecord(
    array(zone_id => 1, record_id => 1),
    array(name => "site", record_type => "A", data => "4.3.2.1")
);

Get list of records for zone

$records = $point->getRecords( array(zone_id => 1) );

Get record for zone

$record = $point->getRecord( array(zone_id => 1, record_id => 1) );

Delete a record

$record = $point->deleteRecord( array(zone_id => 1, record_id => 1) );

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages