mkporwit
08/09/2018, 5:24 PMval groupResponse = runBlocking {
client.get<String> {
url(URL("<https://graph.microsoft.com/v1.0/me/memberOf>"))
header(HttpHeaders.Accept, ContentType.Application.Json.toString())
header(HttpHeaders.Authorization, "Bearer $serviceAccessToken")
}
}
It gets me the body of the response. Is there a way for me to also get the HTTP status code of that response? Or do I have to break this up into two steps where I first look at the response object, and then get the response body from it?