angular-bandsintown-api-factory is an angularjs module with a bandsintown v2 api factory.
Author: Jonathan Hornung (JohnnyTheTank)
Usage
- Install via either bower, npm or downloaded files:
bower install --save angular-bandsintown-api-factory
npm install --save angular-bandsintown-api-factory
- download angular-bandsintown-api-factory.zip
- Add
jtt_bandsintown
to your application's module dependencies. - Include dependencies in your HTML.
- When using bower:
<script src="bower_components/angular-bandsintown-api-factory/src/angular-bandsintown-api-factory.min.js"></script>
- When using npm:
<script src="node_modules/angular-bandsintown-api-factory/src/angular-bandsintown-api-factory.min.js"></script>
- when using downloaded files
<script src="angular-bandsintown-api-factory.min.js"></script>
- Use the factory
bandsintownFactory
factory methods
getArtist
Get all parameters here
bandsintownFactory.getArtist({
artist:"<ARTIST_NAME>",
artist_id:"<ARTIST_ID>",
app_id:"<YOUR_APP_ID>",
}).then(function (_data) {
}).catch(function (_data) {
});
getEvents
Get all parameters here
bandsintownFactory.getEventsFromArtist({
artist:"<ARTIST_NAME>",
artist_id:"<ARTIST_ID>",
date:"<DATE>",
app_id:"<YOUR_APP_ID>",
}).then(function (_data) {
}).catch(function (_data) {
});
Get all parameters here
bandsintownFactory.getEventsFromArtistByLocation({
artist:"<ARTIST_NAME>",
artist_id:"<ARTIST_ID>",
date:"<DATE>",
location:"<LOCATION>",
radius:"<RADIUS">,
app_id:"<YOUR_APP_ID>",
}).then(function (_data) {
}).catch(function (_data) {
});
Get all parameters here
bandsintownFactory.getRecommendedEventsFromArtistByLocation({
artist:"<ARTIST_NAME>",
artist_id:"<ARTIST_ID>",
date:"<DATE>",
location:"<LOCATION>",
radius:"<RADIUS">,
only_recs:"<ONLY_RECS>",
app_id:"<YOUR_APP_ID>",
}).then(function (_data) {
}).catch(function (_data) {
});
Bandsintown V2 JSON API
Docs: http://bandsintown.com/api/requests
License
MIT