This is the official NodeJS client library for the RocketLeagueStats API.
Node.js 8.0.0 or newer is required.
Ignore any warnings about unmet peer dependencies, as they're all optional.
Simply execute npm install rls-api
to add the library to your coding enviroment.
Then add the following lines of code to the start of your query while making careful consideration to not exposing your API Key.
var rls = require('rls-api');
var client = new rls.Client({
token: "REPLACE_ME_WITH_YOUR_API_KEY"
});
After that, you are ready to go! You can begin making queries to https://api.rocketleaguestats.com/!