https://github.com/danasilver/flightstats
A CORS enabled wrapper on the FlightStats API.
https://github.com/danasilver/flightstats
Last synced: 22 days ago
JSON representation
A CORS enabled wrapper on the FlightStats API.
- Host: GitHub
- URL: https://github.com/danasilver/flightstats
- Owner: danasilver
- Created: 2014-04-22T16:19:08.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-04-30T09:36:15.000Z (about 8 years ago)
- Last Synced: 2025-01-06T00:42:00.628Z (over 1 year ago)
- Language: JavaScript
- Homepage: flightstats-api.herokuapp.com
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## flightstats
A CORS enabled wrapper on the FlightStats API.
Created for use on a project for [Middlebury College CS465](go.middlebury.edu/infovis) requiring AJAX access to the FlightStats API.
### Use
Use the same exact URL as with FlightStats, only with `flightstats-api.herokuapp.com` prepended in place of `api.flightstats.com`.
HTTP and HTTPS protocols are supported.
You still need an `appId` and `appKey`!
### Example
```js
var url = "http://flightstats-api.herokuapp.com/flex/airports/rest/v1/json/cityCode/ABC?appId=APPID&appKey=APPKEY",
xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.send(null);
```