Wolke API
An API that provides anime pictures or GIFs for fun and lewdness. Wrapper created using promises and axios.
Instalation
npm install wolke-api
Usage
var WolkeHelper = require("wolke-api");
var WolkeApi = new WolkeHelper({
version: 1,
nsfw: false
});
Functions
types()
Availability: v1, v2
Parameters: None
Output: an array of picture types you can use for requesting
WolkeApi.types().then((result) => {
console.log(result);
}).catch((error) => {
console.log(error.toString());
})
tags()
Availability: v2
Parameters: None
Output: an array of picture tags you can use for requesting
WolkeApi.tags().then((result) => {
console.log(result);
}).catch((error) => {
console.log(error.toString());
})
pictureInfo(id)
Availability: v1, v2
Parameters: Picture ID
Output: if v1, the link of the picture and status boolean. if v2, detailed information. both in JSON format.
WolkeApi.pictureInfo(id).then((result) => {
console.log(result);
}).catch((error) => {
console.log(error.toString());
})
picture(type, tags)
Availability: v1, v2
Parameters: Type (v1 and v2), tags (only v2, must be array)
Output: if v1, the link of the picture. if v2, detailed information. both in JSON format.
WolkeApi.picture(type, tags).then((result) => {
console.log(result);
}).catch((error) => {
console.log(error.toString());
})
License
Licensed under MIT
Discord server for the API: https://discord.gg/y5MPvUC