0.0.7 • Published 10 years ago

node-rpas-sdk v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

node-rpas-sdk

SDK for the RPAS Cloud REST API

NPM

Online Example Available on Runnable

##Usage

var rpas = require('node-rpas-sdk')

rpas.config({
 "api-version": "v1",
 "username": "", //unless using token auth
 "password": "", //unless using token auth
 "token": ""
}).
then(function(me) {
 //With streams
 rpas.taxonomies.list.stream().pipe(process.stdout)
 return rpas.taxonomies.list
}, 
handle_error).
then(function(list_resource) {
 //With promises
 list_resource.promise().then(console.log, handle_error)
 return list_resource
}, 
handle_error).
then(function(list_resource) {
 //With traditional callbacks
 list_resource.cb({}, function(e, rd, data) {
  if(e) return handle_error(e)
  console.log("%s\n", JSON.stringify(data, null, 4))
 })
}, handle_error)
0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago