Class Capsolver
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
apiKeystringCapsolver の API キー。
maxAttemptsintcaptcha を解く最大試行回数。
getResultIntervaldouble結果を問い合わせる間隔(秒)。
useBlobDataboolblob データをタスクに含めるか。
Properties
ApiKey
Capsolver の API キー。
public string ApiKey { get; }
Property Value
GetResultInterval
結果を問い合わせる間隔(秒)。
public double GetResultInterval { get; }
Property Value
UseBlobData
blob データをタスクに含めるか。
public bool UseBlobData { get; }
Property Value
Methods
CreateTaskAsync(JsonObject)
public Task<JsonObject> CreateTaskAsync(JsonObject taskData)
Parameters
taskDataJsonObject
Returns
GetTaskResultAsync(string)
public Task<JsonObject> GetTaskResultAsync(string taskId)
Parameters
taskIdstring
Returns
SolveFunCaptchaAsync(string?)
FunCaptcha を解きます。errorId と solution.token を含む結果を返します。
public override Task<JsonObject> SolveFunCaptchaAsync(string? blob)
Parameters
blobstring