freenom
Freenom API bindings for Node.js.
Install
npm install --save freenom
API
This module exports a constructor function which takes two arguments:
var Freenom = ; var freenom = email password;
The email
and password
arguments are optional. If you provide them, you can
avoid to specify the authentication parameters when you call the methods that
require authentication.
Every resource is accessed via your freenom
instance:
var freenom = ;// freenom.<resouce_name>.<method_name>
The last argument of every resource method is an error-first callback:
var freenom = ; freenomservice;
Available resources and methods
- service
ping(callback)
- domain
search(params, callback)
register(params, callback)
renew(params, callback)
getinfo(params, callback)
modify(params, callback)
delete(params, callback)
restore(params, callback)
upgrade(params, callback)
list([params], callback)
- nameserver
register(params, callback)
delete(params, callback)
list(params, callback)
- contact
register(params, callback)
delete(params, callback)
getinfo(params, callback)
list([params], callback)
- transfer
price(params, callback)
request(params, callback)
approve(params, callback)
decline(params, callback)
list([params], callback)
where params
is a plain JavaScript object, e.g. { domainname: 'test002.tk' }
.
See http://www.freenom.com/en/freenom-api.html for parameters details.
Credits
Structured after the fullcontact package.