Skip to content

Commit

Permalink
docs: ✏️ Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanObrink committed Dec 21, 2020
1 parent fd3e40c commit 2f4826f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,18 @@ loginStatus.on("OK", () =>
const children = await api.getChildren();

// Get calendar
const calendar = await api.getCalendar(children[0].id);
const calendar = await api.getCalendar(children[0]);

// Get classmates
const classmates = await api.getClassmates(children[0]);

// Get schedule
const from = moment().subtract(1, 'week')
const to = moment()
const schedule = await api.getSchedule(children[0], from, to)

// Get news
const news = await api.getNews(children[0])
```
### Setting session cookie
Expand Down

0 comments on commit 2f4826f

Please sign in to comment.