Source: factory.service/package.core/ObjServiceTodoist.py
Todoist REST API v2 service for task
management.
Wraps the Todoist REST API with authentication,
rate-limit handling, and local sync tracking.
...
| Method | Signature | Description |
|---|---|---|
| list_projects | list_projects() -> list |
List all projects. |
| get_project | get_project(project_id: str) -> dict |
Get project detail by ID. |
| create_project | create_project(name: str, color: str = '') -> dict |
Create a new project. |
| list_tasks | list_tasks(project_id: str = '', filter_str: str = '') -> list |
List active tasks, optionally by project |
| get_task | get_task(task_id: str) -> dict |
Get task detail by ID. |
| create_task | create_task(content: str, description: str = '', project_id: str = '', priority: int = 1, due_date: str = '', assignee_id: str = '', labels: list | None = None) -> dict |
Create a new task. |
| update_task | update_task(task_id: str, **fields) -> dict |
Update task fields. |
| close_task | close_task(task_id: str) -> dict |
Close (complete) a task. |
| reopen_task | reopen_task(task_id: str) -> dict |
Reopen a completed task. |
| delete_task | delete_task(task_id: str) -> dict |
Delete a task. |
| list_comments | list_comments(task_id: str) -> list |
List comments on a task. |
| add_comment | add_comment(task_id: str, content: str) -> dict |
Add a comment to a task. |
| list_labels | list_labels() -> list |
List all personal labels. |
| create_label | create_label(name: str, color: str = '') -> dict |
Create a personal label. |
| list_sections | list_sections(project_id: str) -> list |
List sections in a project. |
| create_section | create_section(project_id: str, name: str) -> dict |
Create a section in a project. |
| list_collaborators | list_collaborators(project_id: str) -> list |
List collaborators on a project. |
| link_record | link_record(source_table: str, source_key: str, todoist_id: str, todoist_type: str = 'task') -> None |
Link a local DB record to a Todoist ID. |
| get_todoist_id | get_todoist_id(source_table: str, source_key: str) -> str |
Look up Todoist ID for a local record. |
| get_local_key | get_local_key(todoist_id: str) -> str |
Look up local record key for a Todoist |
| axion_to_todoist_priority | axion_to_todoist_priority(priority: str) -> int |
Map Axion priority name to Todoist |
| todoist_to_axion_priority | todoist_to_axion_priority(priority: int) -> str |
Map Todoist priority integer to Axion |
| Connect | Connect() |
|
| Send | Send() |
Verify the Todoist token is valid.
List all projects.
List active tasks.
Create a task.