flagright
TypeScript icon, indicating that this package has built-in type declarations

1.5.11 • Public • Published

Flagright Node Library

npm shield fern shield

The Flagright Node.js library provides access to the Flagright API from JavaScript/TypeScript.

Documentation

API documentation is available at https://docs.flagright.com.

Usage

import { FlagrightClient } from 'flagright';

const client = new FlagrightClient({ environment: 'https://sandbox.api.flagright.com', apiKey: 'YOUR_API_KEY', })
const response = await client.transactions.verify({
  body: {
    transactionId: 'my-transaction-id',
    type: 'DEPOSIT',
    timestamp: 1692624734000,
  },
})

console.log(`Received response from Flagright: ${JSON.stringify(response)}`);

Readme

Keywords

none

Package Sidebar

Install

npm i flagright

Weekly Downloads

391

Version

1.5.11

License

none

Unpacked Size

1.71 MB

Total Files

1576

Last publish

Collaborators

  • nadig-flagright
  • chialunwu-flagright