Overview
Based on C# asp .net mvc framework.
Demo development environment
Item |
Description |
OS |
Ubuntu 16.04.6 LTS |
.net core version |
dotnet-sdk-3.1.301 |
redis version |
3.0.6 |
Resources
Installation
Download DEMO
git clone https://github.com/GeeTeam/gt3-server-csharp-aspnetcoremvc-bypass.git
|
Get public key(ID) and private key(KEY) from GeeTest Dashboard.Then configure the key pair in the following configuration file:
Controllers/GeetestConfig.cs
|
Run demo
cd gt3-server-csharp-aspnetcoremvc-sdk sudo dotnet watch run
|
Visit http://localhost:5001
to view the demo.
Key file reference
Name |
Description |
Directory |
GeetestController.cs |
Handle service initialization and secondary verification process |
Controllers/ |
GeetestConfig.cs |
Parameters configuration |
Controllers/ |
GeetestLib.cs |
Contains the core logic |
Controllers/Sdk/ |
GeetestLibResult.cs |
Encapsulated class providing access to the data |
Controllers/Sdk/ |
index.html |
Index page of the demo |
wwwroot/ |
gt.js |
JavaScript file loaded locally |
wwwroot/ |
launchSettings.json |
The file setting IP, port, etc. |
Propertie/ |
Startup.cs |
Configure router, middleware, etc. |
|
Reference
GeeTest Status Monitoring API
Client/SDK Server Communication API Reference
SDK/GeeTest Server Communication API Reference