1.0.4 • Published 4 years ago

omeku-api v1.0.4

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

npm install size

NPM

omeku-api

Installation

npm i --save omeku-api

Wrapper for https://omeku.glitch.me

Api

 Endpoint  Description 
patGet a URL of a pat gif
 neko Get a URL of a neko image 
 kiss  Get a URL of a kiss gif 
hugGet a URL of a hug gif
lickGet a URL of a lick gif

Examples

Example for an Async/Await function:

const OmekuClient = require('omeku-api');
const omeku = new OmekuClient();

async function hug() {
  console.log(await omeku.api.hug());
}

hug();

will return:

{ url: 'https://omeku.glitch.me/hug/hug_1.gif' }

Example for a Promise:

const OmekuClient = require('omeku-api');
const omeku = new OmekuClient();

omeku.api.neko().then((neko) => console.log(neko));

will return:

{ url: 'https://omeku.glitch.me/neko/neko_1.png' }
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago