0.3.5 • Published 6 years ago
tb-api-wrapper v0.3.5
TB-API-WRAPPER
Please follow the guide carefully.
npm install tb-api-wrapper --save
##NOTE: ##THESE ARE ASYNC FUNCTIONS AND REQUIRE AWAIT
First create a object holding the API details and function:
const api = require('tb-api-wrapper')
let TBapi = new api.API(token='YOUR SECRET TOKEN HERE', dev=false) //or true
TBapi.quote(id='ID')
TBapi.fortune(id='ID')
TBapi.joke(id='ID', category='category')
TBapi.fml(id='ID')
All the arguments are optional however you CANNOT have two args in TBapi.joke()
#NOTICE: ##To obtain a token please email (gangnam253@gmail.com)