Created
December 13, 2022 08:16
-
-
Save Raukze/75641934b95e62e6540e5de10cdc1d49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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