add GetUserMusicApi & fix wrong in payload & add type args in UserLogoutApi & update README.md
This commit is contained in:
1 parent
7139bd0951
commit
400413df45
4 files changed
+158
-15
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import argparse
|
||||
import json
|
||||
|
||||
from src.title import TitleCookie
|
||||
from src import payload
|
||||
|
||||
def GetUserMusicApi(userId, musicId, cookie):
|
||||
|
||||
data = payload.GetUserMusic(userId, musicId)
|
||||
|
||||
res = TitleCookie(userId, "GetUserMusicApi", data, cookie)
|
||||
|
||||
return res
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Title GetUserMusicApi")
|
||||
|
||||
parser.add_argument("--userId", type=int, required=True, help="userId")
|
||||
parser.add_argument("--musicId", type=int, required=True, help="musicId")
|
||||
parser.add_argument("--cookie", type=str, required=True, help="cookie")
|
||||
|
||||
args = parser.parse_args()
|
||||
print(GetUserMusicApi(args.userId, args.musicId, json.loads(args.cookie)))
|
||||
Reference in new issue
Block a user