db-vendo-client/p/rmv/index.js

31 lines
577 B
JavaScript
Raw Normal View History

2020-03-03 01:39:16 +01:00
'use strict'
const products = require('./products')
const transformReqBody = (ctx, body) => {
body.client = {type: 'WEB', id: 'RMV', name: 'webapp'}
body.ext = 'RMV.1'
body.ver = '1.18'
body.auth = {type: 'AID', aid: 'x0k4ZR33ICN9CWmj'}
return body
}
const hvvProfile = {
locale: 'de-DE',
timezone: 'Europe/Berlin',
endpoint: 'https://www.rmv.de/auskunft/bin/jp/mgate.exe',
transformReqBody,
products,
trip: true,
radar: true,
refreshJourney: true,
2020-09-16 17:21:59 +02:00
reachableFrom: true,
remarks: false, // seems like ver >= 1.20 is required
2020-03-03 01:39:16 +01:00
}
module.exports = hvvProfile