YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix todoist integration using deprecated rest/v2 API
Louis Beaumont899c9a3cb2cd
diff --git a/crates/screenpipe-connect/src/connections/todoist.rs b/crates/screenpipe-connect/src/connections/todoist.rsindex c9315dbf3..cf9d6b3f3 100644--- a/crates/screenpipe-connect/src/connections/todoist.rs+++ b/crates/screenpipe-connect/src/connections/todoist.rs@@ -12,7 +12,7 @@ static DEF: IntegrationDef = IntegrationDef {name: "Todoist",icon: "todoist",category: Category::Productivity,- description: "Create tasks in Todoist. Use POST https://api.todoist.com/rest/v2/tasks with Bearer {api_token} and {\"content\": \"...\"}",+ description: "Create tasks in Todoist. Use POST https://api.todoist.com/api/v1/tasks with Bearer {api_token} and {\"content\": \"...\"}",fields: &[FieldDef {key: "api_token",label: "API Token",@@ -33,7 +33,7 @@ impl Integration for Todoist {async fn test(&self, client: &reqwest::Client, creds: &Map<String, Value>) -> Result<String> {let token = require_str(creds, "api_token")?;let resp = client- .get("https://api.todoist.com/rest/v2/projects")+ .get("https://api.todoist.com/api/v1/projects").bearer_auth(token).send().await?diff --git a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.mdindex 5221c8152..3a4cbcb86 100644--- a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md+++ b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md@@ -256,7 +256,7 @@ Returns credentials to use with service APIs directly:- **Telegram**: `bot_token` + `chat_id` → `POST https://api.telegram.org/bot{token}/sendMessage`- **Slack**: `webhook_url` → `POST {webhook_url}` with `{"text": "..."}`- **Discord**: `webhook_url` → `POST {webhook_url}` with `{"content": "..."}`-- **Todoist**: `api_token` → `POST https://api.todoist.com/rest/v2/tasks` with Bearer auth+- **Todoist**: `api_token` → `POST https://api.todoist.com/api/v1/tasks` with Bearer auth- **Teams**: `webhook_url` → `POST {webhook_url}` with `{"text": "..."}`- **Email**: `smtp_host`, `smtp_port`, `smtp_user`, `smtp_pass`, `from_address`