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

30 lines
521 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,
reachableFrom: true
}
module.exports = hvvProfile