Socket
Socket
Sign inDemoInstall

wargamer

Package Overview
Dependencies
42
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

wargamer

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


Version published
Maintainers
1
Weekly downloads
7
increased by16.67%
Install size
4.38 MB

Weekly downloads

Readme

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

Last updated on 12 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc