-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add documentation for calendar.getSchedules
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,6 +177,33 @@ await graph.users.getById('[email protected]').events.getById(EVENT_ID | |
|
||
await graph.me.events.getById(EVENT_ID).delete(); | ||
``` | ||
## Get Schedules | ||
|
||
Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
import '@pnp/graph/calendars'; | ||
import '@pnp/graph/users'; | ||
|
||
const graph = graphfi(...); | ||
|
||
await graph.users.getById('[email protected]').calendar.schedule.get( | ||
{ | ||
"startTime": { | ||
"dateTime": "2017-04-15T12:00:00", | ||
"timeZone": "Pacific Standard Time" | ||
}, | ||
"endTime": { | ||
"dateTime": "2017-04-15T14:00:00", | ||
"timeZone": "Pacific Standard Time" | ||
}, | ||
"schedules": [ | ||
"[email protected]" | ||
], | ||
"availabilityViewInterval": 30 | ||
}); | ||
``` | ||
|
||
## Get Calendar for a Group | ||
|
||
|