battlemetrics
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Battlemetrics API Wrapper

A Promise-Based Battlemetrics API Wrapper
Very much a work in progress project, New Versions will be released Daily so make sure to stay up to date.

Full docs available at https://blained-dev.github.io/bm-api/

How to use

Install it through your favorite package manager:

yarn add battlemetrics
# or
npm i battlemetrics

Here's a quick example of usage:

const { BattlemetricsClient } = require('battlemetrics');

//Not a valid API Key
const Battlemetrics = new BattlemetricsClient({
    apiKey: 'N68Gg9uM5wvabSzV9SwFVz4fvvgnpSii25FfJqZefXXe4NYUe3Sb6',
});

Battlemetrics.getBanInfoById('15510636').then((res) => {
	console.log(res);
}).catch((err) => {
    console.log(err)
});

Package Sidebar

Install

npm i battlemetrics

Weekly Downloads

4

Version

1.1.0

License

ISC

Unpacked Size

15 kB

Total Files

16

Last publish

Collaborators

  • blaineddev