qiwi-sdk-nodejs
Version:
SDK for working with Qiwi API
27 lines (26 loc) • 684 B
TypeScript
export interface QiwiOptions {
baseUrl?: string;
headers?: {
[key: string]: string;
};
}
export declare type Methods = 'GET' | 'POST';
export declare const defaultOptions: {
baseUrl: string;
headers: {
Accept: string;
'Content-Type': string;
};
};
export default class QiwiConnector {
private apiKey;
private options;
constructor(apiKey: string, options?: QiwiOptions);
query(method: string, endpoint: string, data?: Object, headers?: {
[key: string]: string;
}): Promise<any>;
}
export declare class QiwiError extends Error {
private statusCode;
constructor(statusCode: number, message?: string);
}