This package has been deprecated

Author message:

No longer need to use this module, plus it doesn't work anymore. Use official one instead here: https://github.com/weeb-services/weeb-services

wolke-api

1.0.0 • Public • Published

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, //current API versions are 1 and 2
nsfw: false //a boolean for NSFW switching
}); //the constructor arguments are optional

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

Readme

Keywords

Package Sidebar

Install

npm i wolke-api

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • underforest