A JS API for SpookVooper
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Brendan Lane 15fc8fe815
Merge pull request #23 from vexico/dependabot/npm_and_yarn/axios-0.21.1
11 months ago
.github Create codeql-analysis.yml 12 months ago
.vscode 💻 Sync with local 12 months ago
src 🩹 Fix even more stupid 11 months ago
typings 🩹 Fix even more stupid 11 months ago
.eslintrc.json 💻 New sync 12 months ago
.gitignore 🩹 Fix gitignore + version number 11 months ago
LICENSE 💻 Sync with local 12 months ago
README.md Update README.md 1 year ago
SECURITY.md updated Bryce Bauer's email 11 months ago
package-lock.json Bump axios from 0.21.0 to 0.21.1 11 months ago
package.json Bump axios from 0.21.0 to 0.21.1 11 months ago
routes.md 📲 Update to v1.2.0-Stable (Axios) 1 year ago
tsconfig.json 💻 Sync with local 12 months ago

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