sl-ql
v1.0.1
Published
A wrapper for SlovakLines'es GraphQL API
Downloads
6
Maintainers
Readme
sl-ql
- SlovakLines GraphQL API Wrapper
let {SlovakLines} = require(`sl-ql`)
let slKo = new SlovakLines()
const main = async () => {
let stops = await slKo.stops()
let flairs = await slKo.fareClasses()
let presets = await slKo.journeyPresets()
let search = await slKo.journeysSearch({
currency: "EUR",
from: 235,
to: 241,
fareClass: [{
"id": "BONUS_SCHEME_GROUP.ADULT",
"count": 1
}],
promoCode: null
})
let route = await slKo.journeyRoute({
id: search[0].id,
includeIntermediateStops: true,
})
console.log(route[0].busEquipment)
}
main()
A wrapper for SlovakLines'es GraphQL API
Has @JSDoc
, with better documentation, irony
Documentation
Will be added later, still very WIP