Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

BlackListener/BlackListenerAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

BlackListenerAPI By Swagger

What you need to use/listen/start API

  • You need a few commands before using this API.
  • You need npm i -g swagger for download a swagger cli.
  • Change the directory to src and Run npm i for download dependencies(And go to back directory to ../).
  • To using this API, type swagger project start src.
  • Your API Server will start in 0.0.0.0:10010

Test your API

Using cURL

curl http://localhost:10010/user?id=<Discord User ID>

Using fetch()

Using Promise#then()

fetch('http://localhost:10010/user?id=<Discord User ID>').then(response => {
  response.json().then(json => {
    // do something
  })
})

Using await Promise

const response = fetch('http://localhost:10010/user?id=<Discord User ID>')
const json = await response.json()
// do something

What JSON Contains

GET User

  • User Reputation [number]
  • Where a user got banned from a server(and server owner) [String]
  • Who banned a user [String]
  • Probes (Image URL) [String]
  • Why a user got ban (Reasons) [String]
  • Username changes(not working) [Array<String>]
  • Nickname changes(not working) [{Object|Array}<Array<String>>]
  • Avatar changes(not working) [Array<String>]

Releases

No releases published

Packages

No packages published