Updated for new Todoist API version
This commit is contained in:
@ -61,7 +61,7 @@ calendar:
|
|||||||
rest_command:
|
rest_command:
|
||||||
todoist:
|
todoist:
|
||||||
method: post
|
method: post
|
||||||
url: 'https://api.todoist.com/sync/v8/sync'
|
url: 'https://api.todoist.com/sync/v9/{{ url }}'
|
||||||
payload: !secret todoist_api_payload
|
payload: !secret todoist_api_payload
|
||||||
content_type: 'application/x-www-form-urlencoded'
|
content_type: 'application/x-www-form-urlencoded'
|
||||||
|
|
||||||
|
@ -1,33 +1,36 @@
|
|||||||
- platform: rest
|
- platform: rest
|
||||||
name: Household Tasks
|
name: Household Tasks
|
||||||
method: GET
|
method: GET
|
||||||
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
|
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
|
||||||
params:
|
params:
|
||||||
token: !secret todoist_api_token
|
token: !secret todoist_api_token
|
||||||
project_id: 2285967928
|
project_id: 2285967928
|
||||||
value_template: '{{value_json[''project''][''id'']}}'
|
value_template: '{{value_json[''project''][''id'']}}'
|
||||||
json_attributes:
|
json_attributes:
|
||||||
|
- project
|
||||||
- items
|
- items
|
||||||
scan_interval: 30
|
scan_interval: 30
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: Kallen Tasks
|
name: Kallen Tasks
|
||||||
method: GET
|
method: GET
|
||||||
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
|
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
|
||||||
params:
|
params:
|
||||||
token: !secret todoist_api_token
|
token: !secret todoist_api_token
|
||||||
project_id: 2285969005
|
project_id: 2285969005
|
||||||
value_template: '{{value_json[''project''][''id'']}}'
|
value_template: '{{value_json[''project''][''id'']}}'
|
||||||
json_attributes:
|
json_attributes:
|
||||||
|
- project
|
||||||
- items
|
- items
|
||||||
scan_interval: 30
|
scan_interval: 30
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: Home Tech
|
name: Home Tech
|
||||||
method: GET
|
method: GET
|
||||||
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
|
resource: 'https://api.todoist.com/sync/v9/projects/get_data'
|
||||||
params:
|
params:
|
||||||
token: !secret todoist_api_token
|
token: !secret todoist_api_token
|
||||||
project_id: 2285967948
|
project_id: 2285967948
|
||||||
value_template: '{{value_json[''project''][''id'']}}'
|
value_template: '{{value_json[''project''][''id'']}}'
|
||||||
json_attributes:
|
json_attributes:
|
||||||
|
- project
|
||||||
- items
|
- items
|
||||||
scan_interval: 30
|
scan_interval: 30
|
Reference in New Issue
Block a user