ifunny-api
Unofficial iFunny API. Can do basic interactions with memes such as liking and commenting and can also let you programatically upload your own.
Installation
npm i @jdeurt/ifunny-api
Usage
const IFunnyClient = require("@jdeurt/ifunny-api");
const bot = new IFunnyClient();
(async function() {
await bot.login({
email: "your@email.address",
password: "password"
});
const trending = await bot.getTrending();
const memeFeed = await bot.getFeed(trending[0]);
for (let memePath in memeFeed) {
const meme = await bot.getMeme(memePath);
await meme.comment("I am using the @jdeurt/ifunny-api package!");
await meme.like();
await meme.done();
}
await bot.uploadMeme({
filePath: "/path/to/meme",
description: "optional meme description",
tags: [
"optimal",
"meme",
"tags"
]
});
})();
More documentation coming soon!