Skip to content

muteGJUser.php ​

Mutes or unmutes a user from sending you notifications.

Parameters ​

ParameterExplanationRequired
targetAccountIDWho to mute / unmuteYes
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
mute1 to mute, 0 to unmute. If left out, defaults to 1
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

Response ​

Always 1 if the correct values are provided, even if the account does not exist.

However, if you mute a nonexistent account ID, your muted account list will break, displaying "Something went wrong".