https://github.com/matchilling/sdk-songkick-nodejs
NODEJS SDK for the songkick api.
https://github.com/matchilling/sdk-songkick-nodejs
Last synced: over 1 year ago
JSON representation
NODEJS SDK for the songkick api.
- Host: GitHub
- URL: https://github.com/matchilling/sdk-songkick-nodejs
- Owner: matchilling
- License: gpl-3.0
- Created: 2016-09-19T20:06:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-19T21:03:08.000Z (over 9 years ago)
- Last Synced: 2025-03-16T11:03:30.629Z (over 1 year ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/gigtoday/sdk-songkick-nodejs)
# Songkick Sdk NodeJS
Songkick SDK written in NodeJS returning [promise objects](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise).
## About
The [Songkick API](https://www.songkick.com/developer) gives you easy access to the biggest live music database in the world: over 5 million upcoming and past concerts… and growing every day! Easily add concerts to your website or application.
## Usage
```js
// Creating the client
const Songkick = new require('songkick')(process.env.SONGKICK_API_KEY);
// Get an event by a given id
Songkick.getEvent(27989954).then(JSON.parse).then(function(res) {
// do stuff
});
// Find events
Songkick.findEvents('sk:24426').then(JSON.parse).then(function(res) {
// do stuff
});
// Find events by an given artist
Songkick.findEventsByArtist(468146).then(JSON.parse).then(function(res) {
// do stuff
});
// Find similar artist
Songkick.findSimilarArtist(468146).then(JSON.parse).then(function(res) {
// do stuff
});
// Get venue details
Songkick.getVenue(17522).then(JSON.parse).then(function(res) {
// do stuff
});
```
Have a look into the `/test` dir to find further examples.
## Test suites
```sh
$ export SONGKICK_API_KEY={YOUR_SONGKICK_API_KEY} && \
npm test
```
## Support & Contact
Having trouble with this repository? Check out the documentation at the repository's site or contact m@matchilling.com and we'll help you sort it out.
Happy Coding
:metal: