Skip to content

D-Lite/bloc-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bloc Node.js Library

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

block-banner

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

Follow this simple step to get started.

  1. Fork the repository.
  2. clone the forked repositery to your local environment.
    git clone https://github.com/D-Lite/bloc-node
  3. Navigate to the Project Directory :
        cd bloc-node
  4. Install dependencies :
        npm install
  5. Create a branch
        git checkout -b branch-name
  6. Make changes your desired changes.
  7. Add your changes and commit
        git add .
        git commit -m"your commit message"
  8. Push your changes
        git push -u origin branch-nae
  9. Submit a pull request: Go to your forked repository on GitHub and create a pull request. This is a formal request to merge your changes into the main codebase. Be sure to provide a clear and informative description of your changes in the pull request description.

Dont forget to Star the repo 🧡

Project Admin

Twitter(X) - Daniel Olabemiwo Github - Daniel Olabemiwo Linkedin - Daniel Olabemiwo

About

A node wrapper for BlocHq APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published