sendGJThreadMessage.php
Sends a message in an existing thread or starts a new thread. This endpoint has a cooldown of 20 messages per minute.
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 ID of the thread to send a message to. 0 if starting a new thread | |
body | The message body, converted to URL-safe base64 | |
isDM | 1 if starting a DM thread | |
toAccountID | If starting a DM thread, the account ID of the person the DM thread will be shared with, 0 otherwise | |
subject | If starting a group thread, the name of the thread encoded in URL-safe base64 | |
description | If starting a group thread, the description of the thread encoded in URL-safe base64 | |
emote | If starting a group thread, the emote used as the icon encoded in URL-safe base64 | |
targets | If starting a group thread, the account IDs of the people you want to invite, separated by commas and encoded in URL-safe base64 | |
token | Sent as the current UNIX timestamp (in seconds) left-shifted by 0x14 (20) | |
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 |
Response
Returns the thread ID and message ID separated by a colon : if the message was successfully posted. If you started a new DM thread, there will be an extra value that always seems to be 0. If you started a new group thread, there will be 2 extra values: the amount of people you invited and a value that always seems to be 0.
If you are not in the thread, returns a Custom Error Message with the title "Group Chat" and body "You are no longer in this group chat."
If the thread does not exist or there's another issue with your request, returns -1.
Example
Python
py
import requests
# This code gets the messages from a thread
data = {
"accountID": 26068292, # GMDAntiMatter's account ID
"gjp2": "********", # This would be GMDAntiMatter's password encoded with GJP2 encryption
"secret": "Wmfd2893gb7",
"body": "SGVsbG8gZnJvbSB0aGUgR0QgRG9jcyE=",
"threadID": 77519
}
req = requests.post("https://www.boomlings.com/database/sendGJThreadMessage.php", data=data)
print(req.text)Response
plain
77519:708508