Versions in this module Expand all Collapse all v1 v1.0.0 Nov 18, 2026 Changes in this version + const NotReady + const SoftID + var DefaultTimeouts = map[string]time.Duration + var ErrAuth = errors.New("azcaptcha: auth") + var ErrBalance = errors.New("azcaptcha: balance") + var ErrCapacity = errors.New("azcaptcha: capacity") + var ErrLimit = errors.New("azcaptcha: limit") + var ErrModule = errors.New("azcaptcha: module") + var ErrNetwork = errors.New("azcaptcha: network") + var ErrPingback = errors.New("azcaptcha: pingback") + var ErrProcessing = errors.New("azcaptcha: processing") + var ErrProxy = errors.New("azcaptcha: proxy") + var ErrRequest = errors.New("azcaptcha: request") + var ErrResult = errors.New("azcaptcha: result") + var ErrService = errors.New("azcaptcha: service") + var ErrUnknown = errors.New("azcaptcha: unknown") + func ImageBase64(image string) string + func ImageBody(image []byte) string + func ImageFile(path string) (string, error) + func NormalizeProxy(proxy string) (string, string, error) + func Taxonomy() map[string]bool + type Client struct + func New(apiKey string, cfg Config) (*Client, error) + func (c *Client) Balance(ctx context.Context) (float64, error) + func (c *Client) CreateTask(ctx context.Context, taskType string, task map[string]any) (int, error) + func (c *Client) GetTaskResult(ctx context.Context, taskID int) (map[string]any, error) + func (c *Client) ReportBad(ctx context.Context, taskID string) (bool, error) + func (c *Client) Result(ctx context.Context, taskID string) (string, error) + func (c *Client) Solve(ctx context.Context, method string, params map[string]any) (string, error) + func (c *Client) SolveFunCaptcha(ctx context.Context, publickey, pageurl string, params map[string]any) (string, error) + func (c *Client) SolveGeeTest(ctx context.Context, gt, challenge, pageurl string, params map[string]any) (string, error) + func (c *Client) SolveHCaptcha(ctx context.Context, sitekey, pageurl string, params map[string]any) (string, error) + func (c *Client) SolveImage(ctx context.Context, image []byte, params map[string]any) (string, error) + func (c *Client) SolveImageBase64(ctx context.Context, image string, params map[string]any) (string, error) + func (c *Client) SolveImageFile(ctx context.Context, path string, params map[string]any) (string, error) + func (c *Client) SolveRecaptchaV2(ctx context.Context, sitekey, pageurl string, opts *RecaptchaV2Options) (string, error) + func (c *Client) SolveRecaptchaV3(ctx context.Context, sitekey, pageurl, action string, opts *RecaptchaV3Options) (string, error) + func (c *Client) SolveTurnstile(ctx context.Context, sitekey, pageurl string, params map[string]any) (string, error) + func (c *Client) SolveWithTimeout(ctx context.Context, method string, params map[string]any, ...) (string, error) + func (c *Client) Submit(ctx context.Context, method string, params map[string]any) (string, error) + func (c *Client) WaitResult(ctx context.Context, taskID string, timeout time.Duration) (string, error) + func (c *Client) WaitTaskResult(ctx context.Context, taskID int, timeout time.Duration) (map[string]any, error) + type Config struct + HTTPTimeout time.Duration + Host string + Sleep func(time.Duration) + SoftID int + Transport Transport + type Error struct + Code string + Err error + Message string + Retryable bool + func ErrFor(code string) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type HTTPTransport struct + BaseURL string + HTTP *http.Client + func NewHTTPTransport(baseURL string, timeout time.Duration) *HTTPTransport + func (t *HTTPTransport) Get(ctx context.Context, path string, query url.Values) (map[string]any, error) + func (t *HTTPTransport) PostForm(ctx context.Context, path string, form url.Values) (map[string]any, error) + func (t *HTTPTransport) PostJSON(ctx context.Context, path string, payload any) (map[string]any, error) + type RecaptchaV2Options struct + Enterprise bool + Invisible bool + Params map[string]any + type RecaptchaV3Options struct + MinScore float64 + Params map[string]any + type Transport interface + Get func(ctx context.Context, path string, query url.Values) (map[string]any, error) + PostForm func(ctx context.Context, path string, form url.Values) (map[string]any, error) + PostJSON func(ctx context.Context, path string, payload any) (map[string]any, error)