inwx-nodejs
A Node.js client to connect to inwx XML-RPC API.
Installation
npm install inwx
Official Documentation from InternetWorX
Prerequisites
Create a new account at https://ote.inwx.de for usage with the testing api. You need to create a new account, even if you already registered at the real inwx website.
For production api, you need an account at https://www.inwx.de
Usage
var inwx = require ( ' inwx ' ) ;
inwx ( { api : " testing " , user : " max123 " , password : " pass123 " } , function ( api ) {
console . log ( " API is ready " ) ;
api . call ( " account " , " info " , { } , function ( response ) {
console . log ( " account.info response: " ) ;
console . log ( response ) ;
} ) ;
api . nameserverRecordHelper ( " example.com " , " create " , { type : " A " , name : " test.example.com " , content : " 192.168.0.1 " } , function ( response ) {
console . log ( " created record: " ) ;
console . log ( response ) ;
api . nameserverRecordHelper ( " example.com " , " delete " , { type : " A " , name : " test.example.com " , content : " 192.168.0.1 " } , function ( response ) {
console . log ( " deleted record: " ) ;
console . log ( response ) ;
} ) ;
} ) ;
api . nameserverRecordHelper ( " example.com " , " update " , { content : " 192.168.0.2 " } , { type : " A " , name : " sub.example.com " } , function ( response ) {
console . log ( " updated record sub.example.com with 192.168.0.2: " ) ;
console . log ( response ) ;
} ) ;
api . close ( ) ;
} ) ;
License (MIT)
Released under the MIT license. See the LICENSE file for the complete wording.