Ga naar inhoud

Twin-space-samenstelling ophalen

Begin vanuit het scriptconfiguratie-blok en voeg vervolgens de onderstaande fragmentcode toe.

Retourneert de twin-laagdescriptor. Scope: read:twin.

# ... script setup ...
TWIN_ID = "your-twin-id"
space = api_get(f"/v1/twin/{TWIN_ID}/space")
print(json.dumps(space, indent=2))