Skip to content

Commit 4b3ef61

Browse files
authored
Level endpoints optional parameters (#68)
* getGJLevels21 - added more optional parameters * Added optional parameters to downloadGJLevel * One more optional parameter in getGJLevels * duped line
1 parent 8ede189 commit 4b3ef61

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

docs/endpoints/downloadGJLevel22.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,28 @@ Downloads a user level and info so it can be played.
1212

1313
### Optional Parameters
1414

15-
**inc** - Unknown function. Set to 1
16-
17-
**extras** - Unknown function. Set to 0
18-
1915
**gameVersion** - 21
2016

2117
**binaryVersion** - 35
2218

2319
**gdw** - 0
2420

21+
**accountID** - The account ID of the user who is downloading the level
22+
23+
**gjp** - The [GJP](/topics/encryption/gjp.md) of the user who is downloading the level
24+
25+
**udid** - The [udid](/topics/encryption/id?id=udid) of the user who is downloading the level
26+
27+
**uuid** - The [uuid](/topics/encryption/id?id=uuid) of the user who is downloading the level
28+
29+
**inc** - Unknown function. Set to 1
30+
31+
**extras** - Unknown function. Set to 0
32+
33+
**rs** - [See here](topics/encryption/id?id=rs)
34+
35+
**chk** - [See here](/topics/encryption/chk?id=download-level)
36+
2537
## Response
2638

2739
Returns a [level object](/resources/server/level.md).
@@ -51,4 +63,4 @@ print(req.text)
5163
1:62687277:2:Test:3:QSB0ZXN0IGxldmVsIGZvciB0aGUgR0QgRG9jcyE=:4:H4sIAAAAAAAAC6WQwQ3DIAxFF3IlfxsIUU6ZIQP8AbJChy_GPSZqpF7-A4yfDOfhXcCiNMIqnVYrgYQl8rDwBTZCVbkQRI3oVHbiDU6F2jMF_lesl4q4kw2PJMbovxLBQxTpM3-I6q0oHmXjzx7N0240cu5w0UBNtESRkble8uSLHjh8nTubmYJZ2MvMrEITEN0gEJMxlLiMZ28frmj:5:1:6:3935672:8:0:9:0:10:1:12:0:13:21:14:0:17::43:0:25::18:0:19:0:42:0:45:1:15:0:30:55610687:31:0:28:1 hour:29:1 hour:35:546561:36::37:0:38:0:39:50:46::47::40::27:AQcHBwEL#1bae6491cc87c72326abcbc0a7afaee139aa7088#f17c5a61f4ba1c7512081132459ddfaaa7c6f716
5264
```
5365

54-
<!-- tabs:end -->
66+
<!-- tabs:end -->

docs/endpoints/getGJLevels21.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Gets a list of levels.
1616

1717
**gdw** - 0
1818

19+
**accountID** - The account ID of the user who is searching the levels. Only sent when **type** is set to 8, 13 or when **type** is set to 5 and you are loading your own levels.
20+
21+
**gjp** - The [GJP](/topics/encryption/gjp.md) of the user who is searching the levels. Only sent when **type** is set to 5, 8 or 13.
22+
23+
**gauntlet** - The ID of the gauntlet that's currently being loaded.
24+
1925
**type** - Controls the fetch priority.
2026
and if this is left out it's most liked
2127

@@ -81,6 +87,14 @@ and if this is left out it's most liked
8187

8288
**epic** - Epic filter. 0 for off, 1 for on.
8389

90+
**noStar** - Unrated filter. Not sent when off, 1 for on.
91+
92+
**star** - Rated filter. Not sent when off, 1 for on.
93+
94+
**song** - Official song filter. Not sent when off.
95+
96+
**completedLevels** - A comma separated list of completed levels enclosed in brackets. Only sent if the uncompleted or completed filter is enabled.
97+
8498
**followed** - Required if `type` is 12. A comma separated list of player IDs, **not account IDs** of the people you follow.
8599

86100
**demonFilter** - Denotes which difficulty of demon to search for if `diff` is -2. If left out it will search for all demons, otherwise it's 1-5 for Easy to Extreme, respectively.

0 commit comments

Comments
 (0)