返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
t

todoist-api-rest

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

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

todoist-api-rest

# Todoist API (REST v2 & API v1) This skill provides direct API access to Todoist. Use this when the CLI is unavailable or failing. ## Setup Ensure `TODOIST_API_TOKEN` is set or use the token from `~/.openclaw/.secrets/todoist_token.json`. ## Core Commands (REST v2) ### List Active Tasks ```bash curl -H "Authorization: Bearer $TODOIST_API_TOKEN" https://api.todoist.com/rest/v2/tasks | jq . ``` *Note: If rest/v2 returns 410, use `api/v1/tasks` (see below).* ### Create Task ```bash curl -X POST -H "Authorization: Bearer $TODOIST_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"content": "New Task", "due_string": "today"}' \ https://api.todoist.com/rest/v2/tasks ``` ### Close (Complete) Task ```bash curl -X POST -H "Authorization: Bearer $TODOIST_API_TOKEN" https://api.todoist.com/rest/v2/tasks/<task_id>/close ``` ## Fallback / Legacy Commands (API v1) Use these if REST v2 endpoints return `410 Gone`. ### List Tasks (v1) ```bash curl -H "Authorization: Bearer $TODOIST_API_TOKEN" https://api.todoist.com/api/v1/tasks | jq .results ``` ### Create Task (v1) ```bash curl -X POST -H "Authorization: Bearer $TODOIST_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"content": "v1 Task", "project_id": "6g382hF2W96x2hvr"}' \ https://api.todoist.com/api/v1/tasks ``` ### Completed Tasks (v1) ```bash curl -H "Authorization: Bearer $TODOIST_API_TOKEN" \ "https://api.todoist.com/api/v1/tasks/completed/by_completion_date?since=2026-03-01T00:00:00Z&until=2026-03-04T23:59:59Z" | jq .items ``` ## Projects & Sections ### List Projects ```bash curl -H "Authorization: Bearer $TODOIST_API_TOKEN" https://api.todoist.com/rest/v2/projects ``` ### List Sections ```bash curl -H "Authorization: Bearer $TODOIST_API_TOKEN" "https://api.todoist.com/rest/v2/sections?project_id=<project_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-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部