Skip to content

Commit 9e18c01

Browse files
committed
Remove session endpoint
Add recentGames endpoint Add status endpoint
1 parent 3abb06f commit 9e18c01

File tree

3 files changed

+61
-18
lines changed

3 files changed

+61
-18
lines changed

Documentation/methods/recentGames.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# recentGames
2+
3+
## Description
4+
5+
Returns recent games of a player. A maximum of 100 games are returned and recent games are only stored for up to 3 days at this time.
6+
7+
Players can disable this endpoint via in-game settings. When done so the API will return as if there is no games.
8+
9+
## Parameters
10+
- key
11+
- uuid
12+
13+
## Example Response
14+
```php
15+
{
16+
"games": [
17+
{
18+
"date": 1583837333968,
19+
"gameType": "BEDWARS",
20+
"mode": "FOUR_FOUR"
21+
},
22+
{
23+
"date": 1583835955288,
24+
"gameType": "BEDWARS",
25+
"mode": "FOUR_FOUR"
26+
},
27+
{
28+
"date": 1583832051787,
29+
"gameType": "DUELS",
30+
"mode": "SW_DUEL"
31+
},
32+
{
33+
"date": 1583831476897,
34+
"gameType": "SKYWARS",
35+
"mode": "solo_insane"
36+
}
37+
]
38+
}
39+
```

Documentation/methods/session.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

Documentation/methods/status.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# status
2+
3+
## Description
4+
5+
Returns online status information for given player, including game, mode and map when available.
6+
7+
Players can disable this endpoint via in-game settings. When done so the API will return as if the player is offline.
8+
9+
## Parameters
10+
- key
11+
- uuid
12+
13+
## Example Response
14+
```php
15+
{
16+
"session": {
17+
"online": true,
18+
"gameType": "SKYBLOCK",
19+
"mode": "dynamic"
20+
}
21+
}
22+
```

0 commit comments

Comments
 (0)