Manage bookmarks and groups via Weeko API. Use when the user wants to save links, list/search bookmarks, create groups, or organize their Weeko collection. Triggers on phrases like "save this to weeko", "add bookmark", "my weeko bookmarks", "create a weeko group", or any mention of weeko/bookmarks in the context of saving or organizing links.
自由捕捉。每周消化。
必需: 通过以下两种方式之一配置 API 密钥:
添加到 ~/.openclaw/openclaw.json:
json
{
skills: {
entries: {
weeko: {
apiKey: wkyourapikeyhere
}
}
}
}
bash
export WEEKOAPIKEY=wkyourapikeyhere
从 Weeko 设置 → API 选项卡获取您的 API 密钥。密钥以 wk_ 开头。
API 密钥查找顺序(优先找到的生效):
所有 API 请求都需要包含 Authorization 标头:
Authorization: Bearer wk_xxx
bash
curl -s https://weeko.blog/api/bookmarks \
-H Authorization: Bearer $WEEKOAPIKEY
查询参数:
| 名称 | 类型 | 描述 |
|---|---|---|
| groupId | 字符串 | 按组 ID 筛选 |
bash
curl -s https://weeko.blog/api/bookmarks/BOOKMARK_ID \
-H Authorization: Bearer $WEEKOAPIKEY
bash
curl -s -X POST https://weeko.blog/api/bookmarks \
-H Authorization: Bearer $WEEKOAPIKEY \
-H Content-Type: application/json \
-d {title: 我的书签, url: https://example.com, groupId: clx..., description: 可选描述}
字段:
| 字段 | 类型 | 必需 | 描述 |
|---|---|---|---|
| title | 字符串 | 是 | 书签标题(1-500 字符) |
| url |
注意: URL 元数据(标题、描述、网站图标)会自动为链接获取。如果书签已存在于该组中,将使用新元数据进行更新。
bash
curl -s -X PATCH https://weeko.blog/api/bookmarks/BOOKMARK_ID \
-H Authorization: Bearer $WEEKOAPIKEY \
-H Content-Type: application/json \
-d {title: 更新后的标题, description: 新描述, url: https://new-url.com, groupId: clx...}
所有字段均为可选。仅更新提供的字段。
bash
curl -s -X DELETE https://weeko.blog/api/bookmarks/BOOKMARK_ID \
-H Authorization: Bearer $WEEKOAPIKEY
bash
curl -s https://weeko.blog/api/bookmarks/search?query=关键词 \
-H Authorization: Bearer $WEEKOAPIKEY
查询参数:
| 名称 | 类型 | 描述 |
|---|---|---|
| query | 字符串 | 搜索查询(至少 1 字符) |
| limit |
按标题、URL 或描述进行搜索。
bash
curl -s https://weeko.blog/api/groups \
-H Authorization: Bearer $WEEKOAPIKEY
bash
curl -s https://weeko.blog/api/groups/GROUP_ID \
-H Authorization: Bearer $WEEKOAPIKEY
返回包含其书签的分组。
bash
curl -s -X POST https://weeko.blog/api/groups \
-H Authorization: Bearer $WEEKOAPIKEY \
-H Content-Type: application/json \
-d {name: 我的分组, color: #3b82f6}
字段:
| 字段 | 类型 | 必需 | 描述 |
|---|---|---|---|
| name | 字符串 | 是 | 分组名称(1-100 字符) |
| color |
默认颜色:#3b82f6
bash
curl -s -X PATCH https://weeko.blog/api/groups/GROUP_ID \
-H Authorization: Bearer $WEEKOAPIKEY \
-H Content-Type: application/json \
-d {name: 新名称, color: #ec4899}
所有字段均为可选。
bash
curl -s -X DELETE https://weeko.blog/api/groups/GROUP_ID \
-H Authorization: Bearer $WEEKOAPIKEY
警告: 删除分组将移除其中的所有书签。无法删除系统分组。
bash
curl -s https://weeko.blog/api/user/me \
-H Authorization: Bearer $WEEKOAPIKEY
返回已验证用户的个人资料(id、name、email)。
成功:
json
{
success: true,
data: { ... }
}
错误:
json
{
success: false,
error: 错误消息
}
书签对象:
json
{
id: clx...,
title: 示例,
description: 描述文本,
url: https://example.com,
image: https://example.com/og.png,
favicon: https://example.com/favicon.ico,
siteName: 示例,
type: link,
color: null,
isPublic: false,
groupId: clx...,
createdAt: 2024-01-01T00:00:00.000Z,
updatedAt: 2024-01-01T00:00:00.000Z,
group: { id: clx..., name: 开发, color: #3b82f6 }
}
分组对象:
json
{
id: clx...,
name: 开发,
color: #3b82f6,
isPublic: false,
bookmarkCount: 42,
createdAt: 2024-01-01T00:00:00.000Z,
updatedAt: 2024-01-01T00:00:00.000Z
}
| 类型 | 限制 | 方法 |
|---|---|---|
| 通用 | 60/分钟 | GET |
| 写入 |
每个响应中的标头:X-RateLimit-Limit、X-RateLimit-Remaining、X-RateLimit-Reset
| 代码 | 描述 |
|---|---|
| 400 | 无效输入或错误请求 |
| 401 |
在任何 API 调用之前:
Weeko API 密钥未配置。请添加到 ~/.openclaw/openclaw.json:
json
{
\skills\: {
\entries\: {
\weeko\: {
\apiKey\: \wkyourkey_here\
}
}
}
}
或设置环境变量:export WEEKOAPIKEY=\wkyourkey_here\
添加书签:
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 weeko-1776051181 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 weeko-1776051181 技能
skillhub install weeko-1776051181
文件大小: 3.16 KB | 发布时间: 2026-4-14 10:15