Class: HoyoWiki
Represents the Hoyolab API client.
Constructors
constructor
• new HoyoWiki(options
)
Creates a new instance of Wiki HoyoLab
.
Throws
If ltuid
or ltoken
keys are missing in the ICookie
object.
Remarks
Because CookieTokenV2 has a short expiration time and cannot be refreshed so far. It is evident that every few days, when logging in, it always requests authentication first. Therefore, this method that uses CookieTokenV2 is not suitable if filled statically.
Parameters
Name | Type | Description |
---|---|---|
options | IHoyoWikiOptions | The options to initialize the Hoyolab instance. |
Defined in
src/client/hoyowiki/hoyowiki.ts:36
Properties
hsr
• Readonly
hsr: HSRWiki
The HoyoLab API client for Honkai Star Rail Wiki.
Defined in
src/client/hoyowiki/hoyowiki.ts:22
lang
• lang: LanguageEnum
The language used for API responses.