Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wargamer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wargamer

Node.js client library for the Wargaming.net API.

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Wargamer

npm npm Travis License: MIT

A promise-based Node.js client library for the Wargaming.net API. Supports all of the documented APIs listed in the API reference.

  • World of Tanks
  • World of Tanks Blitz
  • World of Tanks Console
  • World of Warships
  • World of Warplanes
  • Wargaming.net

This library currently supports Node 4 and above.

Installation

npm install --save wargamer

or

yarn add wargamer

UMD builds are available as well.

<script src="wargamer.min.js"></script>
<script>
  const Wargamer = window.Wargamer;
  const wot = new Wargamer.WorldOfTanks({ /* ... */ });
</script>

The UMD distribution is hosted by the following CDNs:

Usage

Below is a sample of Wargamer code. More details and examples are available on the documentation site.

import Wargamer from 'wargamer';

const wot = Wargamer.WoT({ realm: 'ru', applicationId: 'application_id'});

wot.get('account/list', { search: 'Straik' })
  .then((response) => {
    console.log(response.meta); // { count: 100 }
    console.log(response.data); // [{ nickname: 'Straik', account_id: 73892 }, ...]
  })
  .catch((error) => {
    console.log(error.message);
  });

References

Keywords

FAQs

Package last updated on 12 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc