17 lines
336 B
Python
17 lines
336 B
Python
import requests
|
|
import os
|
|
|
|
TOKEN = os.getenv("GITEA_TOKEN")
|
|
|
|
if not TOKEN:
|
|
print("Токен не найден")
|
|
exit()
|
|
|
|
headers = {
|
|
"Authorization": f"token {TOKEN}"
|
|
}
|
|
|
|
response = requests.get("https://git.vyatsu.ru/stud203989/2zadaniepraktiki/issues/1", headers=headers)
|
|
|
|
print(response.status_code)
|
|
print(response.json()) |