Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
https://
https://
List Mail Folders¶
https://
from msgraph import GraphServiceClient
from msgraph.generated.users.item.mailFolders.mail_folders_request_builder import MailFoldersRequestBuilder
graph_client = GraphServiceClient(credentials, scopes)
query_params = MailFoldersRequestBuilder.MailFoldersRequestBuilderGetQueryParameters(
skip = 40,
)
request_configuration = MailFoldersRequestBuilder.MailFoldersRequestBuilderGetRequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.me.mail_folders.get(request_configuration = request_configuration)List Messages In One of My Folders¶
from msgraph import GraphServiceClient
graph_client = GraphServiceClient(credentials, scopes)
result = await graph_client.me.mail_folders.by_mail_folder_id('mailFolder-id').messages.get()