request

package
v0.0.0-...-82c1b66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 33 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 Address

type Address struct {
	FullName    string
	Line1       string
	Line2       string
	City        string
	State       string
	Zip         string
	PhoneNumber string
}

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 AppIdentifier struct {
	AppVersion string `json:"app_version"`
	BundleID   string `json:"bundle_id"`
}

type CaptchaInfo

type CaptchaInfo struct {
	CaptchaUrl    string
	CaptchaToken  string
	CaptchaType   string
	ClientContext string
	CodeChallenge string
	ClientId      string
	VerifyToken   string
	CaptchaInput  string
}

type ChallengeData

type ChallengeData struct {
	ClientId         string
	Verifier         string
	VerifierChecksum string
}

type CreateInfo

type CreateInfo struct {
	AppAction      string
	AppActionToken string
	PrevRID        string
	WorkflowState  string
	OpenIdReturnTo string
}

type DeviceRegistrationData

type DeviceRegistrationData struct {
	SoftwareVersion string `json:"software_version"`
}

type DiscordInfo

type DiscordInfo struct {
	User           string
	WebhookSuccess string
	WebhookFail    string
}

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type MapMD

type MapMD struct {
	DeviceUserDictionary   []interface{}          `json:"device_user_dictionary"`
	DeviceRegistrationData DeviceRegistrationData `json:"device_registration_data"`
	AppIdentifier          AppIdentifier          `json:"app_identifier"`
}

type Payment

type Payment struct {
	CardHolder string
	CardNumber string
	ExpMonth   string
	ExpYear    string
	CVV        string
}

type PhoneRemovalPayload

type PhoneRemovalPayload struct {
	AppActionToken string
	AppAction      string
	PrevRID        string
	WorkflowState  string
}

type PrimeSignupData

type PrimeSignupData struct {
	CampaignId                 string
	OfferId                    string
	LocationID                 string
	OfferToken                 string
	RedirectURL                string
	CancelRedirectURL          string
	PreviousContainerRequestId string
	ActionPageDefinitionId     string
}

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
	SharedSecretId string
}

type UserInfo

type UserInfo struct {
	Email       string
	Password    string
	FirstName   string
	LastName    string
	Proxy       shr.Proxy
	ImapInfo    shr.ImapInfo
	SmsInfo     shr.SMSInfo
	CaptchaInfo shr.CaptchaInfo
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL