Socket
Socket
Sign inDemoInstall

@jdeurt/ifunny-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jdeurt/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.


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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"
    });

    // Cycle through trending memes
    const trending = await bot.getTrending();
    const memeFeed = await bot.getFeed(trending[0]);

    for (let memePath in memeFeed) {
        const meme = await bot.getMeme(memePath);

        // Comment, like, and close each meme in the feed
        await meme.comment("I am using the @jdeurt/ifunny-api package!");
        await meme.like();
        await meme.done();
    }

    // Upload your own meme!
    await bot.uploadMeme({
        filePath: "/path/to/meme",
        description: "optional meme description",
        tags: [
            "optimal",
            "meme",
            "tags"
        ]
    });
})();

More documentation coming soon!

FAQs

Package last updated on 23 Nov 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc