Skip to content
Michael Haschke edited this page Oct 2, 2015 · 1 revision

Bandsintown service class

Bandsintown provides a personalized way for music fans to track their favorite artists. It's the #1 concert discovery app in the world, more than 65% of U.S. touring bands use it.

Configuration values

  • artistname: name of the artist/band
  • date: all, past or upcoming (default) events are aggregated
  • sort: asc (default) or desc

... and the basic configuration for all services.

Example configuration

$bandsintown = array(
    'Bandsintown', 'bandsintown', array(
		'artistname' => 'Angstbreaker', // 'http://www.bandsintown.com/artistname'
		'sort' => 'asc', // asc (default)
		'date' => 'upcoming', // past | all | upcoming (default)
		'total' => 5,
		'title' => 'Concerts',
		'description' => 'come and join us at our shows'
	)
);

Template keys

  • link: URI of the event (RSVP)
  • title: generated title for the event (by Bandsintown)
  • day: day of the event
  • time: starting time of the event
  • description: additional description ove the event
  • venue: name of the venue/place where the event happens
  • locality: name of the city
  • region: name of the region (makes only sense for the U.S. and Canada)
  • state: name of the region (if U.S. or Canada), otherwise name of country
  • lineup: comma-separated list of all artists at the event
  • lineup_extended: artist list with HTML links to their web pages/profiles

Example template

<li>
    {{#media_thumbnail_url}}
        <img src="{{{media_thumbnail_url}}}" class="item-media-thumbnail" alt="{{{media_caption}}}" height="75" />
    {{/media_thumbnail_url}}
    <a href="{{link}}"><strong>{{{day}}}</strong> @ {{{venue}}}, {{{locality}}}, {{{state}}}</a>
    {{#lineup}}
        <br/>{{{lineup}}}
    {{/lineup}}
 </li>