lab3-api-repo/api_git_example.py

6 lines
191 B
Python

import requests
TOKEN = "GIT_VYATSU_TOKEN1"
headers = {"Authorization": f"token {TOKEN}"}
response = requests.get("https://git.vyatsu.ru/api/v1/user", headers=headers)
print(response.json())