Soccer API Developer Tools

Central auth + live profile sync from Soccer DB. GUI + JSON API available.

Base URL: https://control-rpi.ddns.net/soccer_api API: https://control-rpi.ddns.net/soccer_api/api.php Main Login Open MySSO

API Endpoints

GET /soccer_api/api.php?action=health
POST /soccer_api/api.php?action=login
GET /soccer_api/api.php?action=me + Bearer token
GET /soccer_api/api.php?action=verify + Bearer token
GET /soccer_api/api.php?action=profile + Bearer token
GET /soccer_api/api.php?action=team&date=YYYY-MM-DD&break_type=morningTea|lunch
GET /soccer_api/sso.php?client_id=...&redirect_uri=...&state=...
POST /soccer_api/api.php?action=sso_exchange
GET /soccer_api/api.php?action=qsrs
GET /soccer_api/api.php?action=players
GET /soccer_api/api.php?action=sso_meta&client_id=...
GET /soccer_api/profile.php (alias)
GET /soccer_api/team.php (alias)
POST JSON accepted on all POST endpoints

Login Test

Returns token + current profile.

SSO Quick Start

Use auth-code style SSO for HTML or Python apps.

1) Redirect user to:
GET /soccer_api/sso.php?client_id=python_local&redirect_uri=http://127.0.0.1:8000/sso/callback&state=xyz&scope=openid%20profile

2) Your callback receives ?code=...&state=xyz

3) Exchange code for token:
POST /soccer_api/api.php?action=sso_exchange
{ "client_id":"python_local", "client_secret":"...", "code":"...", "redirect_uri":"http://127.0.0.1:8000/sso/callback" }

Profile Sync Test

Always returns latest player details from Soccer DB.

Response

Ready.