imagetyperz-api/imagetyperz-api-ruby

CAPTCHAFORUM

Administrator
imagetyperzapi is a super easy to use bypass captcha API wrapper for imagetyperz.com captcha service

Installation
gem "imagetyperzapi", :git => "git://github.com/imagetyperz-api/imagetyperz-api-ruby.git"
or
git clone https://github.com/imagetyperz-api/imagetyperz-api-ruby

Usage
Simply require the module, set the auth details and start using the captcha service:
load "lib/imagetyperzapi.rb"

Set access_token for authentication:
Code:
# grab token from https://imagetyperz.com
access_token = "your_access_token"
ita = ImageTyperzAPI.new(access_token)

Once you've set your authentication details, you can start using the API.

Get balance
Code:
balance = ita.account_balance          # get balance
puts "Account balance: #{balance}"     # print balance

Solving
For solving a captcha, it's a two step process:
  • submit captcha details - returns an ID
  • use ID to check it's progress - and get solution when solved.
Each captcha type has it's own submission method.

For getting the response, same method is used for all types.

Image captcha
captcha_id = ita.submit_image(image_path = 'captcha.jpg')
(with optional parameters)
captcha_id = ita.solve_captcha(image_path = 'captcha.jpg', is_case_sensitive = true, is_math = true, is_phrase = true, digits_only = false, letters_only = true, min_length = 2, max_length = 5)
ID is used to retrieve solution when solved.

Observation It works with URL instead of image file too.

Documentation https://githubmemory.com/repo/imagetyperz-api/imagetyperz-api-ruby