2020-09-16 19:32:56 +00:00
# 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.
2020-09-21 23:44:54 +00:00
If anything returns a JSON object, you need to use it as an array.
2020-09-16 19:32:56 +00:00
**Example Script:**
```js
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}`);
});
```
2020-09-18 02:23:17 +00:00
The value variable is what the function returns as a result.
It gets passed to the callback function where you can use it.
2020-11-28 00:30:35 +00:00
The [wiki ](https://github.com/vexico/spookvooper-api/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 ](https://code.visualstudio.com/ ).
2020-09-21 23:44:54 +00:00
2020-09-18 02:23:17 +00:00
## Supported Routes
2020-09-21 23:44:54 +00:00
We support all the routes. We even made some in premade.
2020-09-18 02:23:17 +00:00
* Auth
* User
* Group
* Eco
* Premade