22 lines
471 B
Python
22 lines
471 B
Python
import argparse
|
|
|
|
from src.title import Title
|
|
from src import payload
|
|
|
|
def GetUserPreviewApi(userId):
|
|
|
|
data = payload.GetUserPreview(userId)
|
|
|
|
res = Title(userId, "GetUserPreviewApi", data)
|
|
|
|
return res
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser(description="Title GetUserPreviewApi")
|
|
|
|
parser.add_argument("--userId", type=int, required=True, help="userId")
|
|
|
|
args = parser.parse_args()
|
|
|
|
print(GetUserPreviewApi(args.userId)[0])
|