Skip to content

Commit

Permalink
docs: add documentation for calendar.getSchedules
Browse files Browse the repository at this point in the history
  • Loading branch information
Taaqif committed Jan 23, 2024
1 parent bb6534d commit ac84f8b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/graph/calendars.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ac84f8b

Please sign in to comment.