Skip to content

LeoCBS/2captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2captcha

Little wrapper for 2captcha API

Build Status

Go get

go get github.com/LeoCBS/2captcha

Upload image base64

twocaptcha, _ := captcha.New("yourKey")
captchaID, err := twocaptcha.UploadBase64Image("dHdvY2FwdGNoYQ==")

Polling result

iniAveragePollingTime := 1
pollingTime := 1
solution, err := twocaptcha.PollingCaptchaResponse(captchaID, iniAveragePollingTime, pollingTime)
if err != nil {
t.Errorf("unable to get captcha response: %s", err)
}

About

Little wrapper for 2captcha API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published