mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 03:56:59 +00:00
docs: update announcements docs
This commit is contained in:
parent
7529b572a0
commit
687c36f326
1 changed files with 15 additions and 4 deletions
19
README.md
19
README.md
|
|
@ -257,15 +257,26 @@ console.log(badges);
|
|||
|
||||
## `.getAnnouncements`
|
||||
|
||||
?> This method does not include `meta` in the response, since I do not have
|
||||
access to this endpoint to test it. If you have access to this endpoint, please
|
||||
open a PR to add the `meta` response. Thanks!
|
||||
|
||||
Gets all announcements.
|
||||
|
||||
```typescript
|
||||
const announcements = await client.getAnnouncements();
|
||||
console.log(announcements);
|
||||
|
||||
/**
|
||||
{
|
||||
success: 1,
|
||||
data: [
|
||||
{
|
||||
id: 321453,
|
||||
title: "A big announcement",
|
||||
description: "<p>School will be closing early today!</p>",
|
||||
...
|
||||
}
|
||||
],
|
||||
meta: []
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
## `.getDetentions`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue