Skip to content

getGJThreads.php ​

Gets a user's message 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
pageThe page of threads you want to fetch, starting from 0. Defaults to the first if left out
filterWhich threads to show: 0 for all (default), 1 for DM, 2 for Group
removedUnknown, always sent as 1
userFilter for threads that have these users. Comma-separated list of account IDs
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 ​

A list of Thread Objects separated by pipes |. This is then followed by page info, separated from the threads by #.

The page info has 5 values separated with colons :, which are:

  • total - total number of levels for the query
  • offset - offset from which the current page starts
  • amount - number of levels per page (always 10 for the gd servers)
  • invites - the amount of new invites
  • interval - how often to refresh threads (in seconds). The GD server sets this to 60

Example ​

Python ​

py
import requests

# This code gets the threads GMDAntiMatter has

data = {
    "accountID": 26068292, # GMDAntiMatter's account ID
    "gjp2": "********", # This would be GMDAntiMatter's password encoded with GJP2 encryption
    "secret": "Wmfd2893gb7"
}

req = requests.post("https://www.boomlings.com/database/getGJThreads.php", data=data)
print(req.text)

Response

plain
49028:0::OmV5ZXM6:0:26068292:12 minutes:3::26068292:0:0:0:0:0:0:0:0:0:0:0:dGVzdHR0dHQ=:globe:1792167374:0:0|53803:44153388:YWlBc3Npc3RhbnQ=::0:44153388:12 hours:2:YWlBc3Npc3RhbnQ=:44153388:0:0:1:0:0:1:2:3:0:0:0:::1792174565:0:0#2:0:20:0:60