1.0.1 • Published 2 years ago

normal-api.js v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Normal API.js

Example Usage

// Example with await/async
const api = require("normal-api.js")

let response = await api.emojify("Hello")

console.log(response)

//Example without await/async
const api = require("normal-api.js")

api.emojify("Hello").then(response => console.log(response))

Endpoints

  • Here, api is the Normal API.
api.pastebin(text, privacy)
// Returns JSON

api.imgur(url, title)
// Returns JSON

api.ordinal(number)
// Returns JSON

api.userstatus(userid)
// Returns JSON

api.inviteinfo(code)
// Returns JSON

api.templateinfo(code)
// Returns JSON

api.emojify(text)
// Returns JSON

api.parsems(ms)
// Returns JSON

api.createqr(text)
// Returns Buffer

api.randommath()
// Returns JSON

api.safenote(note)
// Returns JSON

api.encode(text)
// Returns JSON

api.decode(text)
// Returns JSON

api.reverse(text)
// Returns JSON

api.imagesearch(query)
// Returns JSON

api.randomemoji(category, boolean)
// Returns JSON

api.ocr(imageurl)
// Returns JSON

api.youtube.searchvideo(query)
// Returns JSON

api.topgg.poststats(botid, topggtoken, guilds)
// Returns JSON

api.topgg.hasvoted(botid, userid, topggtoken)
// Returns JSON