Documentation
¶
Index ¶
- Variables
- type Akamai
- type AkamaiBMP
- type AkamaiResponse
- type Client
- func (c *Client) GetBalance() (int, error)
- func (c *Client) GetResult(task *CreateTaskResponse) (*SolutionResponse, error)
- func (c *Client) NewHCaptchaTask(task *HCaptcha) (*CreateTaskResponse, error)
- func (c *Client) NewReCaptchaV2Task(task *ReCaptchaV2) (*CreateTaskResponse, error)
- func (c *Client) NewReCaptchaV3Task(task *ReCaptchaV3) (*CreateTaskResponse, error)
- func (c *Client) SolveAkamai(task *Akamai) (*AkamaiResponse, error)
- func (c *Client) SolveAkamaiBMP(task *AkamaiBMP) (*AkamaiResponse, error)
- type CreateTaskResponse
- type GetBalanceRequest
- type GetBalanceResponse
- type HCaptcha
- type ReCaptchaV2
- type ReCaptchaV3
- type SolutionRequest
- type SolutionResponse
- type TaskRequest
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AkamaiResponse ¶
type AkamaiResponse struct {
ErrorID int `json:"errorId"`
ErrorCode any `json:"errorCode,omitempty"`
ErrorDescription any `json:"errorDescription,omitempty"`
Solution struct {
Payload string `json:"payload,omitempty"`
Sensor string `json:"sensor,omitempty"`
} `json:"solution"`
Status string `json:"status"`
}
type Client ¶
type Client struct {
ClientKey string `json:"clientKey"`
AppID string `json:"appId,omitempty"`
Attempts int
}
func (*Client) GetBalance ¶
func (*Client) GetResult ¶
func (c *Client) GetResult(task *CreateTaskResponse) (*SolutionResponse, error)
func (*Client) NewHCaptchaTask ¶
func (c *Client) NewHCaptchaTask(task *HCaptcha) (*CreateTaskResponse, error)
func (*Client) NewReCaptchaV2Task ¶
func (c *Client) NewReCaptchaV2Task(task *ReCaptchaV2) (*CreateTaskResponse, error)
func (*Client) NewReCaptchaV3Task ¶
func (c *Client) NewReCaptchaV3Task(task *ReCaptchaV3) (*CreateTaskResponse, error)
func (*Client) SolveAkamai ¶
func (c *Client) SolveAkamai(task *Akamai) (*AkamaiResponse, error)
func (*Client) SolveAkamaiBMP ¶
func (c *Client) SolveAkamaiBMP(task *AkamaiBMP) (*AkamaiResponse, error)
type CreateTaskResponse ¶
type GetBalanceRequest ¶
type GetBalanceRequest struct {
ClientKey string `json:"clientKey"`
}
type GetBalanceResponse ¶
type ReCaptchaV2 ¶
type ReCaptchaV3 ¶
type SolutionRequest ¶
type SolutionResponse ¶
type SolutionResponse struct {
ErrorID int `json:"errorId"`
ErrorCode any `json:"errorCode,omitempty"`
ErrorDescription any `json:"errorDescription,omitempty"`
Solution struct {
GRecaptchaResponse string `json:"gRecaptchaResponse,omitempty"`
} `json:"solution"`
Status string `json:"status,omitempty"`
}
type TaskRequest ¶
Click to show internal directories.
Click to hide internal directories.