https://github.com/orgmanager/node-orgmanager-api
A Node.js client for the OrgManager API
https://github.com/orgmanager/node-orgmanager-api
api api-client client node orgmanager orgmanager-api
Last synced: about 1 month ago
JSON representation
A Node.js client for the OrgManager API
- Host: GitHub
- URL: https://github.com/orgmanager/node-orgmanager-api
- Owner: orgmanager
- License: mit
- Created: 2018-03-03T18:25:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-02T01:41:00.000Z (over 2 years ago)
- Last Synced: 2025-10-19T20:51:53.043Z (4 months ago)
- Topics: api, api-client, client, node, orgmanager, orgmanager-api
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node OrgManager API [](https://www.npmjs.com/package/@orgmanager/node-orgmanager-api)
A Node.js client for the OrgManager API
# Use
```javascript
const orgmanager = require('@orgmanager/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
```javascript
const orgmanager = require('@orgmanager/node-orgmanager-api')
const token = 'my-token' //https://orgmanager.miguelpiedrafita.com/toke
const client = new orgmanager(token, 'proxy-url ~> orgmanager')
```
# Installation
This is a [Node.js](https://nodejs.org/) module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally) command line tools.
```sh
$ npm install @orgmanager/node-orgmanager-api
```
# Dependencies
- [request](https://ghub.io/request): Simplified HTTP request client.
- [request-promise-native](https://ghub.io/request-promise-native): The simplified HTTP request client 'request' with Promise support. Powered by native ES6 promises.
# License
MIT