0.2.3 • Published 2 days ago

@blizzard-api/client v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

@blizzard-api/client

This package provides a client that is meant to be used together with one or more of the packages dedicated to a blizzard game.

Currently available packages are:

  • @blizzard-api/wow

Planned packages are:

  • @blizzard-api/d3
  • @blizzard-api/hs
  • @blizzard-api/owl
  • @blizzard-api/sc2
  • @blizzard-api/wow-classic

Installation

npm i @blizzard-api/client

Usage

import { createBlizzardApiClient } from '@blizzard-api/client';
import { wow } from '@blizzard-api/wow';

const client = await createBlizzardApiClient({
  key: 'environment.blizzardClientId',
  secret: 'environment.blizzardClientSecret',
  origin: 'eu',
});

//Response will automatically be typed with the appropriate values
const response = await client.sendRequest(wow.commodities());

console.log(response.data);
                      ^ typeof AuctionHouseCommoditiesResponse

Authentication

Please refer to the battle.net documentation for guides on how to obtain Blizzard API credentials.

0.2.3

2 days ago

0.2.1

4 days ago

0.2.2

3 days ago

0.2.0

4 days ago

0.1.0

8 days ago

0.0.9

1 month ago

0.0.8

1 month ago

0.0.7

1 month ago

0.0.6

1 month ago

0.0.5

1 month ago

0.0.4

1 month ago

0.0.3

1 month ago

0.0.2

1 month ago

0.0.1

1 month ago