Documentation
¶
Index ¶
- Constants
- type Address
- type AmazonTask
- type AppIdentifier
- type CaptchaInfo
- type ChallengeData
- type CreateInfo
- type DeviceRegistrationData
- type DiscordInfo
- type KeyValue
- type MapMD
- type Payment
- type PhoneRemovalPayload
- type PrimeSignupData
- type TaskData
- type TaskPrimeData
- type TwoFactorPayload
- type UserInfo
Constants ¶
View Source
const ( AmazonPrimeURL = "https://www.amazon.com/amazonprime" InfoAttempts = 3 )
View Source
const (
CaptchaAttempts = 3
)
View Source
const (
CreateAttemtps = 3
)
View Source
const (
PrimeAttempts = 3
)
View Source
const (
TwoFactorAttempts = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonTask ¶
type AmazonTask struct {
UserInfo UserInfo
DiscordInfo DiscordInfo
FP shr.Fingerprint
Payment Payment
Address Address
ImapClient *email.EmailClient
Phone string
Secret string
ChromeVer string
Cookies string
UpdateStatus func(string)
BadFunc tls_client.BadPinHandlerFunc
// contains filtered or unexported fields
}
func (*AmazonTask) Do2FAStep ¶
func (t *AmazonTask) Do2FAStep(step string) error
func (*AmazonTask) DoInfoStep ¶
func (t *AmazonTask) DoInfoStep(step string) error
func (*AmazonTask) DoPrimeStep ¶
func (t *AmazonTask) DoPrimeStep(step string) error
func (*AmazonTask) DoStep ¶
func (t *AmazonTask) DoStep(step string) error
* Cycle through the steps of the task for as long as it is running on the frontend side
func (*AmazonTask) HandleCaptcha ¶
func (t *AmazonTask) HandleCaptcha(bodyStr string) (string, error)
type AppIdentifier ¶
type CaptchaInfo ¶
type ChallengeData ¶
type CreateInfo ¶
type DeviceRegistrationData ¶
type DeviceRegistrationData struct {
SoftwareVersion string `json:"software_version"`
}
type DiscordInfo ¶
type MapMD ¶
type MapMD struct {
DeviceUserDictionary []interface{} `json:"device_user_dictionary"`
DeviceRegistrationData DeviceRegistrationData `json:"device_registration_data"`
AppIdentifier AppIdentifier `json:"app_identifier"`
}
type PhoneRemovalPayload ¶
type PrimeSignupData ¶
type TaskData ¶
type TaskData struct {
Metadata string
UserAgent string
OSVer string
Referer string
Location string
ChallengeData ChallengeData
CreateInfo CreateInfo
Success bool
}
type TaskPrimeData ¶
type TaskPrimeData struct {
WidgetInfo string
ParentWidgetInfo string
WidgetState string
FinalWidgetState string
InstrumentId string
CustomerId string
SessionId string
PaymentMethodId string
AddressId string
}
"YA:OneClick/mobile/%s"
type TwoFactorPayload ¶
type TwoFactorPayload struct {
CsrfToken string
}
Click to show internal directories.
Click to hide internal directories.