in src/main/scala/com/gu/zuora/fullexport/Impl.scala [60:71]
private def impl(): String = {
HttpWithLongTimeout(s"$zuoraApiHost/oauth/token")
.postForm(Seq(
"client_id" -> getenv("ClientId"),
"client_secret" -> getenv("ClientSecret"),
"grant_type" -> "client_credentials"
))
.asString
.body
.pipe(read[AccessToken](_))
.access_token
}