diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 54753c5d2..9fd30ea5d 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -34,6 +34,7 @@ - [Level Object](/resources/client/level-components/level-object.md) - [Color String](/resources/client/level-components/color-string.md) - [Guideline String](/resources/client/level-components/guideline-string.md) + **Endpoints** - Comments @@ -73,6 +74,7 @@ - [likeGJItem211](/endpoints/likeGJItem211.md) - [requestUserAccess](/endpoints/requestUserAccess.md) - [restoreGJItems](/endpoints/restoreGJItems.md) + - [submitGJUserInfo](/endpoints/submitGJUserInfo.md) - Relationships - [acceptGJFriendRequest20](/endpoints/acceptGJFriendRequest20.md) - [blockGJUser20](/endpoints/blockGJUser20.md) @@ -110,7 +112,6 @@ **Topics** -- [GJP](/topics/gjp.md) - [Level Passwords](/topics/level_passwords.md) - [Level Encoding/Decoding](/topics/levelstring_encoding_decoding.md) - [Game Save Files Encryption/Decryption](/topics/localfiles_encrypt_decrypt.md) @@ -121,6 +122,7 @@ - **Encryption** - [Base64 Encoding](topics/encryption/base64.md) - [CHK Generation](topics/encryption/chk.md) + - [GJP](/topics/encryption/gjp.md) - [RS, UDID and UUID](topics/encryption/id.md) - [XOR Cipher](topics/encryption/xor.md) - [Data Zipping](topics/encryption/zip.md) diff --git a/docs/endpoints/submitGJUserInfo.md b/docs/endpoints/submitGJUserInfo.md new file mode 100644 index 000000000..d42d7ef11 --- /dev/null +++ b/docs/endpoints/submitGJUserInfo.md @@ -0,0 +1,51 @@ +# submitGJUserInfo.php + +Submits level completion data for use in restoreGJItems.php. The game sends to this endpoint if updateGJUserScore22.php returns `-9`. + +## Parameters + +### Required Parameters + +**udid** - A unique identifier for the user's device, can be replaced with anything + +**accountID** - The user's account ID + +**levelsInfo** - A list of online levels you have completed from newest to oldest, in the format `1,[levelID],2,[attempts],3,[jumps],4,[levelSize]` and separated by semicolons `;`: + +- `[levelID]`: the ID of the completed level +- `[attempts]`: the amount of attempts it took to complete +- `[jumps]`: the amount of clicks it took to complete across all attempts +- `[levelSize]`: length of compressed levelString (key 4) + +**secret** - Wmfd2893gb7 + +## Response + +-1 if parameters are incorrect, otherwise a 500 error code + +## Example + + + +### **Python** + +```py +import requests + +data = { + "udid": "605BE9FD-300E-49EA-A45C-B272EE64D3E0", + "accountID": 23590959, + "levelsInfo": "1,132,2,3,3,29,4,1704;1,128,2,1,3,25,4,1004", + "secret": "Wmfd2893gb7" +} + +req = requests.post('http://www.boomlings.com/database/submitGJUserInfo.php', data=data) +print(req.status_code) +``` + +**Response** +```py +500 +``` + + diff --git a/docs/topics/gjp.md b/docs/topics/encryption/gjp.md similarity index 100% rename from docs/topics/gjp.md rename to docs/topics/encryption/gjp.md