-
Notifications
You must be signed in to change notification settings - Fork 15
v2.site.news.details
cyperdark edited this page May 23, 2023
·
1 revision
Returns details of the specified news post
const { auth } = require('osu-api-extended');
await auth.login(client_id, client_secret);
await v2.site.news.details(news, key)
Parameter | Type | Description |
---|---|---|
news | ``string | number`` |
key | string |
Unset to query by slug, or id to query by ID |
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;
};
};
}