Skip to content

alperensert/CapMonster.Cloud

Repository files navigation

Capmonster.cloud Library for .NET Core

Nuget Nuget GitHub last commit GitHub Release Date GitHub Repo stars

Capmonster.cloud Library for .NET Core.

Installation

via Package Manager:

NuGet\Install-Package CapMonster.Cloud -Version 1.0.0

This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.

via .NET CLI:

dotnet add package CapMonster.Cloud --version 1.0.0

via adding PackageReference:

<PackageReference Include="CapMonster.Cloud" Version="1.0.0" />

For projects that support PackageReference, copy this XML node into the project file to reference the package.

Supported Captcha Types

  • Image to text
  • ReCaptcha V2
  • ReCaptcha V2 Enterprise
  • ReCaptcha V3
  • HCaptcha
  • FunCaptcha
  • Turnstile
  • GeeTest

Usage Examples


Creating a client

var client = new CapMonsterClient("apikey");

Get balance

var client = new CapMonsterClient("apikey");
await client.GetBalanceAsync();

ReCaptchaV2 Task

var client = new CapMonsterClient("apikey", false);
var task = new ReCaptchaV2Task("recaptcha-site", "recaptcha-site-key");
string id = await client.CreateTask(task);
var response = await client.JoinTaskResult<ReCaptchaV2Response>(id);

FunCaptcha Task

var client = new CapMonsterClient("apikey", false);
var task = new FunCaptchaTask("funcaptcha-site", "funcaptcha-key", "funcaptcha-js-source");
string id = await client.CreateTask(task);
var response = await client.JoinTaskResult<FunCaptchaTaskResponse>(id);

For other examples and api documentation please visit wiki