An open API service indexing awesome lists of open source software.

https://github.com/fastering18/blackerz-sdk-js

A developer kit for interacting with our API, written in JavaScript.
https://github.com/fastering18/blackerz-sdk-js

api-wrapper discord-bot javascript nodejs npm sdk

Last synced: 3 months ago
JSON representation

A developer kit for interacting with our API, written in JavaScript.

Awesome Lists containing this project

README

          

# Blackerz-SDK ![travis-ci](https://travis-ci.com/Fastering18/Blackerz-SDK-JS.svg?branch=main&status=passed)
A developer kit for interact with our API.
> Added type definition and more edit data.


__Example node Post Bot Description__
```js
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/



Developed by Offical Blackerz, join our [discord server](https://discord.gg/k8mW3DPJpH) for more information.