platypush.plugins.todoist

class platypush.plugins.todoist.TodoistPlugin(api_token: str, **kwargs)[source]

Todoist integration.

Requires:

  • todoist-python (pip install todoist-python)

You’ll also need a Todoist token. You can get it here <https://todoist.com/prefs/integrations>.

__init__(api_token: str, **kwargs)[source]
Parameters:api_token – Todoist API token. You can get it here <https://todoist.com/prefs/integrations>.
add_item(content: str, project_id: Optional[int] = None, **kwargs)[source]

Add a new item.

archive(item_id: int)[source]

Archive an item by id.

complete_item(item_id: int)[source]

Mark an item as done.

delete_item(item_id: int)[source]

Delete an item by id.

get_collaborators() → platypush.message.response.todoist.TodoistCollaboratorsResponse[source]

Get list of collaborators.

get_filters() → platypush.message.response.todoist.TodoistFiltersResponse[source]

Get list of Todoist filters.

get_items() → platypush.message.response.todoist.TodoistItemsResponse[source]

Get list of Todoist projects.

get_live_notifications() → platypush.message.response.todoist.TodoistLiveNotificationsResponse[source]

Get list of Todoist live notifications.

get_notes() → platypush.message.response.todoist.TodoistNotesResponse[source]

Get list of Todoist notes.

get_project_notes() → platypush.message.response.todoist.TodoistProjectNotesResponse[source]

Get list of Todoist project notes.

get_projects() → platypush.message.response.todoist.TodoistProjectsResponse[source]

Get list of Todoist projects.

get_user() → platypush.message.response.todoist.TodoistUserResponse[source]

Get logged user info.

sync()[source]

Sync/update info with the remote server.

unarchive(item_id: int)[source]

Un-archive an item by id.

uncomplete_item(item_id: int)[source]

Mark an item as not done.

update_item(item_id: int, **kwargs)[source]

Update an item by id.