Run the following command to install EuroDNS API npm module
npm i --save eurodns-api
Use the module in the following way
const EuroDNS = require('eurodns-api')
const credentials = {
user: 'YourUserName',
password: 'Your password',
mode: 'development' // Can be development or production, development is the default
//uri: '' // The URL of the API server (normally the API takes this by itself)
}
const api = new EuroDNS(credentials)
IMPORTANT: Make sure you add the IP address of your machine to the API list first! Otherwise it won't work.
All functions are based on the structure that can be found on the EuroDNS API page
Every function needs a callback with the structure (error, response)
and all the returned errors are of the Error
type.
Some models are reused throughout the project and can be found on the models doc
- domain.check
- domain.create
- domain.renew
- domain.setRenewalMode
- domain.list
- domain.info
- domain.update
- domain.lock
- domain.unlock
View file Only works in production mode
View file Only works in production mode