tb-api-wrapper
Version:
A api wrapper for a new api called TB-Api
23 lines (15 loc) • 628 B
Markdown
# 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)