Skip to content

Commit ac902f4

Browse files
removed traits and added tenancy support
1 parent 36a7808 commit ac902f4

16 files changed

+492
-668
lines changed

changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ Corrected path in composer.json stopping installation.
6464
## Version 1.3.0
6565

6666
Added ability to login as a tenant by using MsGraphAdmin
67+
68+
## Version 2.0.0
69+
70+
Renamed repo to daveismyname/laravel-microsoft-graph
71+
Added tenency support
72+
Removed traits and added classes in resources instead

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "daveismyname/laravel-msgraph",
2+
"name": "daveismyname/laravel-microsoft-graph",
33
"description": "A Laravel Microsoft Graph API package",
44
"license": "MIT",
55
"authors": [
@@ -9,8 +9,8 @@
99
"homepage": "https://daveismyname.blog"
1010
}
1111
],
12-
"homepage": "https://github.com/daveismyname/laravel-msgraph",
13-
"keywords": ["Laravel", "MsGraph", "Graph"],
12+
"homepage": "https://github.com/daveismyname/laravel-microsoft-graph",
13+
"keywords": ["Laravel", "MsGraph", "Graph", "Microsoft Graph"],
1414
"require": {
1515
"illuminate/support": "~5",
1616
"league/oauth2-client": "^1.4",

license.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The MIT License (MIT)
44

5-
Copyright (c) 2018 Daveismyname
5+
Copyright (c) 2019 Daveismyname
66

77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal

readme.md

+2-63
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Microsoft Graph API
2+
# Microsoft Graph
33

44
A Laravel package for working with Microsoft Graph API.
55

@@ -220,68 +220,7 @@ MsGraph::get('me/messages')
220220

221221
To make things a little easier there is also trait classes provided:
222222

223-
Each Trait class provides convenient methods that call the end points processes the data and returns json of the results.
224223

225-
### Traits
226-
227-
These can be called directly for instance to list emails, optionally these params can be provided:
228-
229-
$top = 25 - sets number of records
230-
$skip = 0 - sets how many records to skip
231-
$param = [] - send array of options such as orderby, top, skip, count
232-
233-
```php
234-
MsGraph::getEmails();
235-
```
236-
237-
Calendars
238-
* getCalendars($top = 25, $skip = 0, $params = [])
239-
* createCalendar($data)
240-
* getCalendar($calendarId)
241-
* updateCalendar($calendarId, $data)
242-
* deleteCalendar($calendarId, $data)
243-
244-
Calendar Events
245-
* getCalendarEvents($top = 25, $skip = 0, $params = [])
246-
* getEvent($eventId)
247-
* createEvent($data)
248-
* updateCalendarEvent($calendarId, $eventId, $data)
249-
* deleteCalendarEvent($calendarId, $eventId)
250-
251-
Contacts
252-
* getContacts($top = 25, $skip = 0, $params = [])
253-
* createContact($data)
254-
* getContact($contactId)
255-
* updateContact($contactId, $data)
256-
* deleteContact($contactId, $data)
257-
258-
Emails
259-
* getEmails($top = 25, $skip = 0, $folderId = null)
260-
* getEmailAttachments($email\_id)
261-
* getEmailInlineAttachments($email)
262-
* sendEmail($subject, $message, $to, $cc, $bcc, $attachments = null)
263-
* sendEmailReply($id, $message, $to, $cc, $bcc, $attachments = null)
264-
* forwardEmail($id, $message, $to, $cc, $bcc, $attachments = null)
265-
266-
Events
267-
* getEvents($top = 25, $skip = 0, $params = [])
268-
* getCalendarEvent($calendarId, $eventId)
269-
* createCalendarEvent($data)
270-
* updateEvent($eventId, $data)
271-
* deleteEvent($calendarId, $eventId)
272-
273-
OneDrive
274-
* getDrives()
275-
* downloadFile($fileId)
276-
* deleteFile($fileId)
277-
278-
ToDo's
279-
* getTasks($top = 25, $skip = 0, $params = [])
280-
* getTaskFolders()
281-
* createTask($data)
282-
* getTask($taskId)
283-
* updateTask($taskId, $data)
284-
* deleteTask($taskId, $data)
285224

286225
### Middleware
287226

@@ -402,6 +341,6 @@ license. Please see the [license file][6] for more information.
402341

403342
[2]: https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview
404343
[3]: changelog.md
405-
[4]: https://github.com/daveismyname/laravel-msgrapth
344+
[4]: https://github.com/daveismyname/laravel-microsoft-graph
406345
[5]: http://semver.org/
407346
[6]: license.md

src/Api/Calendar.php

-83
This file was deleted.

src/Api/CalendarEvents.php

-87
This file was deleted.

src/Api/Contacts.php

-56
This file was deleted.

src/Api/Drive.php

-23
This file was deleted.

0 commit comments

Comments
 (0)