fix(core): incorrect base_url and X-Org-ID values

This commit is contained in:
cyrill 2023-11-24 14:22:19 +05:00
parent b3175bda4e
commit 4cbaf1c457

View File

@ -59,9 +59,9 @@ def create_tasks_in_tracker(data):
base_url = 'https://tracker.yandex.ru/v2/issues' base_url = 'https://tracker.yandex.ru/v2/issues'
headers = { headers = {
'Host': 'api.tracker.yandex.net', 'Host': 'api.tracker.yandex.net',
'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0', 'Authorization': 'OAuth y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0',
'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33', 'X-Org-ID': '7095769',
'Content-Type': 'Mobile&Apps/APPSANDMOBILE-1/json', 'Content-Type': 'appication/json',
} }
for task in data: for task in data:
payload = { payload = {
@ -88,6 +88,9 @@ def create_tasks_in_tracker(data):
'Ошибка при создании задачи в ЯндексТрекер:', 'Ошибка при создании задачи в ЯндексТрекер:',
response.content, response.content,
) )
print(headers)
print(payload)
exit()
# asana_data = get_data_from_asana() # asana_data = get_data_from_asana()