

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Communicating on the Web
incomplete
2: HTTP Requests and Responses
incomplete
3: HTTP Powers Websites
incomplete
4: HTTP URLs
incomplete
5: Using URLs in HTTP
incomplete
6: Requests and Responses Quiz
incomplete
7: Pyfetch
incomplete
8: Web Clients
incomplete
9: Web Servers
incomplete
This lesson's interactive features are locked, please to keep using them
from typing import TypedDict
class Issue(TypedDict):
title: str
async def main() -> None:
issue_url = "https://api.boot.dev/v1/courses_rest_api/learn-http/issues"
issues = await get_data(issue_url)
log_issues(issues)
async def get_data(url: str) -> list[Issue]:
api_key = generate_key()
response = await pyfetch(
url, headers={"X-API-Key": api_key, "Content-Type": "application/json"}
)
return await response.json()