updateGJThread.php
Performs a wide variety of actions on threads.
Parameters
| Parameter | Explanation | Required |
|---|---|---|
accountID | The player's account ID (not to be confused with user ID). Used for authorization | Yes |
gjp2 | The player's account password, encoded with GJP2. Used for authorization | Yes |
secret | Common Secret: Wmfd2893gb7 | Yes |
threadID | The thread to update | Yes (except type 3) |
mode | The type of action to perform, see values | Yes |
value | Action-specific value. Always encoded in Base64 | Depends on mode |
gameVersion | A number representing the game's version. The current value is 22 for 2.2 | |
binaryVersion | A number representing the game's small version. The current value is 51 for 2.209 on PC and mobile | |
udid | The player's UDID (Unique Device Identifier). Used to identify unregistered users | |
uuid | The player's user ID. See the previous format here | |
dvs | A number representing the OS platform the player is using. Corresponds to the Cocos2d CC_TARGET_PLATFORM macro: 1 for iOS, 2 for Android, 3 for Windows, 8 for macOS |
mode
| Mode | Description | Value Description |
|---|---|---|
1 | Clear message history | Not sent |
2 | Rename thread | The new name |
3 | Mark as read | Thread IDs to mark as read, separated by commas. The threadID param is sent as 0 |
4 | Invite users | List of account IDs, separated by commas |
5 | Leave thread | Not sent |
6 | Kick member | Account ID of the person you want to kick |
7 | Transfer ownership | Account ID of the new owner |
8 | Accept invite | Not sent |
9 | Ignore invite | Not sent |
10 | Mute/unmute thread | 1 (MQ==) to mute, 0 (MA==) to unmute |
11 | Take back invite | Account ID of the person you want to take back the invite for |
12 | Delete message | The message ID |
13 | Invite permissions | 1 (MQ==) for Owner Only, 0 (MA==) for Anyone |
14 | Change description | The new description |
15 | Pin/unpin thread | 1 (MQ==) to pin, 0 (MA==) to unpin |
16 | Change emote icon | The new emote to use as the icon |
18 | Remove thread after getting kicked | Not sent |
Response
1 if successful, -1 otherwise.
