alal-node
v1.0.0
Published
Node JS package for the ALAL API
Downloads
6
Readme
ALAL
This is a Node library for easy integration of Alal For Business API for various applications from Alal.
Getting started
Requirements
This library requires NodeJS >= 12.0
Installation
npm install alal-node
yarn add alal-node
Usage
This SDK can be used both for Alal Sandbox and Production API.
Setting ENV KEYS
For sucessfully running of the SDK; the ALAL_API_KEY
.
Now this will throw a AlalBadKeyError
if you do not set it as an environment variable, when initiatizing a function.
By default the SDK assumes that you are currently work on production, and your ALAL_API_KEY
must be a production-grade secret key.
To run on sandbox(development mode), set ALAL_PRODUCTION=false
as an environment variable.
Instantiate The alal-node Functions
Before making use of any alal-node functions, it should be instantiated. Below is a demonstration:
import { CardUser, Card } from alal-node;
const card_user = new CardUser();
const card = new Card();
Dispute()
Transaction()
CardUser
- To manage card_user in your application, instantiate a new
CardUser
class.- The following functions are available:
- listCardUsers
- showCardUser
- createCardUser
- The following functions are available:
Card
- To create card in your application, instantiate a new
Card
class.- The following functions are available:
- listCards
- showCard
- createCard
- getCardAccessToken
- The following functions are available:
Dispute
- To create dispute in your application, instantiate a new
Dispute
class.- The following functions are available:
- listDisputes
- showDispute
- createDispute
- updateDispute
- The following functions are available:
Transaction
- To create transaction in your application, instantiate a new
Transaction
class.- The following functions are available:
- listTransactions
- createTransaction
- The following functions are available:
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ALAL-Community/alal-node. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct. Simply create a new branch and raise a Pull Request, we would review and merge.
License
The library is available as open source under the terms of the MIT License