A JS API for SpookVooper
Go to file
Brendan Lane 70f311458d 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
modules 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
.eslintrc.json 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
.gitignore 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
LICENSE Initial Commit 1 2020-09-16 15:32:56 -04:00
README.md 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
main.js Initial Commit 1 2020-09-16 15:32:56 -04:00
package-lock.json 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
package.json 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
routes.md 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00
test.js 🟢 Completed Version w/ README done (v1.0-Stable - Axios) 2020-09-17 22:23:17 -04:00

README.md

SpookVooper API Libraries

Library that is used to easily access the SpookVooper API.

Usage

We use ES6 modules, because CommonJS makes me want to cry.

Example Script:

import svAPI from "spookvooperapi";
let a;

// Get the balance of SpikeViper, and save it to a variable, then console.log it with a prefix
svAPI.eco.getBalance("2a0057e6-356a-4a49-b825-c37796cb7bd9", true).then(value => {
    a = value;
    console.log(`Spike's Balance: ${a}`);
});

The value variable is what the function returns as a result. It gets passed to the callback function where you can use it.

Supported Routes

We support all the routes. We even made some.

  • Auth
  • User
  • Group
  • Eco
  • Premade