AuthHandler class --- Twitcasting API Authentication
Authentication header
AuthHandler
Application-only authentication handler
- class twitcaspy.auth.AppAuthHandler(client_id, client_secret)
ベースクラス:
twitcaspy.auth.auth.AuthHandlerApplication-only authentication handler
参照
Implicit handler
- class twitcaspy.auth.ImplicitAuthHandler(client_id, client_secret, callback=None, *, state=None)
ベースクラス:
twitcaspy.auth.auth.AuthHandlerImplicit Code Grant handler
- パラメータ
参照
https://apiv2-doc.twitcasting.tv/#implicit
- get_authorization_url()
ユーザー認証のためのリダイレクトURLを取得します
OAuth2
Basic認証
- class twitcaspy.auth.oauth.OAuth2Basic(client_id, client_secret)
ベースクラス:
requests.auth.AuthBaseBasic認証
Bearer認証
- class twitcaspy.auth.oauth.OAuth2Bearer(bearer_token)
ベースクラス:
requests.auth.AuthBaseBearer認証