Skip to content

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 ​

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 ID of the thread to send a message to. 0 if starting a new thread
bodyThe message body, converted to URL-safe base64
isDM1 if starting a DM thread
toAccountIDIf starting a DM thread, the account ID of the person the DM thread will be shared with, 0 otherwise
subjectIf starting a group thread, the name of the thread encoded in URL-safe base64
descriptionIf starting a group thread, the description of the thread encoded in URL-safe base64
emoteIf starting a group thread, the emote used as the icon encoded in URL-safe base64
targetsIf starting a group thread, the account IDs of the people you want to invite, separated by commas and encoded in URL-safe base64
tokenSent as the current UNIX timestamp (in seconds) left-shifted by 0x14 (20)
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 ​

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