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

1.0.2 • Public • Published

Bloc Node.js Library

The first Bloc API wrapper 🚀🚀🚀 The Bloc-Node library provides convenient access to the Bloc API.

Installation

For Yarn

yarn add blochq-node

For NPM

npm install blochq-node --save

Usage

// import the module
const { Bloc } = require("blochq-node");

// set the secret key
const blocClient = new Bloc({
    secretKey: "sk_test_xxxxxx",
});

 blocClient.account.getAccounts((err, results) => {
    // Handle errors
    if (err) {
        console.log(err);
    }
    if (results){
        console.log(results);
    };
});

Resources

  • Account
  • Wallets
  • Bills Payment
  • Disputes
  • Cards
  • Checkout
  • Customers
  • Miscellaneous
  • Simulation
  • Transactions
  • Transfers
  • Payment Links
  • Beneficiaries

Contributing

  • Please do 🧡

TODO

  • [X] Continuously improve the testing scenarios
  • [X] Work on Webhook endpoints
  • [X] Rework the Readme documentation

Readme

Keywords

Package Sidebar

Install

npm i blochq-node

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

50.5 kB

Total Files

27

Last publish

Collaborators

  • danielolabemiwo