Skip to content

Development Environment

Use Python 3.11+, Node.js 20+, or Go 1.22+. Store credentials in a local secret manager or .env file excluded from source control.

python -m venv .venv
. .venv/bin/activate
pip install httpx python-dotenv
export STEAMDEALS_BASE_URL=https://sandbox.api.steamdeals.example/v1
export STEAMDEALS_API_KEY=sd_test_01J3EXAMPLE
import os, httpx

response = httpx.get(f"{os.environ['STEAMDEALS_BASE_URL']}/deals", params={"region": "US"}, headers={"Authorization": f"Bearer {os.environ['STEAMDEALS_API_KEY']}"})
response.raise_for_status()
for deal in response.json()["data"]:
    print(deal["game"]["name"], deal["price"]["amount"])

For local integration tests, record fixtures from sandbox and set a short client timeout. Never copy live keys into browser bundles; route browser traffic through your backend or complete OAuth with PKCE.