ecapi-sdk 3.4.4__tar.gz → 3.4.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.4.4
3
+ Version: 3.4.5
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.4.4"
7
+ version = "3.4.5"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -859,6 +859,10 @@ class PlayerAPI(_BaseApi):
859
859
  """获取玩家皮肤几何数据"""
860
860
  return self._get(f"/players/{quote(str(ecid), safe='')}/skin/geometry", None, **kwargs)
861
861
 
862
+ def get_social_profile(self, ecid: str, **kwargs: Any) -> Any:
863
+ """查询玩家社交关系概览"""
864
+ return self._get(f"/players/{quote(str(ecid), safe='')}/social-profile", None, **kwargs)
865
+
862
866
  def get_stage_record(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
863
867
  """分页查询玩家关卡记录"""
864
868
  return self._get(f"/players/{quote(str(ecid), safe='')}/stage-records", query, **kwargs)
@@ -871,6 +875,14 @@ class PlayerAPI(_BaseApi):
871
875
  """分页查询玩家钱包批次"""
872
876
  return self._get(f"/players/{quote(str(ecid), safe='')}/wallet/lots", query, **kwargs)
873
877
 
878
+ def list_friend_relations(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
879
+ """分页查询玩家好友关系"""
880
+ return self._get(f"/players/{quote(str(ecid), safe='')}/friend-relations", query, **kwargs)
881
+
882
+ def list_referrals(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
883
+ """分页查询玩家邀请记录"""
884
+ return self._get(f"/players/{quote(str(ecid), safe='')}/referrals", query, **kwargs)
885
+
874
886
  def search(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
875
887
  """查询玩家搜索命中列表"""
876
888
  return self._get(f"/players", query, **kwargs)
@@ -722,6 +722,14 @@ class PlayerAPIGetFarmOverviewQuery(TypedDict, total=False):
722
722
  class PlayerAPIGetFarmSummaryQuery(TypedDict, total=False):
723
723
  recentSpendLimit: QueryValue
724
724
 
725
+ class PlayerAPIListFriendRelationsQuery(TypedDict, total=False):
726
+ state: QueryValue
727
+ search: QueryValue
728
+ integrity: QueryValue
729
+ includePresence: QueryValue
730
+ current: QueryValue
731
+ pageSize: QueryValue
732
+
725
733
  class PlayerAPIGetFriendsQuery(TypedDict, total=False):
726
734
  state: QueryValue
727
735
  includePresence: QueryValue
@@ -734,6 +742,12 @@ class PlayerAPIGetHeadIconQuery(TypedDict, total=False):
734
742
  class PlayerAPIGetLastPlayedQuery(TypedDict, total=False):
735
743
  count: QueryValue
736
744
 
745
+ class PlayerAPIListReferralsQuery(TypedDict, total=False):
746
+ verification: QueryValue
747
+ search: QueryValue
748
+ current: QueryValue
749
+ pageSize: QueryValue
750
+
737
751
  class PlayerAPIGetStageRecordQueryRequired(TypedDict):
738
752
  startTime: QueryValue
739
753
  endTime: QueryValue
@@ -1322,9 +1336,12 @@ class PlayerAPI:
1322
1336
  def get_last_played(self, ecid: str, query: Optional[PlayerAPIGetLastPlayedQuery] = ..., **kwargs: Any) -> Any: ...
1323
1337
  def get_skin(self, ecid: str, **kwargs: Any) -> Any: ...
1324
1338
  def get_skin_geometry_data(self, ecid: str, **kwargs: Any) -> Any: ...
1339
+ def get_social_profile(self, ecid: str, **kwargs: Any) -> Any: ...
1325
1340
  def get_stage_record(self, ecid: str, query: PlayerAPIGetStageRecordQuery, **kwargs: Any) -> Any: ...
1326
1341
  def get_wallet(self, ecid: str, **kwargs: Any) -> Any: ...
1327
1342
  def get_wallet_lots(self, ecid: str, query: Optional[PlayerAPIGetWalletLotsQuery] = ..., **kwargs: Any) -> Any: ...
1343
+ def list_friend_relations(self, ecid: str, query: Optional[PlayerAPIListFriendRelationsQuery] = ..., **kwargs: Any) -> Any: ...
1344
+ def list_referrals(self, ecid: str, query: Optional[PlayerAPIListReferralsQuery] = ..., **kwargs: Any) -> Any: ...
1328
1345
  def search(self, query: PlayerAPISearchQuery, **kwargs: Any) -> Any: ...
1329
1346
 
1330
1347
  class PlayerEntitlementAPI:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.4.4
3
+ Version: 3.4.5
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes