invalidateToken

fun OAuth.invalidateToken(    accessToken: String,     accessTokenSecret: String,     vararg options: Option): JsonObjectApiAction<OAuthToken>

Allows a registered application to revoke an issued OAuth access_token by presenting its client credentials. Once an access_token has been invalidated, new creation attempts will yield a different Access Token and usage of the invalidated token will no longer be allowed.

Twitter API reference

Receiver

OAuth endpoint instance.

Return

JsonObjectApiAction for OAuthToken model.

Parameters

accessToken

The access_token of user to be invalidated.

accessTokenSecret

The access_token_secret of user to be invalidated.

options

Optional. Custom parameters of this request.


fun OAuth.invalidateToken(vararg options: Option): JsonObjectApiAction<OAuthToken>

Allows a registered application to revoke an issued OAuth access_token by presenting its client credentials. Once an access_token has been invalidated, new creation attempts will yield a different Access Token and usage of the invalidated token will no longer be allowed.

Twitter API reference

Receiver

OAuth endpoint instance.

Return

JsonObjectApiAction for OAuthToken model.

Parameters

options

Optional. Custom parameters of this request.


val OAuth.invalidateToken: JsonObjectApiAction<OAuthToken>

Shorthand property to OAuth.invalidateToken.

See also