wynnapi
v1.0.2
Published
An API Wrapper for the Wynncraft API
Downloads
4
Readme
WynnAPI
Introduction
This is an API Wrapper for the Wynncraft API, the docs can be found here. Please read the docs before reporting any issues.
Installing
Installing with npm:
npm i wynnapi
Getting Started
Basics
Creating a class:
const WynnAPI = require("wynnapi");
const wynn = new WynnAPI();
wynn.getPlayer("Player").then((player) => console.log(player));
Alternatively you can just call functions directly like this:
const WynnAPI = require("wynnapi");
new WynnAPI().getPlayer("Player").then((player) => console.log(player));
Examples
Examples will be in the examples folder, they are currently a work in progress!
Response Codes
Response Codes and their meanings can be found here.