Interface IHoyolabOptions

Represents the options for accessing the Hoyolab API.

interface IHoyolabOptions {
    cookie: string | Pick<ICookie,
        | "ltokenV2"
        | "ltuidV2"
        | "cookieToken"
        | "cookieTokenV2">;
    lang?: LanguageEnum;
}

Hierarchy (view full)

Properties

Properties

cookie: string | Pick<ICookie,
    | "ltokenV2"
    | "ltuidV2"
    | "cookieToken"
    | "cookieTokenV2">

The cookie used to authenticate the request. This can be either a string or an ICookie object.

The language to use for the request. This should be a value of LanguageEnum.