Interact with the BeatLeader Player Scores API endpoints. Get player score related info.
- Source
Methods
(static) getAccGraph(id, accGraphOptions) → {Promise}
Retrieves accuracy graph data
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | ID of user to get data for | ||||||||||||||||
accGraphOptions | Object | Filters to narrow search Certainly! Here's the table:
|
Returns a promise with acc graph data
- Type:
- Promise
(static) getById(id, scoresSearchOptions) → {Promise}
Fetches a list of scores for a specific user based on filters
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | ID of user to get data for | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scoresSearchOptions | Object | Filters to narrow search results. See table below.
|
Returns a promise with scores
- Type:
- Promise
(static) getCompactById(id, scoresSearchOptions)
Retrieves a paginated list of scores for a specific user
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | ID of user to get data for | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scoresSearchOptions | Object | Filters to narrow search results
|
Returns a promise with compacted score data
(static) getCompactHistory(id, leaderboardContext, count) → {Promise}
Name | Type | Description |
---|---|---|
id | string | ID of user to get data for |
leaderboardContext | string | Filter scores by leaderboard context, default is 'General'. Available values : |
count | number | Amount of days to include. Default is 50 |
Returns a promise with compacted history
- Type:
- Promise
(static) getHistory(id, leaderboardContext, count) → {Promise}
Retrieves a lkist of players performance metrics and statistics
Name | Type | Description |
---|---|---|
id | string | ID of user to get data for |
leaderboardContext | string | Filter scores by leaderboard context, default is 'General'. Available values : |
count | number | Amount of days to include. Default is 50 |
Returns a promise with metrics and statistics
- Type:
- Promise
(static) getPinnedScores(id, leaderboardContext) → {Promise}
Retrieves a paginated list of pinned scores for a specific user
Name | Type | Description |
---|---|---|
id | string | ID of user to get data for |
leaderboardContext | string | Filter scores by leaderboard context, default is 'General'. Available values : |
Returns a promise with a list of pinned score data
- Type:
- Promise
(static) getScore(id, hash, difficulty, mode) → {Promise.<number>}
Gets a score made my a player on a specific map of a specific difficulty
Name | Type | Description |
---|---|---|
id | string | ID of user to get data for |
hash | string | Map hash |
difficulty | string | Difficuly to get score from |
mode | string | Maps characterists. |
Returns a promise with the score
- Type:
- Promise.<number>