open-index/open-npm huggingface dataset:
npm package: @orbis-systems/new-account-api-client
Description: This library comes comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
Author: Orbis Systems
Latest version: 1.1.8

## This is in early development and is not ready for implementation.
This library comes comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

### Installation
```
npm i -s @orbis-systems/new-account-api-js
```

### Inclusion

#### Node
```javascript
require("babel-core/register");
require("babel-polyfill");

const APIClient = require("@orbis-systems/new-account-api-js");
```

or

```javascript
require("babel-core/register");
require("babel-polyfill");

import APIClient from '@orbis-systems/new-account-api-js';
```

#### Browser

```html
<script src="browser-bundle.js"></script>
```

### Usage

#### Node

```javascript
const config = {
   base_url: 'https://example.com/', // Obtained from Orbis
};

(async () => 
{
    let client = new APIClient(config);
    await client.login('email', 'password', true); 
});
```

#### Browser

```javascript
const config = {
   base_url: 'https://example.com/', // Obtained from Orbis
};

var client = new APIClient(config)
client.login('email', 'password', true);
```

### Session Stores
By default, the session store will use LocalStorage.  In the browser, `LocalStorage` will utilize `localStorage`, and in NodeJS it will store them in `./session`.

You can create a custom session store by extending the `SessionStore` class.  To use it, pass it as the `session_store` on the config like:  
```
const config = {
   ...
   session_store: CustomStore,
   ...
};
```

You must implement the methods:
- `get(key)`
- `set(key, value, expiration_in_minutes)`
- `has(key)` (Returns boolean.  Should also return false if it has expired)
npm package: @orbis-systems/orbis-api-client
Description: This library comes comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
Author: Orbis Systems
Latest version: 5.6.4-nosign

## This is in early development and is not ready for implementation.
This library comes comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

### Installation
```
npm i -s @orbis-systems/orbis-api-client
```

### Inclusion

#### Node
```javascript
require("babel-core/register");
require("babel-polyfill");

const APIClient = require("@orbis-systems/orbis-api-client");
```

or

```javascript
require("babel-core/register");
require("babel-polyfill");

import APIClient from '@orbis-systems/orbis-api-client';
```

#### Browser

```html
<script src="browser-bundle.js"></script>
```

### Usage

#### Node

```javascript
const config = {
   base_url: 'https://example.com/', // Obtained from Orbis
   sign_url: 'https://example.com/'  // Endpoint for getting the signature
};

(async () => 
{
    let client = new APIClient(config);
    await client.login('username', 'password');
});
```

#### Browser

```javascript
const config = {
   base_url: 'https://example.com/', // Obtained from Orbis
   sign_url: 'https://example.com/'  // Endpoint for getting the signature
};

var client = new APIClient(config)
client.login('username', 'password');
```

### Session Stores
By default, the session store will use LocalStorage.  In the browser, `LocalStorage` will utilize `localStorage`, and in NodeJS it will store them in `./session`.

You can create a custom session store by extending the `SessionStore` class.  To use it, pass it as the `session_store` on the config like:  
```
const config = {
   ...
   session_store: CustomStore,
   ...
};
```

You must implement the methods:
- `get(key)`
- `set(key, value, expiration_in_minutes)`
- `has(key)` (Returns boolean.  Should also return false if it has expired)