Download the PHP package level23/dynadot-api without Composer
On this page you can find all versions of the php package level23/dynadot-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dynadot-api
Dynadot-API
Unofficial implementation for the advanced Dynadot domain API
Please note, this is a beta API implementation, based on the API description at https://www.dynadot.com/domain/api3.html
Before you can use this API you have to:
- Get the API key from the dynadot backend
- Whitelist the IP address where your requests are coming from
By default, we will try to connect to the Dynadoy API for 30 seconds. If that fails,
an GuzzleHttp\Exception\ConnectException
is thrown. You probably want to catch these in case if something goes wrong.
Only a limited set of features are currently implemented, and the exact methods and parameters available on this API may change in the future.
Installing
Install the latest version with:
Requirements
To make use if this API you have to run PHP 8.2 or higher.
Contributing
If you want to help us improve this implementation, just contact us. All help is welcome! The only requirement for contributing is that all code is 100% covered by unit tests and that they implement the PSR standards.
License
See the file LICENSE for more information.
Example usage
See below some basic sample usages.
Getting Domain Details with getDomainInfo
The returned object will be an instance of Level23\Dynadot\ResultObjects\DomainInfoResponses\Domain
.
Example response:
The Whois
container will return the contact id's for this specific domain. Full contact details can be fetched with
this id by using the getContactInfo
API call.
List all domains with getDomainList
This will return an array of Level23\Dynadot\ResultObjects\DomainInfoResponses\Domain
objects. An exception will be
thrown when anything went wrong.
Set nameservers for a domain with setNameserversForDomain
The setNameserversForDomain
method will by default not give a response. An exception will be thrown when something
went wrong.
Retrieving contact info with getContactInfo
An exception will be thrown when something went wrong.
Example response:
Set renew option with setRenewOption
The setRenewOption
let's you set the renewal setting for a domain. Values of for the second
argument ($renewOption) van be "donot", "auto", "reset". The method will return true
when
the renew option is set successfully.
FAQ
I keep getting timeouts!
Make sure your IP address is whitelisted in the Dynadot backend. It can take a while (up to 1 hour) before the IP address is whitelisted.
I am banned from the Dynadot API!
The Dynadot API only allows 1 API call at the same time. Its not allowed to do concurrent API calls.
If you do request multiple API calls at the same time you can be banned. The ban will be for 10 a 15 minutes.
Information received via dynadot chat
All versions of dynadot-api with dependencies
guzzlehttp/guzzle Version >=6.0
psr/log Version ^2.0.0
sabre/xml Version ^2