Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

hinnerk/gatewatch-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.