osu-api-extended
Version:
Advanced osu! api wrapper for v1 and v2, with extra stuff
30 lines • 1.02 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.description = void 0;
const request_1 = require("../../../../utility/request");
const request = (0, request_1.namespace)('https://osu.ppy.sh/api/v2/');
exports.description = {
auth: 0,
title: __filename,
method: 'GET',
description: `This endpoint returns a list of the user's unread notifications. Sorted descending by id with limit of 50.`,
params: [
{
type: 'string',
name: 'max_id',
options: false,
optional: true,
description: 'Maximum \`\`\`id\`\`\` fetched. Can be used to load earlier notifications. Defaults to no limit (fetch latest notifications)',
},
],
return: 'response',
};
const name = async (max_id) => {
const data = await request(`notifications`, {
method: 'GET',
params: { max_id },
});
return data;
};
exports.default = name;
//# sourceMappingURL=list.js.map
;