hyper

package module
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 16 Imported by: 0

README ΒΆ

Hyper Solutions SDK - Go Library for Bot Protection Bypass (Akamai, Incapsula, Kasada, DataDome)

Go Version License GitHub Release GitHub Stars

A powerful Go SDK for bypassing modern bot protection systems including Akamai Bot Manager, Incapsula, Kasada, and DataDome. Generate valid cookies, solve anti-bot challenges, and automate protected endpoints with ease.

Perfect for web scraping, automation, and data collection from protected websites.

πŸ”‘ Getting API Access

Before using this SDK, you'll need an API key from Hyper Solutions:

  1. Visit hypersolutions.co to create your account
  2. Choose your plan:
    • πŸ’³ Pay-as-you-go: Perfect for testing and small-scale usage
    • πŸ“Š Subscription plans: Cost-effective for high-volume applications
  3. Get your API key from the dashboard
  4. Start bypassing bot protection with this SDK!

πŸš€ Quick Start

package main

import (
    "context"
    "fmt"
    "github.com/Hyper-Solutions/hyper-sdk-go/v2"
)

func main() {
    session := hyper.NewSession("your-api-key")
    
    // Generate Akamai sensor data
    sensorData, sensorContext, err := session.GenerateSensorData(context.Background(), &hyper.SensorInput{
        // Configure your sensor input
    })
    if err != nil {
        panic(err)
    }
    
    fmt.Printf("Generated sensor data: %s", sensorData)
    fmt.Printf("Sensor context: %s", sensorContext)
}

✨ Features

  • πŸ›‘οΈ Akamai Bot Manager: Generate sensor data, handle pixel challenges, validate cookies
  • πŸ”’ Incapsula Protection: Generate Reese84 sensors and UTMVC cookies
  • ⚑ Kasada Bypass: Generate payload data (CT) and POW tokens (CD)
  • 🎯 DataDome Solutions: Solve tags, slider captchas and interstitial challenges
  • πŸ”§ Easy Integration: Simple Go API with comprehensive documentation
  • βš™οΈ Flexible Configuration: Custom HTTP clients and JWT key support

πŸ“¦ Installation

Install the Hyper Solutions SDK for Go using:

go get github.com/Hyper-Solutions/hyper-sdk-go/v2

πŸ“‹ Table of Contents

πŸ”§ Basic Usage

Creating a Session

Initialize the SDK with your API key to start bypassing bot protection:

// Basic session
session := hyper.NewSession("your-api-key")

// Advanced session with custom configuration
session := hyper.NewSession("your-api-key").
    WithJwtKey("your-jwt-key").
    WithClient(customHTTPClient)

πŸ›‘οΈ Akamai Bot Manager

Bypass Akamai Bot Manager protection with sensor data generation, cookie validation, and challenge solving.

Generating Sensor Data

Generate sensor data for valid Akamai cookies and bot detection bypass:

sensorData, err := session.GenerateSensorData(ctx, &hyper.SensorInput{
    // Configure sensor parameters
})
if err != nil {
    // Handle error
}
Parsing Script Path

Extract Akamai Bot Manager script paths from HTML for reverse engineering:

scriptPath, err := akamai.ParseScriptPath(reader)
if err != nil {
    // Handle error
}
Handling Sec-Cpt Challenges

Solve sec-cpt challenges with built-in parsing and payload generation:

  • ParseSecCptChallenge: Parse sec-cpt challenges from HTML
  • ParseSecCptChallengeFromJson: Parse from JSON responses
  • GenerateSecCptPayload: Generate challenge response payloads
  • Sleep: Handle challenge timing requirements
  • SleepWithContext: Context-aware challenge delays

Validate Akamai _abck cookies and session states:

  • IsCookieValid: Check cookie validity for request counts
  • IsCookieInvalidated: Determine if more sensors are needed
Pixel Challenge Solving

Handle Akamai pixel challenges for advanced bot detection bypass:

pixelData, err := session.GeneratePixelData(ctx, &hyper.PixelInput{
    // Pixel challenge parameters
})
if err != nil {
    // Handle error
}

Pixel parsing functions:

  • ParsePixelHtmlVar: Extract pixel variables from HTML
  • ParsePixelScriptURL: Get pixel script and POST URLs
  • ParsePixelScriptVar: Parse dynamic pixel values

πŸ”’ Incapsula Protection

Bypass Incapsula bot detection with Reese84 sensors and UTMVC cookie generation.

Generating Reese84 Sensors

Create Reese84 sensor data for Incapsula bypass:

sensorData, err := session.GenerateReese84Sensor(ctx, site, userAgent)
if err != nil {
    // Handle error
}

Generate UTMVC cookies for Incapsula protection bypass:

utmvcCookie, err := session.GenerateUtmvcCookie(ctx, &hyper.UtmvcInput{
    Script: "incapsula-script-content",
    SessionIds: []string{"session-id-1", "session-id-2"},
    UserAgent: "Mozilla/5.0 (compatible bot)"
})
if err != nil {
    // Handle error
}
Script Path Parsing

Parse UTMVC script paths for Incapsula integration:

scriptPath, err := incapsula.ParseUtmvcScriptPath(scriptReader)
if err != nil {
    // Handle error
}

// Generate submit path
submitPath := incapsula.GetUtmvcSubmitPath()

⚑ Kasada Bypass

Defeat Kasada Bot Manager with payload generation and POW solving.

Generating Payload Data (CT)

Create x-kpsdk-ct tokens for Kasada bypass:

payload, headers, err := session.GenerateKasadaPayload(ctx, &hyper.KasadaPayloadInput{
    // Kasada payload configuration
})
if err != nil {
    // Handle error
}
Generating POW Data (CD)

Solve Kasada Proof-of-Work challenges for x-kpsdk-cd tokens:

powPayload, err := session.GenerateKasadaPow(ctx, &hyper.KasadaPowInput{
    // POW challenge parameters
})
if err != nil {
    // Handle error
}
Script Path Extraction

Extract Kasada script paths from blocked pages (HTTP 429):

scriptPath, err := kasada.ParseScriptPath(reader)
if err != nil {
    // Handle error
}
// Returns: /ips.js?timestamp=...

🎯 DataDome Solutions

Solve DataDome captchas including slider challenges and interstitial pages.

Interstitial Challenge Solving

Bypass DataDome interstitial pages:

payload, headers, err := session.GenerateDataDomeInterstitial(ctx, &hyper.DataDomeInterstitialInput{
    // Interstitial parameters
})
if err != nil {
    // Handle error
}
// POST payload to https://geo.captcha-delivery.com/interstitial/
Slider Captcha Solving

Solve DataDome slider captchas automatically:

checkUrl, headers, err := session.GenerateDataDomeSlider(ctx, &hyper.DataDomeSliderInput{
    // Slider challenge parameters
})
if err != nil {
    // Handle error
}
// GET request to checkUrl

Extract DataDome device check URLs:

// Interstitial device links
deviceLink, err := datadome.ParseInterstitialDeviceCheckLink(reader, datadomeCookie, referer)
if err != nil {
    // Handle error
}

// Slider device links  
deviceLink, err := datadome.ParseSliderDeviceCheckLink(reader, datadomeCookie, referer)
if err != nil {
    // Handle error
}
Getting Help

πŸ“„ License

This SDK is licensed under the MIT License.


Keywords: Go SDK, Golang, bot protection bypass, web scraping, Akamai bypass, Incapsula bypass, Kasada bypass, DataDome bypass, anti-bot, captcha solver, automation, reverse engineering, bot detection, web automation

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

This section is empty.

Types ΒΆ

type CompressionType ΒΆ added in v2.4.0

type CompressionType string

CompressionType represents the compression algorithm to use

const (
	CompressionZstd CompressionType = "zstd"
	CompressionGzip CompressionType = "gzip"
)

type DataDomeInterstitialInput ΒΆ

type DataDomeInterstitialInput struct {
	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent string `json:"userAgent"`

	// DeviceLink is the URL that contains the script and starts like this:
	// https://geo.captcha-delivery.com/captcha/?initialCid
	DeviceLink string `json:"deviceLink"`

	// Html is the response body of the GET request to the DeviceLink
	Html string `json:"html"`

	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
}

func (DataDomeInterstitialInput) MarshalEasyJSON ΒΆ

func (v DataDomeInterstitialInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DataDomeInterstitialInput) MarshalJSON ΒΆ

func (v DataDomeInterstitialInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DataDomeInterstitialInput) UnmarshalEasyJSON ΒΆ

func (v *DataDomeInterstitialInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DataDomeInterstitialInput) UnmarshalJSON ΒΆ

func (v *DataDomeInterstitialInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DataDomeSliderInput ΒΆ

type DataDomeSliderInput struct {
	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent string `json:"userAgent"`

	// DeviceLink is the URL that contains the script and starts like this:
	// https://geo.captcha-delivery.com/captcha/?initialCid
	DeviceLink string `json:"deviceLink"`

	// Html is the response body of the GET request to the DeviceLink
	Html string `json:"html"`

	// Puzzle is the captcha puzzle image bytes, base64 encoded.
	// The URL that returns the puzzle looks like this:
	// https://dd.prod.captcha-delivery.com/image/2024-xx-xx/hash.jpg
	Puzzle string `json:"puzzle"`

	// Piece is the captcha puzzle piece image bytes, base64 encoded.
	// The URL that returns the puzzle looks like this:
	// https://dd.prod.captcha-delivery.com/image/2024-xx-xx/hash.frag.png
	Piece string `json:"piece"`

	ParentUrl      string `json:"parentUrl"`
	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
}

func (DataDomeSliderInput) MarshalEasyJSON ΒΆ

func (v DataDomeSliderInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DataDomeSliderInput) MarshalJSON ΒΆ

func (v DataDomeSliderInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DataDomeSliderInput) UnmarshalEasyJSON ΒΆ

func (v *DataDomeSliderInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DataDomeSliderInput) UnmarshalJSON ΒΆ

func (v *DataDomeSliderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DataDomeTagsInput ΒΆ

type DataDomeTagsInput struct {
	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent string `json:"userAgent"`

	Cid     string `json:"cid"`
	Ddk     string `json:"ddk"`
	Referer string `json:"referer"`
	Type    string `json:"type"`

	Version        string `json:"version"`
	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
}

func (DataDomeTagsInput) MarshalEasyJSON ΒΆ

func (v DataDomeTagsInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DataDomeTagsInput) MarshalJSON ΒΆ

func (v DataDomeTagsInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DataDomeTagsInput) UnmarshalEasyJSON ΒΆ

func (v *DataDomeTagsInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DataDomeTagsInput) UnmarshalJSON ΒΆ

func (v *DataDomeTagsInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DynamicInput ΒΆ

type DynamicInput struct {
	// Script is the akamai script's contents.
	Script string `json:"script"`
}

func (DynamicInput) MarshalEasyJSON ΒΆ

func (v DynamicInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DynamicInput) MarshalJSON ΒΆ

func (v DynamicInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DynamicInput) UnmarshalEasyJSON ΒΆ

func (v *DynamicInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DynamicInput) UnmarshalJSON ΒΆ

func (v *DynamicInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Headers ΒΆ

type Headers struct {
	DeviceMemory    string `json:"sec-ch-device-memory"`
	Mobile          string `json:"sec-ch-ua-mobile"`
	Arch            string `json:"sec-ch-ua-arch"`
	Platform        string `json:"sec-ch-ua-platform"`
	Model           string `json:"sec-ch-ua-model"`
	FullVersionList string `json:"sec-ch-ua-full-version-list"`
}

func (Headers) MarshalEasyJSON ΒΆ

func (v Headers) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Headers) MarshalJSON ΒΆ

func (v Headers) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Headers) UnmarshalEasyJSON ΒΆ

func (v *Headers) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Headers) UnmarshalJSON ΒΆ

func (v *Headers) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KasadaHeaders ΒΆ

type KasadaHeaders struct {
	XKpsdkCt string `json:"x-kpsdk-ct"`
	XKpsdkDt string `json:"x-kpsdk-dt"`
	XKpsdkV  string `json:"x-kpsdk-v"`
	XKpsdkR  string `json:"x-kpsdk-r"`
	XKpsdkDv string `json:"x-kpsdk-dv"`
	XKpsdkH  string `json:"x-kpsdk-h"`
	XKpsdkFc string `json:"x-kpsdk-fc"`
	XKpsdkIm string `json:"x-kpsdk-im"`
}

func (KasadaHeaders) MarshalEasyJSON ΒΆ

func (v KasadaHeaders) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KasadaHeaders) MarshalJSON ΒΆ

func (v KasadaHeaders) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KasadaHeaders) UnmarshalEasyJSON ΒΆ

func (v *KasadaHeaders) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KasadaHeaders) UnmarshalJSON ΒΆ

func (v *KasadaHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KasadaPayloadInput ΒΆ

type KasadaPayloadInput struct {
	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent string `json:"userAgent"`

	// IpsLink is the ips.js script link, parsed from the block page (429 status code)
	IpsLink string `json:"ipsLink"`

	// Script is the ips.js script retrieved using the IpsLink url
	Script string `json:"script"`

	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip,omitempty"`
}

func (KasadaPayloadInput) MarshalEasyJSON ΒΆ

func (v KasadaPayloadInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KasadaPayloadInput) MarshalJSON ΒΆ

func (v KasadaPayloadInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KasadaPayloadInput) UnmarshalEasyJSON ΒΆ

func (v *KasadaPayloadInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KasadaPayloadInput) UnmarshalJSON ΒΆ

func (v *KasadaPayloadInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type KasadaPowInput ΒΆ

type KasadaPowInput struct {
	// St is the x-kpsdk-st value returned by the /tl POST request
	St     int    `json:"st"`
	Ct     string `json:"ct"`
	Domain string `json:"domain"`
	Script string `json:"script"`
	// WorkTime can be used to pre-generate POW strings
	WorkTime *int `json:"workTime,omitempty"`
}

func (KasadaPowInput) MarshalEasyJSON ΒΆ

func (v KasadaPowInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (KasadaPowInput) MarshalJSON ΒΆ

func (v KasadaPowInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*KasadaPowInput) UnmarshalEasyJSON ΒΆ

func (v *KasadaPowInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*KasadaPowInput) UnmarshalJSON ΒΆ

func (v *KasadaPowInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PixelInput ΒΆ

type PixelInput struct {
	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent      string `json:"userAgent"`
	HTMLVar        string `json:"htmlVar"`
	ScriptVar      string `json:"scriptVar"`
	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
}

func (PixelInput) MarshalEasyJSON ΒΆ

func (v PixelInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PixelInput) MarshalJSON ΒΆ

func (v PixelInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PixelInput) UnmarshalEasyJSON ΒΆ

func (v *PixelInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PixelInput) UnmarshalJSON ΒΆ

func (v *PixelInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReeseInput ΒΆ

type ReeseInput struct {
	UserAgent      string `json:"userAgent"`
	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
	ScriptUrl      string `json:"scriptUrl"`
	PageUrl        string `json:"pageUrl"`
	Pow            string `json:"pow"`
	Script         string `json:"script"`
}

func (ReeseInput) MarshalEasyJSON ΒΆ

func (v ReeseInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReeseInput) MarshalJSON ΒΆ

func (v ReeseInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReeseInput) UnmarshalEasyJSON ΒΆ

func (v *ReeseInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReeseInput) UnmarshalJSON ΒΆ

func (v *ReeseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SbsdInput ΒΆ

type SbsdInput struct {
	Index int `json:"index"`
	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent      string `json:"userAgent"`
	Uuid           string `json:"uuid"`
	PageUrl        string `json:"pageUrl"`
	OCookie        string `json:"o"`
	Script         string `json:"script"`
	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
}

func (SbsdInput) MarshalEasyJSON ΒΆ

func (v SbsdInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SbsdInput) MarshalJSON ΒΆ

func (v SbsdInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SbsdInput) UnmarshalEasyJSON ΒΆ

func (v *SbsdInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SbsdInput) UnmarshalJSON ΒΆ

func (v *SbsdInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SensorInput ΒΆ

type SensorInput struct {
	// Abck is the _abck cookie retrieved from your cookiejar.
	// Make sure you always retrieve it fresh from the cookiejar as it gets updated while making requests.
	Abck string `json:"abck"`

	// Bmsz is the bm_sz cookie retrieved from your cookiejar, make sure you always retrieve it fresh from the cookiejar.
	Bmsz string `json:"bmsz"`

	// Version is the akamai version, this will usually be "2"
	Version string `json:"version"`

	// PageUrl is the page url that loaded the akamai script, it is the same URL as the referer header on the sensor posts
	PageUrl string `json:"pageUrl"`

	// UserAgent must be a Chrome Windows User-Agent.
	UserAgent string `json:"userAgent"`

	// ScriptHash is a sha256 checksum over the akamai script contents
	ScriptHash string `json:"scriptHash"`

	// DynamicValues is required for sites that use the dynamic version of v3, this value can be retrieved by [Session.ParseV3Dynamic]
	DynamicValues string `json:"dynamicValues"`

	AcceptLanguage string `json:"acceptLanguage"`
	IP             string `json:"ip"`
	Context        string `json:"context"`
}

func (SensorInput) MarshalEasyJSON ΒΆ

func (v SensorInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SensorInput) MarshalJSON ΒΆ

func (v SensorInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SensorInput) UnmarshalEasyJSON ΒΆ

func (v *SensorInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SensorInput) UnmarshalJSON ΒΆ

func (v *SensorInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Session ΒΆ

type Session struct {
	ApiKey      string
	JwtKey      []byte
	AppKey      string
	AppSecret   []byte
	Client      *http.Client
	Compression CompressionType
}

func NewSession ΒΆ

func NewSession(apiKey string) *Session

NewSession creates a new Session that can be used to make requests to the Hyper Solutions API.

func (*Session) GenerateDataDomeInterstitial ΒΆ

func (s *Session) GenerateDataDomeInterstitial(ctx context.Context, input *DataDomeInterstitialInput) (string, *Headers, error)

GenerateDataDomeInterstitial returns the form data string that is used in the POST request to receive a solved datadome cookie, and the extra sec-ch-* headers used on consequent requests.

func (*Session) GenerateDataDomeSlider ΒΆ

func (s *Session) GenerateDataDomeSlider(ctx context.Context, input *DataDomeSliderInput) (string, *Headers, error)

GenerateDataDomeSlider returns the URL that will return a solved datadome cookie when blocked by captcha, and the extra sec-ch-* headers used on consequent requests.

func (*Session) GenerateDataDomeTags ΒΆ

func (s *Session) GenerateDataDomeTags(ctx context.Context, input *DataDomeTagsInput) (string, error)

GenerateDataDomeTags returns the tags data string that is used in the POST request to receive a solved datadome cookie.

func (*Session) GenerateKasadaPayload ΒΆ

func (s *Session) GenerateKasadaPayload(ctx context.Context, input *KasadaPayloadInput) ([]byte, *KasadaHeaders, error)

GenerateKasadaPayload returns the payload to POST to /tl in bytes, and the generated headers

func (*Session) GenerateKasadaPow ΒΆ

func (s *Session) GenerateKasadaPow(ctx context.Context, input *KasadaPowInput) (string, error)

GenerateKasadaPow returns the x-kpsdk-cd value

func (*Session) GeneratePixelData ΒΆ

func (s *Session) GeneratePixelData(ctx context.Context, input *PixelInput) (string, error)

GeneratePixelData returns the pixel data using the Hyper Solutions API.

func (*Session) GenerateReese84Sensor ΒΆ

func (s *Session) GenerateReese84Sensor(ctx context.Context, site string, input *ReeseInput) (string, error)

GenerateReese84Sensor returns the sensor data required to generate valid reese84 cookies using the Hyper Solutions API.

func (*Session) GenerateSbsdData ΒΆ

func (s *Session) GenerateSbsdData(ctx context.Context, input *SbsdInput) (string, error)

GenerateSbsdData returns the sbsd payload using the Hyper Solutions API.

func (*Session) GenerateSensorData ΒΆ

func (s *Session) GenerateSensorData(ctx context.Context, input *SensorInput) (string, string, error)

GenerateSensorData returns the sensor data required to generate valid akamai cookies using the Hyper Solutions API.

func (*Session) GenerateUtmvcCookie ΒΆ

func (s *Session) GenerateUtmvcCookie(ctx context.Context, input *UtmvcInput) (string, string, error)

GenerateUtmvcCookie returns the utmvc cookie using the Hyper Solutions API.

func (*Session) ParseV3Dynamic ΒΆ

func (s *Session) ParseV3Dynamic(ctx context.Context, input *DynamicInput) (string, error)

ParseV3Dynamic returns the dynamic values for a v3 dynamic script

func (*Session) TrustDecisionDecode ΒΆ added in v2.2.0

func (s *Session) TrustDecisionDecode(ctx context.Context, input *TrustDecisionDecodeInput) (string, error)

func (*Session) TrustDecisionPayload ΒΆ added in v2.2.0

func (s *Session) TrustDecisionPayload(ctx context.Context, input *TrustDecisionPayloadInput) (string, string, string, error)

func (*Session) TrustDecisionSign ΒΆ added in v2.2.0

func (s *Session) TrustDecisionSign(ctx context.Context, input *TrustDecisionSigningInput) (string, error)

func (*Session) WithClient ΒΆ

func (s *Session) WithClient(client *http.Client) *Session

WithClient sets a new client that will be used to make requests to the Hyper Solutions API.

func (*Session) WithCompression ΒΆ added in v2.4.0

func (s *Session) WithCompression(compression CompressionType) *Session

WithCompression sets the compression type for requests.

func (*Session) WithJwtKey ΒΆ

func (s *Session) WithJwtKey(jwt string) *Session

WithJwtKey adds the JWT Key to the session. If not empty, a signature will be added to each request.

func (*Session) WithOrganization ΒΆ added in v2.3.0

func (s *Session) WithOrganization(key, secret string) *Session

WithOrganization adds the organization to the session.

type TrustDecisionDecodeInput ΒΆ added in v2.2.0

type TrustDecisionDecodeInput struct {
	Result    string `json:"result"`
	RequestId string `json:"requestId"`
}

func (TrustDecisionDecodeInput) MarshalEasyJSON ΒΆ added in v2.2.0

func (v TrustDecisionDecodeInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrustDecisionDecodeInput) MarshalJSON ΒΆ added in v2.2.0

func (v TrustDecisionDecodeInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrustDecisionDecodeInput) UnmarshalEasyJSON ΒΆ added in v2.2.0

func (v *TrustDecisionDecodeInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrustDecisionDecodeInput) UnmarshalJSON ΒΆ added in v2.2.0

func (v *TrustDecisionDecodeInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrustDecisionPayloadInput ΒΆ added in v2.2.0

type TrustDecisionPayloadInput struct {
	UserAgent      string `json:"userAgent"`
	AcceptLanguage string `json:"acceptLanguage"`
	Ip             string `json:"ip"`
	Script         string `json:"script"`
	PageUrl        string `json:"pageUrl"`
	FpUrl          string `json:"fpUrl"`
}

func (TrustDecisionPayloadInput) MarshalEasyJSON ΒΆ added in v2.2.0

func (v TrustDecisionPayloadInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrustDecisionPayloadInput) MarshalJSON ΒΆ added in v2.2.0

func (v TrustDecisionPayloadInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrustDecisionPayloadInput) UnmarshalEasyJSON ΒΆ added in v2.2.0

func (v *TrustDecisionPayloadInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrustDecisionPayloadInput) UnmarshalJSON ΒΆ added in v2.2.0

func (v *TrustDecisionPayloadInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrustDecisionSigningInput ΒΆ added in v2.2.0

type TrustDecisionSigningInput struct {
	ClientId string `json:"clientId"`
	Path     string `json:"path"`
}

func (TrustDecisionSigningInput) MarshalEasyJSON ΒΆ added in v2.2.0

func (v TrustDecisionSigningInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrustDecisionSigningInput) MarshalJSON ΒΆ added in v2.2.0

func (v TrustDecisionSigningInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrustDecisionSigningInput) UnmarshalEasyJSON ΒΆ added in v2.2.0

func (v *TrustDecisionSigningInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrustDecisionSigningInput) UnmarshalJSON ΒΆ added in v2.2.0

func (v *TrustDecisionSigningInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type UtmvcInput ΒΆ

type UtmvcInput struct {
	UserAgent string `json:"userAgent"`

	// SessionIds The value of each cookie that has a name that starts with incap_ses_
	SessionIds []string `json:"sessionIds"`

	// Script is the UTMVC script contents
	Script string `json:"script"`
}

func (UtmvcInput) MarshalEasyJSON ΒΆ

func (v UtmvcInput) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (UtmvcInput) MarshalJSON ΒΆ

func (v UtmvcInput) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*UtmvcInput) UnmarshalEasyJSON ΒΆ

func (v *UtmvcInput) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*UtmvcInput) UnmarshalJSON ΒΆ

func (v *UtmvcInput) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

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