@cooltix/arena-center
v1.0.5
Published
Node.js client for ArenaCenter API
Downloads
68
Readme
arena-center
Node.js client for ArenaCenter API
Installation
$ npm install @cooltix/arena-center
Usage
import ArenaCenter from 'arena-center';
const arena = new ArenaCenter({
clientId: 'CLIENT_ID',
clientSecret: 'SECRET',
userName: 'USERNAME',
password: 'PASSWORD',
endpoint: 'ENDPOINT'
});
const events = await arena.getEvents();
Available methods
// Events
arena.getEvents();
arena.getEventByDate(date);
// Tickets
arena.addTickets(eventId, tickets);
arena.getTicketsByBarcode(eventId, barcode);
arena.getTicketByBarcode(eventId, barcode);
arena.updateTicket(eventId, ticketId, ticket);