0.6.0 • Published 9 months ago

@cardscan.ai/cardscan-client v0.6.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
9 months ago

cardscan-ai/cardscan-client

Typescript API client for the CardScan API

Environment

  • Node.js
  • Webpack
  • Browserify

Module system

  • CommonJS
  • ES6 module system

Installation

npm install @cardscan.ai/cardscan-client
yarn add @cardscan.ai/cardscan-client

Usage

import { CardScanApi } from "@cardscan.ai/cardscan-client";

const cardScanApi = new CardScanApi({
  /*
   * By default the API will the production url if NODE_ENV is "production" and the sandbox url otherwise.
   * You can also specify a url manually.
   * */
  // baseUrl: "https://api.cardscan.ai/v1",

  apiKey: "<your-api-key>",
});

const main = async () => {
  try {
    const response = await cardScanApi.checkEligibility("<card-id>", {
      subscriber: {
        firstName: "John",
        lastName: "Doe",
        dateOfBirth: "18020101",
      },
      provider: {
        firstName: "John",
        lastName: "Doe",
        npi: "0123456789",
      },
    });
  } catch (e) {
    console.error(e);
  }
};

main();
0.5.0

9 months ago

0.4.1

10 months ago

0.4.3

10 months ago

0.6.0

9 months ago

0.4.2

10 months ago

0.3.2

10 months ago

0.4.0

10 months ago

0.3.4

10 months ago

0.3.3

10 months ago

0.1.0

1 year ago

0.3.0

11 months ago

0.2.0

1 year ago

0.3.1

11 months ago

0.0.2-beta.1

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago