You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial/05-add-ms-graph.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,12 @@ In this exercise you will incorporate Microsoft Graph into the application. For
10
10
11
11
Consider what this code is doing.
12
12
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.
14
16
- 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.
16
19
17
20
1. Create a new file in the **./routes** directory named **calendar.js**, and add the following code.
0 commit comments