npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

flexbillet-api

v0.2.0

Published

Javascript bindings for "Organizer Services API" of FlexBillet

Downloads

2

Readme

Flexbillet-api for node

Wrapper for flexbillet API in node

Install:

$ npm install flexbillet-api

Usage

Basic testing connectivity to the API

var flex = require("flexbillet-api")(null);

flex.hello(function(err, res){
    if(err) return done(err);
    
    console.log(res.result.message);
});

Getting a list of your events:

var config = {
    "organizerKey": "your-organizer-name",
    "passphrase" : "The-one-you-obtained-from-admin",
    "localekey": "da"
};
var flex = require("flexbillet-api")(config);

flex.eventlist(function(err, res){
    if(err) return done(err);

    console.log(res["event-list"]);
});

TODO

  • Remaining methods for the API to be functional
  • Work with the Organizerservices API for event creations(not part of the usual API)
  • Hook up with CI(Eg Travis CI)

Running the tests

Since mocking is implemented, you can just run npm test

Methods

hello

flex.hello(cb)

Returns(Note: time will change)

{ "result": {
    "message": "Hello there, the api is working. Now: 2016-02-14 22:23"
} }

Basic Details

flex.basics(cb)

Returns

{ "basic-details": { 
   "site-skin-url": "string",
   "environment-appspot-host": "string"
} }

Organizer Details

flex.organizerdetails(cb)

Returns:

{ "organizer-details": { 
    "organizer-key": "String",
    "organizer-name": "String",
    "locale-key": "da",
    "organizer-email": "String-Email",
    "organizer-phone": "",
    "organizer-web": "",
    "front-page-content": "String-HTML",
    "header-text": "",
    "header-text-color": "#000000",
    "header-text-size": "20",
    "header-text-weight-style": "NORMAL",
    "header-text-x-offset": "0",
    "header-text-y-offset": "0",
    "header-text-alignment": "LEFT",
    "site-skin-url": "Url",
    "primary-site": "t",
    "site-layout": "Boxed",
    "member-system": "false",
    "social-image-url": "",
    "meta-description": "",
    "robots-behavior": "NotAllowed"
} }

Event List

flex.eventlist([args,] cb)

args = {
    "include-private-events": boolean, // if true, private events will be in the list returned (only if using systempassphrase)
    "include-test-events": boolean, // if true, test events will be in the list returned
    "changedsince": datetime milliseconds, //events changed since given datetime is returned.
    "include-for-departments": boolean //if true events for departments are returned.
}

Returns():

{ "event-list": {
    "event-list-details": [ "[EventObject]"  ]
} }

Event Details

flex.eventdetails(eventkey, eventsecret, cb)

Where eventkey and secret is obtained from event-list.

Returns:

{ "event-details": "[EventObject]" }

Generally Defined Objects

Event-object(Some of these are the actual values - others are "specifications"):

{
    "organizer-key": "String",
    "event-key": "String",
    "event-name": "String",
    "state-key": "PublishedMode",
    "event-start": "Date(YYYY-MM-DD hh:mm)",
    "event-type": "EVENT",
    "secret": "",
    "event-description": "String-HTML",
    "event-short-description": "TestEvent",
    "paid-event": true,
    "free-event": false,
    "open-for-registration": false,
    "booking-return-target": "EventDetails",
    "registration-start": "Date(YYY-MM-DD hh:mm)",
    "registration-end": "Date(YYY-MM-DD hh:mm)",
    "event-end": "",
    "max-available-tickets": 0,
    "max-tickets-per-customer": 0,
    "public": true,
    "logo-url": "String-url",
    "flyer-url": "String-url",
    "social-image-url": "",
    "event-tags": "",
    "short-title": "String",
    "display-registered-participants": false,
    "show-social-widgets": false,
    "visible-from": "Date(YYY-MM-DD hh:mm)",
    "visible-to": "Date(YYY-MM-DD hh:mm)",
    "button-more-label": "",
    "button-register-label": "",
    "sold-out-label": "",
    "location": {
        "name": "",
        "description": "",
        "address": "",
        "geo-location": "",
        "logo-url": "",
        "streetaddress1": "",
        "streetaddress2": "",
        "zipcode": "",
        "city": "",
        "country": "" },
    "account": {
        "minimum-price-to-pay": 0,
        "fixed-price": false,
        "currency-code": "",
        "short-price-description": "",
        "rich-price-description": "" },
    "participant-designation-list": { "participant-designation": "[Object]" },
    "custom-property-list": { "custom-property": [] },
    "event-price-info-list": { "event-price-info": [] },
    "resource-type-list": { "resource-type": "[Object]" }
}

Methods TODO

  • Ticket List for Event
  • Scanned Tickets for Event
  • Event Tab List
  • Event Tag List
  • Report List
  • Generate Report Output
  • Generate Membershipcard Output
  • Generate Ticket preview
  • Generate Teamlist Output
  • Scanned Membership barcode
  • Search Purchase/Ticket data
  • Department Invite details
  • Membersystem data
  • Create team-member

Method testing TODO

  • Some to come