23 lines
609 B
Python
23 lines
609 B
Python
import argparse
|
|
import json
|
|
|
|
from src.title import TitleCookie
|
|
from src import payload
|
|
|
|
def GetUserChargeApi(userId, cookie):
|
|
|
|
data = payload.GetUserData(userId)
|
|
|
|
res = TitleCookie(userId, "GetUserChargeApi", data, cookie)
|
|
|
|
return res
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser(description="Title GetUserChargeApi")
|
|
|
|
parser.add_argument("--userId", type=int, required=True, help="userId")
|
|
parser.add_argument("--cookie", type=str, required=True, help="cookie")
|
|
|
|
args = parser.parse_args()
|
|
print(GetUserChargeApi(args.userId, json.loads(args.cookie)))
|