AudienceClientOptions
Properties
Section titled “Properties”apiKey
Section titled “apiKey”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.
baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defaults to ebitex’s production API. Override for a self-hosted or local deployment.
fetch?
Section titled “fetch?”
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Injectable for testing or for a runtime with a non-global fetch.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>