callStatusApi

suspend fun callStatusApi(endpoint: String, params: StatusApiParams): CommandApiResponse

Call /osc/commands/status

Return

response of /osc/commands/status API

Parameters

endpoint

Endpoint of Theta web API

params

status parameters

See also

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