call

fun call(endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST): CallResponse(source)

Executes an API call.

Return

A CallResponse object.

Parameters

endPoint

The REST endpoint path. (eg. shorten, expand, etc.)

params

The request parameters key/value map.

method

The submission Method.