Skip to content

v2.site.news.details

cyperdark edited this page May 23, 2023 · 1 revision

Returns details of the specified news post

Authentication

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

Function

await v2.site.news.details(news, key)

Parameters

Parameter Type Description
news ``string number``
key string Unset to query by slug, or id to query by ID

Response

export interface response {
  id: number;
  author: string;
  edit_url: string;
  first_image: string;
  published_at: string;
  updated_at: string;
  slug: string;
  title: string;
  content: string;
  navigation: {
    newer: {
      id: number;
      author: string;
      edit_url: string;
      first_image: string;
      published_at: string;
      updated_at: string;
      slug: string;
      title: string;
    };
    older: {
      id: number;
      author: string;
      edit_url: string;
      first_image: string;
      published_at: string;
      updated_at: string;
      slug: string;
      title: string;
    };
  };
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally