@@ -4,17 +4,17 @@ All URIs are relative to *https://uapis.cn/api/v1*
44
55Method | HTTP request | Description
66------------- | ------------- | -------------
7- [ ** get_game_epic_free** ] ( GameApi.md#get_game_epic_free ) | ** GET** /game/epic-free | 获取Epic Games免费游戏
8- [ ** get_game_minecraft_historyid** ] ( GameApi.md#get_game_minecraft_historyid ) | ** GET** /game/minecraft/historyid | 查询Minecraft玩家历史用户名
9- [ ** get_game_minecraft_serverstatus** ] ( GameApi.md#get_game_minecraft_serverstatus ) | ** GET** /game/minecraft/serverstatus | 查询Minecraft服务器状态
10- [ ** get_game_minecraft_userinfo** ] ( GameApi.md#get_game_minecraft_userinfo ) | ** GET** /game/minecraft/userinfo | 查询Minecraft玩家信息
11- [ ** get_game_steam_summary** ] ( GameApi.md#get_game_steam_summary ) | ** GET** /game/steam/summary | 获取Steam用户公开摘要
7+ [ ** get_game_epic_free** ] ( GameApi.md#get_game_epic_free ) | ** GET** /game/epic-free | Epic 免费游戏
8+ [ ** get_game_minecraft_historyid** ] ( GameApi.md#get_game_minecraft_historyid ) | ** GET** /game/minecraft/historyid | 查询 MC 曾用名
9+ [ ** get_game_minecraft_serverstatus** ] ( GameApi.md#get_game_minecraft_serverstatus ) | ** GET** /game/minecraft/serverstatus | 查询 MC 服务器
10+ [ ** get_game_minecraft_userinfo** ] ( GameApi.md#get_game_minecraft_userinfo ) | ** GET** /game/minecraft/userinfo | 查询 MC 玩家
11+ [ ** get_game_steam_summary** ] ( GameApi.md#get_game_steam_summary ) | ** GET** /game/steam/summary | 查询 Steam 用户
1212
1313
1414# ** get_game_epic_free**
1515> GetGameEpicFree200Response get_game_epic_free()
1616
17- 获取Epic Games免费游戏
17+ Epic 免费游戏
1818
1919白嫖党的福音来了!想第一时间知道Epic商店本周送了哪些游戏大作吗?
2020
@@ -53,7 +53,7 @@ with uapi.ApiClient(configuration) as api_client:
5353 api_instance = uapi.GameApi(api_client)
5454
5555 try :
56- # 获取Epic Games免费游戏
56+ # Epic 免费游戏
5757 api_response = api_instance.get_game_epic_free()
5858 print (" The response of GameApi->get_game_epic_free:\n " )
5959 pprint(api_response)
@@ -90,19 +90,25 @@ No authorization required
9090[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
9191
9292# ** get_game_minecraft_historyid**
93- > GetGameMinecraftHistoryid200Response get_game_minecraft_historyid(uuid)
93+ > GetGameMinecraftHistoryid200Response get_game_minecraft_historyid(name=name, uuid= uuid)
9494
95- 查询Minecraft玩家历史用户名
95+ 查询 MC 曾用名
9696
9797想知道某个大佬以前叫什么名字吗?这个接口可以帮你追溯一个 Minecraft 玩家的“黑历史”!
9898
9999## 功能概述
100- 通过提供一个玩家的 UUID,你可以获取到该玩家所有曾用名及其变更时间的列表。这对于识别回归的老玩家或者社区管理非常有用。
100+ 通过提供玩家的用户名或 UUID,你可以获取到该玩家所有曾用名及其变更时间的列表。这对于识别回归的老玩家或者社区管理非常有用。
101101
102102## 使用须知
103103> [ !NOTE]
104- > ** UUID 格式**
105- > 查询时,请务必提供玩家的 ** 32位无破折号** Minecraft UUID,例如 ` ee9b4ed1aac1491eb7611471be374b80 ` 。
104+ > ** 参数说明**
105+ > - ` name ` 和 ` uuid ` 二选一
106+ > - UUID 支持带连字符(如 ` ee9b4ed1-aac1-491e-b761-1471be374b80 ` )或不带连字符格式
107+
108+ > [ !IMPORTANT]
109+ > ** 响应结构差异**
110+ > - 使用 ` uuid ` 查询:返回单个用户的历史记录
111+ > - 使用 ` name ` 查询:返回所有匹配用户的列表(包括当前用户名或曾用名匹配的玩家),需判断响应中是否有 ` results ` 字段来区分两种模式
106112
107113### Example
108114
@@ -124,11 +130,12 @@ configuration = uapi.Configuration(
124130with uapi.ApiClient(configuration) as api_client:
125131 # Create an instance of the API class
126132 api_instance = uapi.GameApi(api_client)
127- uuid = ' ee9b4ed1aac1491eb7611471be374b80' # str | 玩家的 Minecraft UUID,请务必使用32位无破折号的格式。
133+ name = ' ExamplePlayer' # str | 玩家的 Minecraft 用户名。使用此参数查询时,会返回所有匹配用户的列表(包括当前用户名或曾用名匹配的玩家)。 (optional)
134+ uuid = ' ee9b4ed1-aac1-491e-b761-1471be374b80' # str | 玩家的 Minecraft UUID,支持带连字符或不带连字符格式。 (optional)
128135
129136 try :
130- # 查询Minecraft玩家历史用户名
131- api_response = api_instance.get_game_minecraft_historyid(uuid)
137+ # 查询 MC 曾用名
138+ api_response = api_instance.get_game_minecraft_historyid(name = name, uuid = uuid)
132139 print (" The response of GameApi->get_game_minecraft_historyid:\n " )
133140 pprint(api_response)
134141 except Exception as e:
@@ -142,7 +149,8 @@ with uapi.ApiClient(configuration) as api_client:
142149
143150Name | Type | Description | Notes
144151------------- | ------------- | ------------- | -------------
145- ** uuid** | ** str** | 玩家的 Minecraft UUID,请务必使用32位无破折号的格式。 |
152+ ** name** | ** str** | 玩家的 Minecraft 用户名。使用此参数查询时,会返回所有匹配用户的列表(包括当前用户名或曾用名匹配的玩家)。 | [ optional]
153+ ** uuid** | ** str** | 玩家的 Minecraft UUID,支持带连字符或不带连字符格式。 | [ optional]
146154
147155### Return type
148156
@@ -161,17 +169,17 @@ No authorization required
161169
162170| Status code | Description | Response headers |
163171| -------------| -------------| ------------------|
164- ** 200** | 查询成功!返回该玩家的完整用户名历史记录。 | - |
165- ** 400** | 请求失败。请检查你是否提供了 ` ; uuid` ; 参数,以及它的格式是否为32位无破折号字符串 。 | - |
172+ ** 200** | 查询成功!根据查询方式返回不同结构: - ** uuid 查询 ** :返回单个用户的历史记录 - ** name 查询 ** :返回匹配用户列表(判断响应中是否有 &#x 60 ; results &#x 60 ; 字段来区分) | - |
173+ ** 400** | 请求失败。请检查你是否提供了 ` ; name &#x 60 ; 或 &#x 60 ; uuid` ; 参数中的至少一个 。 | - |
166174** 404** | 用户未找到。我们根据你提供的 UUID 未能找到对应的 Minecraft 玩家。请确认 UUID 是否正确。 | - |
167- ** 502** | 上游服务错误。在向 Mojang 的官方 API 请求数据时遇到了问题。这可能是他们的服务暂时中断 ,请稍后重试。 | - |
175+ ** 502** | 服务暂时不可用 ,请稍后重试。 | - |
168176
169177[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
170178
171179# ** get_game_minecraft_serverstatus**
172180> GetGameMinecraftServerstatus200Response get_game_minecraft_serverstatus(server)
173181
174- 查询Minecraft服务器状态
182+ 查询 MC 服务器
175183
176184想在加入服务器前看看有多少人在线?或者检查一下服务器开没开?用这个接口就对了!
177185
@@ -201,7 +209,7 @@ with uapi.ApiClient(configuration) as api_client:
201209 server = ' hypixel.net' # str | Minecraft服务器的地址,可以是域名(如 `hypixel.net`)或 `IP:端口` 的形式(如 `mc.example.com:25565`)。如果省略端口,将默认使用 `25565`。
202210
203211 try :
204- # 查询Minecraft服务器状态
212+ # 查询 MC 服务器
205213 api_response = api_instance.get_game_minecraft_serverstatus(server)
206214 print (" The response of GameApi->get_game_minecraft_serverstatus:\n " )
207215 pprint(api_response)
@@ -245,7 +253,7 @@ No authorization required
245253# ** get_game_minecraft_userinfo**
246254> GetGameMinecraftUserinfo200Response get_game_minecraft_userinfo(username)
247255
248- 查询Minecraft玩家信息
256+ 查询 MC 玩家
249257
250258只需要一个玩家的用户名,就能快速获取到他的正版皮肤和独一无二的UUID!
251259
@@ -275,7 +283,7 @@ with uapi.ApiClient(configuration) as api_client:
275283 username = ' Notch' # str | 玩家的 Minecraft 游戏内名称(正版ID)。
276284
277285 try :
278- # 查询Minecraft玩家信息
286+ # 查询 MC 玩家
279287 api_response = api_instance.get_game_minecraft_userinfo(username)
280288 print (" The response of GameApi->get_game_minecraft_userinfo:\n " )
281289 pprint(api_response)
@@ -319,7 +327,7 @@ No authorization required
319327# ** get_game_steam_summary**
320328> GetGameSteamSummary200Response get_game_steam_summary(steamid=steamid, id=id, id3=id3, key=key)
321329
322- 获取Steam用户公开摘要
330+ 查询 Steam 用户
323331
324332想在你的网站或应用中展示用户的 Steam 个人资料?这个接口就是为你准备的。
325333
@@ -370,7 +378,7 @@ with uapi.ApiClient(configuration) as api_client:
370378 key = ' key_example' # str | 你的 Steam Web API Key。这是一个可选参数,如果提供,它将覆盖我们在后端配置的全局Key。这为你提供了更大的灵活性,但请务必注意Key的保密,不要在前端暴露。 (optional)
371379
372380 try :
373- # 获取Steam用户公开摘要
381+ # 查询 Steam 用户
374382 api_response = api_instance.get_game_steam_summary(steamid = steamid, id = id , id3 = id3, key = key)
375383 print (" The response of GameApi->get_game_steam_summary:\n " )
376384 pprint(api_response)
0 commit comments