@vulog/aima-booking
v1.0.3
Published
```bash npm i @vulog/aima-client @vulog/aima-core @vulog/aima-booking ```
Downloads
109
Readme
@vulog/aima-booking
npm i @vulog/aima-client @vulog/aima-core @vulog/aima-booking
import { getClient } from '@vulog/aima-client';
import { getBookingRequests } from '@vulog/aima-booking';
const client = getClient({
apiKey: '...',
baseUrl: '...',
clientId: '...',
clientSecret: '...',
fleetId: '...',
});
const response = await getBookingRequests(client, 'ONGOING');
const station = await getStations(client, ['OPEN_HOUR', 'INFO']);
const br1 = await getBookingRequestById(client, 'bb493049-5b4f-43ea-8a65-964a13aec549');
const br2 = await getBookingRequestByTrip(client, '33E8E42710144E15A5CC447E4D3524F4');
const sub = await getSubscriptionBookingRequestById(client, 'b7faa2a2-e8fc-4a29-8de7-09ce783b9797');