Skip to content

Documentation


Documentation / @blizzard-api/d3 / accountHero

Function: accountHero() ​

accountHero(battleTag, heroId): object

Defined in: d3/src/profile/index.ts:27

Returns the hero information for the specified battle tag and hero ID.

Parameters ​

battleTag ​

string

The battle tag of the account.

heroId ​

number

The ID of the hero.

Returns ​

The hero resource. See AccountHeroResponse.

_responseType? ​

optional _responseType?: AccountHeroResponse

Internal

The response type of the resource

namespace? ​

optional namespace?: BlizzardNamespaces

parameters? ​

optional parameters?: Record<string, unknown>

path ​

path: string

The request path. Dynamic path segments should be encoded with encodeURIComponent.