update README & remove aimedb interaction in GetUserPreviewApi
This commit is contained in:
1 parent
400413df45
commit
6fb1ce1839
2 files changed
+54
-14
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from src.title import Title
|
from src.title import Title
|
||||||
from src import aimedb, payload
|
from src import payload
|
||||||
|
|
||||||
def GetUserPreviewApi(userId):
|
def GetUserPreviewApi(userId):
|
||||||
|
|
||||||
@@ -15,10 +15,7 @@ if __name__ == "__main__":
|
|||||||
parser = argparse.ArgumentParser(description="Title GetUserPreviewApi")
|
parser = argparse.ArgumentParser(description="Title GetUserPreviewApi")
|
||||||
|
|
||||||
parser.add_argument("--userId", type=int, required=True, help="userId")
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
aimedb.CMD4(args.accessCode, args.serial)
|
print(GetUserPreviewApi(args.userId)[0])
|
||||||
print(GetUserPreviewApi(args.userId))
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# Kou
|
# 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.
|
`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.
|
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`
|
### `UserLoginApi`
|
||||||
|
|
||||||
#### Parameters & Returns
|
#### Parameters & Returns
|
||||||
@@ -30,10 +71,10 @@ python3 UserLogin.py \
|
|||||||
--serial "00000000" \
|
--serial "00000000" \
|
||||||
--loginDateTime 1700000000
|
--loginDateTime 1700000000
|
||||||
```
|
```
|
||||||
```
|
```python
|
||||||
[
|
[
|
||||||
'{"returnCode":1,"lastLoginDate":"2026-11-21 11:09:25","loginCount":125,"consecutiveLoginCount":3,"loginId":7710449444398826983}',
|
'{"returnCode":1,"lastLoginDate":"2026-06-04 11:45:14","loginCount":8964,"consecutiveLoginCount":0,"loginId":198964}',
|
||||||
'{"JSESSIONID": "85F1E8EABB944B94CB581BA05EC6A312"}'
|
'{"JSESSIONID": "TRGISALEAKER"}'
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
@@ -62,17 +103,19 @@ python3 UserLogoutApi.py \
|
|||||||
--loginDateTime 1700000000 \
|
--loginDateTime 1700000000 \
|
||||||
--cookie '{"JSESSIONID":"TRGISALEAKER"}'
|
--cookie '{"JSESSIONID":"TRGISALEAKER"}'
|
||||||
```
|
```
|
||||||
```
|
```json
|
||||||
{'returnCode': 1}
|
{"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`.
|
These scripts share the same parameter signature, requiring only `--userId` and `--cookie`.
|
||||||
|
|
||||||
### Parameters
|
#### Parameters & Returns
|
||||||
|
|
||||||
| Parameter | Type | Required | Notes |
|
| 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.
|
Returns a string. Just the response from Title Server.
|
||||||
|
|
||||||
### Examples
|
#### Examples
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 GetUserData.py \
|
python3 GetUserData.py \
|
||||||
|
|||||||
Reference in new issue
Block a user