Skip to content

uploadGJAccComment20.php

Posts an account comment

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
commentThe comment's text, converted to URL-safe base64Yes
secretCommon Secret: Wmfd2893gb7Yes
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.2082 on 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
userNameThe name of the user
cTypeThe comment type. 0 for level (unused), 1 for account
chkThe comment chk

Response

Returns account comment ID if the comment was successfully posted, but a 500 error code if the comment is either left out or could not be posted. The following errors can also be returned:

  • -1 if the request was rejected
  • -10 if the user is permanently comment banned (directly by RobTop, prior to 2.11). This displays a message to contact support with the player's user ID.
  • temp_{time}_{reason} if the user is temporarily comment banned (by an Elder Moderator/RobTop), with time representing the number of seconds left until the user is unbanned. Traditionally, this value would be capped at 34 days and 22 hours, even if the ban was longer. If no ban reason is provided, the last section, including the underscore is omitted (temp_{time})

Example

Python

py
import requests

data = {
    "accountID": 173831, # DevExit's account ID
    "gjp2": "********", # This would be DevExit's password encoded with GJP2 encryption
    "comment": base64.b64encode(b"This comment was uploaded for the GD Docs!").decode(),
    "secret": "Wmfd2893gb7",
}

r = requests.post('https://www.boomlings.com/database/uploadGJAccComment20.php', data=data)
print(req.text)

Response

py
1772719