Daily Reward Client
DailyRewardClient
Daily reward component.
Methods:
-
claim_daily_reward–Signs into hoyolab and claims the daily reward.
-
claimed_rewards–Get all claimed rewards for the current user.
-
get_monthly_rewards–Get a list of all availible rewards for the current month.
-
get_reward_info–Get the daily reward info for the current user.
-
request_daily_reward–Make a request towards the daily reward endpoint.
claim_daily_reward
async
claim_daily_reward(*, game: Optional[Game] = None, lang: Optional[str] = None, reward: bool = True, challenge: Optional[Mapping[str, str]] = None) -> Optional[DailyReward]
Signs into hoyolab and claims the daily reward.
claimed_rewards
claimed_rewards(*, limit: Optional[int] = None, game: Optional[Game] = None, lang: Optional[str] = None) -> Paginator[ClaimedDailyReward]
Get all claimed rewards for the current user.
get_monthly_rewards
async
get_monthly_rewards(*, game: Optional[Game] = None, lang: Optional[str] = None) -> Sequence[DailyReward]
Get a list of all availible rewards for the current month.
get_reward_info
async
get_reward_info(*, game: Optional[Game] = None, lang: Optional[str] = None) -> DailyRewardInfo
Get the daily reward info for the current user.
request_daily_reward
async
request_daily_reward(endpoint: str, *, game: Optional[Game] = None, method: str = 'GET', lang: Optional[str] = None, params: Optional[Mapping[str, Any]] = None, headers: Optional[LooseHeaders] = None, challenge: Optional[Mapping[str, str]] = None, **kwargs: Any) -> Mapping[str, Any]
Make a request towards the daily reward endpoint.