vertx / io.vertx.kotlin.ext.auth.oauth2 / io.vertx.ext.auth.oauth2.AccessToken / fetchAwait

# fetchAwait

`suspend fun AccessToken.fetchAwait(resource: String): OAuth2Response`

Suspending version of method io.vertx.ext.auth.oauth2.AccessToken.fetch

### Parameters

`resource` -

- the resource to fetch.

Return

OAuth2Response

NOTE: This function has been automatically generated from io.vertx.ext.auth.oauth2.AccessToken using Vert.x codegen.

`suspend fun AccessToken.fetchAwait(method: HttpMethod, resource: String, headers: JsonObject, payload: Buffer): OAuth2Response`

Suspending version of method io.vertx.ext.auth.oauth2.AccessToken.fetch

### Parameters

`method` -

- the HTTP method to user.

`resource` -

- the resource to fetch.

`headers` -

- extra headers to pass to the request.

`payload` -

- payload to send to the server.

Return

OAuth2Response

NOTE: This function has been automatically generated from io.vertx.ext.auth.oauth2.AccessToken using Vert.x codegen.