Skip to content

Commit b4dbbf1

Browse files
committed
Add mail services
1 parent 12602ed commit b4dbbf1

File tree

5 files changed

+605
-8
lines changed

5 files changed

+605
-8
lines changed

ms_graph/client.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ms_graph.drive_items import DriveItems
1818
from ms_graph.search import Search
1919
from ms_graph.personal_contacts import PersonalContacts
20+
from ms_graph.mail import Mail
2021

2122

2223
class MicrosoftGraphClient():
@@ -397,7 +398,7 @@ def notes(self) -> Notes:
397398
398399
### Returns
399400
---
400-
Groups:
401+
Notes:
401402
The `Notes` services Object.
402403
"""
403404

@@ -411,7 +412,7 @@ def search(self) -> Search:
411412
412413
### Returns
413414
---
414-
Groups:
415+
Search:
415416
The `Search` services Object.
416417
"""
417418

@@ -425,11 +426,25 @@ def personal_contacts(self) -> PersonalContacts:
425426
426427
### Returns
427428
---
428-
Groups:
429+
PersonalContacts:
429430
The `PersonalContacts` services Object.
430431
"""
431432

432433
# Grab the `PersonalContacts` Object for the session.
433434
personal_contacts_object: PersonalContacts = PersonalContacts(session=self.graph_session)
434435

435436
return personal_contacts_object
437+
438+
def mail(self) -> Mail:
439+
"""Used to access the Mail Services and metadata.
440+
441+
### Returns
442+
---
443+
Mail:
444+
The `Mail` services Object.
445+
"""
446+
447+
# Grab the `Mail` Object for the session.
448+
mail_service: Mail = Mail(session=self.graph_session)
449+
450+
return mail_service

0 commit comments

Comments
 (0)