getData

inline suspend fun <T> HueHttpClient.getData(vararg pathSegments: String): T

Make a GET request to the hue bridge.

Throws

if the response body is unable to be decoded.

if the client has not been configured with a hostname.

if the client's authentication is invalid.

if an error occurs while communicating with the API.