PHP example:
<?php $xhe_host = "127.0.0.1:7010"; //connect the object to control the emulator, if not already connected if(!isset($path)) $path = "../../../Templates/xweb_human_emulator.php"; require($path); //Start echo "<hr> <font color = blue> rucaptcha->".basename(__FILE__)."</font> <hr>"; //API key $rucaptcha->api_key = "0123456789abcdef0123456789abcdef"; //1 echo "1.Recognize audio file from ReCaptcha 2:"; echo $rucaptcha->recognize_audio_captcha($debug->get_cur_script_folder()."test \ 80692.mp3", 0); //end echo "<hr> <br>"; //Quit $app->quit(); ?>
Python example:
# Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7010" from xweb_human_emulator import * # Start echo("<hr> <font color = blue> rucaptcha.xxxxxxxxx </font> <hr>") # API key rucaptcha.api_key = "0123456789abcdef0123456789abcdef" # 1 echo("1.Recognizing audio file from ReCaptcha 2:") echo(rucaptcha.recognize_audio_captcha(debug.get_cur_script_folder() + "test \ 80692.mp3", 0)) # end echo("<hr> <br>") # Quit app.quit()
C# example:
Java Script example: