refactor(mapping): correct headers according to Ya_T Documentation

This commit is contained in:
Angelina Tingaeva 2023-11-24 11:59:05 +05:00
parent de88475e40
commit 4ca5ee7f27

View File

@ -56,8 +56,10 @@ def create_tasks_in_tracker(data):
base_url = 'https://api.tracker.yandex.net/v2/issues' base_url = 'https://api.tracker.yandex.net/v2/issues'
headers = { headers = {
'Authorization': 'ORG_ID', 'Host': 'https://api.tracker.yandex.net',
'Content-Type': 'asana_data_json', 'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0',
'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33',
# 'Content-Type': 'asana_data_json',
} }
for task in data: for task in data:
payload = { payload = {