# ReCaptchaV2Task

求解該驗證碼類型。

## 任務類型

`ReCaptchaV2Task`

## 處理方式

非同步 + 輪詢 `/getTaskResult`

## 參數

| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| `type` | string | 是 | `ReCaptchaV2Task` |
| `websiteURL` | string | 是 | 公開的 http(s) URL |
| `websiteKey` | string | 是 | 網站金鑰 |
| `enterprise` | bool | 否 | 預設為 `false` |
| `isInvisible` | bool | 否 | 預設為 `false` |
| `proxy` | string | 否 | 瀏覽器代理伺服器 |

## 最小請求

```json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "ReCaptchaV2Task",
    "websiteURL": "https://www.example.com/register",
    "websiteKey": "SITE_KEY"
  }
}
```

## 成功時的 solution

```json
{
  "gRecaptchaResponse": "TOKEN",
  "userAgent": "...",
  "expiresInMs": 120000
}
```

## 典型失敗

`ERROR_CAPTCHA_UNSOLVABLE`, `ERROR_BAD_REQUEST`, `ERROR_TASK_NOT_SUPPORTED`

Source: https://kaptra.ai/zh-TW/docs/task-types/recaptcha-v2
