Skip to content

getGJNotifications.php ​

Fetches your notifications.

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
maskBit mask for enabled/disabled notification types, see below for details. Defaults to 65535 (all enabled) if left out
pageWhich page of notifications you want, starting at 0. Defaults to the first if left out
totalThe amount of notifications to fetch, defaults to 10. Seemingly has no upper boundary
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

Bit Mask ​

The mask parameter represents which notification types are enabled/disabled. As of now there are 6 toggleable notification types:

XXXXXXXXX365X421

  • 1 - Friend Uploads
  • 2 - Followed Uploads
  • 3 - Friend Rates
  • 4 - Downloads
  • 5 - Followers
  • 6 - Friend Accepts
  • X - always 1, no effect if set to 0

Response ​

The Notification Objects, separated by pipes |. After that, a # separates the page info, which is in the format total:offset:amount where total is the total number of notifications for the query, offset is the offset from which the current page starts and amount is the number of notifications per page.

Example Response ​

1:238895:2:15:3:star:4:UmF0ZWQh:5:PGNnPjFNYWRKYWNrMTwvYz4ncyBsZXZlbCA8Y3k-U0hVU0g8L2M-IGlzIG5vdyA8Y3M-UmF0ZWQ8L2M-IQ==:6:1 week:7:0:8:1:9:149626560:10::11:0:12:0:13:0:14:0:15:14452988:16:1MadJack1|1:238513:2:15:3:epic:4:RXBpYyE=:5:PGNnPnJvYWRraWxsZXI8L2M-J3MgbGV2ZWwgPGN5PmtpbGxlZDwvYz4gaXMgbm93IDxjbz5FcGljPC9jPiE=:6:1 week:7:0:8:1:9:149867590:10::11:0:12:0:13:0:14:0:15:2171511:16:roadkiller#2:0:10