API examples
Start with the team integration guide and its complete Python/JavaScript managed-session examples in the bundle's top-level examples directory. The examples here additionally demonstrate individual SDK operations.
| Example | Purpose |
|---|---|
| finish_match.py | Durable result inbox, ACK recovery and optional matching-owned-game closure. |
| launch_match.py | Roster upload, preparation and native Start against an existing compatible broker. |
| prepare_matchup.py | Inactive-game preparation and catalog choices. |
| watch_scoreboard.py / watch.mjs | Read live public snapshots/events. |
| native_rules/example.c | Trusted x86 C rule module and build command. |
| native_metadata/team_rank.c | Independent copied metadata reader. |
| match_session.py | Earlier manual-attach example binding at phase10; use managed requests for pre-play binding. |
Tokens stay private. Use the top-level OpenHoops.cmd wrapper so the embedded runtime imports the correct bundled API. These scripts do not include a game, roster, app database or finished presentation. Current checks and limits.