>

Python

Demo address

Find the Python Demo at https://github.com/GeeTeam/gt4-python-demo

Run demo

  1. Install Python version 3.5 or higher

  2. 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
  1. Visit http://localhost:8077 in the browser to see the demo interface

Access process

  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.

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
  1. 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
  1. 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