Sha256: 9da2d33e6171372c5930bcfcc0e8ae879cf67319d7a5449229d97f8cd620eeb5
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
require_relative __dir__+'/lib/metabypass' # ---------------------------- CREDENTIALS ----------------------------- 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 ----------------------------- img="samples/icaptcha1.jpg" 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 SAMPLE ----------------------------- # url="SITE_URL" # sitekey="SITE_KEY" # recaptcha_v2= metabypass.recaptcha_v2_handler(url,sitekey) # puts metabypass.end_result # --------------------------- reCAPTCHA V3 SAMPLE ----------------------------- url="SITE_URL" sitekey="SITE_KEY" recaptcha_v3= metabypass.recaptcha_v3(url,sitekey) puts metabypass.end_result # --------------------------- reCAPTCHA INVISIBLE SAMPLE ----------------------------- url="SITE_URL" sitekey="SITE_KEY" recaptcha_invisible= metabypass.recaptcha_invisible(url,sitekey) puts metabypass.end_result
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
testarash2-1.0.0 | usage.rb |