Socket
Book a DemoInstallSign in
Socket

module-bank-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-bank-api

Wrapper for Modulbank API for Node.js

1.2.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ModuleBank API

Wrapper for ModuleBank API for Node.js

NPM version

Install

npm i module-bank-api -S

Usage

Import

{ModuleBankApi, ModuleBankPaymentCategory} = require('module-bank-api');
// or
import {ModuleBankApi, ModuleBankPaymentCategory} from 'module-bank-api';

API object

let api = new ModuleBankApi(
    'sandboxtoken', // Auth token 
    true // true - sandbox mode, false - production mode
);

API methods

Argument params is an Object with the followings fields:

let query = {
	category: ModuleBankPaymentCategory.CREDIT, // ModuleBankPaymentCategory.CREDIT or ModuleBankPaymentCategory.DEBET
	skip: 2, // Skim records count
	records: 3, // Records limit
	from: from, // Select operation from this date (JS Date object)
	till: till, // Select operation till this date (JS Date object)
};

All fields are optional.

Callback signature

function callback(error, response) {
    if (!error) {
        console.log(response);
    }
}
  • error - error information or null if no error happens
  • response - response data

ModuleBankPaymentCategory

  • ModuleBankPaymentCategory.DEBET - debet category
  • ModuleBankPaymentCategory.CREDIT - credit category

Example

See demo

Keywords

modulbank

FAQs

Package last updated on 31 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.