{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"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":"api-示例概述","__idx":0},"children":["API 示例概述"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["按场景组织的真实世界代码示例的精选集合。每个部分都包含可工作的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["curl"]},"、Python 和 Node.js 片段，您可以复制并立即运行。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"按场景","__idx":1},"children":["按场景"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-浏览器自动化","__idx":2},"children":["🌐 浏览器自动化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["管理浏览器并通过 CDP（Chrome 开发工具协议）进行连接，以实现无头或有头自动化。"]},{"$$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":"你想做什么"},"children":["你想做什么"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"示例"},"children":["示例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建→开始→自动化→关闭浏览器"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/browser-examples#full-workflow-create--start--automate--stop"},"children":["浏览器示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["跨配置文件批量更新代理"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/browser-examples#batch-operations"},"children":["浏览器示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完整的 Selenium 脚本 (Python)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/selenium"},"children":["Selenium 指南"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完整 Playwright 脚本 (Python)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/playwright"},"children":["Playwright 指南"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完整的 Puppeteer 脚本 (Node.js)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/puppeteer"},"children":["Puppeteer 指南"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-云手机生命周期","__idx":3},"children":["📱 云手机生命周期"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["创建云手机实例、安装应用程序、管理文件并通过 ADB 连接 - 全部通过开放 API。"]},{"$$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":"你想做什么"},"children":["你想做什么"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"示例"},"children":["示例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["验证→创建→安装应用程序→ADB"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/cloudphone-examples#full-workflow-auth--create--install-app--adb"},"children":["云手机示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["上传文件至云手机"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/cloudphone-examples#file-upload-example-python"},"children":["云手机示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完整 Python SDK（生产就绪）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/MoreLoginBrowser/MoreLogin-API-Demos/blob/main/MoreLogin-Python/cloud_phone/cloud_phone_open_api_demo.py"},"children":["GitHub — cloud_phone_open_api_demo.py"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-rpa-日程自动化","__idx":4},"children":["🤖 RPA 日程自动化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["使用市场或个人模板以编程方式创建和管理 RPA 计划任务。"]},{"$$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":"你想做什么"},"children":["你想做什么"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API参考"},"children":["API参考"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["列出市场模板"]},{"$$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":"/zh/api-reference/cloud-phone/local-api"},"children":["本地 API"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["列出个人模板"]},{"$$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":"/zh/api-reference/cloud-phone/local-api"},"children":["本地 API"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建一次性时间表"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/onceTask/save"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/cloud-phone/local-api"},"children":["本地 API"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["列出/取消时间表"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/task/page"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/cloud-phone/local-api"},"children":["本地 API"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["查询执行记录"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/cloudphone/rpa/subTask/page"]}," — ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/cloud-phone/local-api"},"children":["本地 API"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["提示"]},"：有关构建模板参数的分步指南，请参阅",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/cloud-phone/local-api"},"children":["创建一次性计划"]},"端点中的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateParameter"]}," 参考。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"-公共api","__idx":5},"children":["🔗 公共API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["代理、组和标签在浏览器和云手机之间共享。从一个地方管理它们。"]},{"$$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":"你想做什么"},"children":["你想做什么"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"示例"},"children":["示例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["添加/列出/删除代理"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples#proxy-management"},"children":["公共API示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建和管理组"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples#group-management"},"children":["公共API示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["创建和管理标签"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples#tag-management"},"children":["公共API示例"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完整工作流程：创建资源 → 分配给配置文件"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples#complete-workflow-create-resources--assign-to-profile"},"children":["公共API示例"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"按语言","__idx":6},"children":["按语言"]},{"$$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":"语言"},"children":["语言"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"示例"},"children":["示例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["curl"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/browser-examples"},"children":["浏览器"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/cloudphone-examples"},"children":["云手机"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples"},"children":["公共API"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Python"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/browser-examples"},"children":["浏览器"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/selenium"},"children":["Selenium"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/playwright"},"children":["Playwright"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/cloudphone-examples"},"children":["云手机"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples"},"children":["公共API"]}]}]},{"$$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":"/zh/api-reference/examples/browser-examples"},"children":["浏览器"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/puppeteer"},"children":["Puppeteer"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/cloudphone-examples"},"children":["云手机"]},"、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/examples/shared-examples"},"children":["公共API"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"快速链接","__idx":7},"children":["快速链接"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/getting-started/authentication"},"children":["身份验证和令牌设置"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/getting-started/response-format"},"children":["常见响应格式"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/getting-started/error-codes"},"children":["错误代码参考"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/zh/api-reference/getting-started/local-vs-open-api"},"children":["本地 API 与开放 API"]}]}]}]},"headings":[{"value":"API 示例概述","id":"api-示例概述","depth":1},{"value":"按场景","id":"按场景","depth":2},{"value":"🌐 浏览器自动化","id":"-浏览器自动化","depth":3},{"value":"📱 云手机生命周期","id":"-云手机生命周期","depth":3},{"value":"🤖 RPA 日程自动化","id":"-rpa-日程自动化","depth":3},{"value":"🔗 公共API","id":"-公共api","depth":3},{"value":"按语言","id":"按语言","depth":2},{"value":"快速链接","id":"快速链接","depth":2}],"frontmatter":{"seo":{"title":"API 示例概述"}},"lastModified":"2026-06-17T03:35:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/api-reference/examples","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}