callStateApi

suspend fun callStateApi(endpoint: String): StateApiResponse

Call /osc/state

Return

response of /osc/state API

Parameters

endpoint

Endpoint of Theta web API

Throws

java.net.ConnectException

can not connect to target endpoint

ConnectTimeoutException

timeout to connect target endpoint

RedirectResponseException

target response 3xx status

ClientRequestException

target response 4xx status

ServerResponseException

target response 5xx status