Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

equityjs

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

equityjs

A Node.js Library For The Equity Eazzy API

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

npm Travis Coverage Status Telegram npm

🏛 EquityJs

A light Node.js Library For The Equity Bank's Eazzy API

Documentation

Installation

$ npm install equityjs --save

Usage


const Equity = require('equityjs');

const equity = new Equity({
  consumerKey: 'YOUR_CONSUMER_KEY',
  consumerSecret: 'YOUR_CONSUMER_SECRET'
});

Both are required parameters. You can obtain your keys from here, by creating an app.

Refer to examples.js for more usage indformation.

API

All Sandbox Endpoints are supported at the moment. In-production Endpoints will be added soon.

Callback from API calls return 2 parameters, that is:

  • error
  • response

The response is always the original JSON Object sent by the Equity API

An example of a callback function:

function callback (e, r) {
  if (e) {
    console.error(e);
  } else {
    console.log(r);
  }
}

Methods

  • All parameters are required!
  • All opts take a JSON Object structure!

Identity API

equity.changePassword(opts, callback)

ParameterDescription
merchantIdYour merchant ID
currentPasswordYour current password
newPasswordYour new password

FAQs

Package last updated on 09 Dec 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc