Added docs.

This commit is contained in:
Erik C. Thauvin 2020-03-03 00:32:15 -08:00
parent dd0079e7e8
commit 95bea38c92
37 changed files with 521 additions and 0 deletions

View file

@ -0,0 +1,21 @@
[docs](../../index.md) / [net.thauvin.erik.bitly](../index.md) / [Utils](index.md) / [call](./call.md)
# call
`@JvmOverloads fun call(accessToken: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, endPoint: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, params: `[`Map`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)`<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> = emptyMap(), method: `[`Methods`](../-methods/index.md)` = Methods.POST): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/bitly-shorten/tree/master/src/main/kotlin/net/thauvin/erik/bitly/Utils.kt#L65)
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](../-methods/index.md).
**Return**
The response (JSON) from the API.