gatewatch-api

0.2.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i gatewatch-api

Weekly Downloads

5

Version

0.2.3

License

none

Last publish

Collaborators

  • hinnerk