mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
|
…
|
||
|---|---|---|
| .. | ||
| gapi.client.qpxexpress-tests.ts | ||
| index.d.ts | ||
| readme.md | ||
| tsconfig.json | ||
| tslint.json | ||
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({ });