feat: simple tutorial for GET API

This commit is contained in:
Sandro Zimmermann 2026-04-23 11:32:43 +02:00
parent 6bf35f0f2f
commit 82dbe7f887

View File

@ -0,0 +1,9 @@
import requests
def fetch_user(username: str) -> dict:
response = requests.get(f"https://www.codewars.com/api/v1/users/{username}")
return response.json()
print(fetch_user("cw-sandro"))