Interface IHsrOptions

Represents the options for accessing the Hoyolab API.

interface IHsrOptions {
    cookie: string | Pick<ICookie,
        | "ltokenV2"
        | "ltuidV2"
        | "cookieToken"
        | "cookieTokenV2">;
    lang?: LanguageEnum;
    region?: HsrRegion;
    uid?: number;
}

Hierarchy (view full)

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.

region?: HsrRegion
uid?: number