Go library for interacting with https://www.hcaptcha.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
437 B

package hcaptcha
import "fmt"
func ExampleClient_Verify() {
// Dummy secret https://docs.hcaptcha.com/#integrationtest
client, err := New(dummySecret)
if err != nil {
panic(err)
}
// Dummy token https://docs.hcaptcha.com/#integrationtest
resp, err := client.Verify(dummyToken, PostOptions{})
if err != nil {
panic(err)
}
if resp.Success {
fmt.Println("Verification succeeded")
// Output: Verification succeeded
}
}