Skip to content

Commit 46e20f2

Browse files
committed
Update 05-add-ms-graph.md
1 parent 5a91dae commit 46e20f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tutorial/05-add-ms-graph.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ In this exercise you will incorporate Microsoft Graph into the application. For
1010

1111
Consider what this code is doing.
1212

13-
- The URL that will be called is `/me/events`.
13+
- The URL that will be called is `/me/calendarview`.
14+
- The `header` method adds the `Prefer: outlook.timezone` header to the request, causing the start and end times to be returned in the user's time zone.
15+
- The `query` method sets the `startDateTime` and `endDateTime` parameters for the calendar view.
1416
- The `select` method limits the fields returned for each events to just those the view will actually use.
15-
- The `orderby` method sorts the results by the date and time they were created, with the most recent item being first.
17+
- The `orderby` method sorts the results by the start time.
18+
- The `top` method limits the results to 50 events.
1619

1720
1. Create a new file in the **./routes** directory named **calendar.js**, and add the following code.
1821

0 commit comments

Comments
 (0)