fix: make 2024 api easier to use
This commit is contained in:
@@ -7,7 +7,6 @@ from API_TitleServer import apiSDGB
|
||||
def apiGetUserPreview(userId, noLog: bool = False) -> str:
|
||||
data = json.dumps({"userId": int(userId)})
|
||||
preview_result = apiSDGB(data, "GetUserPreviewApi", userId, noLog)
|
||||
print(apiSDGB("{}", "Ping", userId, noLog))
|
||||
return preview_result
|
||||
|
||||
|
||||
@@ -16,3 +15,4 @@ if __name__ == "__main__":
|
||||
userId = input("请输入用户 ID:")
|
||||
# userId = testUid8
|
||||
print(apiGetUserPreview(userId))
|
||||
print(apiSDGB("{}", "Ping", userId, False))
|
||||
|
||||
Reference in New Issue
Block a user