com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / HttpClient
class HttpClient
The http client instance will get response from specific url.
<init> | HttpClient(token: String , context: Context ) Creates a http client instance |
get | fun get(endpoint: String , params: Map < String , String ?> = emptyMap()): ResponseFuture<JsonObject> Get the result from the passed in url. |
post | fun post(endpoint: String , data: JsonObject): ResponseFuture<JsonObject> Http post method. |