API docs
Website API-contract
Alleen nodig als je VA de flight-status API nog moet bouwen. De plugin zelf is gratis; dit is documentatie / bridge-voorbeeld.
Auth
Stuur de piloot smartCARS-sessie als Bearer-token. Zelfde auth-model als andere community script-calls.
Scope
Statusupdates gelden voor geboekte schedule/charter-vluchten van de ingelogde piloot (plus jullie VA-regels). Plugin 1.6+ stuurt ook arrived + mid-flight ETA.
Endpoints
GET /flights/status/bookings
GET /flights/status?kind=schedule|charter&id={id}
GET /flights/status/history?kind=...&id=...&limit=12
POST /flights/status
{
"kind": "schedule",
"id": 123,
"status": "on_time|updated|delayed|cancelled|arrived",
"etd": "14:30",
"eta": "16:05"
}
PHP-bridge voorbeeld
Voorbeeld dat je op je VA-website kunt aanpassen als je niet de volledige BlueNova-stack hebt.
Snel testen
Boek een vlucht → open VA Flight Ops in smartCARS → Refresh → wijzig ETD/status → Save. Werkt via je community script-URL zodra de API bestaat.