node-orgmanager-api
A Node.js client for the OrgManager API
Last updated 3 years ago by tiagodanin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-orgmanager-api 
SYNC missed versions from official npm registry.

Node OrgManager API

NPM

A Node.js client for the OrgManager API

Use

const orgmanager = require('node-orgmanager-api')
const token = 'my-token' //https://orgmanager.miguelpiedrafita.com/token
const client = new orgmanager(token)

//Join Org
client.joinOrg('org-id', 'username')

//Get User info
client.getUser()

//Get User Orgs
client.getOrgs()

//Get Org info
client.getOrg('org-id')

//Change Org Password
client.changeOrgPassword('org-id', 'new-password')

//Update Org
client.updateOrg('org-id')

//Delete Org
client.deleteOrg('org-id')

//Get Stats
client.getStats()

//Renenerate Token
client.regenerateToken()

//Renenerate Token and Set new Token
client.regenerateToken(true)

Proxy

const orgmanager = require('node-orgmanager-api')
const token = 'my-token' //https://orgmanager.miguelpiedrafita.com/token
const client = new orgmanager(token, 'proxy-url ~> orgmanager')

Installation

This is a Node.js module available through the npm registry. It can be installed using the npm command line tools.

$ npm install node-orgmanager-api

Dependencies

  • request: Simplified HTTP request client.
  • request-promise-native: The simplified HTTP request client 'request' with Promise support. Powered by native ES6 promises.

License

MIT

Current Tags

  • 1.1.2                                ...           latest (3 years ago)

5 Versions

  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |