Sha256: 184c53b6d59110611588881c84853f161cb731e9107260fb1ddaa0cb5cf36d0a

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents




require 'rucaptcha_api'
rucaptcha_key = '5d01e7jk4d9c64a784b25d38840d1407'
api = RucaptchaApi.new rucaptcha_key
path_to_captcha = File.expand_path 'var/captchas/1.png'
captcha_id = api.send_captcha_for_solving path_to_captcha, params: {phrase: 1}
solved_captcha = api.get_solved_captcha captcha_id 
p solved_captcha #=> "3yk4p"






Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rucaptcha_api-1.0.5 example.rb
rucaptcha_api-1.0.4 example.rb
rucaptcha_api-1.0.2 example.rb
rucaptcha_api-1.0.1 example.rb