Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zatvorius authored Feb 27, 2023
1 parent 7f6f693 commit 1c818a4
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 14 deletions.
5 changes: 4 additions & 1 deletion examples/canvas_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->canvas([
Expand Down
5 changes: 4 additions & 1 deletion examples/capy_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->capy([
Expand Down
5 changes: 4 additions & 1 deletion examples/coordinates_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->coordinates([
Expand Down
5 changes: 4 additions & 1 deletion examples/funcaptcha_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->funcaptcha([
Expand Down
5 changes: 4 additions & 1 deletion examples/geetest_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://launches.endclothing.com/distil_r_captcha_challenge");
Expand Down
5 changes: 4 additions & 1 deletion examples/grid_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->grid([
Expand Down
5 changes: 4 additions & 1 deletion examples/hcaptcha_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->hcaptcha([
Expand Down
5 changes: 4 additions & 1 deletion examples/keycaptcha_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result->code = $solver->keycaptcha([
Expand Down
5 changes: 4 additions & 1 deletion examples/normal_base64.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
$image = __DIR__ . '/images/normal.jpg';
$base64 = base64_encode(file_get_contents($image));

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->normal(['base64' => $base64]);
Expand Down
5 changes: 4 additions & 1 deletion examples/normal_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->normal([
Expand Down
2 changes: 1 addition & 1 deletion examples/recaptcha_v2_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://rucaptcha.com'
'server' => 'http://2captcha.com'
]);

try {
Expand Down
5 changes: 4 additions & 1 deletion examples/rotate_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->rotate([
Expand Down
5 changes: 4 additions & 1 deletion examples/text_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://2captcha.com'
]);

try {
$result = $solver->text([
Expand Down
2 changes: 1 addition & 1 deletion examples/yandex_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$solver = new \TwoCaptcha\TwoCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'http://rucaptcha.com'
'server' => 'http://2captcha.com'
]);

try {
Expand Down

0 comments on commit 1c818a4

Please sign in to comment.