Skip to content

Commit 40f6aed

Browse files
committed
updated change log
1 parent 88294f3 commit 40f6aed

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

changelog.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,32 @@ MsGraph::files()->getFiles($this->path, "groups/$groupId");
205205

206206
//use the default (me)
207207
MsGraph::files()->getFiles($this->path);
208+
```
209+
210+
## Version 3.0.11
211+
212+
Added traits for MsGraphAdmin for working with Calendars and Events
213+
214+
Calendar Events
215+
```php
216+
MsGraphAdmin::calendarEvents()->userid($userId)->get();
217+
MsGraphAdmin::calendarEvents()->userid($userId)->find($calendarId, $eventId);
218+
MsGraphAdmin::calendarEvents()->userid($userId)->store($calendarId, $data);
219+
```
220+
221+
Calendars
222+
```php
223+
MsGraphAdmin::calendars()->userid($userId)->get();
224+
MsGraphAdmin::calendars()->userid($userId)->find($eventId);
225+
MsGraphAdmin::calendars()->userid($userId)->store($data);
226+
MsGraphAdmin::calendars()->userid($userId)->update($data);
227+
```
228+
229+
Events
230+
```php
231+
MsGraphAdmin::events()->userid($userId)->get();
232+
MsGraphAdmin::events()->userid($userId)->find($eventId);
233+
MsGraphAdmin::events()->userid($userId)->store($data);
234+
MsGraphAdmin::events()->userid($userId)->update($data);
235+
MsGraphAdmin::events()->userid($userId)->delete($data);
208236
```

src/MsGraphAdmin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
use Dcblogdev\MsGraph\AdminResources\Contacts;
1212
use Dcblogdev\MsGraph\AdminResources\Emails;
13+
use Dcblogdev\MsGraph\AdminResources\Events;
14+
use Dcblogdev\MsGraph\AdminResources\Calendars;
15+
use Dcblogdev\MsGraph\AdminResources\CalendarEvents;
1316
use GuzzleHttp\Client;
1417
use GuzzleHttp\Exception\ClientException;
1518
use Exception;

0 commit comments

Comments
 (0)