requestToken

suspend fun OAuth.requestToken(    callbackUrl: String = "oob",     xAuthAccessType: String? = null,     vararg options: Option): RequestTokenResponse

Allows a Consumer application to obtain an OAuth Request Token to request user authorization. This method fulfills Section 6.1 of the OAuth 1.0 authentication flow. We require you use HTTPS for all OAuth authorization steps. Usage Note: Only ASCII values are accepted for the oauth_nonce

Twitter API reference

Receiver

OAuth endpoint instance.

Return

RequestTokenResponse.

Parameters

callbackUrl

For OAuth 1.0a compliance this parameter is required . The value you specify here will be used as the URL a user is redirected to should they approve your application's access to their account. Set this to oob for out-of-band pin mode. This is also how you specify custom callbacks for use in desktop/mobile applications. Always send an oauth_callback on this step, regardless of a pre-registered callback. We require that any callback URL used with this endpoint will have to be whitelisted within the app settings on developer.twitter.com*

xAuthAccessType

Overrides the access level an application requests to a users account. Supported values are read or write . This parameter is intended to allow a developer to register a read/write application but also request read only access when appropriate.

options

Optional. Custom parameters of this request.