Slackbot
Lucas León
Aleksei Tirman [JB]
HttpClient { install(ContentNegotiation) { jackson () } expectSuccess = true defaultRequest { url(URL) contentType(ContentType.Application.Json) } } suspend fun postRequest(requestBody: RequestBody): String = <http://httpClient.post|httpClient.post> { setBody(requestBody) header("Authorization", "Basic <token>") }.body()
{ "value": "bb65bl98h4j65c95b8e65b8edb7y6ty8" }
A modern programming language that makes developers happier.