Quickstart

The Mmg TypeScript library provides convenient access to the Mmg APIs from TypeScript.

Installation

Install the SDK using your preferred package manager:

1npm i -s mobile-money-sdk

Basic Usage

Instantiate and use the client with your credentials:

1import { MMGClient } from "mobile-money-sdk";
2
3const client = new MMGClient({
4 wssMid: "YOUR_WSS_MID",
5 wssMkey: "YOUR_WSS_MKEY",
6 wssMsecret: "YOUR_WSS_MSECRET",
7 apiKey: "YOUR_API_KEY",
8 wssCorrelationid: "YOUR_WSS_CORRELATIONID",
9 wssToken: "YOUR_WSS_TOKEN"
10});
11
12await client.authentication.loginResourceTokenApi();