Documentation ¶
Index ¶
Constants ¶
View Source
const ( TYPE_PASSWD = "passwd" TYPE_EMAIL = "email" TYPE_DEVICE = "device" )
View Source
const (
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStruct ¶
type AuthStruct struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(account, password, loginType string) *AuthStruct
func (*AuthStruct) Auth ¶
func (a *AuthStruct) Auth() (cookies string, err error)
func (*AuthStruct) AuthDevice ¶
func (a *AuthStruct) AuthDevice() (cookies string, err error)
func (*AuthStruct) AuthEmail ¶
func (a *AuthStruct) AuthEmail(code string) (cookies string, err error)
func (*AuthStruct) GetLoginType ¶
func (a *AuthStruct) GetLoginType() string
Click to show internal directories.
Click to hide internal directories.