UNPKG

@team-internet/apiconnector

Version:
63 lines (62 loc) 1.52 kB
export declare const fixedURLEnc: (str: string) => string; /** * SocketConfig Class */ export declare class SocketConfig { /** * account name */ private login; /** * persistent for session request */ private persistent; /** * account password */ private pw; /** * API session id */ private sessionid; constructor(); /** * Create POST data string out of connection data * @returns POST data string */ getPOSTData(): string; /** * Get API Session ID in use * @returns API Session ID */ getSession(): string; /** * Set account login to use * @param value account login * @returns Current SocketConfig instance for method chaining */ setLogin(value: string): SocketConfig; /** * Get account login to use * @returns Current login */ getLogin(): string; /** * Set persistent to request session id * @param value one time password * @returns Current SocketConfig instance for method chaining */ setPersistent(): SocketConfig; /** * Set account password to use * @param value account password * @returns Current SocketConfig instance for method chaining */ setPassword(value: string): SocketConfig; /** * Set API Session ID to use * @param value API Session ID * @returns Current SocketConfig instance for method chaining */ setSession(value: string): SocketConfig; }