Skip to content

Commit cbe2888

Browse files
authored
fix: getUserGameLeaderboards required username (#93)
1 parent 528c4ed commit cbe2888

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/v1/get-user-game-leaderboards.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You must query the user by either their username or their ULID. Please note the
2828
| :--- | :-------- | :----------------------------------------------------------- |
2929
| `y` | Yes | Your web API key. |
3030
| `i` | Yes | The target game ID. |
31-
| `u` | | The target username or ULID. |
31+
| `u` | Yes | The target username or ULID. |
3232
| `c` | | Count, number of records to return (default: 200, max: 500). |
3333
| `o` | | Offset, number of entries to skip (default: 0). |
3434

@@ -51,6 +51,7 @@ const authorization = buildAuthorization({ username, webApiKey });
5151
// Then, make the API call.
5252
const gameLeaderboards = await getUserGameLeaderboards(authorization, {
5353
gameId: 14402,
54+
username: "zuliman92",
5455
});
5556
```
5657

0 commit comments

Comments
 (0)