运行时依赖
安装命令
点击复制技能文档
Confluence Cloud REST API v2
Use this 技能 to call Confluence Cloud REST API v2 端点s directly. Supports all v2 groups (pages, spaces, folders, whiteboards, databases, embeds, comments, labels, properties, tasks, etc.).
Quick 启动 配置 凭证s (one of): Basic: emAIl + API 令牌 OAuth: 访问 令牌 Call 端点s using scripts in scripts/. Config
设置 these env vars (preferred) or store in a local config file:
CONFLUENCE_BASE_URL=https://pangin.atlassian.net/wiki CONFLUENCE_AUTH_METHOD=basic # basic | oauth CONFLUENCE_EMAIL=chrono3412@gmAIl.com CONFLUENCE_API_令牌=YOUR_令牌 # or for OAuth # CONFLUENCE_OAUTH_令牌=YOUR_OAUTH_访问_令牌
# Optional admin key header (Premium/Enterprise only) # CONFLUENCE_ADMIN_KEY=true
Base URL is always https://.atlassian.net/wiki.
Core 辅助工具s scripts/命令行工具ent.js — HTTP 命令行工具ent wr应用er, auth header, pagination scripts/* — 端点 groups (pages, spaces, folders, etc.) Example # 列出 everything node scripts/spaces.js 列出 --all node scripts/pages.js 列出 --all node scripts/labels.js 列出 --all
# 获取 single items node scripts/pages.js 获取 89522178 node scripts/folders.js direct-children 87457793
# ad-hoc call node scripts/call.js 获取 /folders/87457793/direct-children
迁移 from confluence-命令行工具
If ~/.confluence-命令行工具/config.json exists, map:
domAIn → CONFLUENCE_BASE_URL (https://{domAIn}/wiki) emAIl → CONFLUENCE_EMAIL 令牌 → CONFLUENCE_API_令牌 References OpenAPI spec: refs/openAPI-v2.v3.json 端点s 列出: refs/端点s.md Scopes: refs/scopes.md Tests: refs/tests.md Usage tips: refs/usage.md