Updated for new Todoist API version

This commit is contained in:
2022-08-22 20:30:42 -04:00
parent 63ee68580d
commit f23371429e
2 changed files with 7 additions and 4 deletions

View File

@ -1,33 +1,36 @@
- platform: rest
name: Household Tasks
method: GET
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
params:
token: !secret todoist_api_token
project_id: 2285967928
value_template: '{{value_json[''project''][''id'']}}'
json_attributes:
- project
- items
scan_interval: 30
- platform: rest
name: Kallen Tasks
method: GET
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
params:
token: !secret todoist_api_token
project_id: 2285969005
value_template: '{{value_json[''project''][''id'']}}'
json_attributes:
- project
- items
scan_interval: 30
- platform: rest
name: Home Tech
method: GET
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
params:
token: !secret todoist_api_token
project_id: 2285967948
value_template: '{{value_json[''project''][''id'']}}'
json_attributes:
- project
- items
scan_interval: 30