Interface ClientConfig

HTTP client configuration options.

interface ClientConfig {
    accessToken?: string;
    apiKey?: string;
    apiSecret?: string;
    apiVersion?: string;
    baseURL: string;
    headers?: Record<string, string>;
    timeout?: number;
}

Properties

accessToken?: string

Access token for authentication. Set automatically after successful OAuth flow.

apiKey?: string

API Key for private app authentication

apiSecret?: string

API Secret for private app authentication

apiVersion?: string

API version (optional). Defaults to the latest stable version.

baseURL: string

Base URL for API requests (e.g., 'https://your-store.mysapo.net').

headers?: Record<string, string>

Additional headers to include in requests.

timeout?: number

Request timeout in milliseconds. Defaults to 30000 (30 seconds).