1.1.4 • Published 5 years ago

bin-intel-sdk v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Bin Intel SDK for Node.js

npm version build status code coverage npm downloads gitter chat

SDK getting Bin-Card Information for node.js

Features

You can get information of a or bulk bin credit card using this sdk.

Installing

Using npm:

$ npm install bin-intel-sdk

Using cdn:

<script src="https://unpkg.com/bin-indel-sdk/dist/bin-intel-sdk.min.js"></script>

Example

To create sdk Instance, you should import with require() use the following approach:

    var BinIntelSDK = require('bin-intel-sdk');

- Create a new SDK Instance with api key

    var bis = new BinIntelSDK("YOUR-API-KEY");

- Get information of a credit card

    bis.getCardInfo('47346833').then(res => {
        console.log(res)
    });

- Get information of multiple bulk of credit cards

    bis.getBulkCardsInfo(CardsArray).then((res) => {
        console.log("result", JSON.stringify(res));
    });

Here, CardsArray can be one type of the following.

  • Array of data which has number and numeric string.
  • a number and a numeric string.

Example

const CardsArray = [47346833, 47346834, "47346835", 47346833, 47346833];
const CardsArray = [47346833, "47346834", 47346835, 47346833, "47346840"];
const CardsArray = 47346838;
const CardsArray = "47346838";

Result

{
  "status": 200,
  "data": [
      {
        "card": "47346839",
        "info": {
          "number": {},
          "scheme": "visa",
          "country": {
            "numeric": "840",
            "alpha2": "US",
            "name": "United States of America",
            "emoji": "��",
            "currency": "USD",
            "latitude": 38,
            "longitude": -97
          },
          "bank": {}
        }
      },
      {
        "card": "47346839",
        "info": {
          "number": {},
          "scheme": "visa",
          "country": {
            "numeric": "840",
            "alpha2": "US",
            "name": "United States of America",
            "emoji": "��",
            "currency": "USD",
            "latitude": 38,
            "longitude": -97
          },
          "bank": {}
        }
      },
      {
        "card": "47346839",
        "info": {
          "number": {},
          "scheme": "visa",
          "country": {
            "numeric": "840",
            "alpha2": "US",
            "name": "United States of America",
            "emoji": "��",
            "currency": "USD",
            "latitude": 38,
            "longitude": -97
          },
          "bank": {}
        }
      }
  ]
}
1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.0

5 years ago