From 4cbaf1c4575bc9b342fa1ac14186279635faafef Mon Sep 17 00:00:00 2001 From: cyrill Date: Fri, 24 Nov 2023 14:22:19 +0500 Subject: [PATCH] fix(core): incorrect base_url and X-Org-ID values --- mapping.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mapping.py b/mapping.py index 02d47cf..f7d1d55 100644 --- a/mapping.py +++ b/mapping.py @@ -59,9 +59,9 @@ def create_tasks_in_tracker(data): base_url = 'https://tracker.yandex.ru/v2/issues' headers = { 'Host': 'api.tracker.yandex.net', - 'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0', - 'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33', - 'Content-Type': 'Mobile&Apps/APPSANDMOBILE-1/json', + 'Authorization': 'OAuth y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0', + 'X-Org-ID': '7095769', + 'Content-Type': 'appication/json', } for task in data: payload = { @@ -88,6 +88,9 @@ def create_tasks_in_tracker(data): 'Ошибка при создании задачи в ЯндексТрекер:', response.content, ) + print(headers) + print(payload) + exit() # asana_data = get_data_from_asana()