Ruby class to work with MetaBypass services
Free demo (no credit card required) -> https://app.metabypass.tech/application
Solve image captcha , reCaptcha v2 & v3
Auto handler for reCaptcha v2
Simple syntax
Error logger
Go to your project root directory and run this command in terminal:
gem install metabypass
Image Captcha
require 'metabypass'
# ---------------------------- CREDENTIALS -----------------------------
#get your credentials from https://app.metabypass.tech/application
client_id = 'YOUR_CLIENT_ID'
client_secret = 'YOUR_CLIENT_SECRET'
email = 'YOUR_EMAIL'
password = 'YOUR_PASSWORD'
# Metabypass instance
metabypass = Metabypass.new(client_id,client_secret,email,password)
# ----------------------------IMAGE CAPTCHA SAMPLE -----------------------------
#you can pass base64 encoded image file or path of image file
img="samples/icaptcha1.jpg"
#you can pass some optional params too. more details: https://app.metabypass.tech/docs.html?#api_3
numeric=0; #default
min_len=0; #default
max_len=0; #default
image_captcha= metabypass.image_captcha(img,numeric,min_len,max_len)
puts metabypass.end_result
reCaptcha v2
require 'metabypass'
# ---------------------------- CREDENTIALS -----------------------------
#get your credentials from https://app.metabypass.tech/application
client_id = 'YOUR_CLIENT_ID'
client_secret = 'YOUR_CLIENT_SECRET'
email = 'YOUR_EMAIL'
password = 'YOUR_PASSWORD'
# Metabypass instance
metabypass = Metabypass.new(client_id,client_secret,email,password)
# --------------------------- reCAPTCHA V2 SAMPLE -----------------------------
url="SITE_URL"
sitekey="SITE_KEY"
recaptcha_v2= metabypass.recaptcha_v2_handler(url,sitekey)
puts metabypass.end_result
reCaptcha v3
require 'metabypass'
# ---------------------------- CREDENTIALS -----------------------------
#get your credentials from https://app.metabypass.tech/application
client_id = 'YOUR_CLIENT_ID'
client_secret = 'YOUR_CLIENT_SECRET'
email = 'YOUR_EMAIL'
password = 'YOUR_PASSWORD'
# Metabypass instance
metabypass = Metabypass.new(client_id,client_secret,email,password)
# --------------------------- reCAPTCHA V3 SAMPLE -----------------------------
url="SITE_URL"
sitekey="SITE_KEY"
recaptcha_v3= metabypass.recaptcha_v3(url,sitekey)
puts metabypass.end_result
reCaptcha invisible
require 'metabypass'
# ---------------------------- CREDENTIALS -----------------------------
#get your credentials from https://app.metabypass.tech/application
client_id = 'YOUR_CLIENT_ID'
client_secret = 'YOUR_CLIENT_SECRET'
email = 'YOUR_EMAIL'
password = 'YOUR_PASSWORD'
# Metabypass instance
metabypass = Metabypass.new(client_id,client_secret,email,password)
# --------------------------- reCAPTCHA INVISIBLE SAMPLE -----------------------------
url="SITE_URL"
sitekey="SITE_KEY"
recaptcha_invisible= metabypass.recaptcha_invisible(url,sitekey)
puts metabypass.end_result