updateGJAccSettings20.php
Updates a user's account settings
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 * | Account Secret: Wmfv3899gc9 |
mS a | Who the user allows messages from: 0 for anyone, 1 for just friends, and 2 for no one |
frS a | Who the user allows friend requests from: 0 for anyone, 1 for no one, 2 for anyone + they can include a message |
cS a | Who the user allows to view their comments: 0 for anyone, 1 for just friends, and 2 for only themselves |
gF | Who the user allows group chat invites from: 0 for anyone, 1 for friends, and 2 for no one |
gO | Unknown, sent as 2 |
yt a | The end of the link to the user's youtube channel, after the /channel/. e.g. UCZoN2WLAooS6uhREa9Cgpwg |
twitter a | The user's twitter handle |
twitch a | The user's twitch username |
instagram a | The user's Instagram username |
tiktok a | The user's TikTok handle |
discord a | The user's Discord handle |
custom a | The user's custom one-time authentication token |
Response
1 if the required parameters are passed, regardless of whether anything is being updated, -1 otherwise.
Example
Python
py
import requests
data = {
"accountID": 173831, # DevExit's account ID
"gjp2": "********", # This would be DevExit's password encoded with GJP2 encryption
"secret": "Wmfv3899gc9",
"mS": 0,
"frS": 0,
"cS": 0,
"yt": "UCZoN2WLAooS6uhREa9Cgpwg",
"twitter": "DevExit",
"twitch": "devexit",
"instagram": "devexit",
"tiktok": "",
"discord": "devexit",
"custom": "Custom123"
}
req = requests.post('https://www.boomlings.com/database/updateGJAccSettings20.php', data=data)
print(req.text)Response
py
1