Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@statscell/brawl

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@statscell/brawl

Client and event handler for brawl stars

unpublished
latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

@statscell/brawl

Node.js client for working with brawl stars API.

Usage

Install the package using:

npm install @statscell/brawl

Use the package as:

import { Client } from '@statscell/brawl';
// OR
const { Client } = require('@statscell/brawl');

// token can be obtained from https://developers.brawlstars.com/
const client = new Client({ token: 'token-from-dev-portal' });

client.getPlayer('YJ0LVRQQ')
  .then((player) => {
   console.log(`${player.name} - ${player.tag}`);
  })
  .catch((err) => console.log(err));

The above example is just a basic example. You can do lot more with the package.

Available Methods

  • Client.getPlayer(playerTag)

    • Get information about specified player tag.
  • Client.getPlayerBattles(playerTag)

    • Get battles of specified player tag.
  • Client.getClub(clubTag)

    • Get information about specified club tag.
  • Client.getClubMembers(clubTag)

    • Get members of specified club tag.
  • Client.getBrawlers()

    • Get information about all the brawlers.
  • Client.getBrawler(brawlerId)

    • Get information about the specified brawler.
  • Client.getClubRankings(country, Options)

    • Get club rankings for specified country.
    • country is optional. If not specified is default to global
  • Client.getPlayerRankings(country, Options)

    • Get player rankings for specified country.
    • country is optional. If not specified is default to global
  • Client.getBrawlerRankings(brawlerId, country, Options)

    • Get club rankings for specified country.
    • country is optional. If not specified is default to global
  • Client.getPowerPlayRankings(brawlerId, country, Options)

    • Get powerplay rankings for specified country.
    • country is optional. If not specified is default to global
  • Client.getPowerPlaySeasons(country, Options)

    • Get powerplay seasons.
    • country is optional. If not specified is default to global

Search Options

Options to filter search result..

  • limit: number -> No. of items to return.
  • before: string -> Return only items that occur before this marker.
  • after: string -> Return only items that occour after this marker.

Keywords

brawl stars

FAQs

Package last updated on 26 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts