1.0.12 • Published 2 years ago

@kruhlmann/battlenetjs v1.0.12

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

BattleNet.js

WIP battlenet node.js api.

Usage

import { BattleNetClient, BattleNetOauthService } from "battlenetjs";

async function main(): Promise<void> {
    const service = new BattleNetOauthService("client_id", "client_secret");
    const namespace = new BattleNetNamespace(
        BattleNetBaseNamespace.WOW_CLASSIC_PROGRESSION,
        BattleNetRegion.NORTH_AMERICA,
    );
    const client = new BattleNetClient(service, namespace);
    const item = await client.get_item_by_id(19_019);
    console.log(item.name);
    const item2 = await client.get_item_by_name("Thunderfury");
    console.log(item2.name);
}
Thunderfury, Blessed Blade of the Windseeker
Thunderfury, Blessed Blade of the Windseeker
1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago