@jokoor/sdk
Version:
Jokoor SMS API SDK for JavaScript/TypeScript
41 lines • 1.16 kB
TypeScript
/**
* Jokoor SDK Client
* Main client class for interacting with the Jokoor API
*/
import { SMS, Campaigns, Templates, Contacts, ContactGroups } from './resources';
import { JokoorConfig, PaymentMode, APIKeyType } from './types';
export declare class Jokoor {
private readonly configuration;
private readonly apiKey;
private readonly mode;
private readonly keyType;
private readonly debug;
readonly sms: SMS;
readonly campaigns: Campaigns;
readonly templates: Templates;
readonly contacts: Contacts;
readonly contactGroups: ContactGroups;
constructor(apiKey: string, config: JokoorConfig);
/**
* Parse API key to extract mode and type
*/
private parseAPIKey;
/**
* Setup debug logging for API calls
*/
private setupDebugLogging;
/**
* Get current mode (test or live)
*/
getMode(): PaymentMode;
/**
* Check if using test mode
*/
isTestMode(): boolean;
/**
* Get API key type
*/
getKeyType(): APIKeyType;
}
export declare function createClient(apiKey: string, config: JokoorConfig): Jokoor;
//# sourceMappingURL=client.d.ts.map