class xdk.oauth1_auth.OAuth1
OAuth1 authentication handler for the X API.
Parameters
__init__
Initialize OAuth1 authentication.
Parameters
build_request_header
Build OAuth1 authorization header for API requests.
Parameters
Returns
str
get_access_token
Exchange verifier for access token.
Parameters
Returns
OAuth1AccessToken
get_authorization_url
Get the authorization URL for OAuth1 flow.
Parameters
Returns
str
get_request_token
Get request token to start OAuth1 flow.
:returns: Request token with oauth_token and oauth_token_secret.
:rtype: OAuth1RequestToken
Returns
OAuth1RequestToken
start_oauth_flow
Convenience method to start the OAuth1 flow.
Parameters
Returns
str