interface Options {
    cache?: boolean | CustomCache;
    locale?: string;
    optaOutletAuth?: string;
    optaSecretKey?: string;
}

Properties

cache?: boolean | CustomCache

Whether to allow caching responses.

You may also pass your own custom cache class. See CustomCache.

locale?: string

Default locale.

See OPTA docs.

optaOutletAuth?: string

OPTA outlet authorisation key.

You may also specify in the environment as OPTA_OUTLET_AUTH.

See OPTA's OAuth guide.

optaSecretKey?: string

OPTA secret key.

You may also specify in the environment as OPTA_SECRET_KEY.

See OPTA's OAuth guide.