chore: add get b50

This commit is contained in:
mokurin000
2025-07-31 21:55:23 +08:00
parent e1c51f255f
commit 626f33097b

18
GetRating.py Normal file
View File

@@ -0,0 +1,18 @@
# 获取用户简略预览数据的 API 实现,此 API 无需任何登录即可调取
import rapidjson as json
from API_TitleServer import apiSDGB
def apiGetUserPreview(userId, noLog: bool = False) -> str:
data = json.dumps({"userId": int(userId)})
preview_result = apiSDGB(data, "GetUserRatingApi", userId, noLog)
return preview_result
# CLI 示例
if __name__ == "__main__":
userId = input("请输入用户 ID")
# userId = testUid8
print(apiGetUserPreview(userId))
print(apiSDGB("{}", "Ping", userId, False))