Versions in this module Expand all Collapse all v1 v1.0.1 Apr 22, 2024 Changes in this version + var ErrSecCptInvalidCookie = errors.New("hyper-sdk: malformed sec_cpt cookie") type SecCptChallenge + func ParseSecCptChallengeFromJson(payload io.Reader) (*SecCptChallenge, error) + func (s *SecCptChallenge) Sleep() + func (s *SecCptChallenge) SleepWithContext(ctx context.Context) v1.0.0 Apr 9, 2024 Changes in this version + var ErrPixelHtmlVarNotFound = errors.New("hyper-sdk: pixel HTML var not found") + var ErrPixelScriptUrlNotFound = errors.New("hyper-sdk: script URL not found") + var ErrPixelScriptVarNotFound = errors.New("hyper-sdk: script var not found") + var ErrScriptPathNotFound = errors.New("hyper-sdk: script path not found") + var ErrSecCptParsing = errors.New("hyper-sdk: error parsing sec-cpt") + func IsCookieInvalidated(cookie string) bool + func IsCookieValid(cookie string, requestCount int) bool + func ParsePixelHtmlVar(reader io.Reader) (int, error) + func ParsePixelScriptURL(reader io.Reader) (string, string, error) + func ParsePixelScriptVar(reader io.Reader) (string, error) + func ParseScriptPath(reader io.Reader) (string, error) + type SecCptChallenge struct + ChallengePath string + Duration int + func ParseSecCptChallenge(html io.Reader) (*SecCptChallenge, error) + func (s *SecCptChallenge) GenerateSecCptPayload(secCptCookie string) ([]byte, error) + func (s *SecCptChallenge) UpdateSecCptChallengeData(reader io.Reader) error