1.0.3 • Published 4 years ago

summon-api-wrapper v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

summon-api-wrapper

A NPM to handle the summon api

Text usage / something that returns a JSOM output

DO NOT USE IMAGE ENDPOINTS HERE IT WILL ERROR

const API = require("summon-api-wrapper")
const api = new API()

api.get("random-date").then(res => console.log(res))

Image usage (this returns a buffer)

const API = require("summon-api-wrapper")
const api = new API()

api.getImage("changemymind", { text: "<text here" }).then(res => /*do something with 'res' this returns a buffer*/)

MWL usage

This for the people who have a private MWL api key (most of you don't)

const API = require("summon-api-wrapper")
const api = new API({ token: "<token here>" })
api.getMwlData({ type: "dailywaifu" }).then(res => console.log(res))

//or

api.getMwlData({ type: "waifu", choose: "<waifu here>" }).then(res => console.log(res))
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago