π Bunker's Public API, coded in TypeScript for maximum speed.
Bunker's API is currently in beta, if any problems arise, especially with the lookup method, please feel free to drop either Chezzer#6969 or polar!#7979 a DM.
git clone https://github.com/bunkerradio/api.git
Register an application from Spotify's API Dashboard. Please note: API rate limits may be in affect.
Enter the client ID and secret into the config.json
file. You MUST do this in order to use the Song Lookup. Once done, do this:
npm install
npm run-script build && npm run-script authorize
To start the API, run this:
npm start
Clear lookup track and album art cache:
npm run-script clear
JQuery Example:
$.getJSON('http://localhost:5050/stats', data => {
console.log(data);
})
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.