@0x3639/intervals-icu
    Preparing search index...

    Interface IntervalsConfig

    Configuration for the Intervals.icu client. Provide either apiKey (for personal use) or accessToken (from OAuth flow).

    interface IntervalsConfig {
        accessToken?: string;
        apiKey?: string;
        athleteId?: string;
        baseURL?: string;
        maxRetries?: number;
        retryDelayMs?: number;
        timeout?: number;
    }
    Index
    accessToken?: string

    OAuth access token for bearer authentication. Takes precedence: when both are set the bearer token is used and apiKey is silently ignored.

    apiKey?: string

    API key for basic authentication (personal use). Ignored when accessToken is also set.

    athleteId?: string

    Athlete ID (defaults to '0' (the authenticated athlete), which the API resolves from the credentials).

    baseURL?: string

    Base URL for the API (defaults to https://intervals.icu/api/v1)

    maxRetries?: number

    Maximum number of automatic retries for 429/5xx errors (defaults to 3, set 0 to disable)

    retryDelayMs?: number

    Base delay in ms between retries, doubles each attempt (defaults to 1000)

    timeout?: number

    Request timeout in milliseconds (defaults to 30000)