Fix Todoist REST entities, close #65
This commit is contained in:
@ -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:
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user