getGJFriendRequests20.php
Gets friend requests received from other users.
Parameters
| Parameter | Explanation |
|---|---|
accountID * | The player's account ID (not to be confused with user ID). Used for authorization |
gjp2 * | The player's account password, encoded with GJP2. Used for authorization |
secret * | Common Secret: Wmfd2893gb7 |
gameVersion a | A number representing the game's version. The current value is 22 for 2.2 |
binaryVersion a | A number representing the game's small version. The current value is 51 for 2.209 on PC and mobile |
udid a | The player's UDID (Unique Device Identifier). Used to identify unregistered users |
uuid a | The player's user ID. See the previous format here |
dvs a | A 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 |
page a | Which page of requests you want |
total a | Probably the cached total number of friend requests recieved, default is 0 |
getSent c | 0 to fetch received requests, 1 to fetch sent requests, 2 to fetch ignored requests Sent when: non-zero |
- * - Required.
- a - Always sent by the client.
- c - Sent conditionally by the client.
Response
The response for this endpoint is a key:value format with | being the seperator for each object. A # is used to seperate the metadata.
The metadata is split up into 3 segments: total requests : page number : total requests per page.
Below is a raw response for a single friend request
plain
1:TheWylieMaster:2:84696119:9:31:10:4:11:16:14:0:15:2:16:9276649:32:45404710:35:aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQ==:41::37:2024 years#1:0:1If the request fails, the server will return -1. If there are no friend requests sent/received, the server will return -2.
