Skip to main content

Code

Below are live code tabs for Python, Go, and Node.js. Tabs are named by language, with syntax highlighting in light and dark themes, and line numbers.

Client snippet (simple request)

python.py
import requests
resp = requests.get('https://api.example.com/health')
print(resp.status_code)

SDK: Initialize client

client.py
from sdk import Client
client = Client(base_url='https://api.example.com')