See https://gatewatch.de/api for API details.
var gw = require('gatewatch');
var g = gw.makeConnection('username', 'password', 'url');
The parameter url
is optional and defaults to https://www.gatewatch.de/api.
g.listEvents(callback)
callback(err, data)
— a callback which is called when the data is ready, or an error has occurred.
g.getEvent(eventID, callback)
eventId
— a number, the ID of the event for which details should be fetched.callback(err, data)
— a callback which is called when the data is ready, or an error has occurred.
g.getTickets(eventId, callback)
eventId
— a number, the ID of the event for which all tickets should be fetched.callback(err, data)
— a callback which is called when the data is ready, or an error has occurred.