npm

Need private packages and team management tools?Check out npm Orgs. »

bandsintownv3

1.1.2 • Public • Published

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
})

install

npm i bandsintownv3

Downloadsweekly downloads

8

version

1.1.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability