OpenAPI-Android

com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / HttpClient

HttpClient

class HttpClient

The http client instance will get response from specific url.

Constructors

<init> HttpClient(token: String, context: Context)
Creates a http client instance

Functions

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.