Skip to content

uploadGJComment21.php

Uploads a comment to a user level.

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
userNameThe commenter's usernameYes
commentThe comment, converted to URL-safe base64Yes
secretCommon Secret: Wmfd2893gb7Yes
levelIDThe ID of the level to comment on. If commenting on a list, the ID should be negativeYes
percentThe level percentage shown on the commentYes
chkuserName + comment + levelID + percentYes
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 47 for 2.2081 on PC and 48 for 2.208 on mobile
udidThe player's UDID (Unique Device Identifier). Used to identify unregistered users
uuidIn modern versions, this is sent as the user ID. See the previous format here
dvsA number added in 2.208 representing the device 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 ID of the posted comment, or -1 if the request was rejected.

Example

Python

py
import requests

# With this code, DevExit is posting the comment "Hello from the GDDocs!" to 62687277

chk = generate_chk(key="29481", values=["devexit", "SGVsbG8gZnJvbSB0aGUgR0REb2NzIQ==", 62687277, 69], salt="0xPT6iUrtws0J")
# These values can be found in the XOR and CHK pages

data = {
    "accountID": 173831, # DevExit's account ID
    "gjp2": "********", # This would be DevExit's password encoded with GJP2 encryption
    "userName": "devexit",
    "comment": "SGVsbG8gZnJvbSB0aGUgR0REb2NzIQ==", # "Hello from the GDDocs!"
    "levelID": 62687277,
    "percent": 69,
    "chk": chk,
    "secret": "Wmfd2893gb7"
}

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

Response

py
31444784