Module genshin.client.clients
A simple HTTP client for API endpoints.
Classes
class Client (cookies: ForwardRef('http.cookies.BaseCookie[Any]') | Mapping[Any, Any] | str | Sequence[ForwardRef('http.cookies.BaseCookie[Any]') | Mapping[Any, Any] | str] | None = None,
*,
authkey: str | None = None,
lang: Literal['zh-cn', 'zh-tw', 'de-de', 'en-us', 'es-es', 'fr-fr', 'id-id', 'it-it', 'ja-jp', 'ko-kr', 'pt-pt', 'ru-ru', 'th-th', 'vi-vn', 'tr-tr'] = 'en-us',
region: Region = Region.OVERSEAS,
proxy: str | None = None,
game: Game | None = None,
uid: int | None = None,
hoyolab_id: int | None = None,
device_id: str | None = None,
device_fp: str | None = None,
headers: Mapping[str, str] | Mapping[multidict._multidict.istr, str] | multidict._multidict.CIMultiDict | multidict._multidict.CIMultiDictProxy | Iterable[Tuple[str | multidict._multidict.istr, str]] | None = None,
cache: BaseCache | None = None,
debug: bool = False,
on_cookie_update: Callable[[Mapping[str, str]], Awaitable[None] | None] | None = None)-
Expand source code
class Client( chronicle.BattleChronicleClient, hoyolab.HoyolabClient, daily.DailyRewardClient, calculator.CalculatorClient, diary.DiaryClient, lineup.LineupClient, card_plaza.CardPlazaClient, teapot.TeapotClient, wiki.WikiClient, gacha.WishClient, transaction.TransactionClient, auth.AuthClient, hsr_lineup.HSRLineupClient, hsr_warp_records.HSRWarpRecordsClient, ): """A simple HTTP client for API endpoints."""A simple HTTP client for API endpoints.
Ancestors
- BattleChronicleClient
- GenshinBattleChronicleClient
- HonkaiBattleChronicleClient
- StarRailBattleChronicleClient
- ZZZBattleChronicleClient
- BaseBattleChronicleClient
- HoyolabClient
- DailyRewardClient
- CalculatorClient
- DiaryClient
- LineupClient
- CardPlazaClient
- TeapotClient
- WikiClient
- WishClient
- TransactionClient
- AuthClient
- AppAuthClient
- WebAuthClient
- GameAuthClient
- HSRLineupClient
- HSRWarpRecordsClient
- BadgeLoginClient
- BaseClient
- abc.ABC
Subclasses
Inherited members
BattleChronicleClient:authkeychronicle_signal_historydebugdefault_gamedevice_fpdevice_idgamegenshin_accountsgenshin_tcgget_account_timezoneget_activitiesget_all_zzz_agent_upgrade_guidesget_annihilation_simulacrumget_anomaly_arbitrationget_apocalyptic_shadowget_bangboosget_deadly_assaultget_elysian_realmget_envisaged_echoesget_full_genshin_userget_full_honkai_userget_game_accountsget_genshin_activitiesget_genshin_charactersget_genshin_detailed_charactersget_genshin_event_calendarget_genshin_notesget_genshin_spiral_abyssget_genshin_tcg_matchesget_genshin_tcg_previewget_genshin_userget_honkai_abyssget_honkai_battlesuitsget_honkai_elysian_realmget_honkai_memorial_arenaget_honkai_notesget_honkai_old_abyssget_honkai_superstring_abyssget_honkai_userget_imaginarium_theaterget_lost_void_summaryget_memorial_arenaget_notesget_old_abyssget_partial_genshin_userget_record_cardget_record_cardsget_shiyu_defenseget_spiral_abyssget_starrail_apc_shadowget_starrail_challengeget_starrail_charactersget_starrail_event_calendarget_starrail_notesget_starrail_pure_fictionget_starrail_rogueget_starrail_userget_stygian_onslaughtget_superstring_abyssget_threshold_simulationget_threshold_simulation_briefget_zzz_agent_infoget_zzz_agent_upgrade_guideget_zzz_agentsget_zzz_diaryget_zzz_diary_detailget_zzz_event_calendarget_zzz_gacha_calendarget_zzz_gacha_infoget_zzz_notesget_zzz_upgrade_guide_agentsget_zzz_userhoyolab_idlangon_cookie_updateproxyregionrequestrequest_bbsrequest_game_recordrequest_hoyolabrequest_webstaticset_authkeyset_browser_cookiesset_cacheset_cookiesset_redis_cacheset_top_genshin_charactersset_visibilityuidupdate_settings
HoyolabClient:accompany_characterbuy_mimo_shop_itemcheck_in_communityclaim_mimo_task_rewarddelete_replydraw_mimo_lotteryfetch_mi18nfinish_mimo_taskget_accompany_character_detailsget_accompany_charactersget_accompany_voice_settingget_genshin_announcementsget_hoyolab_userget_mimo_gamesget_mimo_lottery_infoget_mimo_point_countget_mimo_point_historyget_mimo_shop_itemsget_mimo_tasksget_recommended_usersget_starrail_announcementsget_web_eventsget_zzz_announcementsjoin_topicleave_topicredeem_codereply_to_postsearch_usersset_accompany_voice_setting
DailyRewardClient:CalculatorClient:DiaryClient:LineupClient:CardPlazaClient:TeapotClient:WikiClient:WishClient:TransactionClient:AuthClient:HSRLineupClient:HSRWarpRecordsClient: