Skip to content

ryanjarvinen/eventbrite.npm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"});
var params = {'city': "San Francisco", 'region': "CA"};

eb_client.event_search( params, function(err, data){
    console.log(err);
    console.log(data);
});
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 );
});
eb_client.event_list_attendees ( {'id': EVENT_ID }, function(err, data){
    console.log(err);
    console.log(data);
});
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

About

Eventbrite javascript (node.js) API Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages