Skip to content

AudienceClientOptions

apiKey: string

An Audience delivery key, created on the Audience app’s keys page. It is its own kind: a Content delivery key does not work here. A key with an allowed-origins or allowed-IP-ranges restriction is browser-safe and may ship in a bundle, and the restriction is checked on every request; a key with neither is a server-side key and must never reach a browser.


optional baseUrl?: string

Defaults to ebitex’s production API. Override for a self-hosted or local deployment.


optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Injectable for testing or for a runtime with a non-global fetch.

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>