BandsInTown Events
A simple wrapper for the BandsInTown Events Search JS API.
Basic Usage
Include the compressed version in your project.
<script src="./../dist/bit-events.min.js"></script>
Create an instance, set your parameters, and get some events.
var Events = ; //set options for instance//app_id and artists are requiredEvents; //get your events with success and error callbacksEvents;
Additional Methods
//setParams - set a group of parameters as an object//these will merge with the currently set paramsbitGet; //setParam - set a new single parameter as key, value pairEvents; //getParams - get the currently set parametersvar params = Events;console; //unsetParam - unset a parameter that you previously set by keyEvents;
Use with Browserify
Use in your app.
var BandsInTownEvents = ; var Events = ;
Parameters
These are the only required parameters by BandsInTown documentation.
"app_id" : "MyAppId" "artists" : "Wilco"
The full list of parameters can be found on the BandsInTown API page.