Skip to content

PrivateCaptcha/private-captcha-go

Repository files navigation

Private Captcha for Go

GitHub go.mod Go version CI

Official Go client for Private Captcha API

Please check the official documentation for the in-depth and up-to-date information.

Quick Start

  • Install private-captcha-go package from GitHub
     go get -u github.com/PrivateCaptcha/private-captcha-go
  • Instantiate the Client and call verify() method
     import 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 or client.VerifyRequest() helper to integrate with any HTTP framework

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues with this Go client, please open an issue on GitHub.

For Private Captcha service questions, visit privatecaptcha.com.

About

Go client for server-side usage of Private Captcha API

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •