Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
51 changes: 51 additions & 0 deletions docs/endpoints/submitGJUserInfo.md
Original file line number Diff line number Diff line change
@@ -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

<!-- tabs:start -->

### **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
```

<!-- tabs:end -->
File renamed without changes.