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()