1.5.2 • Published 4 years ago

@orionlabs/node-orion v1.5.2

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

@orionlabs/node-orion - Node.js Module for Orion.

Build Status Maintenance HitCount Dependencies Status License Issues JavaScript Style Guide NPM

--

Install

To install from npm registry:

$ yarn add @orionlabs/node-orion
# or
$ npm i @orionlabs/node-orion

To install from source:

$ git clone https://github.com/orion-labs/node-orion
$ cd node-orion
$ npm install
# or
$ yarn add ./

Usage

Almost all module methods return a Promise. Most require a token, which can be retrieved with the auth() method.

Authenticate against the Orion Platform

With a given Orion username ("User ID") and password:

OrionClient.auth(username, password).then((result) => {
  console.log(`userId=${result.id} token=${result.token}`);
})

Authenticate against the Orion Platform

With a given Orion username ("User ID") and password:

OrionClient.auth(username, password).then((result) => {
  console.log(`userId=${result.id} token=${result.token}`);
})

Lookup your user profile

With a given Orion username ("User ID") and password:

OrionClient.auth(username, password).then((result) => {
  OrionClient.whoami(result.token).then((result) => {
    console.log('Here is my Orion User Profile:');
    console.log(result);
  });
});

Copyright

Copyrigh 2020 Orion Labs, Inc.

License

Apache License, Version 2.0

Author

Greg Albrecht gba@orionlabs.io

Source

https://github.com/orion-labs/node-orion

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-beta.6

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-b3

4 years ago

1.0.0-beta.4

4 years ago

1.0.0-b4

4 years ago

1.0.0-b2

4 years ago

1.0.0-b1

4 years ago