技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
notion-sync【数据与研究】Read, create, and update Notion pages and databases. Requires Notion API integration token.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Notion API integration for pages, databases, and content management.
export NOTION_API_TOKEN=secret_xxxpython3 scripts/notion_client.py --token secret_xxx databases
python3 scripts/notion_client.py --token secret_xxx query <database-id> --limit 20
python3 scripts/notion_client.py --token secret_xxx create <database-id> "Page Title" --content "Body text"
import httpx
HEADERS = {
"Authorization": f"Bearer {NOTION_API_TOKEN}",
"Notion-Version": "2022-06-28",
"Content-Type": "application/json",
}
# Search
resp = httpx.post("https://api.notion.com/v1/search",
headers=HEADERS,
json={"query": "project plan"})
# Read page blocks
resp = httpx.get(f"https://api.notion.com/v1/blocks/{page_id}/children",
headers=HEADERS)
# Create page
resp = httpx.post("https://api.notion.com/v1/pages",
headers=HEADERS,
json={
"parent": {"page_id": parent_id},
"properties": {"title": [{"text": {"content": "New Page"}}]},
"children": [
{"paragraph": {"rich_text": [{"text": {"content": "Hello"}}]}}
]
})
| Type | Use |
|---|---|
| paragraph | Normal text |
| heading_1/2/3 | Headers |
| bulleted_list_item | Bullet points |
| numbered_list_item | Numbered lists |
| code | Code blocks |
| toggle | Collapsible sections |
| to_do | Checkboxes |