splat2api-wrapper-nodejs
A node.js wrapper for splat2api.
Installation
Install it with npm: npm install --save splat2api
Example
const API = require("splat2api");
API.getSchedules().then(result => {
console.log(result);
});
Documentation
getSchedules()
Returns the next 12 map schedules.
getCurrentSchedule()
Returns the current map schedule.
getSchedule(schedule_id)
Returns a specific map schedule.
getCoopSchedules()
Returns the next 12 map schedules.
getCurrentCoopSchedule()
Returns the current map schedule.
getCoopSchedule(schedule_id)
Returns a specific map schedule.
getStages()
Returns all available stages.
getStage(stage_id)
Returns a specific stage.
getNextUpdate()
Returns the time until the stats get refreshed.
getActiveFestivals()
Returns a list of active festivals.
getPastFestivals()
Returns a list of past festivals.
getFestival(festival_id)
Returns information on a specific splatfest by its id.