Official Go client for Private Captcha API
Please check the official documentation for the in-depth and up-to-date information.
- Install
private-captcha-gopackage from GitHubgo get -u github.com/PrivateCaptcha/private-captcha-go
- Instantiate the
Clientand callverify()methodimport pc "github.com/PrivateCaptcha/private-captcha-go" client, err := pc.NewClient(pc.Configuration{APIKey: "pc_abcdef"}) // ... handle err output, err := client.Verify(ctx, pc.VerifyInput{Solution: solution}) // ... handle err if !output.OK() { fmt.Printf("Captcha verification failed. Error: %s", result.Error()) }
- Use
client.VerifyFunc()middleware orclient.VerifyRequest()helper to integrate with any HTTP framework
This project is licensed under the MIT License - see the LICENSE file for details.
For issues with this Go client, please open an issue on GitHub.
For Private Captcha service questions, visit privatecaptcha.com.