-
-
Notifications
You must be signed in to change notification settings - Fork 29
World of Warcraft (Classic)
In addition to all parameters documented here, all API methods can accept key
, secret
, token
, origin
, locale
, for cases where you need to use different values to the default instance.
All methods accept a second headers
argument allowing an object of { [key: string]: string }
to be added to the request headers. For example, some requests can potentially return large response bodies and you might want to avoid this if the resource has not been updated between the previously observed state with a If-Modified-Since
header. If a method does not accept an argument, or it's first argument is optional, pass null | undefined
followed by a headers
object, e.g. token(null, { 'X-Header-Key': 'X-Header-Value' })
Method parameters are encoded with encodeURIComponent
for URL safety.
Methods with optional parameters will fallback to API endpoints that best match the provided parameters.
wow.auctionHouse({ realm: number; auctionHouse?: number })
wow.connectedRealm({ id?: number })
wow.connectedRealmSearch({ status: 'UP' | 'DOWN'; timezone?: string; orderby?: string | string[]; page?: number })
wow.creature({ id: number; media?: boolean })
wow.creatureFamily({ id?: number; media?: boolean })
wow.creatureType({ id?: number })
wow.guildCrest({ resource: 'border' | 'emblem'; id: number })
wow.item({ resource?: 'class' | 'set'; id?: number; sub?: number; media?: boolean })
wow.itemSearch({ name: string; locale: Locales, orderby?: string | string[]; page?: number })
wow.mediaSearch({ tag: string; orderby?: string | string[]; page?: number })
wow.playableClass({ id?: number; media?: boolean; pvpTalents?: boolean })
wow.playableRace({ id?: number })
wow.powerType({ id?: number })
wow.realm({ slug?: string })
wow.realmSearch({ timezone?: string; orderby?: string | string[]; page?: number })
wow.region({ id?: number })
wow.token()