Socket
Book a DemoInstallSign in
Socket

wolke-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wolke-api

An API wrapper for Wolke's API (which provides anime pictures)

1.0.0
latest
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

api

FAQs

Package last updated on 03 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.