Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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.

Keywords

none

install

npm i gatewatch-api

Downloadsweekly downloads

3

version

0.2.3

license

none

repository

githubgithub

last publish

collaborators

  • avatar