onename-api
onename API node JS library
Last updated 6 years ago by shea256 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install onename-api 
SYNC missed versions from official npm registry.

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) {
})

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

2 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |