whmcs-sdk
Version:
A comprehensive and easy-to-use Node SDK, designed to simplify interactions with the WHMCS API and streamline your development process.
55 lines • 1.85 kB
TypeScript
import { WHMCSOptions, ModemOptions } from '../typings/index';
type Callback = (error: any, response: any) => any;
export declare class whmcsApi {
private opts;
constructor(opts: WHMCSOptions);
/**
* Sends a request to the WHMCS API
* @param opts Options for the request
* @param cb Callback function
* @returns Promise<any>
*/
private modem;
/**
* Calls an action on the WHMCS API
* @param action The action to call
* @param opts Options for the request
* @param cb Callback function
* @returns Promise<any>
*/
call(action: string, opts?: ModemOptions, cb?: Callback): Promise<any>;
/**
* Calls a Get action on the WHMCS API
* @param action The action to call
* @param opts Options for the request
* @param cb Callback function
* @returns Promise<any>
*/
get(action: string, opts?: ModemOptions, cb?: Callback): Promise<any>;
/**
* Calls an Add action on the WHMCS API
* @param action The action to call
* @param opts Options for the request
* @param cb Callback function
* @returns Promise<any>
*/
add(action: string, opts?: ModemOptions, cb?: Callback): Promise<any>;
/**
* Calls an Update action on the WHMCS API
* @param action The action to call
* @param opts Options for the request
* @param cb Callback function
* @returns Promise<any>
*/
update(action: string, opts?: ModemOptions, cb?: Callback): Promise<any>;
/**
* Calls a Delete action on the WHMCS API
* @param action The action to call
* @param opts Options for the request
* @param cb Callback function
* @returns Promise<any>
*/
delete(action: string, opts?: ModemOptions, cb?: Callback): Promise<any>;
}
export {};
//# sourceMappingURL=client.d.ts.map