Перейти к содержанию

Стартовая страница

Пример 1

Ctrl+Alt+Del

curl -X GET "{{ api_url }}/some-resource" -H "Authorization: Bearer ${API_TOKEN}"
import requests

API_TOKEN = "your_api_token_here"

headers = {
    "Authorization": f"Bearer {API_TOKEN}",
}

response = requests.get("{{ api_url }}/some-resource", headers=headers)

print(response.json())

привет Image title