2017 © Pedro Peláez
 

library neostrada-api-client

API client for DNS/hosting provider Neostrada

image

justim/neostrada-api-client

API client for DNS/hosting provider Neostrada

  • Tuesday, April 26, 2016
  • by justim
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Nestrada API client

API client for DNS/hosting provider Neostrada, (*1)

Requirements

  • PHP >= 5.4

Installation

  • Add justim/neostrada-api-client to your composer.json
  • composer install justim/neostrada-api-client

Usage

$neostrada = new Neostrada($apiKey, $secret);

$domain = $neostrada->domain('example.com');

// set A-record for www to 127.0.0.1
$domain->a('www', '127.0.0.1');

// you can do the same for CNAME-records
$domain->cname('autodiscover', 'autodiscover.outlook.com');

// alternatively you can get an instance of a record and make your changes there
$a = $domain->a('www');
$a->content = '10.0.0.2';
$a->ttl = 1800;

// making changes to current records doesn't automatically save changes
$domain->save();

$mxRecords = $domain->mx(); // lists all MX-records

foreach ($mxRecords as $mx)
{
    // change the content of the record
    $mx->content = 'mail.google.com';

    // mark the records as deleted
    $mx->setDeleted();
}

$mxRecords->save();

// adding records can be done by a new record and adding it
$a = $domain->create('a');
$a->name = 'mail';
$a->content = '127.0.0.1';
$domain->add($a); // adding a record saves it immediately

// fetching the auth code
$authCode = $domain->authCode();

List of possible API calls

  • [x] getnameserver
  • [x] getdns
  • [x] dns
  • [x] adddns
  • [x] gettoken
  • [ ] extensions
  • [ ] whois
  • [ ] holder
  • [ ] deleteholder
  • [ ] getholders
  • [ ] register
  • [ ] nameserver

The Versions

26/04 2016

dev-master

9999999-dev https://github.com/justim/neostrada-api-client

API client for DNS/hosting provider Neostrada

  Sources   Download

The Requires

  • php >=5.4.0

 

06/03 2015

0.1.0

0.1.0.0 https://github.com/justim/neostrada-api-client

API client for DNS/hosting provider Neostrada

  Sources   Download

The Requires

  • php >=5.4.0

 

30/01 2015

0.0.1

0.0.1.0 https://github.com/justim/neostrada-api-client

API client for DNS/hosting provider Neostrada

  Sources   Download

The Requires

  • php >=5.4.0