-
Notifications
You must be signed in to change notification settings - Fork 15
v2.users.events
cyperdark edited this page Jul 6, 2023
·
4 revisions
Return list of events in order of creation time
const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);
await v2.users.events(object)
Parameter | Type | Description |
---|---|---|
object.sort | string |
id_desc or id_asc
|
object.cursor_string | string |
Parameter for pagination |
object.type | string[] |
achievement or beatmapPlaycount or beatmapsetApprove or beatmapsetDelete or beatmapsetRevive or beatmapsetUpdate or beatmapsetUpload or rank or userSupportAgain or userSupportFirst or userSupportGift or usernameChange
|
export interface response {
events: {
created_at: string;
createdAt: string;
id: number;
type: string;
scoreRank?: string;
rank?: number;
mode?: string;
beatmap: {
title: string;
url: string;
};
user: {
username: string;
url: string;
};
achievement: {
icon_url: string;
id: number;
name: string;
grouping: string;
ordering: number;
slug: string;
description: string;
mode: string;
instructions: string;
};
}[];
cursor: {
event_id: number;
};
cursor_string: string;
}