Skip to content
cyperdark edited this page Jul 6, 2023 · 4 revisions

Return list of events in order of creation time

Authentication

const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);

Function

await v2.users.events(object)

Parameters

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

Response

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;
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally