CAPTCHAFORUM
Administrator
imagetyperzapi is a super easy to use bypass captcha API wrapper for imagetyperz.com captcha service
Installation
or
Usage
Simply require the module, set the auth details and start using the captcha service:
Set access_token for authentication:
Once you've set your authentication details, you can start using the API.
Get balance
Solving
For solving a captcha, it's a two step process:
For getting the response, same method is used for all types.
Image captcha
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-php
Installation
composer require imagetyperzapi/imagetyperzapi
or
git clone https://github.com/imagetyperz-api/imagetyperz-api-php
Usage
Simply require the module, set the auth details and start using the captcha service:
require('lib/imagetyperzapi.php'); // load API library
Set access_token for authentication:
Code:
// get access token from: http://www.imagetyperz.com/Forms/ClientHome.aspx
$access_token = 'your_access_token_here';
$i = new ImagetyperzAPI($access_token);
Once you've set your authentication details, you can start using the API.
Get balance
$balance = $i->account_balance();
echo $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.
For getting the response, same method is used for all types.
Image captcha
Code:
$optional_parameters = array();
// $optional_parameters['iscase'] = 'true'; // case sensitive captcha
// $optional_parameters['ismath'] = 'true'; // instructs worker that a math captcha has to be solved
// $optional_parameters['isphrase'] = 'true'; // text contains at least one space (phrase)
// $optional_parameters['alphanumeric'] = '1'; // 1 - digits only, 2 - letters only
// $optional_parameters['minlength'] = '3'; // captcha text length (minimum)
// $optional_parameters['maxlength'] = '8'; // captcha text length (maximum)
captcha_id = $i->submit_image(image_path = 'captcha.jpg', $optional_parameters);
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-php