Easy Language
Easy Language (易语言) is a Chinese-language programming language popular in China. These samples were contributed by users and are for reference only; we haven’t reviewed them line by line. They include:
- reCAPTCHA and hCaptcha clicking (opens a browser, then recognizes and clicks automatically)
- FunCaptcha image recognition
- reCAPTCHA token submission
Calling the API from Easy Language
Section titled “Calling the API from Easy Language”You don’t need the packages to call the API; a web request command with POST is enough:
- URL
https://api.yescaptcha.com/createTask, methodPOST, headerContent-Type: application/json. - The body is JSON text, for example
{"clientKey":"your_client_key","task":{"type":"ImageToTextTaskOcrBase","body":"BASE64_IMAGE"}}. errorId0 in the JSON response means success. For asynchronous types, taketaskIdand post{"clientKey":"…","taskId":"…"}tohttps://api.yescaptcha.com/getTaskResultevery 5 seconds untilstatusisready.- The image Base64 must not include a
data:image/...;base64,prefix or line breaks.
Request and response formats: Requests and responses.
If a sample doesn’t run
Section titled “If a sample doesn’t run”- “Cannot create browser”: use the browser bundled in the package, uninstall browsers that may conflict, or compile the program before running it.
- An error code is returned: check the parameters against Error codes.