0.0.10 • Published 3 years ago

@minuscode/weezevent-client v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Weezevent Client

A simple READ ONLY Weezevent client for node.

Installation

Using npm:

$ npm install @minuscode/weezevent-client

Using yarn:

$ yarn add @minuscode/weezevent-client

Example

import { Weezevent } from '@minuscode/weezevent-client';

(async function test() {
  try {
    const weezevent = new Weezevent({
      username: 'XXX',
      password: 'YYY',
      api_key: 'ZZZ',
    });
    const events = await weezevent.events.list();

    console.log(events.data);
  } catch (error) {
    if (error.response) {
      // The request was made and the server responded with a status code
      // that falls out of the range of 2xx
      console.log(error.response.data);
      // console.log(error.response.status);
      console.log(error.response.headers);
    } else if (error.request) {
      // The request was made but no response was received
      // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
      // http.ClientRequest in node.js
      console.log(error.request);
    } else {
      // Something happened in setting up the request that triggered an Error
      console.log('Error', error.message);
    }
    console.log(error.config);
  }
})();

Usage

Events

You can list events with:

  weezevent.events.list(options?);

You can get a event with:

  weezevent.events.get(id);

You can get the events categories with:

  weezevent.events.categories();

Tickets

You can list event tickets with:

  weezevent.tickets.list(options?);

You can get a ticket stat with:

  weezevent.tickets.get(event_id);

Participants

You can list participants with:

  weezevent.participants.list(options?);

You can get answers from a participant with:

  weezevent.participants.answers(id);

Dates

You can get dates of a event with:

  weezevent.dates.list({id_event: 12345});
UrlStatus
/auth/access_token
/events
/event/:id/details
/event/search/
/event/categories/
/dates
/tickets
/tickets/:id/stats
/participants
/participants/:id/answers
/scan/settings
/scan/user
0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago