todoist
#
Description#
Todoist integration.
You’ll also need a Todoist token. You can get it here.
Configuration#
todoist:
# [Required]
# Todoist API token.
# You can get it `here <https://todoist.com/prefs/integrations>`_.
api_token: # type=str
Dependencies#
pip
pip install todoist-python
Actions#
Module reference#
- class platypush.plugins.todoist.TodoistPlugin(api_token: str, **kwargs)[source]#
Bases:
Plugin
Todoist integration.
You’ll also need a Todoist token. You can get it here.
- __init__(api_token: str, **kwargs)[source]#
- Parameters:
api_token –
Todoist API token. You can get it here.
- get_filters()[source]#
Get list of Todoist filters.
- Returns:
[ { "color": 2, "id": 70, "is_deleted": false, "item_order": 87, "name": "string", "query": "string", "user_id": 20 } ]
- get_items()[source]#
Get list of Todoist projects.
- Return .. schema::
todoist.TodoistItemSchema(many=True)
- get_live_notifications()[source]#
Get list of Todoist live notifications.
- Returns:
[ { "completed_last_month": false, "completed_tasks": 50, "created": "string", "id": 53, "is_deleted": true, "is_unread": false, "karma_level": 93, "notification_key": "string", "notification_type": "string", "project_id": 27, "promo_img": "https://example.org", "user_id": 97 } ]
- get_project_notes()[source]#
Get list of Todoist project notes.
- Returns:
[ { "data": { "key": "value" } } ]
- get_projects()[source]#
Get list of Todoist projects.
- Returns:
[ { "child_order": 50, "collapsed": true, "color": 41, "has_more_notes": true, "id": 48, "inbox_project": false, "is_archived": true, "is_deleted": false, "is_favorite": true, "legacy_id": 6, "name": "string", "parent_id": 14, "shared": true } ]
- get_user()[source]#
Get logged user info.
- Returns:
{ "auto_reminder": 76, "avatar_big": "https://example.com/user/100x100.png", "avatar_medium": "https://example.com/user/50x50.png", "avatar_s640": "https://example.com/user/640x640.png", "avatar_small": "https://example.com/user/25x25.png", "business_account_id": 123456, "daily_goal": 100, "date_format": "dd-mm-yyyy", "dateist_inline_disabled": false, "dateist_lang": "en", "days_off": [ 0, 6 ], "default_reminder": "string", "email": "user@example.com", "features": { "key": "value" }, "full_name": "John Doe", "id": 123456, "image_id": "string", "inbox_project": 123456, "is_biz_admin": true, "is_premium": false, "join_date": "2020-01-01T00:00:00+00:00", "karma": 90, "karma_trend": "string", "lang": "en", "legacy_inbox_project": 72, "mobile_host": "string", "mobile_number": "string", "next_week": 36, "premium_until": "2020-01-01T00:00:00+00:00", "share_limit": 25, "sort_order": 89, "start_day": 67, "start_page": "string", "theme": 31, "time_format": "24h", "token": "string", "tz_info": { "key": "value" }, "unique_prefix": 73, "websocket_url": "https://example.org", "weekly_goal": 98 }