todoist
Platypush documentation
todoist
- class platypush.backend.todoist.TodoistBackend(api_token: Optional[str] = None, **kwargs)[source]
Bases:
Backend
This backend listens for events on a remote Todoist account.
Requires:
todoist-python (
pip install todoist-python
)
Triggers:
platypush.message.event.todoist.NewItemEvent
when a new item is created.platypush.message.event.todoist.RemovedItemEvent
when an item is removed.platypush.message.event.todoist.CheckedItemEvent
when an item is checked.platypush.message.event.todoist.ItemContentChangeEvent
when the content of an item is changed.platypush.message.event.todoist.ModifiedItemEvent
when an item is changed and the changedoesn’t fall into the categories above.
platypush.message.event.todoist.TodoistSyncRequiredEvent
when an update has occurred that doesn’tfall into the categories above and a sync is required to get up-to-date.
- __init__(api_token: Optional[str] = None, **kwargs)[source]
- Parameters:
bus – Reference to the bus object to be used in the backend
poll_seconds – If the backend implements a
loop
method, this parameter expresses how often the loop should run in seconds.kwargs – Key-value configuration for the backend