Skip to content

updateGJThread.php ​

Performs a wide variety of actions on threads.

Parameters ​

ParameterExplanationRequired
accountIDThe player's account ID (not to be confused with user ID). Used for authorizationYes
gjp2The player's account password, encoded with GJP2. Used for authorizationYes
secretCommon Secret: Wmfd2893gb7Yes
threadIDThe thread to updateYes (except type 3)
modeThe type of action to perform, see valuesYes
valueAction-specific value. Always encoded in Base64Depends on mode
gameVersionA number representing the game's version. The current value is 22 for 2.2
binaryVersionA number representing the game's small version. The current value is 51 for 2.209 on PC and mobile
udidThe player's UDID (Unique Device Identifier). Used to identify unregistered users
uuidThe player's user ID. See the previous format here
dvsA 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
ModeDescriptionValue Description
1Clear message historyNot sent
2Rename threadThe new name
3Mark as readThread IDs to mark as read, separated by commas. The threadID param is sent as 0
4Invite usersList of account IDs, separated by commas
5Leave threadNot sent
6Kick memberAccount ID of the person you want to kick
7Transfer ownershipAccount ID of the new owner
8Accept inviteNot sent
9Ignore inviteNot sent
10Mute/unmute thread1 (MQ==) to mute, 0 (MA==) to unmute
11Take back inviteAccount ID of the person you want to take back the invite for
12Delete messageThe message ID
13Invite permissions1 (MQ==) for Owner Only, 0 (MA==) for Anyone
14Change descriptionThe new description
15Pin/unpin thread1 (MQ==) to pin, 0 (MA==) to unpin
16Change emote iconThe new emote to use as the icon
18Remove thread after getting kickedNot sent

Response ​

1 if successful, -1 otherwise.