public interface IGraphClient
extends IDisposable
Represents the interface for Graph REST client.
| Modifier and Type | Method and Description |
|---|---|
GraphFolderInfo |
copyFolder(String newParentId,
String itemId)
Copy a mailfolder and its contents to another mailfolder.
|
MapiMessage |
copyMessage(String newParentId,
String itemId)
Copy a Message to another mailfolder.
|
String |
copyNotebook(String itemId,
String groupId,
String renameAs)
Copies a notebook to the Notebooks folder in the destination Documents library.
|
MapiAttachment |
createAttachment(String parentId,
MapiAttachment attachment)
Creates new attachment for specified item
|
GraphCalendarInfo |
createCalendar(String name)
Creates new Calendar.
|
MapiCalendar |
createCalendarItem(String calId,
MapiCalendar mapiCalendar)
Creates MapiCalendar in specified calendar
|
OutlookCategory |
createCategory(String displayName,
int preset)
Creates an
OutlookCategory object in the user's master list of categories. |
MapiContact |
createContact(String folderId,
MapiContact contact)
Creates contact in specified folder
|
GraphFolderInfo |
createFolder(String folderName)
Create new folder.
|
GraphFolderInfo |
createFolder(String parentFolderId,
String folderName)
Create new folder.
|
MailMessage |
createMessage(String folderId,
MailMessage message)
Creates message in specified folder
|
MapiMessage |
createMessage(String folderId,
MapiMessage message)
Creates message in specified folder
|
GraphNotebook |
createNotebook(GraphNotebook notebook)
Create a new OneNote notebook.
|
ClassificationOverride |
createOrUpdateOverride(ClassificationOverride classificationOverride)
Create an override for a sender identified by an SMTP address.
|
ClassificationOverride |
createOrUpdateOverride(MailAddress sender,
int classifyAs)
Create an override for a sender identified by an SMTP address.
|
InboxRule |
createRule(InboxRule rule)
Create a message rule by specifying a set of conditions and actions.
|
MapiTask |
createTask(MapiTask task,
String taskListUri)
Creates Task in specified folder
|
GraphTaskListInfo |
createTaskList(GraphTaskListInfo taskList)
Creates new TaskList.
|
void |
delete(String id)
Delete object.
|
void |
deleteAttachment(String id)
Removes attachment
|
void |
deleteTaskList(String id)
Delete TaskList.
|
MapiAttachment |
fetchAttachment(String id)
Gets attachment for specified id
|
MapiCalendar |
fetchCalendarItem(String id)
Gets MapiCalendar for specified id
|
OutlookCategory |
fetchCategory(String itemId)
Get the properties and relationships of the specified outlookCategory object.
|
MapiContact |
fetchContact(String id)
Gets MapiContact for specified id
|
MapiMessage |
fetchMessage(String id)
Gets message in specified id
|
GraphNotebook |
fetchNotebook(String itemId)
Retrieve the properties and relationships of a notebook object.
|
InboxRule |
fetchRule(String itemId)
Get the properties and relationships of a message rule object.
|
MapiTask |
fetchTask(String id)
Gets MapiTask for specified id
|
GraphFolderInfo |
getContactFolder()
Gets main contact folder.
|
String |
getEndpoint()
Gets or sets Microsoft Graph REST API endpoint.
|
GraphFolderInfo |
getFolder(String id)
Gets folder by an id.
|
IMultipleServicesTokenProvider |
getMultipleServicesTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
|
GraphOnenoteOperation |
getOneNoteOperationStatus(String operationId)
Get the status of a long-running OneNote operation.
|
int |
getResource()
Gets or sets resource type.
|
String |
getResourceId()
Gets or sets resource id.
|
GraphTaskListInfo |
getTaskList(String id)
Gets TaskList by an id.
|
String |
getTenantId()
Gets or sets tenant identifier
|
int |
getTimeout()
Gets or sets the number of milliseconds to wait before the operation times out.
|
ITokenProvider |
getTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
|
MapiAttachmentCollection |
listAttachments(String id)
List Attachments from the parent message.
|
MapiAttachmentCollection |
listAttachments(String id,
ODataQueryBuilder queryBuilder)
List Attachments from the parent message.
|
MapiCalendarCollection |
listCalendarItems(String id)
List MapiCalendar from the calendar.
|
MapiCalendarCollection |
listCalendarItems(String id,
ODataQueryBuilder queryBuilder)
List MapiCalendar from the calendar.
|
GraphCalendarInfoCollection |
listCalendars()
List CalendarInfo items.
|
GraphCalendarInfoCollection |
listCalendars(ODataQueryBuilder queryBuilder)
List CalendarInfo items.
|
List<OutlookCategory> |
listCategories()
Get all the categories that have been defined for the user.
|
List<OutlookCategory> |
listCategories(ODataQueryBuilder queryBuilder)
Get all the categories that have been defined for the user.
|
List<OutlookCategory> |
listCategoriesInternal() |
List<OutlookCategory> |
listCategoriesInternal(ODataQueryBuilder queryBuilder) |
GraphFolderInfoCollection |
listContactFolders()
Get a collection of child folders under the root contact folder.
|
GraphFolderInfoCollection |
listContactFolders(ODataQueryBuilder queryBuilder)
Get a collection of child folders under the root contact folder.
|
MapiContactCollection |
listContacts(String id)
List MapiContact from the parent folder.
|
MapiContactCollection |
listContacts(String id,
ODataQueryBuilder queryBuilder)
List MapiContact from the parent folder.
|
GraphFolderInfoCollection |
listFolders()
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
|
GraphFolderInfoCollection |
listFolders(ODataQueryBuilder queryBuilder)
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
|
GraphFolderInfoCollection |
listFolders(String id)
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
|
GraphFolderInfoCollection |
listFolders(String id,
ODataQueryBuilder queryBuilder)
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
|
GraphMessageInfoCollection |
listMessages(String id)
List GraphMessageInfo from the parent folder.
|
GraphMessageInfoCollection |
listMessages(String id,
ODataQueryBuilder queryBuilder)
List MessageInfo from the parent folder.
|
GraphMessagePageInfo |
listMessages(String id,
PageInfo page,
MailQuery query)
List GraphMessageInfo from the parent folder.
|
GraphNotebookCollection |
listNotebooks()
Retrieve a list of notebook objects.
|
GraphNotebookCollection |
listNotebooks(ODataQueryBuilder queryBuilder)
Retrieve a list of notebook objects.
|
List<ClassificationOverride> |
listOverrides()
Get the overrides that a user has set up to always classify messages from certain senders in specific ways.
|
List<ClassificationOverride> |
listOverrides(ODataQueryBuilder queryBuilder)
Get the overrides that a user has set up to always classify messages from certain senders in specific ways.
|
List<ClassificationOverride> |
listOverridesInternal() |
List<ClassificationOverride> |
listOverridesInternal(ODataQueryBuilder queryBuilder) |
List<InboxRule> |
listRules()
Get all the messageRule objects defined for the user's Inbox.
|
List<InboxRule> |
listRules(ODataQueryBuilder queryBuilder)
Get all the messageRule objects defined for the user's Inbox.
|
List<InboxRule> |
listRulesInternal() |
List<InboxRule> |
listRulesInternal(ODataQueryBuilder queryBuilder) |
GraphTaskListInfoCollection |
listTaskLists()
List TaskList items.
|
GraphTaskListInfoCollection |
listTaskLists(ODataQueryBuilder queryBuilder)
List TaskList items.
|
MapiTaskCollection |
listTasks(String id)
List MapiTask from the parent TaskList.
|
MapiTaskCollection |
listTasks(String id,
ODataQueryBuilder queryBuilder)
List MapiTask from the parent TaskList.
|
GraphFolderInfo |
moveFolder(String newParentId,
String itemId)
Move a mailfolder and its contents to another mailfolder.
|
MapiMessage |
moveMessage(String newParentId,
String itemId)
Move a message to another mailfolder.
|
void |
send(MailMessage message)
Sends email message using MIME format
|
void |
send(MapiMessage message)
Sends email message
|
void |
send(MapiMessage message,
boolean saveToSentItems)
Sends email message
|
void |
send(String itemId)
Send a message in the draft folder.
|
void |
sendAsMime(MapiMessage message)
Sends email message using MIME format
|
void |
setEndpoint(String value)
Gets or sets Microsoft Graph REST API endpoint.
|
void |
setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
|
void |
setRead(String itemId)
Mark message as read
|
void |
setResource(int value)
Gets or sets resource type.
|
void |
setResourceId(String value)
Gets or sets resource id.
|
void |
setTenantId(String value)
Gets or sets tenant identifier
|
void |
setTimeout(int value)
Gets or sets the number of milliseconds to wait before the operation times out.
|
void |
setTokenProvider(ITokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
|
MapiCalendar |
updateCalendarItem(MapiCalendar mapiCalendar)
Updates MapiCalendar
|
MapiCalendar |
updateCalendarItem(MapiCalendar mapiCalendar,
UpdateSettings updateSettings)
Updates appointment
|
OutlookCategory |
updateCategory(OutlookCategory category)
Updates pre-set color constant for specified category
|
MapiContact |
updateContact(MapiContact contact)
Updates contact
|
GraphFolderInfo |
updateFolder(GraphFolderInfo folderInfo)
Updates folder.
|
MailMessage |
updateMessage(MailMessage message)
Updates message
|
MailMessage |
updateMessage(MailMessage message,
UpdateSettings updateSettings)
Updates message
|
MapiMessage |
updateMessage(MapiMessage message)
Updates message
|
MapiMessage |
updateMessage(MapiMessage message,
UpdateSettings updateSettings)
Updates message
|
ClassificationOverride |
updateOverride(ClassificationOverride classificationOverride)
Change the classifyAs field of an override as specified.
|
InboxRule |
updateRule(InboxRule rule)
Change writable properties on a messageRule object and save the changes.
|
MapiTask |
updateTask(MapiTask task)
Updates Task
|
MapiTask |
updateTask(MapiTask task,
UpdateSettings updateSettings)
Updates Task
|
GraphTaskListInfo |
updateTaskList(GraphTaskListInfo taskList)
Updates TaskList.
|
IMultipleServicesTokenProvider getMultipleServicesTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
void setMultipleServicesTokenProvider(IMultipleServicesTokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
ITokenProvider getTokenProvider()
Gets or sets an object allows to retrieve OAuth access token.
void setTokenProvider(ITokenProvider value)
Gets or sets an object allows to retrieve OAuth access token.
int getTimeout()
Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
void setTimeout(int value)
Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
String getTenantId()
Gets or sets tenant identifier
void setTenantId(String value)
Gets or sets tenant identifier
String getResourceId()
Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id
void setResourceId(String value)
Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id
String getEndpoint()
Gets or sets Microsoft Graph REST API endpoint. If not specified, the default is "https://graph.microsoft.com".
void setEndpoint(String value)
Gets or sets Microsoft Graph REST API endpoint. If not specified, the default is "https://graph.microsoft.com".
int getResource()
Gets or sets resource type.
void setResource(int value)
Gets or sets resource type.
void delete(String id)
Delete object.
id - Object id to deleteGraphFolderInfoCollection listFolders()
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
GraphFolderInfoCollection listFolders(String id)
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
id - Parent folder idGraphFolderInfo getFolder(String id)
Gets folder by an id.
id - Folder idGraphFolderInfo getContactFolder()
Gets main contact folder. This method requires that at least one contact exists in the main contacts folder, otherwise it will return null. ...
GraphFolderInfo createFolder(String folderName)
Create new folder.
folderName - Folder nameGraphFolderInfo createFolder(String parentFolderId, String folderName)
Create new folder.
parentFolderId - Parent folder idfolderName - Folder nameGraphFolderInfo updateFolder(GraphFolderInfo folderInfo)
Updates folder.
folderInfo - Folder to updateGraphFolderInfo copyFolder(String newParentId, String itemId)
Copy a mailfolder and its contents to another mailfolder.
newParentId - New parent folder iditemId - Item id to be copiedGraphFolderInfo moveFolder(String newParentId, String itemId)
Move a mailfolder and its contents to another mailfolder.
newParentId - New parent folder iditemId - Item id to be movedGraphMessageInfoCollection listMessages(String id)
List GraphMessageInfo from the parent folder.
The GraphKnownFolders identifies well-known folders that can be used as folder id.
id - Parent folder idGraphMessagePageInfo listMessages(String id, PageInfo page, MailQuery query)
List GraphMessageInfo from the parent folder.
The GraphKnownFolders identifies well-known folders that can be used as folder id.
id - Parent folder idpage - A page infoquery - MailQuery that represents search query.MapiContactCollection listContacts(String id)
List MapiContact from the parent folder.
id - Parent folder idGraphFolderInfoCollection listContactFolders()
Get a collection of child folders under the root contact folder.
MapiCalendarCollection listCalendarItems(String id)
List MapiCalendar from the calendar.
id - Calendar idMapiCalendar fetchCalendarItem(String id)
Gets MapiCalendar for specified id
id - MapiCalendar idMapiCalendar createCalendarItem(String calId, MapiCalendar mapiCalendar)
Creates MapiCalendar in specified calendar
calId - Calendar idmapiCalendar - MapiCalendar to be createdMapiCalendar updateCalendarItem(MapiCalendar mapiCalendar)
Updates MapiCalendar
mapiCalendar - MapiCalendar to be updatedMapiCalendar updateCalendarItem(MapiCalendar mapiCalendar, UpdateSettings updateSettings)
Updates appointment
mapiCalendar - MapiCalendar to be updatedupdateSettings - Update settingsMapiContact fetchContact(String id)
Gets MapiContact for specified id
id - Contact idMapiAttachment createAttachment(String parentId, MapiAttachment attachment)
Creates new attachment for specified item
parentId - Item idattachment - Attachment to createMapiAttachment fetchAttachment(String id)
Gets attachment for specified id
id - Attachment idvoid deleteAttachment(String id)
Removes attachment
id - Attachment id to deleteMapiAttachmentCollection listAttachments(String id)
List Attachments from the parent message.
id - Parent message idMapiMessage fetchMessage(String id)
Gets message in specified id
id - Message id to fetchMapiMessage createMessage(String folderId, MapiMessage message)
Creates message in specified folder
folderId - Parent folder idmessage - Mapi message to be createdMailMessage createMessage(String folderId, MailMessage message)
Creates message in specified folder
folderId - Parent folder idmessage - Mime message to be createdMapiContact createContact(String folderId, MapiContact contact)
Creates contact in specified folder
folderId - Parent folder idcontact - MapiContact to be createdMapiContact updateContact(MapiContact contact)
Updates contact
contact - MapiContact to be updatedMapiMessage updateMessage(MapiMessage message)
Updates message
message - Mapi message to be updatedMapiMessage updateMessage(MapiMessage message, UpdateSettings updateSettings)
Updates message
message - Mapi message to be updatedupdateSettings - Update settingsMailMessage updateMessage(MailMessage message)
Updates message
message - MailMessage to be updatedMailMessage updateMessage(MailMessage message, UpdateSettings updateSettings)
Updates message
message - MailMessage to be updatedupdateSettings - Update settingsvoid send(String itemId)
Send a message in the draft folder. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. The message is then saved in the Sent Items folder.
itemId - Item id of the draft messagevoid send(MapiMessage message)
Sends email message
message - Mapi message to sendvoid sendAsMime(MapiMessage message)
Sends email message using MIME format
message - Mapi message to sendvoid send(MapiMessage message, boolean saveToSentItems)
Sends email message
message - Mapi message to sendsaveToSentItems - Indicates whether to save the message in Sent Items.void send(MailMessage message)
Sends email message using MIME format
message - Mime message to sendMapiMessage copyMessage(String newParentId, String itemId)
Copy a Message to another mailfolder.
newParentId - New parent folder iditemId - Item id to be copiedMapiMessage moveMessage(String newParentId, String itemId)
Move a message to another mailfolder.
newParentId - New parent folder iditemId - Item id to be movedvoid setRead(String itemId)
Mark message as read
itemId - Item id to mark readList<OutlookCategory> listCategories()
Get all the categories that have been defined for the user.
List<OutlookCategory> listCategoriesInternal()
OutlookCategory createCategory(String displayName, int preset)
Creates an OutlookCategory object in the user's master list of categories.
displayName - A unique name that identifies a category in the user's mailbox.preset - pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colorsOutlookCategory updateCategory(OutlookCategory category)
Updates pre-set color constant for specified category
category - Category to updateOutlookCategory fetchCategory(String itemId)
Get the properties and relationships of the specified outlookCategory object.
itemId - Item id to be fetchedClassificationOverride createOrUpdateOverride(MailAddress sender, int classifyAs)
Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note: - If an override already exists with the same SMTP address, then the classifyAs and name fields of that override are updated with the provided values. - The maximum number of overrides supported for a mailbox is 1000, based on unique sender SMTP addresses. Permissions: Delegated(work or school account) Mail.ReadWrite Delegated(personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite
sender - Email address information of the sender for whom the override is created.classifyAs - Value which specifies how incoming messages from a specific sender should always be classified as.ClassificationOverride createOrUpdateOverride(ClassificationOverride classificationOverride)
Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classified as specified in the override. Note: - If an override already exists with the same SMTP address, then the classifyAs and name fields of that override are updated with the provided values. - The maximum number of overrides supported for a mailbox is 1000, based on unique sender SMTP addresses. Permissions: Delegated(work or school account) Mail.ReadWrite Delegated(personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite
classificationOverride - ClassificationOverride updateOverride(ClassificationOverride classificationOverride)
Change the classifyAs field of an override as specified. You cannot use this method to change any other fields in an ClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use CreateOrUpdateOverride to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one with the new SMTP address is the only way to "update" the override for this sender. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.ReadWrite Delegated (personal Microsoft account) Mail.ReadWrite Application Mail.ReadWrite
classificationOverride - Classification override to updateList<ClassificationOverride> listOverrides()
Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender.Initially, a user does not have any overrides. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.Read Delegated (personal Microsoft account) Mail.Read Application Mail.Read
List<ClassificationOverride> listOverridesInternal()
InboxRule createRule(InboxRule rule)
Create a message rule by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite
rule - Rule to be created in inboxList<InboxRule> listRules()
Get all the messageRule objects defined for the user's Inbox. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read
List<InboxRule> listRulesInternal()
InboxRule fetchRule(String itemId)
Get the properties and relationships of a message rule object. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read
itemId - Item idInboxRule updateRule(InboxRule rule)
Change writable properties on a messageRule object and save the changes. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite
rule - Rule to updateGraphNotebook fetchNotebook(String itemId)
Retrieve the properties and relationships of a notebook object. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All
itemId - Item idGraphNotebook createNotebook(GraphNotebook notebook)
Create a new OneNote notebook. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.ReadWrite, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.ReadWrite Application Notes.ReadWrite.All
notebook - Notebook to be createdGraphNotebookCollection listNotebooks()
Retrieve a list of notebook objects. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All
String copyNotebook(String itemId, String groupId, String renameAs)
Copies a notebook to the Notebooks folder in the destination Documents library. The folder is created if it doesn't exist. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. Permissions One of the following permissions is required to call this API. Delegated(work or school account) Notes.Create, Notes.ReadWrite, Notes.ReadWrite.All Delegated(personal Microsoft account) Notes.Create, Notes.ReadWrite Application Notes.ReadWrite.All
itemId - Item id to be copiedgroupId - The id of the group to copy to. Use only when copying to an Office 365 group.renameAs - The name of the copy. Defaults to the name of the existing item.GraphOnenoteOperation getOneNoteOperationStatus(String operationId)
Get the status of a long-running OneNote operation. This applies to operations that return the Operation-Location header in the response, such as CopyNotebook, CopyToNotebook, CopyToSectionGroup, and CopyToSection. You can poll the Operation-Location endpoint until the status property returns completed or failed. If the status is completed, the resourceLocation property contains the resource endpoint URI. If the status is failed, the error and @api.diagnostics properties provide error information.
operationId - Operation idGraphCalendarInfoCollection listCalendars()
List CalendarInfo items.
GraphCalendarInfoGraphCalendarInfo createCalendar(String name)
Creates new Calendar.
name - New Calendar nameGraphCalendarInfoGraphTaskListInfoCollection listTaskLists()
List TaskList items.
GraphTaskListInfoGraphTaskListInfo getTaskList(String id)
Gets TaskList by an id.
id - TaskList idGraphTaskListInfo createTaskList(GraphTaskListInfo taskList)
Creates new TaskList.
taskList - New TaskList GraphTaskListInfoGraphTaskListInfo updateTaskList(GraphTaskListInfo taskList)
Updates TaskList.
taskList - TaskListInfo to updatevoid deleteTaskList(String id)
Delete TaskList.
id - TaskList id to deleteMapiTaskCollection listTasks(String id)
List MapiTask from the parent TaskList.
id - Parent TaskList idMapiTask fetchTask(String id)
Gets MapiTask for specified id
id - MapiTask idMapiTask createTask(MapiTask task, String taskListUri)
Creates Task in specified folder
taskListUri - Parent TaskList uritask - MapiTask to be createdMapiTask updateTask(MapiTask task)
Updates Task
task - MapiTask to be updatedMapiTask updateTask(MapiTask task, UpdateSettings updateSettings)
Updates Task
task - MapiTask to be updatedupdateSettings - Update settingsGraphFolderInfoCollection listFolders(ODataQueryBuilder queryBuilder)
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
queryBuilder - Optional OData query builder for filtering folders.GraphFolderInfoCollection listFolders(String id, ODataQueryBuilder queryBuilder)
List folders from the parent folder for folders that are displayed in normal mail clients, such as the inbox.
id - Parent folder idqueryBuilder - Optional OData query builder for filtering folders.GraphMessageInfoCollection listMessages(String id, ODataQueryBuilder queryBuilder)
List MessageInfo from the parent folder.
id - Parent folder idqueryBuilder - Optional OData query builder for filtering messages.MapiContactCollection listContacts(String id, ODataQueryBuilder queryBuilder)
List MapiContact from the parent folder.
id - Parent folder idqueryBuilder - Optional OData query builder for filtering contacts.GraphFolderInfoCollection listContactFolders(ODataQueryBuilder queryBuilder)
Get a collection of child folders under the root contact folder.
queryBuilder - Optional OData query builder for filtering calendar items.MapiCalendarCollection listCalendarItems(String id, ODataQueryBuilder queryBuilder)
List MapiCalendar from the calendar.
id - Calendar idqueryBuilder - Optional OData query builder for filtering calendar items.MapiAttachmentCollection listAttachments(String id, ODataQueryBuilder queryBuilder)
List Attachments from the parent message.
id - Parent message idqueryBuilder - Optional OData query builder for filtering attachments.List<OutlookCategory> listCategories(ODataQueryBuilder queryBuilder)
Get all the categories that have been defined for the user.
queryBuilder - Optional OData query builder for filtering categories.List<OutlookCategory> listCategoriesInternal(ODataQueryBuilder queryBuilder)
List<ClassificationOverride> listOverrides(ODataQueryBuilder queryBuilder)
Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender.Initially, a user does not have any overrides. Permissions: One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) Mail.Read Delegated (personal Microsoft account) Mail.Read Application Mail.Read
queryBuilder - Optional OData query builder for filtering overrides.List<ClassificationOverride> listOverridesInternal(ODataQueryBuilder queryBuilder)
List<InboxRule> listRules(ODataQueryBuilder queryBuilder)
Get all the messageRule objects defined for the user's Inbox. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read
queryBuilder - Optional OData query builder for filtering rules.List<InboxRule> listRulesInternal(ODataQueryBuilder queryBuilder)
GraphNotebookCollection listNotebooks(ODataQueryBuilder queryBuilder)
Retrieve a list of notebook objects. Permissions One of the following permissions is required to call this API. Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite Application Notes.Read.All, Notes.ReadWrite.All
queryBuilder - Optional OData query builder for filtering notebooks.GraphCalendarInfoCollection listCalendars(ODataQueryBuilder queryBuilder)
List CalendarInfo items.
queryBuilder - Optional OData query builder for filtering calendar items.GraphCalendarInfoGraphTaskListInfoCollection listTaskLists(ODataQueryBuilder queryBuilder)
List TaskList items.
queryBuilder - Optional OData query builder for filtering task lists.GraphTaskListInfoMapiTaskCollection listTasks(String id, ODataQueryBuilder queryBuilder)
List MapiTask from the parent TaskList.
id - Parent TaskList idqueryBuilder - Optional OData query builder for filtering tasks.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.