>

Step 1: Choose a coding language that you want to integrate with GeeTest CAPTCHA V4.

C

Find the C# Demo at https://github.com/GeeTeam/gt4_csharp_aspnetcoremvc_demo
Run demo
Install .NET Core 3.1 or higher
Git Clone C# Demo project
Launch the .NET project
Visit http://localhost:64335 in browser to see demo interface

Java

Find the Java Demo at https://github.com/GeeTeam/gt4-java-demo
Run demo
Install Java JDK 1.8 or higher
Starts SpringBoot project using Tomcat
Visit http://localhost:8080 in browser to see the demo interface

Node

Find the Node Demo on https://github.com/GeeTeam/gt4_node_express_demo
Run demo
Install Node.js 14 or higher
Run the following commands:

npm start

Visit http://localhost:3000 in browser to see the demo interface

PHP

Find the PHP Demo at https://github.com/GeeTeam/gt4-php-demo
Run demo
Install PHP 7.2 or higher
Run Nginx with configured PHP environment
Visit http://localhost:[nginx port number] in browser to see the demo interface

Python

Find the Python Demo at https://github.com/GeeTeam/gt4-python-demo
Run demo
Install Python version 3.5 or higher
Run the following commands:

git clone https://github.com/GeeTeam/gt4-python-demo
cd gt4-python-demo
pip install -r requirements.txt
python3 start.py

Visit http://localhost:8077 in browser to see the demo interface

Golang

Find the Go Demo at https://github.com/GeeTeam/gt4_golang_demo
Run demo
Install Go 1.16 or higher
Run the following commands:

git clone https://github.com/GeeTeam/gt4_golang_demo
cd gt4_golang_demo
go run main.go

Visit http://localhost:8001 in browser to see the demo interface

Step 2: follow the access processes

  1. Configure GeeTest parameters
  2. Get front-end parameters
  3. Generate signature
  4. Request GeeTest service to validate user authentication status
  5. You can make further decisions based on the verification result returned from GeeTest server

Step 3: Secondary validation interface

Interface information Description
API address http://gcaptcha4.geetest.com/validate
Request method GET/POST
Content type application/x-www-form-urlencoded
Response format json

Request parameters

Parameter Name Type Description
lot_number string Verify serial number
captcha_output string Verify output information
pass_token string Token of the verification
gen_time string Timestamp of the verification
captcha_id string CAPTCHA ID
sign_token string Verification signature

Response parameters

Parameter Name Type Description
result string Secondary validation result
reason string Validation result description
captcha_args dict Verify output parameters
Was this helpful?
Send