Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    eventbritepublic

    Eventbrite.npm

    A javascript client library (Node.js module) for the Eventbrite API

    Installation

    npm install eventbrite
    

    Examples

    First, load the Eventbrite module

    var Eventbrite = require('eventbrite');
    

    Initialize your API client

    Add your API key below. Optionally, you can also supply a user_key to access private data. Clients that do not provide a valid user_key will be limited to public data access levels.

    var eb_client = Eventbrite({'app_key':"YOUR_API_KEY", 'user_key':"YOUR_USER_KEY"});
    

    event_search

    var params = {'city': "San Francisco", 'region': "CA"};
    
    eb_client.event_search( params, function(err, data){
        console.log(err);
        console.log(data);
    });
    

    event_get

    eb_client.event_get( {'id': EVENT_ID }, function(err, data){
        // render the event as a ticket widget:
        var ticket_widget_html = eb_client.widget.ticket( data.event ); 
    
        // or, render it as a countdown widget:
        var countdown_widget_html = eb_client.widget.countdown( data.event ); 
    
        console.log( countdown_widget_html + ticket_widget_html );
    });
    

    event_list_attendees

    eb_client.event_list_attendees ( {'id': EVENT_ID }, function(err, data){
        console.log(err);
        console.log(data);
    });
    

    user_list_events

    eb_client.user_list_events ( {}, function(err, data){
        console.log(err);
        console.log(data);
    });
    

    Check out the Eventbrite developer docs for more information about the functions available through the API.

    Resources

    Keywords

    none

    install

    npm i eventbrite

    Downloadsweekly downloads

    18

    version

    0.1.6

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar