mtn-momo-client
Version:
A collection of utils to interact with the mtn-momo api
18 lines (17 loc) • 736 B
TypeScript
import type { APIVersion } from './types';
declare const DEFAULT_CONTENT_TYPE = "application/json";
declare const API_VERSION_PATH: Record<APIVersion, string>;
declare const urlPathFrom: (paths: string[]) => string;
declare const BASE_URL = "https://sandbox.momodeveloper.mtn.com/";
type HeaderOverrides = {
'Content-Type'?: string;
'X-Target-Environment'?: string;
Authorization?: string;
};
type ClientOptions = {
subscriptionKey: string;
baseURL?: string;
headerOverrides?: HeaderOverrides;
};
declare const createClient: ({ subscriptionKey, baseURL, headerOverrides, }: ClientOptions) => import("axios").AxiosInstance;
export { API_VERSION_PATH, BASE_URL, DEFAULT_CONTENT_TYPE, createClient, urlPathFrom, };