From 4ca5ee7f273c23c05ece491b9dd4f37fe1609b7d Mon Sep 17 00:00:00 2001 From: Angelina Tingaeva Date: Fri, 24 Nov 2023 11:59:05 +0500 Subject: [PATCH] refactor(mapping): correct headers according to Ya_T Documentation --- mapping.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mapping.py b/mapping.py index 787de13..f05c802 100644 --- a/mapping.py +++ b/mapping.py @@ -56,8 +56,10 @@ def create_tasks_in_tracker(data): base_url = 'https://api.tracker.yandex.net/v2/issues' headers = { - 'Authorization': 'ORG_ID', - 'Content-Type': 'asana_data_json', + 'Host': 'https://api.tracker.yandex.net', + 'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0', + 'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33', + # 'Content-Type': 'asana_data_json', } for task in data: payload = {