ecapi-sdk 3.3.19__tar.gz → 3.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk/client.py +8 -8
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk/client.pyi +16 -4
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/README.md +0 -0
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/setup.cfg +0 -0
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.19 → ecapi_sdk-3.4.0}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -816,6 +816,10 @@ class PlayerAPI(_BaseApi):
|
|
|
816
816
|
self.status = PlayerStatusAPI(http)
|
|
817
817
|
self.year_summary = PlayerYearSummaryAPI(http)
|
|
818
818
|
|
|
819
|
+
def get_daily_activity(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
820
|
+
"""查询玩家逐日活动事实"""
|
|
821
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/activity/daily", query, **kwargs)
|
|
822
|
+
|
|
819
823
|
def get_data(self, ecid: str, **kwargs: Any) -> Any:
|
|
820
824
|
"""获取玩家基础数据"""
|
|
821
825
|
return self._get(f"/players/{quote(str(ecid), safe='')}/data", None, **kwargs)
|
|
@@ -848,10 +852,6 @@ class PlayerAPI(_BaseApi):
|
|
|
848
852
|
"""获取最近游戏记录"""
|
|
849
853
|
return self._get(f"/players/{quote(str(ecid), safe='')}/last-played", query, **kwargs)
|
|
850
854
|
|
|
851
|
-
def get_online_duration(self, ecid: str, **kwargs: Any) -> Any:
|
|
852
|
-
"""查询玩家今日和最近七日在线时长"""
|
|
853
|
-
return self._get(f"/players/{quote(str(ecid), safe='')}/online-duration", None, **kwargs)
|
|
854
|
-
|
|
855
855
|
def get_skin(self, ecid: str, **kwargs: Any) -> Any:
|
|
856
856
|
"""获取玩家皮肤数据"""
|
|
857
857
|
return self._get(f"/players/{quote(str(ecid), safe='')}/skin", None, response_type="bytes", **kwargs)
|
|
@@ -908,14 +908,14 @@ class PlayerRankScoreAPI(_BaseApi):
|
|
|
908
908
|
return self._get(f"/players/{quote(str(ecid), safe='')}/rank-score", query, **kwargs)
|
|
909
909
|
|
|
910
910
|
class PlayerScoreAPI(_BaseApi):
|
|
911
|
+
def get_history(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
912
|
+
"""获取玩家历史对局分数"""
|
|
913
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/scores/history", query, **kwargs)
|
|
914
|
+
|
|
911
915
|
def get_score(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
912
916
|
"""获取玩家分数"""
|
|
913
917
|
return self._get(f"/players/{quote(str(ecid), safe='')}/scores", query, **kwargs)
|
|
914
918
|
|
|
915
|
-
def get_stages(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
916
|
-
"""获取玩家历史对局分数"""
|
|
917
|
-
return self._get(f"/players/{quote(str(ecid), safe='')}/scores/stages", query, **kwargs)
|
|
918
|
-
|
|
919
919
|
def get_win_rate(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
920
920
|
"""获取玩家胜率统计"""
|
|
921
921
|
return self._get(f"/players/{quote(str(ecid), safe='')}/scores/win-rate", query, **kwargs)
|
|
@@ -191,9 +191,10 @@ class ReplayAPICacheMapProfilesBody(TypedDict, total=False):
|
|
|
191
191
|
|
|
192
192
|
class ReplayAPIListReplayRecordsQueryRequired(TypedDict):
|
|
193
193
|
ecid: QueryValue
|
|
194
|
+
startTime: QueryValue
|
|
195
|
+
endTime: QueryValue
|
|
194
196
|
|
|
195
197
|
class ReplayAPIListReplayRecordsQuery(ReplayAPIListReplayRecordsQueryRequired, total=False):
|
|
196
|
-
days: QueryValue
|
|
197
198
|
current: QueryValue
|
|
198
199
|
pageSize: QueryValue
|
|
199
200
|
gamePrefix: QueryValue
|
|
@@ -674,6 +675,13 @@ class PlayerAPISearchQueryRequired(TypedDict):
|
|
|
674
675
|
class PlayerAPISearchQuery(PlayerAPISearchQueryRequired, total=False):
|
|
675
676
|
pass
|
|
676
677
|
|
|
678
|
+
class PlayerAPIGetDailyActivityQueryRequired(TypedDict):
|
|
679
|
+
startTime: QueryValue
|
|
680
|
+
endTime: QueryValue
|
|
681
|
+
|
|
682
|
+
class PlayerAPIGetDailyActivityQuery(PlayerAPIGetDailyActivityQueryRequired, total=False):
|
|
683
|
+
pass
|
|
684
|
+
|
|
677
685
|
class PlayerAPIGetFarmArchiveQuery(TypedDict, total=False):
|
|
678
686
|
current: QueryValue
|
|
679
687
|
pageSize: QueryValue
|
|
@@ -756,8 +764,12 @@ class PlayerScoreAPIGetScoreQuery(PlayerScoreAPIGetScoreQueryRequired, total=Fal
|
|
|
756
764
|
scoreType: QueryValue
|
|
757
765
|
deadlineType: QueryValue
|
|
758
766
|
|
|
759
|
-
class
|
|
767
|
+
class PlayerScoreAPIGetHistoryQuery(TypedDict, total=False):
|
|
760
768
|
game: QueryValue
|
|
769
|
+
startTime: QueryValue
|
|
770
|
+
endTime: QueryValue
|
|
771
|
+
current: QueryValue
|
|
772
|
+
pageSize: QueryValue
|
|
761
773
|
|
|
762
774
|
class PlayerScoreAPIGetWinRateQuery(TypedDict, total=False):
|
|
763
775
|
game: QueryValue
|
|
@@ -1264,6 +1276,7 @@ class PlayerAPI:
|
|
|
1264
1276
|
source_account: PlayerSourceAccountAPI
|
|
1265
1277
|
status: PlayerStatusAPI
|
|
1266
1278
|
year_summary: PlayerYearSummaryAPI
|
|
1279
|
+
def get_daily_activity(self, ecid: str, query: PlayerAPIGetDailyActivityQuery, **kwargs: Any) -> Any: ...
|
|
1267
1280
|
def get_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1268
1281
|
def get_farm_archive(self, ecid: str, query: Optional[PlayerAPIGetFarmArchiveQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1269
1282
|
def get_farm_freshness_batches(self, ecid: str, query: Optional[PlayerAPIGetFarmFreshnessBatchesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -1272,7 +1285,6 @@ class PlayerAPI:
|
|
|
1272
1285
|
def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1273
1286
|
def get_head_icon(self, ecid: str, query: Optional[PlayerAPIGetHeadIconQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1274
1287
|
def get_last_played(self, ecid: str, query: Optional[PlayerAPIGetLastPlayedQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1275
|
-
def get_online_duration(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1276
1288
|
def get_skin(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1277
1289
|
def get_skin_geometry_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1278
1290
|
def get_stage_record(self, ecid: str, query: PlayerAPIGetStageRecordQuery, **kwargs: Any) -> Any: ...
|
|
@@ -1294,8 +1306,8 @@ class PlayerRankScoreAPI:
|
|
|
1294
1306
|
def get_score(self, ecid: str, query: Optional[PlayerRankScoreAPIGetScoreQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1295
1307
|
|
|
1296
1308
|
class PlayerScoreAPI:
|
|
1309
|
+
def get_history(self, ecid: str, query: Optional[PlayerScoreAPIGetHistoryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1297
1310
|
def get_score(self, ecid: str, query: PlayerScoreAPIGetScoreQuery, **kwargs: Any) -> Any: ...
|
|
1298
|
-
def get_stages(self, ecid: str, query: Optional[PlayerScoreAPIGetStagesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1299
1311
|
def get_win_rate(self, ecid: str, query: Optional[PlayerScoreAPIGetWinRateQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1300
1312
|
|
|
1301
1313
|
class PlayerSourceAccountAPI:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|