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": 26, "id": 74, "is_deleted": true, "item_order": 96, "name": "string", "query": "string", "user_id": 76 } ]
- 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": true, "completed_tasks": 6, "created": "string", "id": 35, "is_deleted": false, "is_unread": true, "karma_level": 30, "notification_key": "string", "notification_type": "string", "project_id": 74, "promo_img": "https://example.org", "user_id": 77 } ]
- 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": 91, "collapsed": false, "color": 59, "has_more_notes": true, "id": 89, "inbox_project": false, "is_archived": false, "is_deleted": false, "is_favorite": false, "legacy_id": 82, "name": "string", "parent_id": 25, "shared": false } ]
- get_user()[source]#
Get logged user info.
- Returns:
{ "auto_reminder": 50, "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": true, "join_date": "2020-01-01T00:00:00+00:00", "karma": 75, "karma_trend": "string", "lang": "en", "legacy_inbox_project": 70, "mobile_host": "string", "mobile_number": "string", "next_week": 32, "premium_until": "2020-01-01T00:00:00+00:00", "share_limit": 67, "sort_order": 66, "start_day": 78, "start_page": "string", "theme": 60, "time_format": "24h", "token": "string", "tz_info": { "key": "value" }, "unique_prefix": 68, "websocket_url": "https://example.org", "weekly_goal": 24 }