captcha

package
v0.0.0-...-6861ca8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK = "OK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha struct {
	// contains filtered or unexported fields
}

func New

func New(key string) (*Captcha, error)

func (*Captcha) PollingCaptchaResponse

func (captcha *Captcha) PollingCaptchaResponse(captchaID string, initAverageSleep time.Duration, pollingTime time.Duration) (string, error)

polling 2captcha response page until captcha is ready. initAverageSleep represent 2captcha average time to solve captcha, don't makes senses polling response before average time

func (*Captcha) UploadBase64Image

func (captcha *Captcha) UploadBase64Image(base64 string) (string, error)

upload one base64 imagem to twocaptcha to be resolverd return captcha id or one error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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