Documentation ¶
Index ¶
- type CaptchaServiceClient
- func (c *CaptchaServiceClient) CheckResult(captchaId string) (string, bool, error)
- func (c *CaptchaServiceClient) CreatTask(dataForm url.Values) (string, error)
- func (c *CaptchaServiceClient) ReCaptchaV2(siteURL string, siteKey string, timeout time.Duration) (string, error)
- func (c *CaptchaServiceClient) RegularCaptcha(base64Image string, timeout time.Duration) (string, error)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptchaServiceClient ¶
func Client ¶
func Client(secure bool, provider string, apikey string) *CaptchaServiceClient
Preparation client to use package
func (*CaptchaServiceClient) CheckResult ¶
func (c *CaptchaServiceClient) CheckResult(captchaId string) (string, bool, error)
A method to check answer for job
func (*CaptchaServiceClient) CreatTask ¶
func (c *CaptchaServiceClient) CreatTask(dataForm url.Values) (string, error)
A method create job and return the ID
func (*CaptchaServiceClient) ReCaptchaV2 ¶
func (c *CaptchaServiceClient) ReCaptchaV2(siteURL string, siteKey string, timeout time.Duration) (string, error)
A method that creates job with Google reCaptcha and gives you the answer
func (*CaptchaServiceClient) RegularCaptcha ¶
func (c *CaptchaServiceClient) RegularCaptcha(base64Image string, timeout time.Duration) (string, error)
A method that creates job with regular image captcha in base64 and gives you the answer
Click to show internal directories.
Click to hide internal directories.