17 lines
494 B
Python
17 lines
494 B
Python
from loguru import logger
|
|
import rapidjson as json
|
|
from API_TitleServer import apiSDGB
|
|
|
|
def implGetUser_(thing:str, userId:int, noLog=False) -> dict:
|
|
result = apiGetUserThing(userId, thing, noLog)
|
|
userthingDict = json.loads(result)
|
|
return userthingDict
|
|
|
|
def apiGetUserThing(userId:int, thing:str, noLog=False) -> str:
|
|
data = json.dumps({
|
|
"userId": userId
|
|
})
|
|
userthing_result = apiSDGB(data, "GetUser" + thing + "Api", userId, noLog)
|
|
return userthing_result
|
|
|