bitly-shorten/docs/net.thauvin.erik.bitly/-utils/call.md
2020-03-03 00:32:15 -08:00

1.2 KiB

docs / net.thauvin.erik.bitly / Utils / call

call

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

Executes an API call.

Parameters

accessToken - The API access token.

endPoint - The REST endpoint. (eg. https://api-ssl.bitly.com/v4/shorten)

params - The request parameters key/value map.

method - The submission Method.

Return The response (JSON) from the API.