<?php
$ch = curl_init("https://api.omocaptcha.com/v2/createTask");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"clientKey" => "OMO_API_KEY",
"task" => [
"type" => "RecaptchaV3TokenTask",
"websiteURL" => "https://lessons.zennolab.com/captchas/recaptcha/v3.php?level=beta",
"websiteKey" => "6Le0xVgUAAAAAIt20XEB4rVhYOODgTl00d8juDob",
"isEnterprise" => true,
"pageAction" => "myverify"
]
]));
echo curl_exec($ch);