1.1.4 • Published 5 years ago
bin-intel-sdk v1.1.4
Bin Intel SDK for Node.js
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 hasnumber
andnumeric string
.- a
number
and anumeric 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": {}
}
}
]
}