Table of Contents

Class Capsolver

Namespace
Twikit.Captcha
Assembly
Twikit.dll

Capsolver(https://capsolver.com)を使ってアカウントのロックを自動解除します。

public sealed class Capsolver : CaptchaSolver
Inheritance
Capsolver
Inherited Members

Examples

var solver = new Capsolver(apiKey: "your_api_key", maxAttempts: 10);
var client = new Client(captchaSolver: solver);

Constructors

Capsolver(string, int, double, bool)

public Capsolver(string apiKey, int maxAttempts = 3, double getResultInterval = 1, bool useBlobData = false)

Parameters

apiKey string

Capsolver の API キー。

maxAttempts int

captcha を解く最大試行回数。

getResultInterval double

結果を問い合わせる間隔(秒)。

useBlobData bool

blob データをタスクに含めるか。

Properties

ApiKey

Capsolver の API キー。

public string ApiKey { get; }

Property Value

string

GetResultInterval

結果を問い合わせる間隔(秒)。

public double GetResultInterval { get; }

Property Value

double

UseBlobData

blob データをタスクに含めるか。

public bool UseBlobData { get; }

Property Value

bool

Methods

CreateTaskAsync(JsonObject)

public Task<JsonObject> CreateTaskAsync(JsonObject taskData)

Parameters

taskData JsonObject

Returns

Task<JsonObject>

GetTaskResultAsync(string)

public Task<JsonObject> GetTaskResultAsync(string taskId)

Parameters

taskId string

Returns

Task<JsonObject>

SolveFunCaptchaAsync(string?)

FunCaptcha を解きます。errorId と solution.token を含む結果を返します。

public override Task<JsonObject> SolveFunCaptchaAsync(string? blob)

Parameters

blob string

Returns

Task<JsonObject>