Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Voxel.net (Internap) node.js hAPI client

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.md

nhapi

node.js Voxel.net Hosting API Client

Usage

  • Create client
var nhapi = require('nhapi')

var client = nhapi.create({
  key: 'user key'
, secret: 'user secret'
, url: 'https://api.voxel.net'
});
  • Call a hAPI method
client.call({method: 'voxel.devices.metrics.read', device_id: 1324, metric: 'bandwidth', start_time: 1341100800, interface: 'eth0', format: 'json_v2'}, function (err, res) {
  if (err) return console.log(err)
  console.log(res)
})

License

MIT/X11

Something went wrong with that request. Please try again.