Skip to content

Commit

Permalink
Merge pull request #7 from phorick/master
Browse files Browse the repository at this point in the history
Added functions to get Default Nameservers and Default DNS Entries
  • Loading branch information
xvilo authored Oct 1, 2019
2 parents a7c8393 + 6ca4bed commit 1b14ee5
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
TRANSIP API V5.17
NEW
- Added functionality to get default DNS Entries and Nameservers by domain name.

TRANSIP API V5.16
NEW
- Added SSHFP, TLSA, and CAA to DnsEntry as acceptable types.
Expand Down
2 changes: 1 addition & 1 deletion Transip/ColocationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Transip_ColocationService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'ColocationService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down
2 changes: 1 addition & 1 deletion Transip/DnsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Transip_DnsService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'DnsService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down
48 changes: 47 additions & 1 deletion Transip/DomainService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Transip_DomainService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'DomainService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down Expand Up @@ -549,6 +549,52 @@ public static function handoverWithAuthCode($domainName, $authCode)
{
return self::_getSoapClient(array_merge(array($domainName, $authCode), array('__method' => 'handoverWithAuthCode')))->handoverWithAuthCode($domainName, $authCode);
}

/**
* Get Default DNS Entries for a customer.
*
* @return Transip_DnsEntry[] A list of the default Dns Entries for the currently authenticated user
* @throws ApiException If there are not default values
*/
public static function getDefaultDnsEntries()
{
return self::_getSoapClient(array_merge(array(), array('__method' => 'getDefaultDnsEntries')))->getDefaultDnsEntries();
}

/**
* Get Default DNS Entries for a specific domain
*
* @param string $domainName The domainName to get the information for.<br /><br />- domainName must meet the requirements for a domain name described in: <a href="https://tools.ietf.org/html/rfc952" target="_blanc">RFC 952</a>
* @return Transip_DnsEntry[] A list of the default DNS entries for this domain
* @throws ApiException If the domain could not be found.
*/
public static function getDefaultDnsEntriesByDomainName($domainName)
{
return self::_getSoapClient(array_merge(array($domainName), array('__method' => 'getDefaultDnsEntriesByDomainName')))->getDefaultDnsEntriesByDomainName($domainName);
}

/**
* Get Default Nameservers for a customer
*
* @return Transip_Nameserver[] A list of Nameservers for the currently authenticated API User
* @throws ApiException
*/
public static function getDefaultNameservers()
{
return self::_getSoapClient(array_merge(array(), array('__method' => 'getDefaultNameservers')))->getDefaultNameservers();
}

/**
* Get the Default nameservers for the given domain.
*
* @param string $domainName The domainName to get the information for.<br /><br />- domainName must meet the requirements for a domain name described in: <a href="https://tools.ietf.org/html/rfc952" target="_blanc">RFC 952</a>
* @return Transip_Nameserver[] A list of the default Nameservers for this domain
* @throws ApiException If the domain could not be found
*/
public static function getDefaultNameserversByDomainName($domainName)
{
return self::_getSoapClient(array_merge(array($domainName), array('__method' => 'getDefaultNameserversByDomainName')))->getDefaultNameserversByDomainName($domainName);
}
}

?>
2 changes: 1 addition & 1 deletion Transip/ForwardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Transip_ForwardService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'ForwardService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down
2 changes: 1 addition & 1 deletion Transip/HaipService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Transip_HaipService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'HaipService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down
2 changes: 1 addition & 1 deletion Transip/PropositionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Transip_PropositionService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'PropositionService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down
2 changes: 1 addition & 1 deletion Transip/VpsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Transip_VpsService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'VpsService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down
2 changes: 1 addition & 1 deletion Transip/WebhostingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Transip_WebhostingService
/** The SOAP service that corresponds with this class. */
const SERVICE = 'WebhostingService';
/** The API version. */
const API_VERSION = '5.16';
const API_VERSION = '5.17';
/** @var SoapClient The SoapClient used to perform the SOAP calls. */
protected static $_soapClient = null;

Expand Down

0 comments on commit 1b14ee5

Please sign in to comment.