add cookie & a few apis
This commit is contained in:
1 parent
64fc2a5e2a
commit
7139bd0951
15 files changed
+836
-38
No files matched your search
+10
-14
@@ -3,7 +3,15 @@ import argparse
|
||||
from src.title import Title
|
||||
from src import aimedb, payload
|
||||
|
||||
def GetUserPreviewApi():
|
||||
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")
|
||||
@@ -12,17 +20,5 @@ def GetUserPreviewApi():
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
data = payload.GetUserPreview(args.userId)
|
||||
|
||||
aimedb.CMD4(args.accessCode, args.serial)
|
||||
|
||||
res = Title(
|
||||
userId=args.userId,
|
||||
ApiType="GetUserPreviewApi",
|
||||
data = data
|
||||
)
|
||||
|
||||
return res
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(GetUserPreviewApi())
|
||||
print(GetUserPreviewApi(args.userId))
|
||||
Reference in new issue
Block a user