5.3.0 • Published 3 months ago

@seven.io/client v5.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Official JavaScript API Client for seven

Installation

This library relies on the global fetch API. To use this library with Node.js < 18, node-fetch is required.

For compatibility with Node.js versions < 12, please also install the globalThis polyfill.

Via NPM

npm install @seven.io/client

Via Yarn

yarn add @seven.io/client

Browser

<script src='https://unpkg.com/browse/@seven.io/client/dist/seven-client.umd.cjs'></script>

Example

// const globalThis = require('globalthis')(); // uncomment if NodeJS < NodeJS versions < 12
// globalThis.fetch = require('node-fetch').default; // uncomment in NodeJS environments
// const {BalanceResource, Client} = require('@seven.io/client'); // uncomment in NodeJS environments

import {BalanceResource, Client} from '@seven.io/client'

const client = new Client({apiKey: 'MY_SUPER_SECRET_SEVEN_IO_API_KEY!'})
const balanceResource = new BalanceResource(client)
balanceResource.get()
    .then(console.log)
    .catch(console.error);

Tests

  1. git clone https://github.com/seven-io/js-client seven-client
  2. cd seven-client && npm install
  3. SEVEN_API_KEY=<ApiKey> SEVEN_SIGNING_SECRET=<SigningSecret> npm run test

Set SEVEN_DEBUG=1 for details printed to stdout.

Support

Need help? Feel free to contact us.

MIT

3.2.0

6 months ago

3.1.1

6 months ago

3.0.2

8 months ago

5.3.0

3 months ago

3.1.0

6 months ago

3.0.1

8 months ago

5.2.0

4 months ago

5.1.0

4 months ago

5.0.0

4 months ago

4.4.1

5 months ago

4.4.0

5 months ago

4.1.0

6 months ago

4.0.0

6 months ago

4.3.0

6 months ago

4.2.0

6 months ago

3.0.0

1 year ago