newInstance

suspend fun newInstance(endpoint: String, config: ThetaRepository.Config? = null, timeout: ThetaRepository.Timeout? = null): ThetaRepository

Create ThetaRepository object.

Parameters

endpoint

URL of Theta web API endpoint.

config

Configuration of initialize. If null, get from THETA.

timeout

Timeout of HTTP call.

Throws

If an error occurs in THETA.

If an authentication error occurs in client mode.