gatewatch-api

GateWatch (https://gatewatch.de) API client for node

npm install gatewatch-api
12 downloads in the last month

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.
npm loves you