@yengapay/nodejs-sdk
Version:
Official Node.js SDK for YengaPay - Accept mobile money payments and send payouts in West Africa
30 lines (28 loc) • 605 B
TypeScript
import { ClientConfig } from './types';
/**
* Base HTTP client for making API requests
*/
export declare class HttpClient {
private config;
constructor(config: ClientConfig);
/**
* Make a GET request
*/
get<T>(path: string): Promise<T>;
/**
* Make a POST request
*/
post<T>(path: string, body?: any): Promise<T>;
/**
* Make a PUT request
*/
put<T>(path: string, body?: any): Promise<T>;
/**
* Make a DELETE request
*/
delete<T>(path: string): Promise<T>;
/**
* Make an HTTP request
*/
private request;
}