AuthHandler class — Twitcasting API Authentication
Authentication header
AuthHandler
Application-only authentication handler
- class twitcaspy.auth.AppAuthHandler(client_id, client_secret)
Bases:
twitcaspy.auth.auth.AuthHandlerApplication-only authentication handler
References
Implicit handler
- class twitcaspy.auth.ImplicitAuthHandler(client_id, client_secret, callback=None, *, state=None)
Bases:
twitcaspy.auth.auth.AuthHandlerImplicit Code Grant handler
- Parameters
References
https://apiv2-doc.twitcasting.tv/#implicit
- get_authorization_url()
Get the authorization URL to redirect the user
OAuth2
Basic Authentication
- class twitcaspy.auth.oauth.OAuth2Basic(client_id, client_secret)
Bases:
requests.auth.AuthBaseBasic Authentication
Bearer Authentication
- class twitcaspy.auth.oauth.OAuth2Bearer(bearer_token)
Bases:
requests.auth.AuthBaseBearer Authentication