Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(username string, password string, options ...ClientOption) (Client, error)
func (Client) GetUserByScreenName ¶
type ClientConfig ¶
type ClientConfig struct {
// contains filtered or unexported fields
}
type ClientOption ¶
type ClientOption func(*ClientConfig)
func HttpClient ¶
func HttpClient(httpClient *http.Client) ClientOption
func MFASecret ¶
func MFASecret(mfaSecret string) ClientOption
func UserAgent ¶
func UserAgent(userAgent string) ClientOption
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
func NewSessionClient ¶
func NewSessionClient(options ...ClientOption) SessionClient
func (SessionClient) GetSession ¶
type SubtaskID ¶
type SubtaskID string
const ( SubtaskIDAccountDuplicationCheck SubtaskID = "AccountDuplicationCheck" SubtaskIDLoginAcid SubtaskID = "LoginAcid" SubtaskIDLoginEnterUserIdentifierSSO SubtaskID = "LoginEnterUserIdentifierSSO" SubtaskIDLoginEnterAlternateIdentifierSubtask SubtaskID = "LoginEnterAlternateIdentifierSubtask" SubtaskIDLoginEnterPassword SubtaskID = "LoginEnterPassword" SubtaskIDLoginJsInstrumentationSubtask SubtaskID = "LoginJsInstrumentationSubtask" SubtaskIDLoginTwoFactorAuthChallenge SubtaskID = "LoginTwoFactorAuthChallenge" SubtaskIDLoginSuccessSubtask SubtaskID = "LoginSuccessSubtask" SubtaskIDEnterIdGoogleSSOSubtask SubtaskID = "EnterIdGoogleSSOSubtask" SubtaskIDEnterIdAppleSSOSubtask SubtaskID = "EnterIdAppleSSOSubtask" SubtaskIDPwrJsInstrumentationSubtask SubtaskID = "PwrJsInstrumentationSubtask" SubtaskIDPasswordResetBegin SubtaskID = "PasswordResetBegin" SubtaskIDPasswordResetChooseChallenge SubtaskID = "PasswordResetChooseChallenge" SubtaskIDPasswordResetConfirmChallenge SubtaskID = "PasswordResetConfirmChallenge" SubtaskIDPasswordResetNewPassword SubtaskID = "PasswordResetNewPassword" SubtaskIDPasswordResetSurvey SubtaskID = "PasswordResetSurvey" SubtaskIDRedirectToPasswordReset SubtaskID = "RedirectToPasswordReset" SubtaskIDPwrKnowledgeChallenge SubtaskID = "PwrKnowledgeChallenge" SubtaskIDSuccessExit SubtaskID = "SuccessExit" SubtaskIDLoginOpenHomeTimeline SubtaskID = "LoginOpenHomeTimeline" SubtaskIDLoginTwoFactorAuthChooseMethod SubtaskID = "LoginTwoFactorAuthChooseMethod" SubtaskIDLoginSecurityKeyNotSupportedCta SubtaskID = "login_security_key_not_supported_cta" SubtaskIDDenyLoginSubtask SubtaskID = "DenyLoginSubtask" SubtaskIDStartNewLoginFlowSubtask SubtaskID = "StartNewLoginFlowSubtask" )
func DecodeSubtaskID ¶
Click to show internal directories.
Click to hide internal directories.