ifunnyapi

1.0.1 • Public • Published

iFunnyAPI

An API wrapper for the iFunny app

tis my first package. It's coded horribley, because i'm really bad at this, and I do NOT advise using this in the least. BUTTT, if you wish to continue, I can't stop you.

How To Get Token

You are able to find it via request, but i've yet to impliment that into this package. So until then, the best way is to press 'forgot password', once you recieve the email, go to the link, and in the url, it will show your token. That's all you need to use the api!

Usage

var IF = require('ifunnyapi')
let tags = ['tag1', 'tag2', 'tag3']
 
let userHeaders = {
    'Authorization': 'Bearer ' + '3245ffaw1ab004c294fb193717379d54b65452345asdbhuaid10c9ee5874eb',
    'User-Agent': 'iFunny/5.21(8374) ipad/11.4.1 (Apple; iPad7,5)'
}
 
let formData = {
    type: 'caption',
    image: fs.createReadStream(imagef),
    text: 'random text',
    tags: tags
}
 
IF.post(formData, userHeaders, (err, res, body) => {
    console.log(res)
})

To-Do:

  • Actually learn how to code
  • Allow for bearer token grabbing
  • not forget about this project and leave it to die

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i ifunnyapi

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.59 kB

    Total Files

    3

    Last publish

    Collaborators

    • blairspalace