@JvmOverloads fun call(endPoint: String, params: Map<String, String> = emptyMap(), method: Methods = Methods.POST): String
(source)
Executes an API call.
endPoint
- The REST endpoint. (eg. https://api-ssl.bitly.com/v4/shorten
)
params
- The request parameters kev/value map.
method
- The submission Method.
Return
The response (JSON) from the API.