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=healthPOST
/soccer_api/api.php?action=loginGET
/soccer_api/api.php?action=me + Bearer tokenGET
/soccer_api/api.php?action=verify + Bearer tokenGET
/soccer_api/api.php?action=profile + Bearer tokenGET
/soccer_api/api.php?action=team&date=YYYY-MM-DD&break_type=morningTea|lunchGET
/soccer_api/sso.php?client_id=...&redirect_uri=...&state=...POST
/soccer_api/api.php?action=sso_exchangeGET
/soccer_api/api.php?action=qsrsGET
/soccer_api/api.php?action=playersGET
/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.