A JS API for SpookVooper
Go to file
Brendan Lane 075dc25844
Update README.md
2020-11-27 19:31:00 -05:00
.github Add a Sponsor button 2020-09-18 12:39:06 -04:00
modules 💻 Sync with local 2020-11-27 19:23:10 -05:00
.eslintrc.json 💻 Sync with local 2020-11-27 19:23:10 -05:00
.gitignore 💻 Sync with local 2020-11-27 19:23:10 -05:00
LICENSE Merge branch 'master' into node 2020-11-27 19:30:35 -05:00
README.md Update README.md 2020-11-27 19:31:00 -05:00
main.js 💻 Sync with local 2020-11-27 19:23:10 -05:00
package-lock.json 💻 Sync with local 2020-11-27 19:23:10 -05:00
package.json 💻 Sync with local 2020-11-27 19:23:10 -05:00
routes.md 📲 Update to v1.2.0-Stable (Axios) 2020-11-08 18:11:34 -05:00

README.md

SpookVooper API Library

Library that is used to easily access the SpookVooper API.

Usage

We use ES6 modules, because CommonJS makes me want to cry. If anything returns a JSON object, you need to use it as an array.

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.

The wiki is getting worked on constantly, but it will take a while so in the meantime, you can use the inline wiki. To use this feature we recommend people use Visual Studio Code.

Supported Routes

We support all the routes. We even made some in premade.

  • Auth
  • User
  • Group
  • Eco
  • Premade