blackers-api-sdk
v0.0.55
Published
Developer kit for interacting with our API
Downloads
8
Readme
Blackerz-SDK
A developer kit for interact with our API.
Added type definition and more edit data.
Example node Post Bot Description
const blackerz = require("blackers-api-sdk")
// Getting bot data without authorize
blackerz.botData("777756503028400138").then(console.log)
// Sync with your bot, require auth
blackerz.Authorize("V1auth");
const scannerBOT = new blackerz.bot("bot id", {baseURL: "https://blackerz.herokuapp.com"}) // baseURL optional
scannerBOT.edit({
shortDescription: "this is short description",
longDescription: "this is looooong description"
}).then(result => {
console.log(`${JSON.stringify(result)}, sucess edited`)
}).catch(console.error)
scannerBOT.botData().then(console.log).catch(console.error)
//Check user vote
scannerBOT.checkVote("775363892167573535").then(console.log).catch(console.error) // true / false
API
blackerz.botData(BOT_ID)
return bot data without authorization
blackerz.Authorize(V1_AUTH, DeveloperID?)
authorize your access, can be used to construct bot class
new blackerz.bot(BOT_ID)
return object class to to something with bot
Website
Get your V1 auth by login to our website then visit your profile, here the link
https://blackerz.herokuapp.com/