0.2.3 • Published 13 years ago
gatewatch-api v0.2.3
GateWatch API Client for node.js
See https://gatewatch.de/api for API details.
Initialization
var gw = require('gatewatch');
var g = gw.makeConnection('username', 'password', 'url');The parameter url is optional and defaults to https://www.gatewatch.de/api.
listEvents(callback) — list all events
g.listEvents(callback)Arguments
callback(err, data)— a callback which is called when the data is ready, or an error has occurred.
getEvent(eventID, callback) — Get event details
g.getEvent(eventID, callback)Arguments
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.
getTickets(eventId, callback) — get ticket list
g.getTickets(eventId, callback)Arguments
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.