Skip to content

Python

Generate the Python client from the public OpenAPI schema:

Terminal window
npx @openapitools/openapi-generator-cli generate \
-i https://futpicks.com/api/v1/openapi/v1.json \
-g python \
-o ./clients/python/generated
import requests
token = "..."
response = requests.get(
"https://futpicks.com/api/v1/data/catalog",
headers={"Authorization": f"Bearer {token}", "Accept": "application/json"},
timeout=15,
)
response.raise_for_status()
print(response.json())