Quickstart

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

Installation

Install the SDK using your preferred package manager:

npm i -s mobile-money-sdk

Basic Usage

Instantiate and use the client with your credentials:

import { MMGClient } from "mobile-money-sdk";
const client = new MMGClient({
wssMid: "YOUR_WSS_MID",
wssMkey: "YOUR_WSS_MKEY",
wssMsecret: "YOUR_WSS_MSECRET",
apiKey: "YOUR_API_KEY",
wssCorrelationid: "YOUR_WSS_CORRELATIONID",
wssToken: "YOUR_WSS_TOKEN"
});
await client.authentication.loginResourceTokenApi();