JavaScript (Fetch)
Here is an example of how to fetch flights from your club using modern JavaScript.
fetch('https://prostagma.com/api/flights.php', {
method: 'GET',
headers: {
'Authorization': 'Bearer sk_your_api_key_here',
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));