🤖
OMOcaptcha.com
  • Home
  • Tài liệu api
    • Kiểm tra số dư
    • ImageToTextTask
    • reCAPTCHA
      • RecaptchaV2TokenTask
      • RecaptchaV3TokenTask
      • RecaptchaV2ImageTask
    • FunCaptcha
      • FuncaptchaImageTask
    • Tiktok
      • Tiktok3DSelectObjectWebTask
      • Tiktok3DSelectObjectPhoneTask
      • TiktokRotateWebTask
      • TiktokSliderWebTask
      • TiktokSliderPhoneTask
    • Shopee
      • ShopeeSliderWebTask
    • Zalo
      • ZaloSliderPhoneTask
      • ZaloSelectObjectTask
    • Amzn Captcha
      • AmznSelectObjectTask
    • Geetest
      • GeetestSliderWebTask
  • Hướng dẫn
    • Cài extension từ file zip
    • Set API KEY cho extension
    • Cài extension tool Max Care và Max Hotmail
  • Cập nhật extension cho tool Max Tiktok Chrome
Powered by GitBook
On this page
  • 1.Tạo yêu cầu
  • 2.Nhận kết quả yêu cầu
  1. Tài liệu api
  2. Tiktok

Tiktok3DSelectObjectWebTask

PreviousTiktokNextTiktok3DSelectObjectPhoneTask

Last updated 3 months ago

Chon 2 đối tượng trên web là một loại hình ảnh xác thực phổ biến trông giống như thế này

1.Tạo yêu cầu

Request

POST : https://omocaptcha.com/v2/createTask

Name
Type
Required
Description

clientKey

String

yes

Khóa tài khoản khách hàng

task.type

String

yes

Tên class dịch vụ captcha cần giải

task.imageBase64

String

yes

task.widthView

Number

yes

task.heightView

Number

yes

{
    "clientKey": "API_KEY",
    "task": {
        "type": "Tiktok3DSelectObjectWebTask",
        "imageBase64": "BASE64_BODY_HERE",
        "widthView": 340,
        "heightView": 212,
    }
}

Response

{
    "errorId": 0,
    "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0"
}
  • Máy chủ sẽ trả về errorId = 0 và taskId thành công

{
    "errorId": 1,
    "errorCode": "",
    "errorDescription": ""
}
  • Máy chủ sẽ trả về errorId = 1 và errorCode mã lỗi

2.Nhận kết quả yêu cầu

Request

POST : https://omocaptcha.com/v2/getTaskResult

{
    "clientKey": "API_KEY",
    "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0"
}

Response

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "pointA": {
            "x": 50,
            "y": 30
        },
        "pointB": {
            "x": 100,
            "y": 70
        }
    }
}
  • Máy chủ sẽ trả về errorId = 0 và status = ready

  • Đọc kết quả trong solution

{
    "status": "processing",
    "errorId": 0,
    "errorCode": "",
    "errorDescription": ""
}
  • Máy chủ sẽ trả về errorId = 0 và status = processing yêu cầu đang được xử lý, xin vui lòng chờ 2 giây rồi yêu cầu lại

{
    "errorId": 1,
    "errorCode": "",
    "errorDescription": ""
}
  • Máy chủ sẽ trả về errorId = 1

Hình ảnh được mã hóa base64

Chiều rộng ảnh hiển thị trên web

Chiều cao ảnh hiển thị trên web