deleteGJMessages20.php
Deletes a message between two users.
Parameters
| Parameter | Explanation |
|---|---|
accountID * | The player's account ID (not to be confused with user ID). Used for authorization |
gjp2 * | The player's account password, encoded with GJP2. Used for authorization |
messageID ? c | ID of the message being deleted Required when: the messages parameter is not sentSent when: only one message is removed |
messages ? c | IDs of the messages being deleted, separated with , Required when: the messageID parameter is not sentSent when: more than one message is removed |
secret * | Common Secret: Wmfd2893gb7 |
isSender ? c | Whether you're the message author Required when: you are the message author Sent when required |
gameVersion a | A number representing the game's version. The current value is 22 for 2.2 |
binaryVersion a | A number representing the game's small version. The current value is 51 for 2.209 on PC and mobile |
udid a | The player's UDID (Unique Device Identifier). Used to identify unregistered users |
uuid a | The player's user ID. See the previous format here |
dvs a | 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 |
- * - Required.
- ? - Conditionally required.
- a - Always sent by the client.
- c - Sent conditionally by the client.
Response
Always returns 1, regardless of whether the message was deleted or not.
Example
Python
py
import requests
# With this code, DevExit is deleting a message with the ID 3141592
# DevExit received this message, and therefore the isSender parameter is not needed
data = {
"accountID": 173831, # DevExit's account ID
"gjp2": "********", # This would be DevExit's password encoded with GJP2 encryption
"messageID": 3141592,
"secret": "Wmfd2893gb7"
}
req = requests.post("https://www.boomlings.com/database/deleteGJMessages20.php", data=data)
print(req.text)Response
py
1