-
Notifications
You must be signed in to change notification settings - Fork 16
v1.user.scores.category
Jyotirmoy Bandyopadhyaya [Bravo68] edited this page May 27, 2022
·
2 revisions
Return scores from user for a specified type
const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);
await v1.user.scores.category()
Parameter | Type | Description |
---|---|---|
user | string |
id of the user |
mode | string |
osu or fruits or mania or taiko
|
type | string |
u is a user_id or a username. Use string for usernames or id for user_ids |
event_days | string |
Max number of days between now and last event date. Range of 1-31. Optional, default value is 1 |
export interface response {
date: string;
beatmap: number;
rank: string;
user: {
id: number;
};
score: {
id: number;
total: number;
};
combo: {
max: number;
full: number;
};
hits: number[];
mods: {
id: number;
name: string;
};
accuracy: number;
pp: number;
replay: number;
}