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

promise-battlenet-api

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

promise-battlenet-api

Battle.net api using promises

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

promise-battlenet-api

A basic client for the Blizzard Battle.net api using request-promise. Does not currently support protected resources.

Installation

npm install promise-battlenet-api --save

Create the client

var bnet = require("promise-battlenet-api");
var client = new bnet();
client.setApiKey(api_key);

Query basic character information

client.fetch("character", { region: "us", realm: "emerald-dream", name: "talgees" })
    .then(function(data){
        console.log(data);
    })
    .catch(console.error);

Query basic character information + stats + items

client.fetch("character", { region: "us", realm: "emerald-dream", name: "talgees", fields: "stats,items" })
    .then(function(data){
        console.log(data);
    })
    .catch(console.error);

Release History

  • 0.1.2 add responseTime to request response
  • 0.1.0 initial release

Keywords

FAQs

Package last updated on 07 Sep 2015

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