OtvSdkConfig

constructor(tenantId: String, host: String, port: Int, prefix: String, useTls: Boolean)

Java-compatible constructor using the default IAS tenant ID.

Parameters

tenantId

The tenant ID for the OpenTV service. Required

host

The host for the OpenTV service.

port

The port for the OpenTV service.

prefix

The prefix for the OpenTV service.

useTls

Whether to use TLS for the connection.


constructor(baseUrl: URI)

Creates a configuration from a URI base URL in the style https://api.sales.opentv.com.

Parameters

baseUrl

The URI base URL for the OpenTV service. Must include the scheme, prefix, tenant ID, and host.


constructor(baseUrl: URL)

Creates a configuration from a URL base URL in the style https://api.sales.opentv.com.

Parameters

baseUrl

The URL base URL for the OpenTV service. Must include the scheme, prefix, tenant ID, and host.


constructor(tenantId: String, host: String = "opentv.com", port: Int = 443, prefix: String = "api", useTls: Boolean = true, iasTenantId: String = DEFAULT_IAS_TENANT_ID)

Creates a configuration from individual OpenTV service parameters in the style http(s)://{prefix}.{tenantId}.{host}:{port}.

Parameters

tenantId

The tenant ID for the OpenTV service. Required

host

The host for the OpenTV service. Default is "opentv.com".

port

The port for the OpenTV service. Default is 443.

prefix

The prefix for the OpenTV service. Default is "api".

useTls

Whether to use TLS for the connection. Default is true.

iasTenantId

The ID of the tenant to which the request is being targeted and sent in IAS tenant headers. Default is "nagra".