Skip to content

Instantly share code, notes, and snippets.

@Raukze
Created December 13, 2022 08:16
Show Gist options
  • Save Raukze/75641934b95e62e6540e5de10cdc1d49 to your computer and use it in GitHub Desktop.
Save Raukze/75641934b95e62e6540e5de10cdc1d49 to your computer and use it in GitHub Desktop.
import sys
import requests
r = requests.get("https://mein.fitx.de/nox/public/v1/studios", headers={"x-tenant": "fitx"})
if not r.status_code == 200:
print(f"ERROR: Unsuccessful request. HTTP Status Code: ${r.status_code}")
sys.exit()
items = r.json()
for item in items:
print(f"{item['name']},{item['id']}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment