mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-01-12 22:46:38 +08:00
TypeScript typings for QPX Express API v1
Finds the least expensive flights between an origin and a destination. For detailed description please check documentation.
Installing
Install typings for QPX Express API:
npm install @types/gapi.client.qpxexpress@v1 --save-dev
Usage
You need to initialize Google API client in your code:
gapi.load("client", () => {
// now we can use gapi.client
// ...
});
Then load api client wrapper:
gapi.client.load('qpxexpress', 'v1', () => {
// now we can use gapi.client.qpxexpress
// ...
});
After that you can use QPX Express API resources:
/*
Returns a list of flights.
*/
await gapi.client.trips.search({ });