1.1.2 • Published 5 years ago

bandsintownv3 v1.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

bandsintownv3

Description

A simple (wrapper) npm package to call the Bandsintown API.

How to use:

Note: You need to have an app_id given to you by Bandsintown.

The base URL is https://rest.bandsintown.com

Bandsintown API documentation

Sample code

const bandsintwon = require(bandsintownv3)
const api = bandsintown(baseurl, app_id)
api.getArtistInfo('Metallica')
.then(artist => {
  const { name, url, image_url, facebook_page_url, upcoming_event_count } = artist
})
.catch(err => {
  // Handle the error here
})
api.getArtistEvents('Metallica')
.then(events => {
  // Do something
})
.catch(err => {
  // Handle the error here
})

Get upcoming artist events filtered by range date. Note that both from and to parameters are needed when using range date.

api.getArtistEvents('Metallica', '2019-06-01', '2019-12-31')
.then(events => {
  // Do something
})
.catch(err => {
  // Handle the error here
})
1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago