返回顶部
t

todoist-api-restTodoist API 集成

Direct Todoist API integration via curl/jq. Lightweight, reliable, and uses working v1/v2 endpoints.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
500
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

todoist-api-rest

Todoist API (REST v2 和 API v1)

本技能提供对 Todoist 的直接 API 访问。当 CLI 不可用或失败时使用。

设置

确保设置了 TODOISTAPITOKEN,或使用 ~/.openclaw/.secrets/todoist_token.json 中的令牌。

核心命令 (REST v2)

列出活跃任务

bash curl -H Authorization: Bearer $TODOISTAPITOKEN https://api.todoist.com/rest/v2/tasks | jq .

注意:如果 rest/v2 返回 410,请使用 api/v1/tasks(见下文)。

创建任务

bash curl -X POST -H Authorization: Bearer $TODOISTAPITOKEN \ -H Content-Type: application/json \ -d {content: 新任务, due_string: 今天} \ https://api.todoist.com/rest/v2/tasks

关闭(完成)任务

bash curl -X POST -H Authorization: Bearer $TODOISTAPITOKEN https://api.todoist.com/rest/v2/tasks//close

备用/旧版命令 (API v1)

如果 REST v2 端点返回 410 Gone,请使用这些命令。

列出任务 (v1)

bash curl -H Authorization: Bearer $TODOISTAPITOKEN https://api.todoist.com/api/v1/tasks | jq .results

创建任务 (v1)

bash curl -X POST -H Authorization: Bearer $TODOISTAPITOKEN \ -H Content-Type: application/json \ -d {content: v1 任务, project_id: 6g382hF2W96x2hvr} \ https://api.todoist.com/api/v1/tasks

已完成任务 (v1)

bash curl -H Authorization: Bearer $TODOISTAPITOKEN \ https://api.todoist.com/api/v1/tasks/completed/bycompletiondate?since=2026-03-01T00:00:00Z&until=2026-03-04T23:59:59Z | jq .items

项目和分区

列出项目

bash curl -H Authorization: Bearer $TODOISTAPITOKEN https://api.todoist.com/rest/v2/projects

列出分区

bash curl -H Authorization: Bearer $TODOISTAPITOKEN https://api.todoist.com/rest/v2/sections?projectid=id>

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 todoist-api-rest-1776275134 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 todoist-api-rest-1776275134 技能

通过命令行安装

skillhub install todoist-api-rest-1776275134

下载

⬇ 下载 todoist-api-rest v1.0.0(免费)

文件大小: 1.46 KB | 发布时间: 2026-4-16 18:13

v1.0.0 最新 2026-4-16 18:13
- Initial release providing direct Todoist API access via curl and jq.
- Supports both REST v2 and legacy API v1 endpoints.
- Includes task listing, creation, completion, and project/section listing.
- Automatically suggests fallback to v1 if v2 endpoints return 410 errors.
- Requires only curl, jq, and a set API token for operation.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部