Options for instantiating a new VodApi client.
Desired authentication method with the API, defaulting to no authentication if not specified. See ApiAuthentication.
Base endpoint to use when connection to the API. Must include scheme and
hostname. Defaults to the Livepeer production endpoint if running on a
backend, or the current origin if running in the browser. All APIs will be
prefixed with an /api
path segment.
Endpoint of the production Livepeer API. Can be used as the apiEndpoint
parameter for the VodApi constructor.
Generated using TypeDoc
This encapsulates the possible ways of authenticating with the API.
The most common scenario is using API key authentication, so just create an object with a single property
apiKey
and pass it to the VodApi constructor.Follow these instrutions for more info on how to get an API key.