Fix Todoist REST entities, close #65

This commit is contained in:
2022-12-29 14:49:01 -05:00
parent 149aefbd06
commit 50bd654f4b
2 changed files with 7 additions and 3 deletions

View File

@ -55,7 +55,9 @@ rest_command:
todoist: todoist:
method: post method: post
url: 'https://api.todoist.com/sync/v9/{{ url }}' url: 'https://api.todoist.com/sync/v9/{{ url }}'
payload: !secret todoist_api_payload payload: '{{ payload }}'
headers:
Authorization: !secret todoist_api_token
content_type: 'application/x-www-form-urlencoded' content_type: 'application/x-www-form-urlencoded'
downloader: downloader:

View File

@ -3,8 +3,9 @@
method: GET method: GET
resource: 'https://api.todoist.com/sync/v9/projects/get_data' resource: 'https://api.todoist.com/sync/v9/projects/get_data'
params: params:
token: !secret todoist_api_token
project_id: 2285969005 project_id: 2285969005
headers:
Authorization: !secret todoist_api_token
value_template: '{{value_json[''project''][''id'']}}' value_template: '{{value_json[''project''][''id'']}}'
json_attributes: json_attributes:
- project - project
@ -15,8 +16,9 @@
method: GET method: GET
resource: 'https://api.todoist.com/sync/v9/projects/get_data' resource: 'https://api.todoist.com/sync/v9/projects/get_data'
params: params:
token: !secret todoist_api_token
project_id: 2285967948 project_id: 2285967948
headers:
Authorization: !secret todoist_api_token
value_template: '{{value_json[''project''][''id'']}}' value_template: '{{value_json[''project''][''id'']}}'
json_attributes: json_attributes:
- project - project