accessToken

suspend fun OAuth.accessToken(    consumerKey: String,     consumerSecret: String,     requestToken: String,     requestTokenSecret: String,     verifier: String,     vararg options: Option): AccessTokenResponse
suspend fun OAuth.accessToken(    requestToken: String,     requestTokenSecret: String,     verifier: String,     vararg options: Option): AccessTokenResponse

Allows a Consumer application to exchange the OAuth Request Token for an OAuth Access Token. This method fulfills Section 6.3 of the OAuth 1.0 authentication flow.

Twitter API reference

Receiver

OAuth endpoint instance.

Return

AccessTokenResponse.

Parameters

verifier

If using the OAuth web-flow, set this parameter to the value of the oauth_verifier returned in the callback URL. If you are using out-of-band OAuth, set this value to the pin-code. For OAuth 1.0a compliance this parameter is required. OAuth 1.0a is strictly enforced and applications not using the oauth_verifier will fail to complete the OAuth flow.

options

Optional. Custom parameters of this request.