{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Tổng quan về ví dụ API","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tổng-quan-về-ví-dụ-api","__idx":0},"children":["Tổng quan về ví dụ API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Một bộ sưu tập các ví dụ về mã trong thế giới thực được tuyển chọn và sắp xếp theo kịch bản. Mỗi phần bao gồm các đoạn mã ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["curl"]},", Python và Node.js đang hoạt động mà bạn có thể sao chép và chạy ngay lập tức."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"theo-kịch-bản","__idx":1},"children":["Theo kịch bản"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-tự-động-hóa-trình-duyệt","__idx":2},"children":["🌐 Tự động hóa trình duyệt"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Quản lý hồ sơ trình duyệt và kết nối qua CDP (Giao thức Chrome DevTools) để tự động hóa không có đầu hoặc có đầu."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bạn muốn làm gì"},"children":["Bạn muốn làm gì"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Ví dụ"},"children":["Ví dụ"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tạo → Bắt đầu → Tự động hóa → Dừng cấu hình"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/browser-examples#full-workflow-create--start--automate--stop"},"children":["Ví dụ về hồ sơ trình duyệt"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Proxy cập nhật hàng loạt trên các hồ sơ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/browser-examples#batch-operations"},"children":["Ví dụ về hồ sơ trình duyệt"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tập lệnh Selenium đầy đủ (Python)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/selenium"},"children":["Hướng dẫn về Selenium"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kịch bản đầy đủ của Nhà viết kịch (Python)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/playwright"},"children":["Hướng dẫn về nhà viết kịch"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tập lệnh Puppeteer đầy đủ (Node.js)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/puppeteer"},"children":["Hướng dẫn múa rối"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-vòng-đời-điện-thoại-đám-mây","__idx":3},"children":["📱 Vòng đời điện thoại đám mây"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tạo phiên bản điện thoại đám mây, cài đặt ứng dụng, quản lý tệp và kết nối qua ADB — tất cả đều thông qua API mở."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bạn muốn làm gì"},"children":["Bạn muốn làm gì"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Ví dụ"},"children":["Ví dụ"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Xác thực → Tạo → Cài đặt ứng dụng → ADB"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/cloudphone-examples#full-workflow-auth--create--install-app--adb"},"children":["Ví dụ về điện thoại đám mây"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tải tệp lên điện thoại đám mây"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/cloudphone-examples#file-upload-example-python"},"children":["Ví dụ về điện thoại đám mây"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-tự-động-hóa-lịch-trình-rpa","__idx":4},"children":["🤖 Tự động hóa lịch trình RPA"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lập trình tạo và quản lý các tác vụ theo lịch trình RPA bằng cách sử dụng các mẫu thị trường hoặc cá nhân."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bạn muốn làm gì"},"children":["Bạn muốn làm gì"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Tham chiếu API"},"children":["Tham chiếu API"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Liệt kê các mẫu thị trường"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/template/market/page"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/cloud-phone/local-api"},"children":["API cục bộ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Liệt kê các mẫu cá nhân"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/template/personal/page"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/cloud-phone/local-api"},"children":["API cục bộ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tạo lịch trình một lần"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/onceTask/save"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/cloud-phone/local-api"},"children":["API cục bộ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Liệt kê/hủy lịch trình"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/task/page"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/cloud-phone/local-api"},"children":["API cục bộ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bản ghi thực hiện truy vấn"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/subTask/page"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/cloud-phone/local-api"},"children":["API cục bộ"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Mẹo"]},": Xem tài liệu tham khảo ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateParameter"]}," trong điểm cuối ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/cloud-phone/local-api"},"children":["Tạo lịch biểu một lần"]}," để biết hướng dẫn từng bước về cách xây dựng tham số mẫu."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-tài-nguyên-được-chia-sẻ","__idx":5},"children":["🔗 Tài nguyên được chia sẻ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Proxy, nhóm và thẻ được chia sẻ trên Cấu hình trình duyệt và Điện thoại đám mây. Quản lý chúng từ một nơi."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bạn muốn làm gì"},"children":["Bạn muốn làm gì"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Ví dụ"},"children":["Ví dụ"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Thêm/liệt kê/xóa proxy"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples#proxy-management"},"children":["Ví dụ về tài nguyên được chia sẻ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tạo và quản lý nhóm"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples#group-management"},"children":["Ví dụ về tài nguyên được chia sẻ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tạo và quản lý thẻ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples#tag-management"},"children":["Ví dụ về tài nguyên được chia sẻ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Quy trình làm việc đầy đủ: tạo tài nguyên → gán cho hồ sơ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples#complete-workflow-create-resources--assign-to-profile"},"children":["Ví dụ về tài nguyên được chia sẻ"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"theo-ngôn-ngữ","__idx":6},"children":["Theo ngôn ngữ"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Ngôn ngữ"},"children":["Ngôn ngữ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Ví dụ"},"children":["Ví dụ"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["cuộn"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/browser-examples"},"children":["Trình duyệt"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/cloudphone-examples"},"children":["Điện thoại đám mây"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples"},"children":["Tài nguyên được chia sẻ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Trăn"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/browser-examples"},"children":["Trình duyệt"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/selenium"},"children":["Selenium"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/playwright"},"children":["Playwright"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/cloudphone-examples"},"children":["Cloud Phone"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples"},"children":["Tài nguyên được chia sẻ"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Node.js"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/browser-examples"},"children":["Trình duyệt"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/puppeteer"},"children":["Người múa rối"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/cloudphone-examples"},"children":["Điện thoại đám mây"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/examples/shared-examples"},"children":["Tài nguyên được chia sẻ"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"liên-kết-nhanh","__idx":7},"children":["Liên kết nhanh"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/getting-started/authentication"},"children":["Xác thực & Thiết lập mã thông báo"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/getting-started/response-format"},"children":["Định dạng phản hồi chung"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/getting-started/error-codes"},"children":["Tham khảo mã lỗi"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/api-reference/getting-started/local-vs-open-api"},"children":["API cục bộ và API mở"]}]}]}]},"headings":[{"value":"Tổng quan về ví dụ API","id":"tổng-quan-về-ví-dụ-api","depth":1},{"value":"Theo kịch bản","id":"theo-kịch-bản","depth":2},{"value":"🌐 Tự động hóa trình duyệt","id":"-tự-động-hóa-trình-duyệt","depth":3},{"value":"📱 Vòng đời điện thoại đám mây","id":"-vòng-đời-điện-thoại-đám-mây","depth":3},{"value":"🤖 Tự động hóa lịch trình RPA","id":"-tự-động-hóa-lịch-trình-rpa","depth":3},{"value":"🔗 Tài nguyên được chia sẻ","id":"-tài-nguyên-được-chia-sẻ","depth":3},{"value":"Theo ngôn ngữ","id":"theo-ngôn-ngữ","depth":2},{"value":"Liên kết nhanh","id":"liên-kết-nhanh","depth":2}],"frontmatter":{"seo":{"title":"Tổng quan về ví dụ API"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/api-reference/examples","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}