vertx / io.vertx.kotlin.ext.auth.oauth2 / io.vertx.ext.auth.oauth2.AccessToken / fetchAwait
fetchAwait
suspend fun AccessToken.fetchAwait(resource: String): OAuth2Response
Fetches a JSON resource using this Access Token.
Parameters
resource
-
callback
-
- The callback function returning the results.
Return
suspend fun AccessToken.fetchAwait(method: HttpMethod, resource: String, : JsonObject, payload: Buffer): OAuth2Response
Fetches a JSON resource using this Access Token.
Parameters
method
-
resource
-
headers
-
- extra headers to pass to the request.
payload
-
- payload to send to the server.
callback
-
- The callback function returning the results.
Return