New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@minuscode/weezevent-client

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minuscode/weezevent-client

Weezevent API client

latest
npmnpm
Version
0.0.10
Version published
Maintainers
1
Created
Source

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

Keywords

weezevent

FAQs

Package last updated on 05 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts