yescaptcha-js
v0.0.15
Published
``` npm install yescaptcha-js ```
Readme
API Client for http://www.yescaptcha.com/
Install
npm install yescaptcha-jsExample
import YesCaptcha, { TaskType } from "yescaptcha-js";
const client = new YesCaptcha({ clientKey: "clientKey" });
const { taskId } = await client.createTask({
type: TaskType.HCaptchaTaskProxyless,
websiteURL: "https://example.com",
websiteKey: "siteKey",
});
const solution = await client.waitForTaskResult<TaskType.HCaptchaTaskProxyless>(taskId, 1000 * 60 * 5); // wait for 5 minutes
console.log(solution); 