diff --git a/GetUserPreviewApi.py b/GetUserPreviewApi.py index 4c9e967..6022cad 100644 --- a/GetUserPreviewApi.py +++ b/GetUserPreviewApi.py @@ -1,7 +1,7 @@ import argparse from src.title import Title -from src import aimedb, payload +from src import payload def GetUserPreviewApi(userId): @@ -15,10 +15,7 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description="Title GetUserPreviewApi") parser.add_argument("--userId", type=int, required=True, help="userId") - parser.add_argument("--accessCode", type=str, required=True, help="AiME Access Code") - parser.add_argument("--serial", type=str, required=True, help="AiME Serial Mifare Only now") args = parser.parse_args() - aimedb.CMD4(args.accessCode, args.serial) - print(GetUserPreviewApi(args.userId)) + print(GetUserPreviewApi(args.userId)[0]) diff --git a/README.md b/README.md index 7cd1427..91982dd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Kou -A Python 3 based「maimai DX International」title server interaction emulator. Inspired by Fragrance/eaquira. +A Python 3 based「maimai DX International」title server (1.65.00) interaction emulator. Inspired by Fragrance/eaquira. `SteamingAssets` dumped from .app file is required. Place it in the root of the project. @@ -8,6 +8,47 @@ A Python 3 based「maimai DX International」title server interaction emulator. Currently, Mifare AiME is the only supported type. +### `GetUserPreviewApi` + +#### Parameters & Returns + +| Parameter | Type | Required | +| :--- | :--- | :--- | +| `--userId` | `int` | Yes | + +Returns a string. Just the response from Title Server. + +#### Example + +```bash +python3 UserLogin.py \ + --userId 6964139 \ +``` +```json +{ + "userId": 6964139, + "userName": "TRG", + "isLogin": false, + "lastGameId": null, + "lastRomVersion": "1.65.00", + "lastDataVersion": "1.65.04", + "lastLoginDate": "2026-11-20 23:36:22", + "lastPlayDate": "2026-11-20 23:53:12", + "playerRating": 16666, + "nameplateId": 0, + "iconId": 10, + "trophyId": 0, + "isNetMember": 1, + "isInherit": false, + "totalAwake": 1734, + "dispRate": 0, + "dailyBonusDate": "1970-01-01 09:00:00", + "headPhoneVolume": null, + "banState": 1 +} +``` + + ### `UserLoginApi` #### Parameters & Returns @@ -30,10 +71,10 @@ python3 UserLogin.py \ --serial "00000000" \ --loginDateTime 1700000000 ``` -``` +```python [ - '{"returnCode":1,"lastLoginDate":"2026-11-21 11:09:25","loginCount":125,"consecutiveLoginCount":3,"loginId":7710449444398826983}', - '{"JSESSIONID": "85F1E8EABB944B94CB581BA05EC6A312"}' + '{"returnCode":1,"lastLoginDate":"2026-06-04 11:45:14","loginCount":8964,"consecutiveLoginCount":0,"loginId":198964}', + '{"JSESSIONID": "TRGISALEAKER"}' ] ``` --- @@ -62,17 +103,19 @@ python3 UserLogoutApi.py \ --loginDateTime 1700000000 \ --cookie '{"JSESSIONID":"TRGISALEAKER"}' ``` -``` -{'returnCode': 1} +```json +{"returnCode": 1} ``` --- -## 3. `GetUserDataApi` / `GetUserChargeApi` / `GetUserExtendApi` / `GetUserMissionDataApi` / `GetUserOptionApi` / `GetUserRatingApi` +### `GetUserDataApi` / `GetUserChargeApi` / `GetUserExtendApi` / `GetUserMissionDataApi` / `GetUserOptionApi` / `GetUserRatingApi` + +Requires running `UserLoginApi` first. These scripts share the same parameter signature, requiring only `--userId` and `--cookie`. -### Parameters +#### Parameters & Returns | Parameter | Type | Required | Notes | | :--- | :--- | :--- | :--- | @@ -81,7 +124,7 @@ These scripts share the same parameter signature, requiring only `--userId` and Returns a string. Just the response from Title Server. -### Examples +#### Examples ```bash python3 GetUserData.py \