Module genshin.client.clients
A simple HTTP client for API endpoints.
Classes
class Client (cookies: Union[ForwardRef('http.cookies.BaseCookie[Any]'), Mapping[Any, Any], str, Sequence[Union[ForwardRef('http.cookies.BaseCookie[Any]'), Mapping[Any, Any], str]], ForwardRef(None)] = None, *, authkey: Optional[str] = None, lang: str = 'en-us', region: Region = Region.OVERSEAS, proxy: Optional[str] = None, game: Optional[Game] = None, uid: Optional[int] = None, hoyolab_id: Optional[int] = None, device_id: Optional[str] = None, device_fp: Optional[str] = None, headers: Union[Mapping[str, str], Mapping[multidict._multidict.istr, str], multidict._multidict.CIMultiDict, multidict._multidict.CIMultiDictProxy, Iterable[Tuple[Union[str, multidict._multidict.istr], str]], ForwardRef(None)] = None, cache: Optional[BaseCache] = None, debug: bool = False)
-
A simple HTTP client for API endpoints.
Expand source code
class Client( chronicle.BattleChronicleClient, hoyolab.HoyolabClient, daily.DailyRewardClient, calculator.CalculatorClient, diary.DiaryClient, lineup.LineupClient, teapot.TeapotClient, wiki.WikiClient, gacha.WishClient, transaction.TransactionClient, auth.AuthClient, ): """A simple HTTP client for API endpoints."""
Ancestors
- BattleChronicleClient
- GenshinBattleChronicleClient
- HonkaiBattleChronicleClient
- StarRailBattleChronicleClient
- ZZZBattleChronicleClient
- BaseBattleChronicleClient
- HoyolabClient
- DailyRewardClient
- CalculatorClient
- DiaryClient
- LineupClient
- TeapotClient
- WikiClient
- WishClient
- TransactionClient
- AuthClient
- AppAuthClient
- WebAuthClient
- GameAuthClient
- BaseClient
- abc.ABC
Subclasses
Class variables
var logger : logging.Logger
Instance variables
var authkeys : dict[Game, str]
var cache : BaseCache
var custom_headers : multidict._multidict.CIMultiDict[str]
var uids : dict[Game, int]
Inherited members
BattleChronicleClient
:authkey
debug
default_game
device_fp
device_id
game
genshin_accounts
genshin_tcg
get_activities
get_bangboos
get_elysian_realm
get_full_genshin_user
get_full_honkai_user
get_game_accounts
get_genshin_activities
get_genshin_characters
get_genshin_detailed_characters
get_genshin_notes
get_genshin_spiral_abyss
get_genshin_tcg_preview
get_genshin_user
get_honkai_abyss
get_honkai_battlesuits
get_honkai_elysian_realm
get_honkai_memorial_arena
get_honkai_notes
get_honkai_old_abyss
get_honkai_superstring_abyss
get_honkai_user
get_imaginarium_theater
get_memorial_arena
get_notes
get_old_abyss
get_partial_genshin_user
get_record_card
get_record_cards
get_shiyu_defense
get_spiral_abyss
get_starrail_apc_shadow
get_starrail_challenge
get_starrail_characters
get_starrail_event_calendar
get_starrail_notes
get_starrail_pure_fiction
get_starrail_rogue
get_starrail_user
get_superstring_abyss
get_zzz_agent_info
get_zzz_agents
get_zzz_diary
get_zzz_diary_detail
get_zzz_notes
get_zzz_user
hoyolab_id
lang
proxy
region
request
request_bbs
request_game_record
request_hoyolab
request_webstatic
set_authkey
set_browser_cookies
set_cache
set_cookies
set_redis_cache
set_top_genshin_characters
set_visibility
uid
update_settings
HoyolabClient
:DailyRewardClient
:CalculatorClient
:DiaryClient
:LineupClient
:TeapotClient
:WikiClient
:WishClient
:TransactionClient
:AuthClient
: