onename-api
v1.0.1
Published
onename API node JS library
Downloads
5
Readme
onename-node
Node.JS client for Onename's API
Installation
$ npm install onename-api
Setting up the API Client
var onenameAPI = require('onename-api'),
OnenameClient = onenameAPI.OnenameClient
onenameClient = new OnenameClient(process.env.ONENAME_APP_ID, process.env.ONENAME_APP_SECRET)
API Calls
onenameClient.getUsers(['fredwilson', 'naval'], function(err, data) {
})
onenameClient.searchUsers('wenger', function(err, data) {
})
registrationPayload = {'passname': 'fredwilson', 'recipient_address': 'N6zdUCKq1gJaps76gagBbC5Vc6xBxMdvHc'}
onenameClient.registerUser(registrationPayload, function(err, data) {
})
onenameClient.getAllUsers(function(err, data) {
})
var payload = {signed_hex: '00710000015e98119922f0b'}
onenameClient.broadcastTransaction(payload, function(err, data) {
})
onenameClient.getUnspents('N8PcBQnL4oMuM6aLsQow6iG59yks1AtQX4', function(err, data) {
})
onenameClient.getNames('N8PcBQnL4oMuM6aLsQow6iG59yks1AtQX4', function(err, data) {
})
onenameClient.getDKIMInfo('onename.com', function(err, data) {
})
onenameClient.getUserStats(function(err, data) {
})