Class GraphClient
GraphClient provides methods to access Microsoft Graph resources including:
- Users - Manage user accounts and profiles
- Mail - Send and receive email messages, manage folders
- Calendar - Access events, schedule meetings, manage calendars
- Contacts - Manage personal and organizational contacts
- Files - Access OneDrive files and folders
- Groups - Manage Microsoft 365 groups
- Teams - Access Microsoft Teams channels and chats
- Sites - Interact with SharePoint sites
- To-Do - Manage tasks and task lists
This client supports multiple OAuth 2.0 authentication flows including: authorization code flow, device code flow, client credentials flow, and username/password flow.
Example usage:
GraphClient client = new GraphClient();
client.setClientId("your-client-id");
client.setTenant("your-tenant-id");
client.setScope(Arrays.asList("User.Read", "Mail.ReadWrite"));
client.setAuthorizationCode("authorization-code");
// Get current user
User user = client.me();
// List messages
List<Message> messages = client.listMessages();
- Since:
- 1.1.1250
- See Also:
- Use the Microsoft Graph API, Microsoft Graph authentication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptEvent(String eventId)Accepts an event invitation and sends a response to the organizer.voidacceptEvent(String eventId, boolean sendResponse)Accepts an event invitation with control over sending response.voidacceptEvent(String eventId, boolean sendResponse, UserId userId)Accepts an event for a specific user with send response control.voidacceptEvent(String eventId, boolean sendResponse, String newBody)Accepts an event with send response control and comment message.voidacceptEvent(String eventId, boolean sendResponse, String newBody, UserId userId)Accepts an event for a specific user with all options using UserId object.voidacceptEvent(String eventId, boolean sendResponse, String newBody, String userId)Accepts an event for a specific user with all options.voidacceptEvent(String eventId, UserId userId)Accepts an event for a specific user.voidacceptEvent(String eventId, String newBody)Accepts an event with a comment message.addChannelMember(String teamId, String channelId, ConversationMember member)Adds a member to a channel.addChatMember(String chatId, ConversationMember member)voidaddGroupMember(String groupId, String memberId)Adds a member to a group.voidaddGroupOwner(String groupId)Adds the currently authenticated user as an owner of the specified group.voidaddGroupOwner(String groupId, UserId userId)Adds a user as an owner of the specified group using a UserId object.voidaddGroupOwner(String groupId, String userId)Adds a user as an owner of the specified group.voidaddGroupToFavorite(String groupId)Adds a group to the list of favorite groups for the signed-in user.addTeamMember(String teamId, ConversationMember member)Adds a member to a team.voidanswerCall(String callId, String callbackUri, List<Modality> acceptedModalities, MediaConfig mediaConfig)voidarchiveChannel(String teamId, String channelId)archivePlannerPlan(String planId)Archives a planner plan.archivePlannerPlan(String planId, String justification)Archives a planner plan with a justification.voidassociateContentTypeWithHubSites(String siteId, String contentTypeId, List<String> hubSiteUrls, boolean propagateToExistingLists)voidassociateContentTypeWithHubSites(String siteId, String contentTypeId, List<String> hubSiteUrls, boolean propagateToExistingLists, ResourceId resourceId)voidcalculateWorkbookApplication(String workbookId)voidcalculateWorkbookApplication(String workbookId, ResourceId resourceId)voidcalculateWorkbookApplication(String workbookId, CalculationType calculationType)voidcalculateWorkbookApplication(String workbookId, CalculationType calculationType, ResourceId resourceId)voidcancelEvent(String eventId)Cancels an event and sends cancellation notification.voidcancelEvent(String eventId, UserId userId)Cancels an event for a specific user.voidcancelEvent(String eventId, String newBody)Cancels an event with a comment message.voidcancelEvent(String eventId, String newBody, UserId userId)Cancels an event with a comment message for a specific user using UserId object.voidcancelEvent(String eventId, String newBody, String userId)Cancels an event with a comment message for a specific user.voidcheckInDriveItem(String itemId)Checks in a drive item, making it available for others to edit.voidcheckInDriveItem(String itemId, ResourceId resourceId)Checks in a drive item with a specific resource context.voidcheckOutDriveItem(String itemId)Checks out a drive item, locking it for editing by the current user.voidcheckOutDriveItem(String itemId, ResourceId resourceId)Checks out a drive item with a specific resource context.voidcloseWorkbookSession(String workbookId)voidcloseWorkbookSession(String workbookId, ResourceId resourceId)voidcloseWorkbookSession(String workbookId, String sessionId)voidcloseWorkbookSession(String workbookId, String sessionId, ResourceId resourceId)byte[]convertDriveItem(String itemId, String format)Converts a drive item's content to a different format.byte[]convertDriveItem(String itemId, String format, ResourceId resourceId)Converts a drive item's content to a different format with a specific resource context.convertDriveItemAsStream(String itemId, String format)Converts a drive item's content to a different format and returns it as a stream.convertDriveItemAsStream(String itemId, String format, ResourceId resourceId)Converts a drive item's content to a different format as a stream with a resource context.copyDriveItem(String itemId, String destinationName)Asynchronously copies a drive item to a new location with a new name.copyDriveItem(String itemId, String destinationName, ItemReference destinationFolder)Asynchronously copies a drive item to a specified folder with a new name.copyDriveItem(String itemId, String destinationName, ItemReference destinationFolder, ResourceId resourceId)Asynchronously copies a drive item with full control over destination and context.copyDriveItem(String itemId, String destinationName, ResourceId resourceId)Asynchronously copies a drive item with a specific resource context.copyMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder)Copies a mail folder to a standard mailbox folder.copyMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, UserId userId)Copies a mail folder to a standard mailbox folder for a specific user using UserId object.copyMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, String userId)Copies a mail folder to a standard mailbox folder for a specific user.copyMailFolder(String sourceFolderId, String destinationParentFolderId)Copies a mail folder to another folder.copyMailFolder(String sourceFolderId, String destinationParentFolderId, UserId userId)Copies a mail folder to another folder for a specific user with all options.copyMailFolder(String sourceFolderId, String destinationParentFolderId, String userId)Copies a mail folder to another folder for a specific user.copyMessage(String messageId, StandardMailboxFolder standardMailboxFolder)Copies a message to a standard mailbox folder.copyMessage(String messageId, StandardMailboxFolder standardMailboxFolder, UserId userId)Copies a message to a standard mailbox folder for a specific user using UserId object.copyMessage(String messageId, StandardMailboxFolder standardMailboxFolder, String userId)Copies a message to a standard mailbox folder for a specific user.copyMessage(String messageId, String destintionFolderId)Copies a message to a specific folder.copyMessage(String messageId, String destintionFolderId, UserId userId)Copies a message to a specific folder for a specific user using UserId object.copyMessage(String messageId, String destintionFolderId, String userId)Copies a message to a specific folder for a specific user.createAttachment(Attachment attachment, OutlookResourceId outlookResourceId)Creates an attachment for a message or event.createAttachment(Attachment attachment, OutlookResourceId outlookResourceId, UserId userId)Creates an attachment for a message or event for a specific user using UserId object.createAttachment(Attachment attachment, OutlookResourceId outlookResourceId, String userId)Creates an attachment for a message or event for a specific user.createAttachment(UploadSession uploadSession, byte[] buffer)Uploads an attachment using an existing upload session from a byte array.createAttachment(UploadSession uploadSession, InputStream stream)Uploads an attachment using an existing upload session from an InputStream.createAttachment(UploadSession uploadSession, InputStream stream, int bufferSize)Uploads an attachment using an existing upload session from an InputStream with custom buffer size.createAttachment(UploadSession uploadSession, String filePath)Uploads an attachment using an existing upload session from a file.createAttachment(UploadSession uploadSession, String filePath, int bufferSize)Uploads an attachment using an existing upload session from a file with custom buffer size.createCalendar(Calendar calendar)Creates a new calendar in the signed-in user's mailbox.createCalendar(Calendar calendar, CalendarId calendarId)Creates a new calendar in a specific calendar.createCalendar(Calendar calendar, CalendarId calendarId, CalendarGroupId calendarGroupId)Creates a new calendar in a specific calendar within a calendar group.createCalendar(Calendar calendar, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId)Creates a new calendar with all options.createCalendar(Calendar calendar, CalendarId calendarId, UserId userid)Creates a new calendar in a specific calendar for a specific user.createCalendar(Calendar calendar, UserId userid)Creates a new calendar for a specific user.createCalendar(Calendar calendar, String calendarId)Creates a new calendar in a specific calendar.createCalendar(Calendar calendar, String calendarId, String calendarGroupId)Creates a new calendar in a specific calendar within a calendar group.createCalendar(Calendar calendar, String calendarId, String calendarGroupId, String userId)Creates a new calendar with all options for a specific user.createCalendarGroup(CalendarGroup calendarGroup)Creates a new calendar group with full properties.createCalendarGroup(CalendarGroup calendarGroup, UserId userId)Creates a new calendar group for a specific user with full properties.createCalendarGroup(CalendarGroup calendarGroup, String userId)Creates a new calendar group for a specific user with full properties.createCalendarGroup(String name)Creates a new calendar group for the authenticated user.createCalendarGroup(String name, UserId userId)Creates a new calendar group for a specific user.createCalendarGroup(String name, String userId)Creates a new calendar group for a specific user.createCall(Call call)createChannel(String teamId, Channel channel)Creates a new channel in a team.createChat(Chat chat)Creates a new chat.createChildMailboxFolder(MailboxFolder folder, String mailboxId, String parentFolderId)createChildMailFolder(MailFolder mailFolder, String parentFolderId)Creates a child mail folder under a parent folder.createChildMailFolder(MailFolder mailFolder, String parentFolderId, UserId userId)Creates a child mail folder under a parent folder for a specific user with all options.createChildMailFolder(MailFolder mailFolder, String parentFolderId, String userId)Creates a child mail folder under a parent folder for a specific user.createChildMailFolder(String displayName, String parentFolderId)Creates a child mail folder under a parent folder.createChildMailFolder(String displayName, String parentFolderId, UserId userId)Creates a child mail folder under a parent folder for a specific user using UserId object.createChildMailFolder(String displayName, String parentFolderId, String userId)Creates a child mail folder under a parent folder for a specific user.createColumn(ColumnDefinition column, String siteId, String listId)createColumn(ColumnDefinition column, String siteId, String listId, ResourceId resourceId)createContact(Contact contact)Creates a new contact for the signed-in user.createContact(Contact contact, UserId userId)Creates a new contact for a specific user.createContact(Contact contact, String contactFolderId)Creates a new contact in a specific contact folder.createContact(Contact contact, String contactFolderId, UserId userId)Creates a new contact in a specific folder for a specific user using UserId object.createContact(Contact contact, String contactFolderId, String userId)Creates a new contact in a specific folder for a specific user.createContactFolder(String displayName)Creates a new contact folder for the signed-in user.createContactFolder(String displayName, UserId userId)Creates a new contact folder for a specific user.createContactFolder(String displayName, String parentFolderId)Creates a new child contact folder within a parent folder.createContactFolder(String displayName, String parentFolderId, UserId userId)Creates a new child contact folder within a parent folder for a specific user using UserId object.createContactFolder(String displayName, String parentFolderId, String userId)Creates a new child contact folder within a parent folder for a specific user.createContentType(ContentType contentType, String siteId)createContentType(ContentType contentType, String siteId, ResourceId resourceId)createDocumentSetVersion(DocumentSetVersion documentSetVersion, String siteId, String listId, String itemId)createDocumentSetVersion(DocumentSetVersion documentSetVersion, String siteId, String listId, String itemId, ResourceId resourceId)createDriveItem(String parentId, DriveItem driveItem)Creates a drive item (file or folder) using a DriveItem object.createDriveItem(String parentId, ResourceId resourceId, DriveItem driveItem)Creates a drive item using a DriveItem object with specific resource context.createDriveItem(String parentId, ResourceId resourceId, String fileName)Creates an empty drive item with a specific resource context.createDriveItem(String parentId, ResourceId resourceId, String fileName, byte[] content)Creates a drive item with content from a byte array and specific resource context.createDriveItem(String parentId, ResourceId resourceId, String fileName, InputStream stream)Creates a drive item with content from a stream and specific resource context.createDriveItem(String parentId, String fileName)Creates an empty drive item (file or folder) in the specified parent folder.createDriveItem(String parentId, String fileName, byte[] content)Creates a drive item with content from a byte array.createDriveItem(String parentId, String fileName, InputStream stream)Creates a drive item with content from a stream.createEvent(Event eventItem)Creates a new event in the signed-in user's default calendar.createEvent(Event eventItem, CalendarId calendarId)Creates a new event in a specific calendar using CalendarId object.createEvent(Event eventItem, CalendarId calendarId, UserId userId)Creates a new event in a specific calendar for a specific user using ID objects.createEvent(Event eventItem, UserId userId)Creates a new event for a specific user's default calendar.createEvent(Event eventItem, String calendarId)Creates a new event in a specific calendar.createEvent(Event eventItem, String calendarId, String userId)Creates a new event in a specific calendar for a specific user.createForwardMessage(String messageId, List<EmailAddress> toRecipients)Creates a forward message draft without sending it.createForwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage)Creates a forward message draft with updated message properties.createForwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage, UserId userId)Creates a forward message draft with updated properties for a specific user.createForwardMessage(String messageId, List<EmailAddress> toRecipients, UserId userId)Creates a forward message draft for a specific user.createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody)Creates a forward message draft with a comment.createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage)Creates a forward message draft with a comment and updated properties.createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage, UserId userId)Creates a forward message draft with all options for a specific user.createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, UserId userId)Creates a forward message draft with a comment for a specific user.createGroup(Group group)Creates a new group in the directory.createInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride)createInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, UserId userId)createInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, String userId)createList(List list, String siteId)createList(List list, String siteId, ResourceId resourceId)createListContentType(ContentType contentType, String siteId, String listId)createListContentType(ContentType contentType, String siteId, String listId, ResourceId resourceId)createListItem(ListItem listItem, String listId, String siteId)createListItem(ListItem listItem, String listId, String siteId, ResourceId resourceId)createMailboxFolder(MailboxFolder folder, String mailboxId)createMailboxImportSession(String mailboxId)createMailFolder(MailFolder mailFolder)Creates a mail folder.createMailFolder(MailFolder mailFolder, UserId userId)Creates a mail folder for a specific user using UserId object.createMailFolder(MailFolder mailFolder, String userId)Creates a mail folder for a specific user.createMailFolder(String displayName)Creates a mail folder with a display name.createMailFolder(String displayName, UserId userId)Creates a mail folder with a display name for a specific user using UserId object.createMailFolder(String displayName, String userId)Creates a mail folder with a display name for a specific user.createMailSearchFolder(MailSearchFolder mailSearchFolder, String parentFolderId)createMailSearchFolder(MailSearchFolder mailSearchFolder, String parentFolderId, UserId userId)createMailSearchFolder(MailSearchFolder mailSearchFolder, String parentFolderId, String userId)createMessage(Message message)Creates a draft message in the Drafts folder.createMessage(Message message, StandardMailboxFolder standardMailboxFolder)Creates a message in a specific standard mailbox folder.createMessage(Message message, StandardMailboxFolder standardMailboxFolder, UserId userId)Creates a message in a specific standard mailbox folder for a specific user using UserId object.createMessage(Message message, StandardMailboxFolder standardMailboxFolder, String userId)Creates a message in a specific standard mailbox folder for a specific user.createMessage(Message message, UserId userId)Creates a draft message for a specific user using UserId object.createMessage(Message message, String folderId)Creates a message in a specific folder.createMessage(Message message, String folderId, UserId userId)Creates a message in a specific folder for a specific user with all options.createMessage(Message message, String folderId, String userId)Creates a message in a specific folder for a specific user.createMessageRule(MessageRule messageRule)Creates a message rule.createMessageRule(MessageRule messageRule, UserId userId)Creates a message rule for a specific user using UserId object.createMessageRule(MessageRule messageRule, String userId)Creates a message rule for a specific user.createOnlineMeeting(OnlineMeeting onlineMeeting)createOnlineMeeting(OnlineMeeting onlineMeeting, UserId userId)createOnlineMeeting(OnlineMeeting onlineMeeting, String userId)createOutlookCategory(OutlookCategory category)Creates a new Outlook category for the signed-in user.createOutlookCategory(OutlookCategory category, UserId userId)Creates a new Outlook category for a specific user using UserId object.createOutlookCategory(OutlookCategory category, String userId)Creates a new Outlook category for a specific user.createPlannerBucket(PlannerBucket bucket)Creates a new planner bucket.createPlannerPlan(PlannerPlan plan)Creates a new planner plan.createPlannerTask(PlannerTask task)Creates a new planner task.createReplyToAllMessage(String messageId)Creates a reply-to-all message draft without sending it.createReplyToAllMessage(String messageId, Message updateMessage)Creates a reply-to-all message draft with updated message properties.createReplyToAllMessage(String messageId, Message updateMessage, UserId userId)Creates a reply-to-all message draft with updated properties for a specific user.createReplyToAllMessage(String messageId, UserId userId)Creates a reply-to-all message draft for a specific user.createReplyToAllMessage(String messageId, String newBody)Creates a reply-to-all message draft with a comment.createReplyToAllMessage(String messageId, String newBody, Message updateMessage)Creates a reply-to-all message draft with a comment and updated properties.createReplyToAllMessage(String messageId, String newBody, Message updateMessage, UserId userId)Creates a reply-to-all message draft with all options for a specific user.createReplyToAllMessage(String messageId, String newBody, UserId userId)Creates a reply-to-all message draft with a comment for a specific user.createReplyToMessage(String messageId)Creates a reply message draft without sending it.createReplyToMessage(String messageId, Message updateMessage)Creates a reply message draft with updated message properties.createReplyToMessage(String messageId, Message updateMessage, UserId userId)Creates a reply message draft with updated properties for a specific user.createReplyToMessage(String messageId, UserId userId)Creates a reply message draft for a specific user.createReplyToMessage(String messageId, String newBody)Creates a reply message draft with a comment.createReplyToMessage(String messageId, String newBody, Message updateMessage)Creates a reply message draft with a comment and updated properties.createReplyToMessage(String messageId, String newBody, Message updateMessage, UserId userId)Creates a reply message draft with all options for a specific user.createReplyToMessage(String messageId, String newBody, UserId userId)Creates a reply message draft with a comment for a specific user.createSharingLink(SharingLink link, String itemId)Creates a sharing link for a drive item.createSharingLink(SharingLink link, String itemId, ResourceId resourceId)Creates a sharing link for a drive item with a specific resource context.createSitePage(SitePage page, String siteId)createSitePage(SitePage page, String siteId, ResourceId resourceId)createSitePermission(String siteId, List<String> roles, String applicationId, String applicationDisplayName)createSitePermission(String siteId, List<String> roles, String applicationId, String applicationDisplayName, ResourceId resourceId)createSubscription(Subscription subscription)createTeam(Team team)Creates a new team and returns the team ID.createTeamFromGroup(Team team, String groupId)Creates a new team from an existing Microsoft 365 group.createTodoTask(String todoTaskListId, TodoTask todoTask)Creates a new task in a todo task list for the current user.createTodoTask(String todoTaskListId, TodoTask todoTask, UserId userId)Creates a new task in a todo task list using UserId object.createTodoTask(String todoTaskListId, TodoTask todoTask, String userId)Creates a new task in a todo task list for a specific user.createTodoTaskList(TodoTaskList todoTaskList)Creates a new todo task list for the current user.createTodoTaskList(TodoTaskList todoTaskList, UserId userId)Creates a new todo task list using UserId object.createTodoTaskList(TodoTaskList todoTaskList, String userId)Creates a new todo task list for a specific user.createUploadSession(AttachmentItem attachmentItem, OutlookResourceId outlookResourceId)Creates an upload session for uploading large attachments.createUploadSession(AttachmentItem attachmentItem, OutlookResourceId outlookResourceId, UserId userId)Creates an upload session for uploading large attachments for a specific user.createUploadSession(String driveItemId)Creates an upload session for uploading large files in chunks.createUploadSession(String driveItemId, DriveItemUploadableProperties properties)Creates an upload session with uploadable properties.createUploadSession(String driveItemId, DriveItemUploadableProperties properties, boolean deferCommit)Creates an upload session with deferred commit option.createUploadSession(String driveItemId, ResourceId resourceId)Creates an upload session with a specific resource context.createUploadSession(String driveItemId, ResourceId resourceId, boolean deferCommit)Creates an upload session with resource context and deferred commit.createUploadSession(String driveItemId, ResourceId resourceId, DriveItemUploadableProperties properties)Creates an upload session with resource context and properties.createUploadSession(String driveItemId, ResourceId resourceId, DriveItemUploadableProperties properties, boolean deferCommit)Creates an upload session with full control over properties and options.createUser(User user)Creates a new user in the organization.createWorkbookChart(Chart chart, String workbookId, String worksheetId)createWorkbookChart(Chart chart, String workbookId, String worksheetId, ResourceId resourceId)createWorkbookSession(String workbookId)createWorkbookSession(String workbookId, boolean persistChanges)createWorkbookSession(String workbookId, boolean persistChanges, ResourceId resourceId)createWorkbookSession(String workbookId, ResourceId resourceId)createWorksheet(String workbookId)createWorksheet(String workbookId, ResourceId resourceId)createWorksheet(String workbookId, String name)createWorksheet(String workbookId, String name, ResourceId resourceId)voiddeclineEvent(String eventId)Declines an event invitation and sends a response to the organizer.voiddeclineEvent(String eventId, boolean sendResponse)Declines an event with control over sending response.voiddeclineEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime)Declines an event with a proposed new time.voiddeclineEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime, UserId userId)Declines an event with a proposed new time for a specific user.voiddeclineEvent(String eventId, boolean sendResponse, UserId userId)Declines an event for a specific user with send response control.voiddeclineEvent(String eventId, boolean sendResponse, String newBody)Declines an event with a comment message.voiddeclineEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime)Declines an event with comment and proposed new time.voiddeclineEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime, UserId userId)Declines an event with all options for a specific user.voiddeclineEvent(String eventId, boolean sendResponse, String newBody, UserId userId)Declines an event for a specific user with a comment message.voiddeclineEvent(String eventId, TimeSlot proposedNewTime)Declines an event with a proposed new time.voiddeclineEvent(String eventId, TimeSlot proposedNewTime, UserId userId)Declines an event with a proposed new time for a specific user.voiddeclineEvent(String eventId, UserId userId)Declines an event for a specific user.voiddeleteAttachment(String attachmentId, OutlookResourceId outlookResourceId)Deletes an attachment from a message or event.voiddeleteAttachment(String attachmentId, OutlookResourceId outlookResourceId, UserId userId)Deletes an attachment from a message or event for a specific user using UserId object.voiddeleteAttachment(String attachmentId, OutlookResourceId outlookResourceId, String userId)Deletes an attachment from a message or event for a specific user.voiddeleteCalendar(String calendarId)Deletes a calendar from the signed-in user's mailbox.voiddeleteCalendar(String calendarId, UserId userId)Deletes a calendar from a specific user's mailbox using UserId object.voiddeleteCalendar(String calendarId, String userId)Deletes a calendar from a specific user's mailbox.voiddeleteCalendarGroup(String calendarGroupId)Deletes a calendar group for the authenticated user.voiddeleteCalendarGroup(String calendarGroupId, UserId userId)Deletes a calendar group for a specific user.voiddeleteCalendarGroup(String calendarGroupId, String userId)Deletes a calendar group for a specific user.voiddeleteCall(String callId)voiddeleteChannel(String teamId, String channelId)Deletes a channel from a team.voiddeleteChannelMember(String teamId, String channelId, String memberId)Removes a member from a channel.voiddeleteColumn(String columnId, String siteId)voiddeleteColumn(String columnId, String siteId, ResourceId resourceId)voiddeleteContact(String contactId)Deletes a contact for the signed-in user.voiddeleteContact(String contactId, UserId userId)Deletes a contact for a specific user using UserId object.voiddeleteContact(String contactId, String userId)Deletes a contact for a specific user.voiddeleteContentType(String contentTypeId, String siteId)voiddeleteContentType(String contentTypeId, String siteId, ResourceId resourceId)voiddeleteDriveItem(String itemId)Deletes a drive item (file or folder).voiddeleteDriveItem(String itemId, ResourceId resourceId)Deletes a drive item with a specific resource context.voiddeleteEvent(String eventId)Deletes an event from the signed-in user's calendar.voiddeleteEvent(String eventId, UserId userId)Deletes an event from a specific user's calendar using UserId object.voiddeleteEvent(String eventId, String userId)Deletes an event from a specific user's calendar.voiddeleteGroup(String groupId)Deletes a group from the directory.voiddeleteGroupMember(String groupId, String memberId)Removes a member from a group.voiddeleteGroupOwner(String groupId, String ownerId)Removes an owner from a group.voiddeleteInferenceClassificationOverride(String inferenceClassificationOverrideId)voiddeleteInferenceClassificationOverride(String inferenceClassificationOverrideId, UserId userId)voiddeleteInferenceClassificationOverride(String inferenceClassificationOverrideId, String userId)voiddeleteList(String siteId, String listId)voiddeleteList(String siteId, String listId, ResourceId resourceId)voiddeleteListColumn(String columnId, String siteId, String listId)voiddeleteListColumn(String columnId, String siteId, String listId, ResourceId resourceId)voiddeleteListContentType(String contentTypeId, String siteId, String listId)voiddeleteListContentType(String contentTypeId, String siteId, String listId, ResourceId resourceId)voiddeleteListItem(String itemId, String listId, String siteId)voiddeleteListItem(String itemId, String listId, String siteId, ResourceId resourceId)voiddeleteMailboxFolder(String mailboxId, String folderId)voiddeleteMailFolder(String mailFolderId)Deletes a mail folder.voiddeleteMailFolder(String mailFolderId, UserId userId)Deletes a mail folder for a specific user using UserId object.voiddeleteMailFolder(String mailFolderId, String userId)Deletes a mail folder for a specific user.voiddeleteMessage(String messageId)Deletes a message for the signed-in user.voiddeleteMessage(String messageId, UserId userId)Deletes a message for a specific user using UserId object.voiddeleteMessage(String messageId, String userId)Deletes a message for a specific user.voiddeleteMessageRule(String messageRuleId)Deletes a message rule.voiddeleteMessageRule(String messageRuleId, UserId userId)Deletes a message rule for a specific user using UserId object.voiddeleteMessageRule(String messageRuleId, String userId)Deletes a message rule for a specific user.voiddeleteOnlineMeeting(String onlineMeetingId)voiddeleteOnlineMeeting(String onlineMeetingId, UserId userId)voiddeleteOnlineMeeting(String onlineMeetingId, String userId)voiddeleteOutlookCategory(String categoryId)Deletes an Outlook category for the signed-in user.voiddeleteOutlookCategory(String categoryId, UserId userId)Deletes an Outlook category for a specific user using UserId object.voiddeleteOutlookCategory(String categoryId, String userId)Deletes an Outlook category for a specific user.voiddeletePlannerBucket(String bucketId)Deletes a planner bucket.voiddeletePlannerBucket(String bucketId, String etag)voiddeletePlannerPlan(String planId)Deletes a planner plan.voiddeletePlannerPlan(String planId, String etag)voiddeletePlannerTask(String taskId)Deletes a planner task.voiddeletePlannerTask(String taskId, String etag)voiddeleteSharingPermission(String itemId, String permissionId)Removes a sharing permission from a drive item.voiddeleteSharingPermission(String itemId, String permissionId, ResourceId resourceId)Removes a sharing permission from a drive item with a specific resource context.voiddeleteSitePage(String siteId, String pageId)voiddeleteSitePage(String siteId, String pageId, ResourceId resourceId)voiddeleteSitePermission(String siteId, String permissionId)voiddeleteSitePermission(String siteId, String permissionId, ResourceId resourceId)voiddeleteSubscription(String subscriptionId)voiddeleteTeam(String teamId)Deletes a team.voiddeleteTeamMember(String teamId, String memberId)Removes a member from a team.voiddeleteTodoTask(String todoTaskListId, String todoTaskId)Deletes a task from a todo task list for the current user.voiddeleteTodoTask(String todoTaskListId, String todoTaskId, UserId userId)Deletes a task from a todo task list using UserId object.voiddeleteTodoTask(String todoTaskListId, String todoTaskId, String userId)Deletes a task from a todo task list for a specific user.voiddeleteTodoTaskList(String todoTaskListId)Deletes a todo task list for the current user.voiddeleteTodoTaskList(String todoTaskListId, UserId userId)Deletes a todo task list using UserId object.voiddeleteTodoTaskList(String todoTaskListId, String userId)Deletes a todo task list for a specific user.voiddeleteUser(String userId)Deletes a user from the organization.voiddismissReminder(String eventId)Dismisses a reminder for an event.voiddismissReminder(String eventId, UserId userId)Dismisses a reminder for an event for a specific user using UserId object.voiddismissReminder(String eventId, String userId)Dismisses a reminder for an event for a specific user.exportItems(String mailboxId, List<String> itemIds)findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint)Finds meeting time suggestions based on attendees and time constraints.findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration)Finds meeting time suggestions including meeting duration.findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration, boolean isOrganizerOptional, LocationConstraint locationConstraint, int maxCandidates, double minimumAttendeePercentage, boolean returnSuggestionReasons)Finds meeting time suggestions with advanced configuration.findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration, boolean isOrganizerOptional, LocationConstraint locationConstraint, int maxCandidates, double minimumAttendeePercentage, boolean returnSuggestionReasons, UserId userId)Finds meeting time suggestions with advanced configuration for a specific user.findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration, UserId userid)Finds meeting time suggestions including meeting duration for a specific user.findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, UserId userid)Finds meeting time suggestions for a specific user.followDriveItem(String itemId)Follows a drive item for the signed-in user.followDriveItem(String itemId, ResourceId resourceId)Follows a drive item with a specific resource context.voidforwardEvent(String eventId, List<EmailAddress> toRecipients)Forwards an event to specified recipients.voidforwardEvent(String eventId, List<EmailAddress> toRecipients, UserId userId)Forwards an event to specified recipients for a specific user.voidforwardEvent(String eventId, List<EmailAddress> toRecipients, String newBody)Forwards an event with a comment message.voidforwardEvent(String eventId, List<EmailAddress> toRecipients, String newBody, UserId userId)Forwards an event with a comment message for a specific user using UserId object.voidforwardEvent(String eventId, List<EmailAddress> toRecipients, String newBody, String userId)Forwards an event with a comment message for a specific user.voidforwardMessage(String messageId, List<EmailAddress> toRecipients)Forwards a message to recipients.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage)Forwards a message with updated message properties.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage, UserId userId)Forwards a message with updated message properties for a specific user.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, UserId userId)Forwards a message for a specific user.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody)Forwards a message with a comment.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage)Forwards a message with a comment and updated message properties.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage, UserId userId)Forwards a message with all options for a specific user.voidforwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, UserId userId)Forwards a message with a comment for a specific user.getAllChannels(String teamId)Gets the list of all channels in a team (including private and shared channels).getAllChannels(String teamId, Query query)Gets the list of all channels in a team with query options.getAllMessagesFromAllChats(UserId userId)Gets all messages from all chats for a specific user using UserId object.getAllMessagesFromAllChats(UserId userId, Query query)Gets all messages from all chats for a specific user with all options.getAllMessagesFromAllChats(String userId)Gets all messages from all chats for a specific user.getAllMessagesFromAllChats(String userId, Query query)Gets all messages from all chats for a specific user with query options.getAttachment(String attachmentId, OutlookResourceId outlookResourceId)Gets a specific attachment.getAttachment(String attachmentId, OutlookResourceId outlookResourceId, Query query)Gets a specific attachment with query options.getAttachment(String attachmentId, OutlookResourceId outlookResourceId, ResourceId resourceId)Gets a specific attachment for a specific resource.getAttachment(String attachmentId, OutlookResourceId outlookResourceId, ResourceId resourceId, Query query)Gets a specific attachment with all options.getAttachments(OutlookResourceId outlookResourceId)Gets all attachments for a message or event.getAttachments(OutlookResourceId outlookResourceId, Query query)Gets all attachments with query options.getAttachments(OutlookResourceId outlookResourceId, ResourceId resourceId)Gets all attachments for a specific resource.getAttachments(OutlookResourceId outlookResourceId, ResourceId resourceId, Query query)Gets all attachments with all options.getAuthorizationCodeRequestUri(String redirectUri)Generates an authorization code request URI for OAuth 2.0 authorization code flow.getAuthorizationCodeRequestUri(String redirectUri, String responseMode)Generates an authorization code request URI with specified response mode.getAuthorizationCodeRequestUri(String redirectUri, String responseMode, String state)Generates an authorization code request URI with response mode and state parameter.Retrieves automatic replies (out-of-office) settings for the authenticated user.getAutomaticRepliesSettings(UserId userId)Retrieves automatic replies (out-of-office) settings for a specific user.getAutomaticRepliesSettings(String userId)Retrieves automatic replies (out-of-office) settings for a specific user.getCalendar(String calendarId)Gets a calendar by ID for the authenticated user.getCalendar(String calendarId, UserId userId)Gets a calendar by ID for a specific user.getCalendar(String calendarId, String userId)Gets a calendar by ID for a specific user.getCalendarGroup(String calendarGroupId)Gets a calendar group by ID for the authenticated user.getCalendarGroup(String calendarGroupId, UserId userId)Gets a calendar group by ID for a specific user.getCalendarGroup(String calendarGroupId, String userId)Gets a calendar group by ID for a specific user.Lists calendar groups for the authenticated user.getCalendarGroups(Query query)Lists calendar groups for the authenticated user with query options.getCalendarGroups(UserId userId)Lists calendar groups for a specific user.getCalendarGroups(UserId userId, Query query)Lists calendar groups for a specific user with query options.getCalendarGroups(String userId)Lists calendar groups for a specific user.getCalendarGroups(String userId, Query query)Lists calendar groups for a specific user with query options.Lists all calendars for the authenticated user.getCalendars(CalendarGroupId calendarGroupId, UserId userId)Lists calendars within a specific calendar group.getCalendars(CalendarGroupId calendarGroupId, UserId userId, Query query)Lists calendars within a specific calendar group with query options.getCalendars(Query query)Lists all calendars with query options.getCalendars(UserId userId)Lists all calendars for a specific user.getCalendars(UserId userId, Query query)Lists all calendars for a specific user with query options.getCalendars(String userId)Lists all calendars for a specific user.getCalendars(String userId, Query query)Lists all calendars for a specific user with query options.getCalendars(String calendarGroupId, String userId)Lists calendars within a specific calendar group.getCalendars(String calendarGroupId, String userId, Query query)Lists calendars within a specific calendar group with query options.getCalendarView(Date start, Date end)Gets a calendar view of events within a specified time range.getCalendarView(Date start, Date end, CalendarId calendarId)Gets a calendar view from a specific calendar using CalendarId object.getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId)Gets a calendar view from a specific calendar in a specific calendar group using ID objects.getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, Query query)Gets a calendar view from a specific calendar in a specific calendar group with query options using ID objects.getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId)Gets a calendar view from a specific calendar in a specific calendar group for a specific user using ID objects.getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId, Query query)Gets a calendar view from a specific calendar in a specific calendar group for a specific user with query options using ID objects.getCalendarView(Date start, Date end, CalendarId calendarId, Query query)Gets a calendar view from a specific calendar with query options using CalendarId object.getCalendarView(Date start, Date end, CalendarId calendarId, UserId userId)Gets a calendar view from a specific calendar for a specific user.getCalendarView(Date start, Date end, CalendarId calendarId, UserId userId, Query query)Gets a calendar view from a specific calendar for a specific user with query options.getCalendarView(Date start, Date end, Query query)Gets a calendar view with query options.getCalendarView(Date start, Date end, UserId userId)Gets a calendar view for a specific user.getCalendarView(Date start, Date end, UserId userId, Query query)Gets a calendar view for a specific user with query options.getCalendarView(Date start, Date end, String calendarId)Gets a calendar view from a specific calendar.getCalendarView(Date start, Date end, String calendarId, Query query)Gets a calendar view from a specific calendar with query options.getCalendarView(Date start, Date end, String calendarId, String calendarGroupId)Gets a calendar view from a specific calendar in a specific calendar group.Gets a calendar view from a specific calendar in a specific calendar group with query options.Gets a calendar view from a specific calendar in a specific calendar group for a specific user.getCalendarView(Date start, Date end, String calendarId, String calendarGroupId, String userId, Query query)Gets a calendar view from a specific calendar in a specific calendar group for a specific user with query options.getCallParticipants(String callId)getCallRecord(String callRecordId)getCallRecord(String callRecordId, Query query)getCallRecords(Query query)getCallRecords(String nextLink)getChannel(String teamId, String channelId)Gets a specific channel in a team.getChannelFilesFolder(String teamId, String channelId)getChannelMember(String teamId, String channelId, String memberId)Gets a specific member of a channel.getChannelMembers(String teamId, String channelId)Gets the list of members in a channel.getChannelMembers(String teamId, String channelId, Query query)Gets the list of members in a channel with query options.getChannelMessage(String teamId, String channelId, String messageId)Gets a specific message from a channel.byte[]getChannelMessageHostedContent(String teamId, String channelId, String messageId, String hostedContentId)getChannelMessageReplies(String teamId, String channelId, String messageId)Gets the list of replies to a message in a channel.getChannelMessageReplies(String teamId, String channelId, String messageId, Query query)Gets the list of replies to a message in a channel with query options.getChannelMessageReply(String teamId, String channelId, String messageId, String replyId)Gets a specific reply to a channel message.getChannelMessages(String teamId, String channelId)Gets the list of messages in a channel.getChannelMessages(String teamId, String channelId, Query query)Gets the list of messages in a channel with query options.getChannels(String teamId)Gets the list of channels in a team.getChannels(String teamId, Query query)Gets the list of channels in a team with query options.getChatMember(String chatId, String membershipId)getChatMembers(String chatId)getChatMembers(String chatId, Query query)getChatMessage(String chatId, String messageId)Gets a specific message from a chat.getChatMessage(String chatId, String messageId, UserId userId)Gets a specific message from a chat using UserId object.getChatMessage(String chatId, String messageId, String userId)Gets a specific message from a chat for a specific user.byte[]getChatMessageHostedContent(String chatId, String messageId, String hostedContentId)getChatMessageReplies(String chatId, String messageId)Gets the list of replies to a message in a chat.getChatMessageReplies(String chatId, String messageId, Query query)Gets the list of replies to a message in a chat with query options.getChatMessageReplies(String chatId, String messageId, UserId userId)Gets the list of replies to a message in a chat using UserId object.getChatMessageReplies(String chatId, String messageId, UserId userId, Query query)Gets the list of replies to a message in a chat with all options.getChatMessageReplies(String chatId, String messageId, String userId)Gets the list of replies to a message in a chat for a specific user.getChatMessageReplies(String chatId, String messageId, String userId, Query query)Gets the list of replies to a message in a chat for a specific user with query options.getChatMessageReply(String chatId, String messageId, String replyId)Gets a specific reply to a message in a chat.getChatMessageReply(String chatId, String messageId, String replyId, UserId userId)Gets a specific reply to a message in a chat using UserId object.getChatMessageReply(String chatId, String messageId, String replyId, String userId)Gets a specific reply to a message in a chat for a specific user.getChatMessages(String chatId)Gets the list of messages in a chat.getChatMessages(String chatId, Query query)Gets the list of messages in a chat with query options.getChatMessages(String chatId, UserId userId)Gets the list of messages in a chat for a specific user using UserId object.getChatMessages(String chatId, UserId userId, Query query)Gets the list of messages in a chat with all options.getChatMessages(String chatId, String userId)Gets the list of messages in a chat for a specific user.getChatMessages(String chatId, String userId, Query query)Gets the list of messages in a chat for a specific user with query options.getChats()Gets the list of chats that the signed-in user is part of.Gets the list of chats with query options.Gets the list of chats for a specific user using UserId object.Gets the list of chats for a specific user with all options.Gets the list of chats for a specific user.Gets the list of chats for a specific user with query options.getChildMailboxFolders(String mailboxId, String parentFolderId)getChildMailboxFolders(String mailboxId, String parentFolderId, Query query)getChildMailFolders(String mailFolderId)Gets the list of child mail folders under a specific mail folder.getChildMailFolders(String mailFolderId, Query query)Gets the list of child mail folders under a specific mail folder with query options.getChildMailFolders(String mailFolderId, UserId userId)Gets the list of child mail folders under a specific mail folder for a specific user using UserId object.getChildMailFolders(String mailFolderId, UserId userId, Query query)Gets the list of child mail folders under a specific mail folder for a specific user with all options.getChildMailFolders(String mailFolderId, String userId)Gets the list of child mail folders under a specific mail folder for a specific user.getChildMailFolders(String mailFolderId, String userId, Query query)Gets the list of child mail folders under a specific mail folder for a specific user with query options.org.apache.hc.client5.http.io.HttpClientConnectionManagerGets connection manager.getColumn(String siteId, String listId, String columnId, ResourceId resourceId)getColumns(String siteId, String listId)getColumns(String siteId, String listId, Query query)getColumns(String siteId, String listId, ResourceId resourceId)getColumns(String siteId, String listId, ResourceId resourceId, Query query)intReturns setting for connect timeout.getContact(String contactId)Gets a specific contact for the signed-in user.getContact(String contactId, UserId userId)Gets a specific contact for a specific user using UserId object.getContact(String contactId, String userId)Gets a specific contact for a specific user.Gets contact changes for delta tracking.getContactChanges(Query query)Gets contact changes with query options.getContactChanges(String nextLinkOrDeltaLink)Gets contact changes using a next link or delta link.Gets all contact folders for the signed-in user.getContactFolders(Query query)Gets all contact folders with query options.getContactFolders(UserId userId)Gets all contact folders for a specific user.getContactFolders(UserId userId, Query query)Gets all contact folders for a specific user with query options.getContactFolders(String parentFolderId)Gets all child contact folders from a parent folder.getContactFolders(String parentFolderId, Query query)Gets all child contact folders from a parent folder with query options.getContactFolders(String parentFolderId, UserId userId)Gets all child contact folders from a parent folder for a specific user using UserId object.getContactFolders(String parentFolderId, UserId userId, Query query)Gets all child contact folders from a parent folder for a specific user with all options.getContactFolders(String parentFolderId, String userId)Gets all child contact folders from a parent folder for a specific user.getContactFolders(String parentFolderId, String userId, Query query)Gets all child contact folders from a parent folder for a specific user with query options.Gets all contacts for the signed-in user.getContacts(Query query)Gets all contacts with query options.getContacts(UserId userId)Gets all contacts for a specific user.getContacts(UserId userId, Query query)Gets all contacts for a specific user with query options.getContacts(String contactFolderId)Gets all contacts from a specific contact folder.getContacts(String contactFolderId, Query query)Gets all contacts from a specific folder with query options.getContacts(String contactFolderId, UserId userId)Gets all contacts from a specific folder for a specific user using UserId object.getContacts(String contactFolderId, UserId userId, Query query)Gets all contacts from a specific folder for a specific user with all options.getContacts(String contactFolderId, String userId)Gets all contacts from a specific folder for a specific user.getContacts(String contactFolderId, String userId, Query query)Gets all contacts from a specific folder for a specific user with query options.getContentType(String siteId, String contentTypeId)getContentType(String siteId, String contentTypeId, ResourceId resourceId)getContentTypes(String siteId)getContentTypes(String siteId, Query query)getContentTypes(String siteId, ResourceId resourceId)Gets a list of deleted groups from the directory.getDeletedGroups(Query query)Gets a list of deleted groups from the directory with optional query parameters.Obtains a device authorization code for device code flow authentication.getDocumentSetVersions(String siteId, String listId, String itemId)getDocumentSetVersions(String siteId, String listId, String itemId, ResourceId resourceId)getDrive()Gets the user's default drive.getDrive(ResourceId resourceId)Gets a drive from a specific resource context.Gets a specific drive by ID.getDrive(String driveId, ResourceId resourceId)Gets a specific drive from a resource context.getDriveItem(String itemId)Gets metadata for a drive item by its ID.getDriveItem(String itemId, ResourceId resourceId)Gets metadata for a drive item with a specific resource context.Gets activities for items in the user's default drive.getDriveItemActivities(ResourceId resourceId)Gets activities from a resource context.getDriveItemActivities(String driveId)Gets activities for items in a specific drive.getDriveItemActivities(String driveId, ResourceId resourceId)Gets activities for a specific drive within a resource context.byte[]getDriveItemAsByteArray(String itemId)Downloads a drive item's content as a byte array.byte[]getDriveItemAsByteArray(String itemId, long rangeBegin, long rangeEnd)Downloads a specific byte range of a drive item's content.byte[]getDriveItemAsByteArray(String itemId, ResourceId resourceId)Downloads a drive item's content as a byte array with a specific resource context.byte[]getDriveItemAsByteArray(String itemId, ResourceId resourceId, long rangeBegin, long rangeEnd)Downloads a specific byte range of a drive item's content with a resource context.getDriveItemAsStream(String itemId)Downloads a drive item's content as a stream.getDriveItemAsStream(String itemId, ResourceId resourceId)Downloads a drive item's content as a stream with a specific resource context.Gets the changes to drive items for the current user's drive.getDriveItemChanges(Query query)Gets the changes to drive items for the current user with query options.getDriveItemChanges(ResourceId resourceId)Gets the changes to drive items for a specific resource.getDriveItemChanges(ResourceId resourceId, Query query)Gets the changes to drive items for a specific resource with query options.getDriveItemChanges(String nextLinkOrDeltaLink)Gets the next page of drive item changes using a next link or delta link.Gets the children of the root folder in the current user's drive.getDriveItems(StandardDriveFolder standardDriveFolder)Gets the children of a standard system folder.getDriveItems(StandardDriveFolder standardDriveFolder, Query query)Gets the children of a standard system folder with query options.getDriveItems(Query query)Gets the children of the root folder with query options.getDriveItems(ResourceId resourceId)Gets the children of the root folder with a specific resource context.getDriveItems(ResourceId resourceId, Query query)Gets the children of the root folder with resource context and query options.getDriveItems(String itemId)Gets the children of a specific folder.getDriveItems(String itemId, Query query)Gets the children of a specific folder with query options.getDriveItems(String itemId, ResourceId resourceId)Gets the children of a specific folder with resource context.getDriveItems(String itemId, ResourceId resourceId, Query query)Gets the children of a specific folder with full control over location and query options.getDriveItemThumbnails(String itemId)Gets the thumbnail images for a drive item.getDriveItemThumbnails(String itemId, ResourceId resourceId)Gets the thumbnail images for a drive item with a specific resource context.getDriveItemVersion(String versionId, String itemId)Gets a specific version of a drive item.getDriveItemVersion(String versionId, String itemId, ResourceId resourceId)Gets a specific version of a drive item with a resource context.getDriveItemVersions(String itemId)Gets the version history of a drive item.getDriveItemVersions(String itemId, ResourceId resourceId)Gets the version history of a drive item with a specific resource context.Gets the root folder of the user's default drive.getDriveRoot(ResourceId resourceId)Gets the root folder from a resource context.getDriveRoot(String driveId)Gets the root folder of a specific drive.getDriveRoot(String driveId, ResourceId resourceId)Gets the root folder of a specific drive within a resource context.Gets all accessible drives.Gets drives with query options.getDrives(ResourceId resourceId)Gets drives with a specific resource context.getDrives(ResourceId resourceId, Query query)Gets drives with resource context and query options.Gets the next page of drives using a next link.getEvent(EventMessageId eventMessageId)Gets an event from an event message.getEvent(EventMessageId eventMessageId, UserId userId)Gets an event from an event message for a specific user.getEvent(EventMessageId eventMessageId, String userId)Gets an event from an event message for a specific user.Gets a specific event by ID for the authenticated user.Gets a specific event by ID with query options.Gets a specific event by ID for a specific user.Gets a specific event by ID for a specific user with query options.getEvent(String eventId, UserId userId, List<ExtendedPropertyId> extendedProperties)Gets a specific event by ID for a specific user.Gets a specific event by ID for a specific user with query options.getEvent(String eventId, String userId, List<ExtendedPropertyId> extendedProperties)getEvent(String eventId, List<ExtendedPropertyId> extendedProperties)getEventChanges(String nextLinkOrDeltaLink)Gets event changes using a next link or delta link for change tracking.getEventChanges(Date start, Date end)Gets event changes within a specified time range for delta tracking.getEventChanges(Date start, Date end, CalendarId calendarId)Gets event changes for a specific calendar using CalendarId object.getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId)Gets event changes from a specific calendar in a specific calendar group using ID objects.getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, Query query)Gets event changes from a specific calendar in a specific calendar group with query options using ID objects.getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId)Gets event changes from a specific calendar in a specific calendar group for a specific user using ID objects.getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId, Query query)Gets event changes from a specific calendar in a specific calendar group for a specific user with query options using ID objects.getEventChanges(Date start, Date end, CalendarId calendarId, Query query)Gets event changes for a specific calendar with query options using CalendarId object.getEventChanges(Date start, Date end, CalendarId calendarId, UserId userId)Gets event changes for a specific calendar for a specific user.getEventChanges(Date start, Date end, Query query)Gets event changes within a specified time range with query options.getEventChanges(Date start, Date end, String calendarId)Gets event changes for a specific calendar.getEventChanges(Date start, Date end, String calendarId, Query query)Gets event changes for a specific calendar with query options.getEventChanges(Date start, Date end, String calendarId, String calendarGroupId)Gets event changes from a specific calendar in a specific calendar group.Gets event changes from a specific calendar in a specific calendar group with query options.Gets event changes from a specific calendar in a specific calendar group for a specific user.getEventChanges(Date start, Date end, String calendarId, String calendarGroupId, String userId, Query query)Gets event changes from a specific calendar in a specific calendar group for a specific user with query options.Lists all events for the authenticated user.getEvents(CalendarId calendarId)Lists events from a specific calendar.getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId)Lists events from a calendar within a calendar group.getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId, Query query)Lists events from a calendar within a calendar group with query options.getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId)Lists events from a calendar within a calendar group for a specific user.getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId, Query query)Lists events from a calendar within a calendar group for a specific user with query options.getEvents(CalendarId calendarId, Query query)Lists events from a specific calendar with query options.getEvents(CalendarId calendarId, UserId userId)Lists events from a specific calendar for a specific user.getEvents(CalendarId calendarId, UserId userId, Query query)Lists events from a specific calendar for a specific user with query options.Lists all events with query options.Lists all events for a specific user.Lists all events for a specific user with query options.Lists events from a specific calendar.Lists events from a specific calendar with query options.Lists events from a specific calendar for a specific user.Lists events from a specific calendar for a specific user with query options.Lists events from a calendar within a calendar group.Lists events from a calendar within a calendar group with query options.Lists events from a calendar within a calendar group for a specific user.Lists events from a calendar within a calendar group for a specific user with query options.getExchangeSettings(UserId userId)getExchangeSettings(String userId)Gets all drive items that the user is following.getFollowedSites(Query query)getFollowedSites(String userId)getFollowedSites(String userId, Query query)Retrieves the properties and relationships of a group.getGroupCalendar(String groupId)Gets the group calendar for a Microsoft 365 group.getGroupCalendarEvents(String groupId)Lists events from a group's calendar.getGroupCalendarEvents(String groupId, Query query)Lists events from a group's calendar with query options.Tracks changes to groups using delta query.getGroupChanges(Query query)Tracks changes to groups with query options.getGroupChanges(String nextLinkOrDeltaLink)Continues tracking group changes using a next link or delta link.getGroupMemberOf(String groupId)Gets the groups and directory roles that a group is a direct member of.getGroupMemberOf(String groupId, Query query)Gets the groups and directory roles that a group is a direct member of with optional query parameters.getGroupMembers(String groupId)Gets the members of a specified group.getGroupMembers(String groupId, Query query)Gets the members of a specified group with optional query parameters.getGroupOwners(String groupId)Retrieves the owners of a group.getGroupOwners(String groupId, Query query)Retrieves the owners of a group with query options.Retrieves a list of all groups in the organization.Retrieves a list of groups with query options.getGroupTransitiveMemberOf(String groupId)Gets the groups and directory roles that a group is a member of, including nested memberships.getGroupTransitiveMemberOf(String groupId, Query query)Gets the groups and directory roles that a group is a member of with optional query parameters.getGroupTransitiveMembers(String groupId)Gets the transitive members of a group, including nested group members.getGroupTransitiveMembers(String groupId, Query query)Gets the transitive members of a group with optional query parameters.Gets host uri.Gets HttpURLConnection proxy server.getIncomingChannels(String teamId)Gets the list of incoming channels (channels shared with the team from other teams).getIncomingChannels(String teamId, Query query)Gets the list of incoming channels with query options.getInferenceClassificationOverrides(UserId userId, Query query)getInferenceClassificationOverrides(String userId, Query query)Gets the list of teams that the signed-in user is a member of.getJoinedTeams(UserId userId)Gets the list of teams that a specific user is a member of using UserId object.getJoinedTeams(String userId)Gets the list of teams that a specific user is a member of.getList(String siteId, String listId, ResourceId resourceId)getList(String siteId, String listId, ResourceId resourceId, Query query)getListContentType(String siteId, String listId, String contentTypeId)getListContentType(String siteId, String listId, String contentTypeId, ResourceId resourceId)getListContentTypes(String siteId, String listId)getListContentTypes(String siteId, String listId, Query query)getListContentTypes(String siteId, String listId, ResourceId resourceId)getListItem(String itemId, String listId, String siteId)getListItem(String itemId, String listId, String siteId, Query query)getListItem(String itemId, String listId, String siteId, ResourceId resourceId)getListItem(String itemId, String listId, String siteId, ResourceId resourceId, Query query)getListItemActivities(String siteId, String listId, String itemId, Date startDateTime, Date endDateTime, ActivityInterval interval)getListItemActivities(String siteId, String listId, String itemId, Date startDateTime, Date endDateTime, ActivityInterval interval, ResourceId resourceId)getListItems(String listId, String siteId)getListItems(String listId, String siteId, Query query)getListItems(String listId, String siteId, ResourceId resourceId)getListItems(String listId, String siteId, ResourceId resourceId, Query query)getListItemVersions(String siteId, String listId, String itemId)getListItemVersions(String siteId, String listId, String itemId, ResourceId resourceId)getLists(String siteId, ResourceId resourceId)getLists(String siteId, ResourceId resourceId, Query query)Gets login host uri.getMailboxFolder(String mailboxId, String folderId)getMailboxFolder(String mailboxId, String folderId, Query query)getMailboxFolderChanges(String mailboxId)getMailboxFolderChanges(String mailboxId, String nextLinkOrDeltaLink)getMailboxFolders(String mailboxId)getMailboxFolders(String mailboxId, Query query)getMailboxItem(String mailboxId, String folderId, String itemId)getMailboxItem(String mailboxId, String folderId, String itemId, Query query)getMailboxItem(String mailboxId, String folderId, String itemId, List<ExtendedPropertyId> extendedProperties)getMailboxItem(String mailboxId, String folderId, String itemId, List<ExtendedPropertyId> extendedProperties, Query query)getMailboxItemChanges(String mailboxId, String folderId)getMailboxItemChanges(String mailboxId, String folderId, String nextLinkOrDeltaLink)Retrieves mailbox settings for the authenticated user.getMailboxSettings(UserId userId)Retrieves mailbox settings for a specific user.getMailboxSettings(String userId)Retrieves mailbox settings for a specific user.getMailFolder(StandardMailboxFolder standardMailboxFolder)Gets a specific mail folder by standard mailbox folder.getMailFolder(StandardMailboxFolder standardMailboxFolder, UserId userId)Gets a specific mail folder by standard mailbox folder for a specific user using UserId object.getMailFolder(StandardMailboxFolder standardMailboxFolder, String userId)Gets a specific mail folder by standard mailbox folder for a specific user.getMailFolder(String mailFolderId)Gets a specific mail folder by ID.getMailFolder(String mailFolderId, UserId userId)Gets a specific mail folder by ID for a specific user using UserId object.getMailFolder(String mailFolderId, String userId)Gets a specific mail folder by ID for a specific user.Gets delta changes for mail folders for the signed-in user.getMailFolderChanges(Query query)Gets delta changes for mail folders with query options.getMailFolderChanges(UserId userId)Gets delta changes for mail folders for a specific user using UserId object.getMailFolderChanges(UserId userId, Query query)Gets delta changes for mail folders for a specific user with all options.getMailFolderChanges(String nextLinkOrDeltaLink)Gets delta changes for mail folders using a nextLink or deltaLink URL.getMailFolderChanges(String userId, Query query)Gets delta changes for mail folders for a specific user with query options.Gets the list of mail folders for the signed-in user.getMailFolders(Query query)Gets the list of mail folders with query options.getMailFolders(UserId userId)Gets the list of mail folders for a specific user using UserId object.getMailFolders(UserId userId, Query query)Gets the list of mail folders for a specific user with all options.getMailFolders(String userId)Gets the list of mail folders for a specific user.getMailFolders(String userId, Query query)Gets the list of mail folders for a specific user with query options.getMailSearchFolder(String mailFolderId)getMailSearchFolder(String mailFolderId, UserId userId)getMailSearchFolder(String mailFolderId, String userId)getMailTips(List<String> emailAddresses)getMailTips(List<String> emailAddresses, UserId userId)getMailTips(List<String> emailAddresses, String userId)getMailTips(List<String> emailAddresses, List<MailTipsType> mailTipsTypes)getMailTips(List<String> emailAddresses, List<MailTipsType> mailTipsTypes, UserId userId)getMailTips(List<String> emailAddresses, List<MailTipsType> mailTipsTypes, String userId)getMessage(String messageId)Gets a specific message.getMessage(String messageId, Query query)Gets a specific message with query options.getMessage(String messageId, UserId userId)Gets a specific message for a specific user using UserId object.getMessage(String messageId, UserId userId, Query query)Gets a specific message for a specific user with all options.getMessage(String messageId, UserId userId, List<ExtendedPropertyId> extendedProperties)getMessage(String messageId, String userId)Gets a specific message for a specific user.getMessage(String messageId, String userId, Query query)Gets a specific message for a specific user with query options.getMessage(String messageId, String userId, List<ExtendedPropertyId> extendedProperties)getMessage(String messageId, List<ExtendedPropertyId> extendedProperties)getMessageChanges(Query query)Gets delta changes for messages with query options.getMessageChanges(StandardMailboxFolder standardMailboxFolder)Gets delta changes for messages in a standard mailbox folder.getMessageChanges(StandardMailboxFolder standardMailboxFolder, Query query)Gets delta changes for messages in a standard mailbox folder with query options.getMessageChanges(StandardMailboxFolder standardMailboxFolder, UserId userId)Gets delta changes for messages in a standard mailbox folder for a specific user using UserId object.getMessageChanges(StandardMailboxFolder standardMailboxFolder, UserId userId, Query query)Gets delta changes for messages in a standard mailbox folder for a specific user with all options.getMessageChanges(StandardMailboxFolder standardMailboxFolder, String userId)Gets delta changes for messages in a standard mailbox folder for a specific user.getMessageChanges(StandardMailboxFolder standardMailboxFolder, String userId, Query query)Gets delta changes for messages in a standard mailbox folder for a specific user with query options.getMessageChanges(UserId userId)Gets delta changes for messages for a specific user.getMessageChanges(UserId userId, Query query)Gets delta changes for messages for a specific user with query options.getMessageChanges(String nextLinkOrDeltaLink)Gets delta changes for messages using a nextLink or deltaLink URL.getMessageChanges(String folderId, Query query)Gets delta changes for messages from a specific folder with query options.getMessageChanges(String folderId, UserId userId)Gets delta changes for messages from a specific folder for a specific user using UserId object.getMessageChanges(String folderId, UserId userId, Query query)Gets delta changes for messages from a specific folder for a specific user with all options.getMessageChanges(String folderId, String userId)Gets delta changes for messages from a specific folder for a specific user.getMessageChanges(String folderId, String userId, Query query)Gets delta changes for messages from a specific folder for a specific user with query options.getMessageFile(String messageId)Gets a message as an MSG file format object.getMessageFile(String messageId, UserId userId)Gets a message as an MSG file format object for a specific user using UserId object.getMessageFile(String messageId, UserId userId, List<ExtendedPropertyId> extendedProperties)Gets a message as an MSG file format object with all options.getMessageFile(String messageId, String userId)Gets a message as an MSG file format object for a specific user.getMessageFile(String messageId, String userId, List<ExtendedPropertyId> extendedProperties)Gets a message as an MSG file format object for a specific user with extended properties.getMessageMimeContent(String messageId)Gets the MIME content of a message.getMessageMimeContent(String messageId, UserId userId)Gets the MIME content of a message for a specific user using UserId object.getMessageMimeContent(String messageId, String userId)Gets the MIME content of a message for a specific user.Gets the list of message rules for the signed-in user.getMessageRules(Query query)Gets the list of message rules with query options.getMessageRules(UserId userId)Gets the list of message rules for a specific user using UserId object.getMessageRules(UserId userId, Query query)Gets the list of message rules for a specific user with all options.getMessageRules(String userId)Gets the list of message rules for a specific user.getMessageRules(String userId, Query query)Gets the list of message rules for a specific user with query options.Gets the list of messages in the signed-in user's mailbox (including Inbox, Sent Items, and Deleted Items folders).getMessages(Query query)Gets the list of messages with query options.getMessages(StandardMailboxFolder standardMailboxFolder)Gets the list of messages from a standard mailbox folder.getMessages(StandardMailboxFolder standardMailboxFolder, Query query)Gets the list of messages from a standard mailbox folder with query options.getMessages(StandardMailboxFolder standardMailboxFolder, UserId userId)Gets the list of messages from a standard mailbox folder for a specific user using UserId object.getMessages(StandardMailboxFolder standardMailboxFolder, UserId userId, Query query)Gets the list of messages from a standard mailbox folder for a specific user with all options.getMessages(StandardMailboxFolder standardMailboxFolder, String userId)Gets the list of messages from a standard mailbox folder for a specific user.getMessages(StandardMailboxFolder standardMailboxFolder, String userId, Query query)Gets the list of messages from a standard mailbox folder for a specific user with query options.getMessages(UserId userId)Gets the list of messages for a specific user.getMessages(UserId userId, Query query)Gets the list of messages for a specific user with query options.getMessages(String folderId)Gets the list of messages from a specific folder.getMessages(String folderId, Query query)Gets the list of messages from a specific folder with query options.getMessages(String folderId, UserId userId)Gets the list of messages from a specific folder for a specific user using UserId object.getMessages(String folderId, UserId userId, Query query)Gets the list of messages from a specific folder for a specific user with all options.getMessages(String folderId, String userId)Gets the list of messages from a specific folder for a specific user.getMessages(String folderId, String userId, Query query)Gets the list of messages from a specific folder for a specific user with query options.getOAuthTokenWithAuthorizationCode(String authorizationCode, String authorizationCodeRedirectUri)Obtains an OAuth 2.0 access token using an authorization code.getOAuthTokenWithAuthorizationCode(String authorizationCode, String authorizationCodeRedirectUri, String clientSecret)Obtains an OAuth 2.0 access token using an authorization code and client secret.getOAuthTokenWithClientAssertion(String clientAssertion)Obtains an OAuth 2.0 access token using a client assertion (JWT).getOAuthTokenWithClientSecret(String clientSecret)Obtains an OAuth 2.0 access token using a client secret.getOAuthTokenWithDeviceAuthorizationCode(String deviceCode)Obtains an OAuth 2.0 access token using a device code.getOAuthTokenWithUsernamePassword(String username, String password)Obtains an OAuth 2.0 access token using resource owner password credentials.getOAuthTokenWithUsernamePassword(String username, String password, String clientSecret)Obtains an OAuth 2.0 access token using resource owner password credentials with client secret.getOAuthTokenWithUsernamePassword(String username, String password, String clientSecret, String clientAssertion)Obtains an OAuth 2.0 access token using resource owner password credentials with client secret and client assertion.getOccurrences(String eventId, Date start, Date end)Gets occurrences of a recurring event within a specified time range.getOccurrences(String eventId, Date start, Date end, GroupId groupId)Gets occurrences of a group recurring event.Gets occurrences of a group recurring event with query options.getOccurrences(String eventId, Date start, Date end, Query query)Gets occurrences of a recurring event with query options.getOccurrences(String eventId, Date start, Date end, UserId userId)Gets occurrences of a recurring event for a specific user.Gets occurrences of a recurring event for a specific user with query options.getOnlineMeeting(String onlineMeetingId)getOnlineMeeting(String onlineMeetingId, UserId userId)getOnlineMeeting(String onlineMeetingId, String userId)getOnlineMeetingAttendanceReport(String onlineMeetingId, String reportId)getOnlineMeetingAttendanceReport(String onlineMeetingId, String reportId, UserId userId)getOnlineMeetingAttendanceReports(String onlineMeetingId)getOnlineMeetingAttendanceReports(String onlineMeetingId, UserId userId)getOnlineMeetingAttendanceReports(String onlineMeetingId, String userId)getOnlineMeetingRecording(String onlineMeetingId, String recordingId)getOnlineMeetingRecording(String onlineMeetingId, String recordingId, UserId userId)byte[]getOnlineMeetingRecordingContent(String onlineMeetingId, String recordingId)byte[]getOnlineMeetingRecordingContent(String onlineMeetingId, String recordingId, UserId userId)getOnlineMeetingRecordings(String onlineMeetingId)getOnlineMeetingRecordings(String onlineMeetingId, UserId userId)getOnlineMeetingRecordings(String onlineMeetingId, String userId)getOnlineMeetingTranscript(String onlineMeetingId, String transcriptId)getOnlineMeetingTranscript(String onlineMeetingId, String transcriptId, UserId userId)byte[]getOnlineMeetingTranscriptContent(String onlineMeetingId, String transcriptId)byte[]getOnlineMeetingTranscriptContent(String onlineMeetingId, String transcriptId, UserId userId)getOnlineMeetingTranscripts(String onlineMeetingId)getOnlineMeetingTranscripts(String onlineMeetingId, UserId userId)getOnlineMeetingTranscripts(String onlineMeetingId, String userId)Gets all Outlook categories for the signed-in user.getOutlookCategories(Query query)Gets all Outlook categories with query options.getOutlookCategories(UserId userId)Gets all Outlook categories for a specific user using UserId object.getOutlookCategories(UserId userId, Query query)Gets all Outlook categories for a specific user with query options using UserId object.getOutlookCategories(String userId)Gets all Outlook categories for a specific user.getOutlookCategories(String userId, Query query)Gets all Outlook categories for a specific user with query options.getOutlookCategory(String categoryId)Gets a specific Outlook category for the signed-in user.getOutlookCategory(String categoryId, UserId userId)Gets a specific Outlook category for a specific user using UserId object.getOutlookCategory(String categoryId, String userId)Gets a specific Outlook category for a specific user.Gets user's password.getPlannerBucket(String bucketId)Gets a specific planner bucket.getPlannerBucketChanges(String nextLinkOrDeltaLink)Gets incremental changes to planner buckets using a previously obtained nextLink or deltaLink.getPlannerBucketChanges(String planId, Query query)Gets incremental changes to buckets within a planner plan (delta query).getPlannerBucketTasks(String bucketId)Gets all tasks in a bucket.getPlannerPlan(String planId)Gets a specific planner plan.getPlannerPlanBuckets(String planId)Gets all buckets in a plan.getPlannerPlanChanges(String nextLinkOrDeltaLink)Gets incremental changes to planner plans using a previously obtained nextLink or deltaLink.getPlannerPlanChanges(String groupId, Query query)Gets incremental changes to planner plans in a group (delta query).getPlannerPlanDetails(String planId)Gets the details of a specific planner plan.getPlannerPlans(GroupId groupId)Gets all plans for a group using a GroupId object.getPlannerPlans(String groupId)Gets all plans for a group.getPlannerPlanTasks(String planId)Gets all tasks in a plan.getPlannerPlanUsageRights(String planId)Gets the usage rights for a planner plan.getPlannerTask(String taskId)Gets a specific planner task.getPlannerTaskChanges(String nextLinkOrDeltaLink)Gets incremental changes to planner tasks using a previously obtained nextLink or deltaLink.getPlannerTaskChanges(String planId, Query query)Gets incremental changes to tasks within a planner plan (delta query).getPlannerTaskDetails(String taskId)Gets the details of a specific planner task.Gets planner plans marked as favorite by the current user.getPlannerUserFavoritePlans(UserId userId)Gets planner plans marked as favorite by a specific user using a UserId object.getPlannerUserFavoritePlans(String userId)Gets planner plans marked as favorite by a specific user.Gets planner plans recently viewed by the current user.getPlannerUserRecentPlans(UserId userId)Gets planner plans recently viewed by a specific user using a UserId object.getPlannerUserRecentPlans(String userId)Gets planner plans recently viewed by a specific user.Gets planner tasks assigned to the current user.getPlannerUserTasks(UserId userId)Gets planner tasks assigned to a specific user using a UserId object.getPlannerUserTasks(String userId)Gets planner tasks assigned to a specific user.org.apache.hc.core5.http.HttpHostgetProxy()Gets HttpClient proxy.org.apache.hc.client5.http.auth.CredentialsGets proxy credentials.intReturns setting for read timeout.Gets recently accessed drive items.getReminderView(Date startTime, Date endTime)Gets reminders for the authenticated user within a time range.getReminderView(Date startTime, Date endTime, UserId userId)Gets reminders for a specific user within a time range.getReminderView(Date startTime, Date endTime, String userId)Gets reminders for a specific user within a time range.org.apache.hc.client5.http.config.RequestConfigGets request configuration.Gets a specific room by its ID.getRoomList(String id)Gets a specific room list by ID.Gets all room lists in the organization.getRooms()Gets all available rooms in the organization.Gets rooms with query options.Gets rooms from a specific room list.Gets rooms from a specific room list with query options.getRootSites(Query query)getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end)Gets schedule information for users, rooms, or resources.getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, int availabilityViewInterval)Gets schedule information with a custom availability view interval.getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, int availabilityViewInterval, UserId userId)Gets schedule information for users, rooms, or resources with a custom availability view interval.getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, int availabilityViewInterval, String userId)Gets schedule information for users, rooms, or resources with a custom availability view interval.getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, UserId userId)Gets schedule information for users, rooms, or resources for a specific user.getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, String userId)Gets schedule information for users, rooms, or resources for a specific user.getScope()Gets all drive items that have been shared with the user.getSharingPermission(String itemId, String permissionId)Gets a specific sharing permission for a drive item.getSharingPermission(String itemId, String permissionId, ResourceId resourceId)Gets a specific sharing permission for a drive item with a resource context.getSharingPermissions(String itemId)Gets all sharing permissions for a drive item.getSharingPermissions(String itemId, ResourceId resourceId)Gets all sharing permissions for a drive item with a specific resource context.getSignInRequestUri(String redirectUri)Generates a sign-in request URI for OpenID Connect authentication.getSignInRequestUri(String redirectUri, String responseType)Generates a sign-in request URI for OpenID Connect authentication with specified response type.getSignInRequestUri(String redirectUri, String responseType, String responseMode)Generates a sign-in request URI for OpenID Connect authentication with specified response type and mode.getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state)Generates a sign-in request URI for OpenID Connect authentication with state parameter.getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce)Generates a sign-in request URI for OpenID Connect authentication with nonce parameter.getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce, String loginHint)Generates a sign-in request URI for OpenID Connect authentication with login hint.getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce, String loginHint, String domainHint)Generates a sign-in request URI for OpenID Connect authentication with domain hint.getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce, String loginHint, String domainHint, String prompt)Generates a sign-in request URI for OpenID Connect authentication with all optional parameters.getSite()getSite(ResourceId resourceId)getSite(String siteId, ResourceId resourceId)getSiteByPath(String hostName, String relativePath)getSiteByPath(String hostName, String relativePath, Query query)getSitePage(String siteId, String pageId)getSitePage(String siteId, String pageId, Query query)getSitePage(String siteId, String pageId, ResourceId resourceId)getSitePage(String siteId, String pageId, ResourceId resourceId, Query query)getSitePages(String siteId)getSitePages(String siteId, Query query)getSitePages(String siteId, ResourceId resourceId)getSitePages(String siteId, ResourceId resourceId, Query query)getSitePageWebParts(String siteId, String sitePageId)getSitePageWebParts(String siteId, String sitePageId, Query query)getSitePermission(String siteId, String permissionId)getSitePermission(String siteId, String permissionId, ResourceId resourceId)getSitePermissions(String siteId)Gets the permissions for a site.getSitePermissions(String siteId, ResourceId resourceId)Gets the permissions for a site.getSites(String siteId, ResourceId resourceId)getSites(String siteId, ResourceId resourceId, Query query)getStandardDriveFolder(StandardDriveFolder standardDriveFolder)Gets a standard system folder from the user's drive.getStatusReport(String uri)Gets the status of an asynchronous job, such as a long-running copy operation.getSubscription(String subscriptionId)getSubscriptions(Query query)Gets a specific team by ID.Gets a specific team by ID with query options.getTeamChannels(String teamId)Gets the list of channels in a team.getTeamChannels(String teamId, Query query)Gets the list of channels in a team with query options.getTeamMember(String teamId, String memberId)Gets a specific team member.getTeamMembers(String teamId)Gets the list of members in a team.getTeamMembers(String teamId, Query query)Gets the list of members in a team with query options.getTeams()Gets a list of all teams.Gets a list of teams using a nextLink for pagination.getTodoTask(String todoTaskListId, String todoTaskId)Gets a specific task from a todo task list for the current user.getTodoTask(String todoTaskListId, String todoTaskId, UserId userId)Gets a specific task from a todo task list using UserId object.getTodoTask(String todoTaskListId, String todoTaskId, String userId)Gets a specific task from a todo task list for a specific user.getTodoTaskList(String todoTaskListId)Gets a specific todo task list for the current user.getTodoTaskList(String todoTaskListId, UserId userId)Gets a specific todo task list using UserId object.getTodoTaskList(String todoTaskListId, String userId)Gets a specific todo task list for a specific user.Gets the list of todo task lists for the current user.getTodoTaskLists(UserId userId)Gets the list of todo task lists using UserId object.getTodoTaskLists(String userId)Gets the list of todo task lists for a specific user.getTodoTasks(String todoTaskListId)Gets the list of tasks in a todo task list for the current user.getTodoTasks(String todoTaskListId, UserId userId)Gets the list of tasks in a todo task list using UserId object.getTodoTasks(String todoTaskListId, String userId)Gets the list of tasks in a todo task list for a specific user.getUser()Retrieves the profile of the authenticated user.Retrieves a user's profile.Retrieves a user's profile by ID or user principal name.Tracks changes to users using delta query.getUserChanges(Query query)Tracks changes to users with query options.getUserChanges(String nextLinkOrDeltaLink)Continues tracking user changes using a next link or delta link from a previous call.Gets username.Gets the presence information for the authenticated user.getUserPresence(UserId userId)Gets the presence information for a specific user.getUserPresence(String userId)Gets the presence information for a specific user.getUsers()Retrieves a list of all users in the organization.Retrieves a list of users with query options.getWorkbookApplication(String workbookId)getWorkbookApplication(String workbookId, ResourceId resourceId)getWorkbookChart(String workbookId, String worksheetId, String chartId)getWorkbookChart(String workbookId, String worksheetId, String chartId, ResourceId resourceId)byte[]getWorkbookChartImage(String workbookId, String worksheetId, String chartId)byte[]getWorkbookChartImage(String workbookId, String worksheetId, String chartId, int width, int height)byte[]getWorkbookChartImage(String workbookId, String worksheetId, String chartId, int width, int height, ChartFittingMode fittingMode, ResourceId resourceId)getWorkbookCharts(String workbookId, String worksheetId)getWorkbookCharts(String workbookId, String worksheetId, Query query)getWorkbookCharts(String workbookId, String worksheetId, ResourceId resourceId)getWorkbookCharts(String workbookId, String worksheetId, ResourceId resourceId, Query query)getWorkbookCommentReplies(String workbookId, String commentId)getWorkbookCommentReplies(String workbookId, String commentId, ResourceId resourceId)getWorkbookComments(String workbookId)getWorkbookComments(String workbookId, ResourceId resourceId)getWorkbookNamedItems(String workbookId)getWorkbookNamedItems(String workbookId, Query query)getWorkbookNamedItems(String workbookId, ResourceId resourceId)getWorkbookNamedItems(String workbookId, ResourceId resourceId, Query query)Gets the workbook session ID used for workbook operations.getWorkbookTables(String workbookId)getWorkbookTables(String workbookId, Query query)getWorkbookTables(String workbookId, ResourceId resourceId)getWorkbookTables(String workbookId, ResourceId resourceId, Query query)Retrieves working hours for the authenticated user.getWorkingHours(UserId userId)Retrieves working hours for a specific user.getWorkingHours(String userId)Retrieves working hours for a specific user.getWorksheet(String workbookId, String worksheetId)getWorksheet(String workbookId, String worksheetId, ResourceId resourceId)getWorksheetCell(String workbookId, String worksheetId, int row, int column)getWorksheetCell(String workbookId, String worksheetId, int row, int column, ResourceId resourceId)getWorksheets(String workbookId)getWorksheets(String workbookId, Query query)getWorksheets(String workbookId, ResourceId resourceId)getWorksheets(String workbookId, ResourceId resourceId, Query query)getWorksheetUsedRange(String workbookId, String worksheetId)getWorksheetUsedRange(String workbookId, String worksheetId, boolean valuesOnly)getWorksheetUsedRange(String workbookId, String worksheetId, boolean valuesOnly, ResourceId resourceId)getWorksheetUsedRange(String workbookId, String worksheetId, ResourceId resourceId)grantSitePermission(String siteId, String permissionId, List<String> roles)grantSitePermission(String siteId, String permissionId, List<String> roles, ResourceId resourceId)voidhideChatForUser(String chatId, String userId)voidimportMailboxItem(MailboxItemImportSession importSession, byte[] content)voidimportMailboxItem(String importUrl, byte[] content)inviteParticipants(String callId, List<InvitationParticipantInfo> participants, String clientContext)booleanReturn whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value.booleanisContentTypePublished(String siteId, String contentTypeId)booleanisContentTypePublished(String siteId, String contentTypeId, ResourceId resourceId)listMailboxItems(String mailboxId, String folderId)listMailboxItems(String mailboxId, String folderId, Query query)voidmarkChatReadForUser(String chatId, String userId)voidmarkChatUnreadForUser(String chatId, String userId)markMessageAsJunk(String messageId)markMessageAsJunk(String messageId, UserId userId)markMessageAsJunk(String messageId, String userId)markMessageAsNotJunk(String messageId)markMessageAsNotJunk(String messageId, UserId userId)markMessageAsNotJunk(String messageId, String userId)moveDriveItem(String itemId, String destinationName)Moves and/or renames a drive item.moveDriveItem(String itemId, String destinationName, ItemReference destinationFolder)Moves and/or renames a drive item to a different folder.moveDriveItem(String itemId, String destinationName, ItemReference destinationFolder, ResourceId resourceId)Moves and/or renames a drive item with full control over destination and context.moveDriveItem(String itemId, String destinationName, ResourceId resourceId)Moves and/or renames a drive item with a specific resource context.moveMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder)Moves a mail folder to a standard mailbox folder.moveMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, UserId userId)Moves a mail folder to a standard mailbox folder for a specific user using UserId object.moveMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, String userId)Moves a mail folder to a standard mailbox folder for a specific user.moveMailFolder(String sourceFolderId, String destinationParentFolderId)Moves a mail folder to another folder.moveMailFolder(String sourceFolderId, String destinationParentFolderId, UserId userId)Moves a mail folder to another folder for a specific user with all options.moveMailFolder(String sourceFolderId, String destinationParentFolderId, String userId)Moves a mail folder to another folder for a specific user.moveMessage(String messageId, StandardMailboxFolder standardMailboxFolder)Moves a message to a standard mailbox folder.moveMessage(String messageId, StandardMailboxFolder standardMailboxFolder, UserId userId)Moves a message to a standard mailbox folder for a specific user using UserId object.moveMessage(String messageId, StandardMailboxFolder standardMailboxFolder, String userId)Moves a message to a standard mailbox folder for a specific user.moveMessage(String messageId, String destintionFolderId)Moves a message to a specific folder.moveMessage(String messageId, String destintionFolderId, UserId userId)Moves a message to a specific folder for a specific user using UserId object.moveMessage(String messageId, String destintionFolderId, String userId)Moves a message to a specific folder for a specific user.movePlannerPlanToContainer(String planId, PlannerPlanContainer container)Moves a planner plan to a different container.playPrompt(String callId, List<MediaPrompt> prompts, String clientContext)voidpublishContentType(String siteId, String contentTypeId)voidpublishContentType(String siteId, String contentTypeId, ResourceId resourceId)voidpublishSitePage(String siteId, String pageId)voidpublishSitePage(String siteId, String pageId, ResourceId resourceId)recordResponse(String callId, List<MediaPrompt> prompts, String clientContext)voidredirectCall(String callId, List<InvitationParticipantInfo> targets)Refreshes the current OAuth 2.0 access token using the stored refresh token.refreshOAuthToken(String clientId, String tenant, String refreshToken)Refreshes an OAuth 2.0 access token with specified parameters.Refreshes an OAuth 2.0 access token with specified parameters and scopes.refreshOAuthToken(String clientId, String tenant, String refreshToken, List<String> scope, String clientSecret)Refreshes an OAuth 2.0 access token with all parameters including client secret.voidrefreshWorkbookSession(String workbookId)voidrefreshWorkbookSession(String workbookId, ResourceId resourceId)voidrefreshWorkbookSession(String workbookId, String sessionId)voidrefreshWorkbookSession(String workbookId, String sessionId, ResourceId resourceId)voidrejectCall(String callId, RejectReason reason)voidremoveChatMember(String chatId, String membershipId)voidremoveParticipant(String callId, String participantId)voidReplies to the sender of a message.voidReplies to the sender with updated message properties.voidReplies to the sender with updated properties for a specific user.voidReplies to the sender for a specific user.voidReplies to the sender with a comment.voidReplies to the sender with a comment and updated properties.voidReplies to the sender with all options for a specific user.voidReplies to the sender with a comment for a specific user.voidreplyToAll(String messageId)Replies to all recipients of a message.voidreplyToAll(String messageId, Message updateMessage)Replies to all recipients with updated message properties.voidreplyToAll(String messageId, Message updateMessage, UserId userId)Replies to all recipients with updated properties for a specific user.voidreplyToAll(String messageId, UserId userId)Replies to all recipients for a specific user.voidreplyToAll(String messageId, String newBody)Replies to all recipients with a comment.voidreplyToAll(String messageId, String newBody, Message updateMessage)Replies to all recipients with a comment and updated properties.voidreplyToAll(String messageId, String newBody, Message updateMessage, UserId userId)Replies to all recipients with all options for a specific user.voidreplyToAll(String messageId, String newBody, UserId userId)Replies to all recipients with a comment for a specific user.voidrestoreDriveItemVersion(String versionId, String itemId)Restores a previous version of a drive item, making it the current version.voidrestoreDriveItemVersion(String versionId, String itemId, ResourceId resourceId)Restores a previous version of a drive item with a specific resource context.searchDriveItems(String searchText)Searches for drive items using a text query.searchDriveItems(String searchText, Query query)Searches for drive items with query options.searchDriveItems(String searchText, Query query, ResourceId resourceId)Searches for drive items with full control over query and location.searchDriveItems(String searchText, ResourceId resourceId)Searches for drive items with a specific resource context.searchSites(String keyword)searchSites(String keyword, Query query)sendChannelMessage(String teamId, String channelId, ChatMessage message)Sends a new message to a team channel using a ChatMessage object.sendChannelMessageReply(String teamId, String channelId, String messageId, ChatMessage replyMessage)Sends a reply to a message in a team channel using a ChatMessage object.sendChannelMessageReply(String teamId, String channelId, String messageId, String replyMessage)Sends a reply to a message in a team channel using a plain text message.sendChatMessage(String chatId, ChatMessage message)Sends a new message to a chat using a ChatMessage object.sendChatMessage(String chatId, String message)Sends a new message to a chat using a plain text message.sendChatMessage(String teamId, String channelId, String message)Sends a new message to a team channel using a plain text message.voidsendMessage(Message message)Sends a new message without saving to Sent Items folder.voidsendMessage(Message message, boolean saveToSentItems)Sends a new message with option to save to Sent Items folder.voidsendMessage(Message message, boolean saveToSentItems, UserId userId)Sends a new message for a specific user with all options.voidsendMessage(Message message, boolean saveToSentItems, String userId)Sends a new message for a specific user with option to save to Sent Items folder.voidsendMessage(Message message, UserId userId)Sends a new message for a specific user using UserId object without saving to Sent Items folder.voidsendMessage(Message message, String userId)Sends a new message for a specific user without saving to Sent Items folder.voidsendMessage(String messageId)Sends an existing draft message.voidsendMessage(String messageId, UserId userId)Sends an existing draft message for a specific user using UserId object.voidsendMessage(String messageId, String userId)Sends an existing draft message for a specific user.voidsendMimeMessage(String mimeContent)Sends a message in MIME format.voidsendMimeMessage(String mimeContent, UserId userId)Sends a message in MIME format for a specific user using UserId object.voidsendMimeMessage(String mimeContent, String userId)Sends a message in MIME format for a specific user.sendSharingInvitation(SharingInvitationMessage message, String itemId)Sends a sharing invitation for a drive item to specified recipients.sendSharingInvitation(SharingInvitationMessage message, String itemId, ResourceId resourceId)Sends a sharing invitation for a drive item with a specific resource context.voidsetAcceptGzipEncoding(boolean acceptGzipEncoding)Set whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value.voidsetAuthorizationCode(String authorizationCode)voidsetAuthorizationCodeRedirectUri(String authorizationCodeRedirectUri)voidsetChannelMessageReaction(String teamId, String channelId, String messageId, String reactionType)voidsetChatMessageReaction(String chatId, String messageId, String reactionType)voidsetclientAssertion(String clientAssertion)voidsetClientConnectionManager(org.apache.hc.client5.http.io.HttpClientConnectionManager connectionManager)Sets connection manager.voidsetClientId(String clientId)voidsetClientSecret(String clientSecret)voidsetConnectTimeout(int connectTimeout)Sets the specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by the HttpURLConnection.voidsetDeviceCode(String deviceCode)voidsetHostUri(String hostUri)Sets host uri.voidsetHttpURLConnection(boolean useHttpURLConnection)Sets the http url connection.voidsetHttpURLConnectionProxy(Proxy httpURLConnectionProxy)Sets HttpURLConnection proxy server.voidsetLoginHostUri(String loginHostUri)Sets login host uri.setMailboxSettings(MailboxSettings mailboxSettings)Updates mailbox settings for the authenticated user.setMailboxSettings(MailboxSettings mailboxSettings, UserId userId)Updates mailbox settings for a specific user.setMailboxSettings(MailboxSettings mailboxSettings, String userId)Updates mailbox settings for a specific user.voidsetOAuthToken(OAuthToken oAuthToken)voidsetPassword(String password)Sets user's password.voidsetProxy(org.apache.hc.core5.http.HttpHost proxy)Sets HttpClient proxy.voidsetProxyCredentials(org.apache.hc.client5.http.auth.Credentials proxyCredentials)Sets proxy credentials.voidsetReadTimeout(int readTimeout)Sets the read timeout to the specified timeout, in milliseconds.voidsetRequestConfig(org.apache.hc.client5.http.config.RequestConfig requestConfig)Sets request configuration.voidvoidsetUsername(String username)Sets username.voidsetUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity)Sets the authenticated user's presence information.voidsetUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, Duration expirationDuration)Sets the authenticated user's presence information with an expiration duration.voidsetUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, Duration expirationDuration, UserId userId)Sets a specific user's presence information with an expiration duration.voidsetUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, Duration expirationDuration, String userId)Sets a specific user's presence information with an expiration duration.voidsetUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, UserId userId)Sets a specific user's presence information.voidsetUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, String userId)Sets a specific user's presence information.voidsetUserPresence(String sessionId, String availability, String activity)Sets the authenticated user's presence information using string values.voidsetUserPresence(String sessionId, String availability, String activity, Duration expirationDuration)Sets the authenticated user's presence information with expiration using string values.voidsetUserPresence(String sessionId, String availability, String activity, Duration expirationDuration, UserId userId)Sets a specific user's presence information with expiration using string values.voidsetUserPresence(String sessionId, String availability, String activity, Duration expirationDuration, String userId)Sets a specific user's presence information with expiration using string values.voidsetUserPresence(String sessionId, String availability, String activity, UserId userId)Sets a specific user's presence information using string values.voidsetUserPresence(String sessionId, String availability, String activity, String userId)Sets a specific user's presence information using string values.voidsetWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell)voidsetWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell, ResourceId resourceId)voidsetWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell, String endCell)voidsetWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell, String endCell, ResourceId resourceId)voidsetWorkbookSessionId(String workbookSessionId)Sets the workbook session ID used for workbook operations.voidsnoozeReminder(String eventId, DateTimeTimeZone newReminderTime)Snoozes a reminder for an event to a new time.voidsnoozeReminder(String eventId, DateTimeTimeZone newReminderTime, UserId userId)Snoozes a reminder for an event to a new time for a specific user using UserId object.voidsnoozeReminder(String eventId, DateTimeTimeZone newReminderTime, String userId)Snoozes a reminder for an event to a new time for a specific user.voidsoftDeleteChannelMessage(String teamId, String channelId, String messageId)voidsoftDeleteChatMessage(String chatId, String messageId, UserId userId)voidsoftDeleteChatMessage(String chatId, String messageId, String userId)voidtentativelyAcceptEvent(String eventId)Tentatively accepts an event invitation and sends a response to the organizer.voidtentativelyAcceptEvent(String eventId, boolean sendResponse)Tentatively accepts an event with control over sending response.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime)Tentatively accepts an event with a proposed new time.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime, UserId userId)Tentatively accepts an event with a proposed new time for a specific user.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, UserId userId)Tentatively accepts an event for a specific user with send response control.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody)Tentatively accepts an event with a comment message.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime)Tentatively accepts an event with comment and proposed new time.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime, UserId userId)Tentatively accepts an event with all options for a specific user.voidtentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody, UserId userId)Tentatively accepts an event for a specific user with a comment message.voidtentativelyAcceptEvent(String eventId, TimeSlot proposedNewTime)Tentatively accepts an event with a proposed new time.voidtentativelyAcceptEvent(String eventId, TimeSlot proposedNewTime, UserId userId)Tentatively accepts an event with a proposed new time for a specific user.voidtentativelyAcceptEvent(String eventId, UserId userId)Tentatively accepts an event for a specific user.voidtransferCall(String callId, InvitationParticipantInfo transferTarget)translateExchangeIds(List<String> sourceIds, ExchangeIdFormat sourceIdFormat, ExchangeIdFormat targetIdFormat)Translates Exchange IDs from one format to another for the signed-in user.translateExchangeIds(List<String> sourceIds, ExchangeIdFormat sourceIdFormat, ExchangeIdFormat targetIdFormat, UserId userId)Translates Exchange IDs from one format to another for a specific user using UserId object.translateExchangeIds(List<String> sourceIds, ExchangeIdFormat sourceIdFormat, ExchangeIdFormat targetIdFormat, String userId)Translates Exchange IDs from one format to another for a specific user.voidunarchiveChannel(String teamId, String channelId)unarchivePlannerPlan(String planId)Unarchives a planner plan.unarchivePlannerPlan(String planId, String justification)Unarchives a planner plan with a justification.voidundoSoftDeleteChannelMessage(String teamId, String channelId, String messageId)voidundoSoftDeleteChatMessage(String chatId, String messageId, UserId userId)voidundoSoftDeleteChatMessage(String chatId, String messageId, String userId)voidunfollowDriveItem(String itemId)Unfollows a drive item for the signed-in user.voidunfollowDriveItem(String itemId, ResourceId resourceId)Unfollows a drive item with a specific resource context.voidunhideChatForUser(String chatId, String userId)unmuteCall(String callId, String clientContext)voidunpublishContentType(String siteId, String contentTypeId)voidunpublishContentType(String siteId, String contentTypeId, ResourceId resourceId)voidunsetChannelMessageReaction(String teamId, String channelId, String messageId, String reactionType)voidunsetChatMessageReaction(String chatId, String messageId, String reactionType)voidunsubscribe(String messageId)voidunsubscribe(String messageId, UserId userId)voidunsubscribe(String messageId, String userId)updateCalendar(Calendar calendar)Updates a calendar in the signed-in user's mailbox.updateCalendar(Calendar calendar, UserId userId)Updates a calendar for a specific user using UserId object.updateCalendar(Calendar calendar, String userId)Updates a calendar for a specific user.updateCalendar(Calendar calendar, List<String> propertyNames)Updates specific properties of a calendar.updateCalendar(Calendar calendar, List<String> propertyNames, UserId userId)Updates specific properties of a calendar for a specific user.updateCalendarGroup(CalendarGroup calendarGroup)Updates a calendar group for the authenticated user.updateCalendarGroup(CalendarGroup calendarGroup, UserId userId)Updates a calendar group for a specific user.updateCalendarGroup(CalendarGroup calendarGroup, String userId)Updates a calendar group for a specific user.updateCalendarGroup(CalendarGroup calendarGroup, List<String> propertyNames)Updates specific properties of a calendar group.updateCalendarGroup(CalendarGroup calendarGroup, List<String> propertyNames, UserId userId)Updates specific properties of a calendar group for a specific user.updateChannel(String teamId, Channel channel)Updates a channel's properties.updateChannel(String teamId, Channel channel, List<String> propertyNames)Updates specific properties of a channel.updateChannelMember(String teamId, String channelId, ConversationMember member)updateChannelMessage(String teamId, String channelId, ChatMessage message)updateChannelMessage(String teamId, String channelId, ChatMessage message, List<String> propertyNames)updateChat(Chat chat)updateChat(Chat chat, List<String> propertyNames)updateChatMessage(String chatId, ChatMessage message)updateChatMessage(String chatId, ChatMessage message, List<String> propertyNames)updateColumn(ColumnDefinition column, String siteId)updateColumn(ColumnDefinition column, String siteId, ResourceId resourceId)updateColumn(ColumnDefinition column, String siteId, List<String> propertyNames)updateContact(Contact contact)Updates a contact for the signed-in user.updateContact(Contact contact, UserId userId)Updates a contact for a specific user using UserId object.updateContact(Contact contact, String userId)Updates a contact for a specific user.updateContact(Contact contact, List<String> propertyNames)Updates specific properties of a contact.updateContact(Contact contact, List<String> propertyNames, UserId userId)Updates specific properties of a contact for a specific user.updateContentType(ContentType contentType, String siteId)updateContentType(ContentType contentType, String siteId, ResourceId resourceId)updateContentType(ContentType contentType, String siteId, List<String> propertyNames)updateEvent(Event eventItem)Updates an event in the signed-in user's calendar.updateEvent(Event eventItem, UserId userId)Updates an event for a specific user using UserId object.updateEvent(Event eventItem, String userId)Updates an event for a specific user.updateEvent(Event eventItem, List<String> propertyNames)Updates specific properties of an event.updateEvent(Event eventItem, List<String> propertyNames, UserId userId)Updates specific properties of an event for a specific user.voidupdateGroup(Group group)Updates all properties of a group.voidupdateGroup(Group group, List<String> propertyNames)Updates specific properties of a group.updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride)updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, UserId userId)updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, String userId)updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, List<String> propertyNames)updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, List<String> propertyNames, UserId userId)updateList(List list, String siteId)updateList(List list, String siteId, ResourceId resourceId)updateList(List list, String siteId, List<String> propertyNames)updateListColumn(ColumnDefinition column, String siteId, String listId)updateListColumn(ColumnDefinition column, String siteId, String listId, ResourceId resourceId)updateListContentType(ContentType contentType, String siteId, String listId)updateListContentType(ContentType contentType, String siteId, String listId, ResourceId resourceId)updateListItem(String itemId, String listId, String siteId, List<ListItemField> fields)updateListItem(String itemId, String listId, String siteId, List<ListItemField> fields, ResourceId resourceId)updateMailboxFolder(MailboxFolder folder, String mailboxId)updateMailboxFolder(MailboxFolder folder, String mailboxId, List<String> propertyNames)updateMailFolder(MailFolder mailFolder)Updates a mail folder.updateMailFolder(MailFolder mailFolder, UserId userId)Updates a mail folder for a specific user using UserId object.updateMailFolder(MailFolder mailFolder, String userId)Updates a mail folder for a specific user.updateMailFolder(MailFolder mailFolder, List<String> propertyNames)Updates specific properties of a mail folder.updateMailFolder(MailFolder mailFolder, List<String> propertyNames, UserId userId)Updates specific properties of a mail folder for a specific user with all options.updateMessage(Message message)Updates a message.updateMessage(Message message, UserId userId)Updates a message for a specific user using UserId object.updateMessage(Message message, String userId)Updates a message for a specific user.updateMessage(Message message, List<String> propertyNames)Updates specific properties of a message.updateMessage(Message message, List<String> propertyNames, UserId userId)Updates specific properties of a message for a specific user with all options.updateMessageRule(MessageRule messageRule)Updates a message rule.updateMessageRule(MessageRule messageRule, UserId userId)Updates a message rule for a specific user using UserId object.updateMessageRule(MessageRule messageRule, String userId)Updates a message rule for a specific user.updateMessageRule(MessageRule messageRule, List<String> propertyNames)Updates specific properties of a message rule.updateMessageRule(MessageRule messageRule, List<String> propertyNames, UserId userId)Updates specific properties of a message rule for a specific user with all options.updateOnlineMeeting(OnlineMeeting onlineMeeting)updateOnlineMeeting(OnlineMeeting onlineMeeting, UserId userId)updateOnlineMeeting(OnlineMeeting onlineMeeting, String userId)updateOnlineMeeting(OnlineMeeting onlineMeeting, List<String> propertyNames)updateOnlineMeeting(OnlineMeeting onlineMeeting, List<String> propertyNames, UserId userId)updateOutlookCategory(OutlookCategory category)Updates an Outlook category for the signed-in user.updateOutlookCategory(OutlookCategory category, UserId userId)Updates an Outlook category for a specific user using UserId object.updateOutlookCategory(OutlookCategory category, String userId)Updates an Outlook category for a specific user.updateOutlookCategory(OutlookCategory category, List<String> propertyNames)Updates specific properties of an Outlook category.updateOutlookCategory(OutlookCategory category, List<String> propertyNames, UserId userId)Updates specific properties of an Outlook category for a specific user.voidupdatePlannerBucket(PlannerBucket bucket)Updates a planner bucket.voidupdatePlannerBucket(PlannerBucket bucket, List<String> propertyNames)Updates specific properties of a planner bucket.voidupdatePlannerPlan(PlannerPlan plan)Updates a planner plan.voidupdatePlannerPlan(PlannerPlan plan, List<String> propertyNames)Updates specific properties of a planner plan.updatePlannerPlanDetails(String planId, PlannerPlanDetails details)Updates the details of a planner plan.updatePlannerPlanDetails(String planId, PlannerPlanDetails details, List<String> propertyNames)Updates specific properties of the details of a planner plan.voidupdatePlannerTask(PlannerTask task)Updates a planner task.voidupdatePlannerTask(PlannerTask task, List<String> propertyNames)Updates specific properties of a planner task.updatePlannerTaskDetails(String taskId, PlannerTaskDetails details)Updates the details of a planner task.updatePlannerTaskDetails(String taskId, PlannerTaskDetails details, List<String> propertyNames)Updates specific properties of the details of a planner task.updateSitePage(SitePage page, String siteId)updateSitePage(SitePage page, String siteId, ResourceId resourceId)updateSitePage(SitePage page, String siteId, List<String> propertyNames)updateSitePermission(String siteId, String permissionId, List<String> roles)updateSitePermission(String siteId, String permissionId, List<String> roles, ResourceId resourceId)updateSubscription(Subscription subscription)voidupdateTeam(Team team)Updates a team.voidupdateTeam(Team team, List<String> propertyNames)Updates specific properties of a team.updateTeamMember(String teamId, ConversationMember member)Updates a team member's properties.updateTodoTask(String todoTaskListId, TodoTask todoTask)Updates a task in a todo task list for the current user.updateTodoTask(String todoTaskListId, TodoTask todoTask, UserId userId)Updates a task in a todo task list using UserId object.updateTodoTask(String todoTaskListId, TodoTask todoTask, String userId)Updates a task in a todo task list for a specific user.updateTodoTask(String todoTaskListId, TodoTask todoTask, List<String> propertyNames)Updates specific properties of a task in a todo task list for the current user.updateTodoTask(String todoTaskListId, TodoTask todoTask, List<String> propertyNames, UserId userId)Updates specific properties of a task in a todo task list with all options.updateTodoTaskList(TodoTaskList todoTaskList)Updates a todo task list for the current user.updateTodoTaskList(TodoTaskList todoTaskList, UserId userId)Updates a todo task list using UserId object.updateTodoTaskList(TodoTaskList todoTaskList, String userId)Updates a todo task list for a specific user.updateTodoTaskList(TodoTaskList todoTaskList, List<String> propertyNames)Updates specific properties of a todo task list for the current user.updateTodoTaskList(TodoTaskList todoTaskList, List<String> propertyNames, UserId userId)Updates specific properties of a todo task list with all options.voidupdateUser(User user)Updates a user's properties.voidupdateUser(User user, List<String> propertyNames)Updates specific properties of a user.uploadDriveItem(UploadSession uploadSession, byte[] content)Uploads a large file using an upload session with content from a byte array.uploadDriveItem(UploadSession uploadSession, InputStream stream)Uploads a large file using an upload session from a stream.uploadDriveItem(UploadSession uploadSession, InputStream stream, int bufferSize)Uploads a large file using an upload session from a stream with custom buffer size.uploadDriveItem(UploadSession uploadSession, String filePath)Uploads a large file using an upload session from a file path.uploadDriveItem(UploadSession uploadSession, String filePath, int bufferSize)Uploads a large file using an upload session from a file path with custom buffer size.uploadDriveItem(String itemId, byte[] content)Uploads or replaces the content of a drive item using a byte array.uploadDriveItem(String itemId, ResourceId resourceId, byte[] content)Uploads or replaces the content of a drive item with a specific resource context.uploadDriveItem(String itemId, ResourceId resourceId, InputStream stream)Uploads or replaces the content of a drive item with a specific resource context.uploadDriveItem(String itemId, InputStream stream)Uploads or replaces the content of a drive item using a stream.uploadDriveItemWithProgress(UploadSession uploadSession, byte[] content)Uploads a file using an upload session and reports progress.uploadDriveItemWithProgress(UploadSession uploadSession, InputStream stream)Uploads a file using an upload session from a stream and reports progress.uploadDriveItemWithProgress(UploadSession uploadSession, InputStream stream, int bufferSize)Uploads a file using an upload session from a stream with a custom buffer size and reports progress.uploadDriveItemWithProgress(UploadSession uploadSession, InputStream stream, int bufferSize, UploadProgressListener progressListener)Uploads a file using an upload session from a stream with a custom buffer size and a progress listener.uploadDriveItemWithProgress(UploadSession uploadSession, String filePath)Uploads a file using an upload session from a file path and reports progress.uploadDriveItemWithProgress(UploadSession uploadSession, String filePath, int bufferSize)Uploads a file using an upload session from a file path with a custom buffer size and reports progress.
-
Constructor Details
-
GraphClient
public GraphClient()Initializes a new instance of the GraphClient class.
-
-
Method Details
-
getSignInRequestUri
Generates a sign-in request URI for OpenID Connect authentication.- Parameters:
redirectUri- the URI to redirect to after authentication- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
Generates a sign-in request URI for OpenID Connect authentication with specified response type.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
Generates a sign-in request URI for OpenID Connect authentication with specified response type and mode.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")responseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
public String getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state)Generates a sign-in request URI for OpenID Connect authentication with state parameter.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")responseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")state- an opaque value used to maintain state between the request and callback for CSRF protection- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
public String getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce)Generates a sign-in request URI for OpenID Connect authentication with nonce parameter.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")responseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")state- an opaque value used to maintain state between the request and callback for CSRF protectionnonce- a string value used to associate a client session with an ID token to mitigate replay attacks- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
public String getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce, String loginHint)Generates a sign-in request URI for OpenID Connect authentication with login hint.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")responseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")state- an opaque value used to maintain state between the request and callback for CSRF protectionnonce- a string value used to associate a client session with an ID token to mitigate replay attacksloginHint- optional hint about the user's email or username to pre-fill the sign-in page- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
public String getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce, String loginHint, String domainHint)Generates a sign-in request URI for OpenID Connect authentication with domain hint.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")responseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")state- an opaque value used to maintain state between the request and callback for CSRF protectionnonce- a string value used to associate a client session with an ID token to mitigate replay attacksloginHint- optional hint about the user's email or username to pre-fill the sign-in pagedomainHint- specifies the tenant or domain for authentication (e.g., "consumers", "organizations", or tenant domain)- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getSignInRequestUri
public String getSignInRequestUri(String redirectUri, String responseType, String responseMode, String state, String nonce, String loginHint, String domainHint, String prompt)Generates a sign-in request URI for OpenID Connect authentication with all optional parameters.- Parameters:
redirectUri- the URI to redirect to after authenticationresponseType- the OAuth 2.0 response type (e.g., "code", "id_token", "token")responseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")state- an opaque value used to maintain state between the request and callback for CSRF protectionnonce- a string value used to associate a client session with an ID token to mitigate replay attacksloginHint- optional hint about the user's email or username to pre-fill the sign-in pagedomainHint- specifies the tenant or domain for authentication (e.g., "consumers", "organizations", or tenant domain)prompt- controls the user interaction and consent prompts (e.g., "login", "consent", "select_account", "none")- Returns:
- the complete sign-in request URI
- See Also:
- OpenID Connect on Microsoft identity platform
-
getOAuthTokenWithAuthorizationCode
public OAuthToken getOAuthTokenWithAuthorizationCode(String authorizationCode, String authorizationCodeRedirectUri) throws GraphExceptionObtains an OAuth 2.0 access token using an authorization code.This method implements the authorization code flow, exchanging an authorization code received from the authorization endpoint for an access token.
- Parameters:
authorizationCode- the authorization code received from the authorization endpointauthorizationCodeRedirectUri- the redirect URI used in the authorization request- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Authorization code flow
-
getOAuthTokenWithAuthorizationCode
public OAuthToken getOAuthTokenWithAuthorizationCode(String authorizationCode, String authorizationCodeRedirectUri, String clientSecret) throws GraphExceptionObtains an OAuth 2.0 access token using an authorization code and client secret.This method implements the authorization code flow with client authentication, exchanging an authorization code for an access token using a confidential client.
- Parameters:
authorizationCode- the authorization code received from the authorization endpointauthorizationCodeRedirectUri- the redirect URI used in the authorization requestclientSecret- the client secret for confidential client authentication- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Authorization code flow
-
getAuthorizationCodeRequestUri
Generates an authorization code request URI for OAuth 2.0 authorization code flow.- Parameters:
redirectUri- the URI to redirect to after authorization- Returns:
- the complete authorization code request URI
- See Also:
- Authorization code flow
-
getAuthorizationCodeRequestUri
Generates an authorization code request URI with specified response mode.- Parameters:
redirectUri- the URI to redirect to after authorizationresponseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")- Returns:
- the complete authorization code request URI
- See Also:
- Authorization code flow
-
getAuthorizationCodeRequestUri
public String getAuthorizationCodeRequestUri(String redirectUri, String responseMode, String state)Generates an authorization code request URI with response mode and state parameter.- Parameters:
redirectUri- the URI to redirect to after authorizationresponseMode- how the authorization response should be returned (e.g., "query", "fragment", "form_post")state- an opaque value used to maintain state between the request and callback for CSRF protection- Returns:
- the complete authorization code request URI
- See Also:
- Authorization code flow
-
getOAuthTokenWithClientAssertion
Obtains an OAuth 2.0 access token using a client assertion (JWT).This method implements the client credentials flow with JWT-based client authentication, typically used for service-to-service authentication without user context.
- Parameters:
clientAssertion- a JSON Web Token (JWT) signed with the client's certificate for authentication- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Client credentials flow
-
getOAuthTokenWithClientSecret
Obtains an OAuth 2.0 access token using a client secret.This method implements the client credentials flow, typically used for service-to-service authentication without user context. The client secret is used for authentication.
- Parameters:
clientSecret- the client secret registered for the application- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Client credentials flow
-
getOAuthTokenWithUsernamePassword
public OAuthToken getOAuthTokenWithUsernamePassword(String username, String password) throws GraphExceptionObtains an OAuth 2.0 access token using resource owner password credentials.This method implements the Resource Owner Password Credentials (ROPC) flow. Note: This flow is not recommended for production applications as it requires handling user passwords directly. Use authorization code flow or device code flow instead.
- Parameters:
username- the user's username or email addresspassword- the user's password- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Resource Owner Password Credentials flow
-
getOAuthTokenWithUsernamePassword
public OAuthToken getOAuthTokenWithUsernamePassword(String username, String password, String clientSecret) throws GraphExceptionObtains an OAuth 2.0 access token using resource owner password credentials with client secret.This method implements the Resource Owner Password Credentials (ROPC) flow with client authentication. Note: This flow is not recommended for production applications.
- Parameters:
username- the user's username or email addresspassword- the user's passwordclientSecret- the client secret for confidential client authentication- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Resource Owner Password Credentials flow
-
getOAuthTokenWithUsernamePassword
public OAuthToken getOAuthTokenWithUsernamePassword(String username, String password, String clientSecret, String clientAssertion) throws GraphExceptionObtains an OAuth 2.0 access token using resource owner password credentials with client secret and client assertion.This method implements the Resource Owner Password Credentials (ROPC) flow with enhanced client authentication. Note: This flow is not recommended for production applications.
- Parameters:
username- the user's username or email addresspassword- the user's passwordclientSecret- the client secret for confidential client authenticationclientAssertion- a JSON Web Token (JWT) for additional client authentication- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails- See Also:
- Resource Owner Password Credentials flow
-
getDeviceAuthorizationCode
Obtains a device authorization code for device code flow authentication.This method initiates the device code flow by requesting a device code and user code. The user must navigate to the verification URL and enter the user code to complete authentication.
- Returns:
- a DeviceAuthorizationCode containing the device code, user code, and verification URL
- Throws:
GraphException- if the request fails- See Also:
- Device authorization grant flow
-
getOAuthTokenWithDeviceAuthorizationCode
public OAuthToken getOAuthTokenWithDeviceAuthorizationCode(String deviceCode) throws GraphExceptionObtains an OAuth 2.0 access token using a device code.This method completes the device code flow by exchanging a device code for an access token. This should be called after the user has completed authentication at the verification URL.
- Parameters:
deviceCode- the device code obtained from getDeviceAuthorizationCode()- Returns:
- an OAuthToken containing the access token and related information
- Throws:
GraphException- if the token request fails or if the user hasn't completed authentication- See Also:
- Device authorization grant flow
-
refreshOAuthToken
Refreshes the current OAuth 2.0 access token using the stored refresh token.This method uses the refresh token from the current OAuthToken to obtain a new access token. The client must have a valid refresh token stored in the current OAuthToken instance.
- Returns:
- a new OAuthToken containing the refreshed access token
- Throws:
GraphException- if the refresh fails or if no refresh token is available- See Also:
- Refresh access tokens
-
refreshOAuthToken
public OAuthToken refreshOAuthToken(String clientId, String tenant, String refreshToken) throws GraphExceptionRefreshes an OAuth 2.0 access token with specified parameters.- Parameters:
clientId- the client ID (application ID) of the apptenant- the tenant ID or domain namerefreshToken- the refresh token to use for obtaining a new access token- Returns:
- a new OAuthToken containing the refreshed access token
- Throws:
GraphException- if the refresh fails- See Also:
- Refresh access tokens
-
refreshOAuthToken
public OAuthToken refreshOAuthToken(String clientId, String tenant, String refreshToken, List<String> scope) throws GraphExceptionRefreshes an OAuth 2.0 access token with specified parameters and scopes.- Parameters:
clientId- the client ID (application ID) of the apptenant- the tenant ID or domain namerefreshToken- the refresh token to use for obtaining a new access tokenscope- list of permission scopes to request (e.g., "User.Read", "Mail.Send")- Returns:
- a new OAuthToken containing the refreshed access token
- Throws:
GraphException- if the refresh fails- See Also:
- Refresh access tokens
-
refreshOAuthToken
public OAuthToken refreshOAuthToken(String clientId, String tenant, String refreshToken, List<String> scope, String clientSecret) throws GraphExceptionRefreshes an OAuth 2.0 access token with all parameters including client secret.- Parameters:
clientId- the client ID (application ID) of the apptenant- the tenant ID or domain namerefreshToken- the refresh token to use for obtaining a new access tokenscope- list of permission scopes to request (e.g., "User.Read", "Mail.Send")clientSecret- the client secret for confidential client authentication- Returns:
- a new OAuthToken containing the refreshed access token
- Throws:
GraphException- if the refresh fails- See Also:
- Refresh access tokens
-
getMailboxSettings
Retrieves mailbox settings for the authenticated user.Returns settings such as time zone, date format, working hours, and automatic replies configuration.
- Returns:
- the MailboxSettings for the current user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getMailboxSettings
Retrieves mailbox settings for a specific user.- Parameters:
userId- the ID or user principal name of the user- Returns:
- the MailboxSettings for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getMailboxSettings
Retrieves mailbox settings for a specific user.- Parameters:
userId- the UserId object representing the user- Returns:
- the MailboxSettings for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
setMailboxSettings
Updates mailbox settings for the authenticated user. \n * @param mailboxSettings the MailboxSettings to update- Returns:
- the updated MailboxSettings
- Throws:
GraphException- if the update fails- See Also:
- Update user mailbox settings
-
setMailboxSettings
public MailboxSettings setMailboxSettings(MailboxSettings mailboxSettings, String userId) throws GraphExceptionUpdates mailbox settings for a specific user.- Parameters:
mailboxSettings- the MailboxSettings to updateuserId- the ID or user principal name of the user- Returns:
- the updated MailboxSettings
- Throws:
GraphException- if the update fails- See Also:
- Update user mailbox settings
-
setMailboxSettings
public MailboxSettings setMailboxSettings(MailboxSettings mailboxSettings, UserId userId) throws GraphExceptionUpdates mailbox settings for a specific user.- Parameters:
mailboxSettings- the MailboxSettings to updateuserId- the UserId object representing the user- Returns:
- the updated MailboxSettings
- Throws:
GraphException- if the update fails- See Also:
- Update user mailbox settings
-
getWorkingHours
Retrieves working hours for the authenticated user.Returns the days and hours during which the user is available to work.
- Returns:
- the WorkingHours for the current user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getWorkingHours
Retrieves working hours for a specific user.- Parameters:
userId- the ID or user principal name of the user- Returns:
- the WorkingHours for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getWorkingHours
Retrieves working hours for a specific user.- Parameters:
userId- the UserId object representing the user- Returns:
- the WorkingHours for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getAutomaticRepliesSettings
Retrieves automatic replies (out-of-office) settings for the authenticated user.Returns settings for automatic replies, including status, messages, and schedule.
- Returns:
- the AutomaticRepliesSettings for the current user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getAutomaticRepliesSettings
Retrieves automatic replies (out-of-office) settings for a specific user.- Parameters:
userId- the ID or user principal name of the user- Returns:
- the AutomaticRepliesSettings for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
getAutomaticRepliesSettings
Retrieves automatic replies (out-of-office) settings for a specific user.- Parameters:
userId- the UserId object representing the user- Returns:
- the AutomaticRepliesSettings for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user mailbox settings
-
createUser
Creates a new user in the organization.Requires User.ReadWrite.All delegated or application permission.
- Parameters:
user- the User object containing user properties- Returns:
- the created User object with assigned ID and properties
- Throws:
GraphException- if the creation fails- See Also:
- Create user
-
updateUser
Updates a user's properties.- Parameters:
user- the User object with the updated properties (must include user ID)- Throws:
GraphException- if the update fails- See Also:
- Update user
-
updateUser
Updates specific properties of a user.- Parameters:
user- the User object with the updated properties (must include user ID)propertyNames- list of property names to update (null to update all modified properties)- Throws:
GraphException- if the update fails- See Also:
- Update user
-
deleteUser
Deletes a user from the organization.Requires User.ReadWrite.All delegated or application permission.
- Parameters:
userId- the ID or user principal name of the user to delete- Throws:
GraphException- if the deletion fails- See Also:
- Delete user
-
getUser
Retrieves the profile of the authenticated user.- Returns:
- the User object for the authenticated user
- Throws:
GraphException- if the request fails- See Also:
- Get user
-
getUser
Retrieves a user's profile by ID or user principal name.- Parameters:
userId- the ID or user principal name of the user- Returns:
- the User object for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user
-
getUser
Retrieves a user's profile.- Parameters:
userId- the UserId object representing the user- Returns:
- the User object for the specified user
- Throws:
GraphException- if the request fails- See Also:
- Get user
-
getUsers
Retrieves a list of all users in the organization.- Returns:
- a list of User objects
- Throws:
GraphException- if the request fails- See Also:
- List users
-
getUsers
Retrieves a list of users with query options.Supports filtering, sorting, selecting specific properties, and pagination.
- Parameters:
query- query options for filtering, sorting, and paging (can be null)- Returns:
- a list of User objects matching the query
- Throws:
GraphException- if the request fails- See Also:
- List users
-
getUserChanges
Tracks changes to users using delta query.Returns users that have been added, updated, or deleted since the last query. Use the deltaLink from the response for subsequent calls to get incremental changes.
- Returns:
- UserChanges containing changed users and a deltaLink for tracking
- Throws:
GraphException- if the request fails- See Also:
- Get incremental changes for users
-
getUserChanges
Continues tracking user changes using a next link or delta link from a previous call.- Parameters:
nextLinkOrDeltaLink- the next link or delta link from a previous getUserChanges response- Returns:
- UserChanges containing the next set of changes
- Throws:
GraphException- if the request fails- See Also:
- Get incremental changes for users
-
getUserChanges
Tracks changes to users with query options.- Parameters:
query- query options for filtering and selecting properties- Returns:
- UserChanges containing changed users and a deltaLink
- Throws:
GraphException- if the request fails- See Also:
- Get incremental changes for users
-
getGroups
Retrieves a list of all groups in the organization.Includes Microsoft 365 groups, security groups, and mail-enabled security groups.
- Returns:
- a list of Group objects
- Throws:
GraphException- if the request fails- See Also:
- List groups
-
getGroups
Retrieves a list of groups with query options.Supports filtering, sorting, selecting specific properties, and pagination.
- Parameters:
query- query options for filtering, sorting, and paging (can be null)- Returns:
- a list of Group objects matching the query
- Throws:
GraphException- if the request fails- See Also:
- List groups
-
getGroupChanges
Tracks changes to groups using delta query.Returns groups that have been added, updated, or deleted since the last query.
- Returns:
- GroupChanges containing changed groups and a deltaLink for tracking
- Throws:
GraphException- if the request fails- See Also:
- Get incremental changes for groups
-
getGroupChanges
Continues tracking group changes using a next link or delta link.- Parameters:
nextLinkOrDeltaLink- the next link or delta link from a previous response- Returns:
- GroupChanges containing the next set of changes
- Throws:
GraphException- if the request fails- See Also:
- Get incremental changes for groups
-
getGroupChanges
Tracks changes to groups with query options.- Parameters:
query- query options for filtering and selecting properties- Returns:
- GroupChanges containing changed groups and a deltaLink
- Throws:
GraphException- if the request fails- See Also:
- Get incremental changes for groups
-
getGroup
Retrieves the properties and relationships of a group.- Parameters:
groupId- the ID of the group- Returns:
- the Group object
- Throws:
GraphException- if the request fails- See Also:
- Get group
-
getGroupOwners
Retrieves the owners of a group.Group owners are users or service principals who can manage the group.
- Parameters:
groupId- the ID of the group- Returns:
- a list of DirectoryObject representing the owners (typically User objects)
- Throws:
GraphException- if the request fails- See Also:
- List group owners
-
getGroupOwners
Retrieves the owners of a group with query options.- Parameters:
groupId- the ID of the groupquery- query options for filtering and paging- Returns:
- a list of DirectoryObject representing the owners
- Throws:
GraphException- if the request fails- See Also:
- List group owners
-
getGroupMembers
Gets the members of a specified group. Members can include users, groups, and other directory objects.- Parameters:
groupId- The ID of the group- Returns:
- A list of DirectoryObject representing the group members
- Throws:
GraphException- If an error occurs during the API request
-
getGroupMembers
Gets the members of a specified group with optional query parameters. Members can include users, groups, and other directory objects.- Parameters:
groupId- The ID of the groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of DirectoryObject representing the group members
- Throws:
GraphException- If an error occurs during the API request
-
getGroupMemberOf
Gets the groups and directory roles that a group is a direct member of.- Parameters:
groupId- The ID of the group- Returns:
- A list of DirectoryObject representing the groups and directory roles
- Throws:
GraphException- If an error occurs during the API request
-
getGroupMemberOf
Gets the groups and directory roles that a group is a direct member of with optional query parameters.- Parameters:
groupId- The ID of the groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of DirectoryObject representing the groups and directory roles
- Throws:
GraphException- If an error occurs during the API request
-
getGroupTransitiveMembers
Gets the transitive members of a group, including nested group members. This returns all members in the group's membership tree, not just direct members.- Parameters:
groupId- The ID of the group- Returns:
- A list of DirectoryObject representing all transitive members
- Throws:
GraphException- If an error occurs during the API request
-
getGroupTransitiveMembers
public List<DirectoryObject> getGroupTransitiveMembers(String groupId, Query query) throws GraphExceptionGets the transitive members of a group with optional query parameters. This returns all members in the group's membership tree, including nested group members.- Parameters:
groupId- The ID of the groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of DirectoryObject representing all transitive members
- Throws:
GraphException- If an error occurs during the API request
-
getGroupTransitiveMemberOf
Gets the groups and directory roles that a group is a member of, including nested memberships. This API returns all the groups and directory roles that the group is a member of transitively.- Parameters:
groupId- The ID of the group- Returns:
- A list of DirectoryObject representing all groups and directory roles
- Throws:
GraphException- If an error occurs during the API request
-
getGroupTransitiveMemberOf
public List<DirectoryObject> getGroupTransitiveMemberOf(String groupId, Query query) throws GraphExceptionGets the groups and directory roles that a group is a member of with optional query parameters. This returns transitive memberships including nested groups and directory roles.- Parameters:
groupId- The ID of the groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of DirectoryObject representing all groups and directory roles
- Throws:
GraphException- If an error occurs during the API request
-
getDeletedGroups
Gets a list of deleted groups from the directory. Deleted groups are available in the directory's deleted items container for up to 30 days.- Returns:
- A list of deleted Group objects
- Throws:
GraphException- If an error occurs during the API request
-
getDeletedGroups
Gets a list of deleted groups from the directory with optional query parameters. Deleted groups can be restored within 30 days before permanent deletion.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of deleted Group objects
- Throws:
GraphException- If an error occurs during the API request
-
createGroup
Creates a new group in the directory. The group can be created as a Microsoft 365 group, Security group, or Mail-enabled security group.- Parameters:
group- The Group object containing the properties of the group to create- Returns:
- The created Group object with server-generated properties
- Throws:
GraphException- If an error occurs during the API request
-
deleteGroup
Deletes a group from the directory. The deleted group is moved to deleted items and can be restored within 30 days.- Parameters:
groupId- The ID of the group to delete- Throws:
GraphException- If an error occurs during the API request
-
updateGroup
Updates all properties of a group. Only properties set in the Group object will be updated.- Parameters:
group- The Group object containing the updated properties (must have ID set)- Throws:
GraphException- If an error occurs during the API request
-
updateGroup
Updates specific properties of a group. Only the properties specified in the propertyNames list will be updated.- Parameters:
group- The Group object containing the updated properties (must have ID set)propertyNames- List of property names to update; if null, all properties are updated- Throws:
GraphException- If an error occurs during the API request
-
addGroupOwner
Adds the currently authenticated user as an owner of the specified group. Group owners can manage group membership, update group settings, and delete the group.- Parameters:
groupId- The ID of the group- Throws:
GraphException- If an error occurs during the API request
-
addGroupOwner
Adds a user as an owner of the specified group. Group owners can manage group membership, update group settings, and delete the group.- Parameters:
groupId- The ID of the groupuserId- The ID of the user to add as owner- Throws:
GraphException- If an error occurs during the API request
-
addGroupOwner
Adds a user as an owner of the specified group using a UserId object. Group owners can manage group membership, update group settings, and delete the group.- Parameters:
groupId- The ID of the groupuserId- The UserId object representing the user to add as owner- Throws:
GraphException- If an error occurs during the API request
-
addGroupMember
Adds a member to a group. Members can be users, groups, or other directory objects.- Parameters:
groupId- The ID of the groupmemberId- The ID of the directory object to add as a member- Throws:
GraphException- If an error occurs during the API request
-
deleteGroupMember
Removes a member from a group. This operation removes users, groups, or other directory objects from group membership.- Parameters:
groupId- The ID of the groupmemberId- The ID of the member to remove- Throws:
GraphException- If an error occurs during the API request
-
deleteGroupOwner
Removes an owner from a group. Groups must have at least one owner; removing the last owner will fail.- Parameters:
groupId- The ID of the groupownerId- The ID of the owner to remove- Throws:
GraphException- If an error occurs during the API request
-
addGroupToFavorite
Adds a group to the list of favorite groups for the signed-in user. Favorite groups appear at the top of the user's groups list in Microsoft 365.- Parameters:
groupId- The ID of the group to add to favorites- Throws:
GraphException- If an error occurs during the API request
-
getStatusReport
Gets the status of an asynchronous job, such as a long-running copy operation. This method is used to check the progress and completion status of operations that return a monitor URI.- Parameters:
uri- The monitor URI returned from an asynchronous operation- Returns:
- AsyncJobStatus object containing the job's status and progress information
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemThumbnails
Gets the thumbnail images for a drive item. Retrieves a collection of ThumbnailSet resources for the specified drive item.- Parameters:
itemId- The ID of the drive item- Returns:
- A list of ThumbnailSet objects containing thumbnail images in different sizes
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemThumbnails
public List<ThumbnailSet> getDriveItemThumbnails(String itemId, ResourceId resourceId) throws GraphExceptionGets the thumbnail images for a drive item with a specific resource context. Retrieves thumbnails from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A list of ThumbnailSet objects containing thumbnail images in different sizes
- Throws:
GraphException- If an error occurs during the API request
-
sendSharingInvitation
public DriveItem sendSharingInvitation(SharingInvitationMessage message, String itemId) throws GraphExceptionSends a sharing invitation for a drive item to specified recipients. This creates sharing permissions and sends email notifications to the recipients.- Parameters:
message- The SharingInvitationMessage containing recipients and optional messageitemId- The ID of the drive item to share- Returns:
- The updated DriveItem with the new sharing permissions
- Throws:
GraphException- If an error occurs during the API request
-
sendSharingInvitation
public DriveItem sendSharingInvitation(SharingInvitationMessage message, String itemId, ResourceId resourceId) throws GraphExceptionSends a sharing invitation for a drive item with a specific resource context. This creates sharing permissions and sends email notifications to the recipients.- Parameters:
message- The SharingInvitationMessage containing recipients and optional messageitemId- The ID of the drive item to shareresourceId- The ResourceId specifying the user, group, or site context- Returns:
- The updated DriveItem with the new sharing permissions
- Throws:
GraphException- If an error occurs during the API request
-
followDriveItem
Follows a drive item for the signed-in user. Following an item makes it appear in the user's list of followed items for quick access.- Parameters:
itemId- The ID of the drive item to follow- Returns:
- The DriveItem that was followed
- Throws:
GraphException- If an error occurs during the API request
-
followDriveItem
Follows a drive item with a specific resource context. Following an item makes it appear in the user's list of followed items for quick access.- Parameters:
itemId- The ID of the drive item to followresourceId- The ResourceId specifying the user, group, or site context- Returns:
- The DriveItem that was followed
- Throws:
GraphException- If an error occurs during the API request
-
unfollowDriveItem
Unfollows a drive item for the signed-in user. Removes the item from the user's list of followed items.- Parameters:
itemId- The ID of the drive item to unfollow- Throws:
GraphException- If an error occurs during the API request
-
unfollowDriveItem
Unfollows a drive item with a specific resource context. Removes the item from the user's list of followed items.- Parameters:
itemId- The ID of the drive item to unfollowresourceId- The ResourceId specifying the user, group, or site context- Throws:
GraphException- If an error occurs during the API request
-
checkInDriveItem
Checks in a drive item, making it available for others to edit. Check-in releases the lock on the item after it has been checked out.- Parameters:
itemId- The ID of the drive item to check in- Throws:
GraphException- If an error occurs during the API request
-
checkInDriveItem
Checks in a drive item with a specific resource context. Check-in releases the lock on the item after it has been checked out.- Parameters:
itemId- The ID of the drive item to check inresourceId- The ResourceId specifying the user, group, or site context- Throws:
GraphException- If an error occurs during the API request
-
checkOutDriveItem
Checks out a drive item, locking it for editing by the current user. This prevents other users from editing the item until it is checked in.- Parameters:
itemId- The ID of the drive item to check out- Throws:
GraphException- If an error occurs during the API request
-
checkOutDriveItem
Checks out a drive item with a specific resource context. This prevents other users from editing the item until it is checked in.- Parameters:
itemId- The ID of the drive item to check outresourceId- The ResourceId specifying the user, group, or site context- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemAsStream
Downloads a drive item's content as a stream. This method retrieves the binary content of a file stored in OneDrive or SharePoint.- Parameters:
itemId- The ID of the drive item to download- Returns:
- An InputStream containing the file content
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemAsStream
public InputStream getDriveItemAsStream(String itemId, ResourceId resourceId) throws GraphExceptionDownloads a drive item's content as a stream with a specific resource context. This method retrieves the binary content from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive item to downloadresourceId- The ResourceId specifying the user, group, or site context- Returns:
- An InputStream containing the file content
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemVersions
Gets the version history of a drive item. Retrieves all previous versions of a file, allowing access to earlier content.- Parameters:
itemId- The ID of the drive item- Returns:
- A list of DriveItemVersion objects representing the version history
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemVersions
public List<DriveItemVersion> getDriveItemVersions(String itemId, ResourceId resourceId) throws GraphExceptionGets the version history of a drive item with a specific resource context. Retrieves all previous versions from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A list of DriveItemVersion objects representing the version history
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemVersion
Gets a specific version of a drive item. Retrieves metadata and content information for a particular version of a file.- Parameters:
versionId- The ID of the version to retrieveitemId- The ID of the drive item- Returns:
- A DriveItemVersion object representing the specified version
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemVersion
public DriveItemVersion getDriveItemVersion(String versionId, String itemId, ResourceId resourceId) throws GraphExceptionGets a specific version of a drive item with a resource context. Retrieves metadata and content information for a version from a specific location.- Parameters:
versionId- The ID of the version to retrieveitemId- The ID of the drive itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A DriveItemVersion object representing the specified version
- Throws:
GraphException- If an error occurs during the API request
-
restoreDriveItemVersion
Restores a previous version of a drive item, making it the current version. The current version becomes a new version in the history after the restoration.- Parameters:
versionId- The ID of the version to restoreitemId- The ID of the drive item- Throws:
GraphException- If an error occurs during the API request
-
restoreDriveItemVersion
public void restoreDriveItemVersion(String versionId, String itemId, ResourceId resourceId) throws GraphExceptionRestores a previous version of a drive item with a specific resource context. The current version becomes a new version in the history after the restoration.- Parameters:
versionId- The ID of the version to restoreitemId- The ID of the drive itemresourceId- The ResourceId specifying the user, group, or site context- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemAsByteArray
Downloads a drive item's content as a byte array. Retrieves the entire file content and stores it in memory.- Parameters:
itemId- The ID of the drive item to download- Returns:
- A byte array containing the complete file content
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemAsByteArray
public byte[] getDriveItemAsByteArray(String itemId, long rangeBegin, long rangeEnd) throws GraphExceptionDownloads a specific byte range of a drive item's content. Useful for downloading large files in chunks or reading partial content.- Parameters:
itemId- The ID of the drive item to downloadrangeBegin- The starting byte position (inclusive)rangeEnd- The ending byte position (inclusive)- Returns:
- A byte array containing the requested byte range
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemAsByteArray
Downloads a drive item's content as a byte array with a specific resource context. Retrieves the entire file content from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive item to downloadresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A byte array containing the complete file content
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemAsByteArray
public byte[] getDriveItemAsByteArray(String itemId, ResourceId resourceId, long rangeBegin, long rangeEnd) throws GraphExceptionDownloads a specific byte range of a drive item's content with a resource context. Useful for downloading large files in chunks from a specific location.- Parameters:
itemId- The ID of the drive item to downloadresourceId- The ResourceId specifying the user, group, or site contextrangeBegin- The starting byte position (inclusive)rangeEnd- The ending byte position (inclusive)- Returns:
- A byte array containing the requested byte range
- Throws:
GraphException- If an error occurs during the API request
-
moveDriveItem
Moves and/or renames a drive item. Updates the item's name and keeps it in the same parent folder.- Parameters:
itemId- The ID of the drive item to movedestinationName- The new name for the item- Returns:
- The updated DriveItem after the move operation
- Throws:
GraphException- If an error occurs during the API request
-
moveDriveItem
public DriveItem moveDriveItem(String itemId, String destinationName, ItemReference destinationFolder) throws GraphExceptionMoves and/or renames a drive item to a different folder. Updates the item's name and moves it to the specified destination folder.- Parameters:
itemId- The ID of the drive item to movedestinationName- The new name for the itemdestinationFolder- ItemReference specifying the target folder- Returns:
- The updated DriveItem after the move operation
- Throws:
GraphException- If an error occurs during the API request
-
moveDriveItem
public DriveItem moveDriveItem(String itemId, String destinationName, ResourceId resourceId) throws GraphExceptionMoves and/or renames a drive item with a specific resource context. Updates the item's name in a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive item to movedestinationName- The new name for the itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- The updated DriveItem after the move operation
- Throws:
GraphException- If an error occurs during the API request
-
moveDriveItem
public DriveItem moveDriveItem(String itemId, String destinationName, ItemReference destinationFolder, ResourceId resourceId) throws GraphExceptionMoves and/or renames a drive item with full control over destination and context. Updates the item's name and location with specified folder and resource context.- Parameters:
itemId- The ID of the drive item to movedestinationName- The new name for the itemdestinationFolder- ItemReference specifying the target folderresourceId- The ResourceId specifying the user, group, or site context- Returns:
- The updated DriveItem after the move operation
- Throws:
GraphException- If an error occurs during the API request
-
copyDriveItem
Asynchronously copies a drive item to a new location with a new name. The copy operation is performed asynchronously; use the returned monitor URI to check progress.- Parameters:
itemId- The ID of the drive item to copydestinationName- The name for the copied item- Returns:
- A monitor URI to track the copy operation's progress
- Throws:
GraphException- If an error occurs during the API request
-
copyDriveItem
public String copyDriveItem(String itemId, String destinationName, ItemReference destinationFolder) throws GraphExceptionAsynchronously copies a drive item to a specified folder with a new name. The copy operation is performed asynchronously; use the returned monitor URI to check progress.- Parameters:
itemId- The ID of the drive item to copydestinationName- The name for the copied itemdestinationFolder- ItemReference specifying the target folder- Returns:
- A monitor URI to track the copy operation's progress
- Throws:
GraphException- If an error occurs during the API request
-
copyDriveItem
public String copyDriveItem(String itemId, String destinationName, ResourceId resourceId) throws GraphExceptionAsynchronously copies a drive item with a specific resource context. The copy operation is performed asynchronously; use the returned monitor URI to check progress.- Parameters:
itemId- The ID of the drive item to copydestinationName- The name for the copied itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A monitor URI to track the copy operation's progress
- Throws:
GraphException- If an error occurs during the API request
-
copyDriveItem
public String copyDriveItem(String itemId, String destinationName, ItemReference destinationFolder, ResourceId resourceId) throws GraphExceptionAsynchronously copies a drive item with full control over destination and context. The copy operation is performed asynchronously; use the returned monitor URI to check progress.- Parameters:
itemId- The ID of the drive item to copydestinationName- The name for the copied itemdestinationFolder- ItemReference specifying the target folderresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A monitor URI to track the copy operation's progress
- Throws:
GraphException- If an error occurs during the API request
-
convertDriveItem
Converts a drive item's content to a different format. Supported formats include PDF and other formats depending on the file type.- Parameters:
itemId- The ID of the drive item to convertformat- The target format (e.g., "pdf")- Returns:
- A byte array containing the converted content
- Throws:
GraphException- If an error occurs during the API request
-
convertDriveItem
public byte[] convertDriveItem(String itemId, String format, ResourceId resourceId) throws GraphExceptionConverts a drive item's content to a different format with a specific resource context. Supported formats include PDF and other formats depending on the file type.- Parameters:
itemId- The ID of the drive item to convertformat- The target format (e.g., "pdf")resourceId- The ResourceId specifying the user, group, or site context- Returns:
- A byte array containing the converted content
- Throws:
GraphException- If an error occurs during the API request
-
convertDriveItemAsStream
Converts a drive item's content to a different format and returns it as a stream. Useful for processing converted content without loading it entirely into memory.- Parameters:
itemId- The ID of the drive item to convertformat- The target format (e.g., "pdf")- Returns:
- An InputStream containing the converted content
- Throws:
GraphException- If an error occurs during the API request
-
convertDriveItemAsStream
public InputStream convertDriveItemAsStream(String itemId, String format, ResourceId resourceId) throws GraphExceptionConverts a drive item's content to a different format as a stream with a resource context. Useful for processing converted content without loading it entirely into memory.- Parameters:
itemId- The ID of the drive item to convertformat- The target format (e.g., "pdf")resourceId- The ResourceId specifying the user, group, or site context- Returns:
- An InputStream containing the converted content
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemChanges
Gets the changes to drive items for the current user's drive. This tracks additions, updates, and deletions to items using delta queries.- Returns:
- DriveItemChanges containing the list of changed items and delta token
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemChanges
Gets the next page of drive item changes using a next link or delta link. Use the next/delta link from a previous response to continue tracking changes.- Parameters:
nextLinkOrDeltaLink- The next link or delta link from a previous response- Returns:
- DriveItemChanges containing the list of changed items and delta token
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemChanges
Gets the changes to drive items for a specific resource. This tracks additions, updates, and deletions for a user's, group's, or site's drive.- Parameters:
resourceId- The ResourceId specifying the user, group, or site context- Returns:
- DriveItemChanges containing the list of changed items and delta token
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemChanges
Gets the changes to drive items for the current user with query options. This allows filtering, selecting specific properties, or setting a token for tracking.- Parameters:
query- Optional Query object for filtering, selecting, or providing a delta token- Returns:
- DriveItemChanges containing the list of changed items and delta token
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemChanges
public DriveItemChanges getDriveItemChanges(ResourceId resourceId, Query query) throws GraphExceptionGets the changes to drive items for a specific resource with query options. This allows tracking changes for a specific location with filtering and selection.- Parameters:
resourceId- The ResourceId specifying the user, group, or site contextquery- Optional Query object for filtering, selecting, or providing a delta token- Returns:
- DriveItemChanges containing the list of changed items and delta token
- Throws:
GraphException- If an error occurs during the API request
-
getSharingPermission
public SharingPermission getSharingPermission(String itemId, String permissionId) throws GraphExceptionGets a specific sharing permission for a drive item. Retrieves details about who has access to the item and their permission level.- Parameters:
itemId- The ID of the drive itempermissionId- The ID of the permission to retrieve- Returns:
- A SharingPermission object containing the permission details
- Throws:
GraphException- If an error occurs during the API request
-
getSharingPermission
public SharingPermission getSharingPermission(String itemId, String permissionId, ResourceId resourceId) throws GraphExceptionGets a specific sharing permission for a drive item with a resource context. Retrieves permission details from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive itempermissionId- The ID of the permission to retrieveresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A SharingPermission object containing the permission details
- Throws:
GraphException- If an error occurs during the API request
-
deleteSharingPermission
Removes a sharing permission from a drive item. This revokes access for the specified permission, removing the user's or group's access.- Parameters:
itemId- The ID of the drive itempermissionId- The ID of the permission to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteSharingPermission
public void deleteSharingPermission(String itemId, String permissionId, ResourceId resourceId) throws GraphExceptionRemoves a sharing permission from a drive item with a specific resource context. This revokes access for a user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive itempermissionId- The ID of the permission to deleteresourceId- The ResourceId specifying the user, group, or site context- Throws:
GraphException- If an error occurs during the API request
-
createSharingLink
Creates a sharing link for a drive item. This generates a shareable link with specified permissions (view, edit, or embed).- Parameters:
link- The SharingLink configuration specifying link type and scopeitemId- The ID of the drive item to share- Returns:
- A SharingPermission object containing the generated sharing link
- Throws:
GraphException- If an error occurs during the API request
-
createSharingLink
public SharingPermission createSharingLink(SharingLink link, String itemId, ResourceId resourceId) throws GraphExceptionCreates a sharing link for a drive item with a specific resource context. This generates a shareable link from a specific user's drive, group drive, or site.- Parameters:
link- The SharingLink configuration specifying link type and scopeitemId- The ID of the drive item to shareresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A SharingPermission object containing the generated sharing link
- Throws:
GraphException- If an error occurs during the API request
-
getSharingPermissions
Gets all sharing permissions for a drive item. Returns the complete list of users, groups, and links that have access to the item.- Parameters:
itemId- The ID of the drive item- Returns:
- A list of SharingPermission objects representing all permissions
- Throws:
GraphException- If an error occurs during the API request
-
getSharingPermissions
public List<SharingPermission> getSharingPermissions(String itemId, ResourceId resourceId) throws GraphExceptionGets all sharing permissions for a drive item with a specific resource context. Returns permissions from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A list of SharingPermission objects representing all permissions
- Throws:
GraphException- If an error occurs during the API request
-
createDriveItem
Creates an empty drive item (file or folder) in the specified parent folder. Creates an empty file with the specified name.- Parameters:
parentId- The ID of the parent folderfileName- The name for the new file or folder- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
createDriveItem
public DriveItem createDriveItem(String parentId, String fileName, byte[] content) throws GraphException, IOExceptionCreates a drive item with content from a byte array. Uploads the content and creates a new file in the specified parent folder.- Parameters:
parentId- The ID of the parent folderfileName- The name for the new filecontent- The byte array containing the file content- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createDriveItem
public DriveItem createDriveItem(String parentId, String fileName, InputStream stream) throws GraphExceptionCreates a drive item with content from a stream. Uploads the content from the stream and creates a new file.- Parameters:
parentId- The ID of the parent folderfileName- The name for the new filestream- The InputStream containing the file content- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
createDriveItem
public DriveItem createDriveItem(String parentId, ResourceId resourceId, String fileName) throws GraphExceptionCreates an empty drive item with a specific resource context. Creates an empty file in a specific user's drive, group drive, or site.- Parameters:
parentId- The ID of the parent folderresourceId- The ResourceId specifying the user, group, or site contextfileName- The name for the new file- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
createDriveItem
public DriveItem createDriveItem(String parentId, ResourceId resourceId, String fileName, byte[] content) throws GraphException, IOExceptionCreates a drive item with content from a byte array and specific resource context. Uploads content to a specific user's drive, group drive, or site.- Parameters:
parentId- The ID of the parent folderresourceId- The ResourceId specifying the user, group, or site contextfileName- The name for the new filecontent- The byte array containing the file content- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createDriveItem
public DriveItem createDriveItem(String parentId, ResourceId resourceId, String fileName, InputStream stream) throws GraphExceptionCreates a drive item with content from a stream and specific resource context. Uploads content from the stream to a specific user's drive, group drive, or site.- Parameters:
parentId- The ID of the parent folderresourceId- The ResourceId specifying the user, group, or site contextfileName- The name for the new filestream- The InputStream containing the file content- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
createDriveItem
Creates a drive item (file or folder) using a DriveItem object. This allows setting metadata properties when creating the item.- Parameters:
parentId- The ID of the parent folderdriveItem- The DriveItem object with properties for the new item- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
createDriveItem
public DriveItem createDriveItem(String parentId, ResourceId resourceId, DriveItem driveItem) throws GraphExceptionCreates a drive item using a DriveItem object with specific resource context. This allows setting metadata properties when creating the item in a specific location.- Parameters:
parentId- The ID of the parent folderresourceId- The ResourceId specifying the user, group, or site contextdriveItem- The DriveItem object with properties for the new item- Returns:
- The created DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
uploadDriveItem
Uploads or replaces the content of a drive item using a byte array. Updates the content of an existing file with new data.- Parameters:
itemId- The ID of the drive item to updatecontent- The byte array containing the new file content- Returns:
- The updated DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItem
Uploads or replaces the content of a drive item using a stream. Updates the content of an existing file with data from the stream.- Parameters:
itemId- The ID of the drive item to updatestream- The InputStream containing the new file content- Returns:
- The updated DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
uploadDriveItem
public DriveItem uploadDriveItem(String itemId, ResourceId resourceId, byte[] content) throws GraphException, IOExceptionUploads or replaces the content of a drive item with a specific resource context. Updates content in a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive item to updateresourceId- The ResourceId specifying the user, group, or site contextcontent- The byte array containing the new file content- Returns:
- The updated DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItem
public DriveItem uploadDriveItem(String itemId, ResourceId resourceId, InputStream stream) throws GraphExceptionUploads or replaces the content of a drive item with a specific resource context. Updates content from a stream to a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive item to updateresourceId- The ResourceId specifying the user, group, or site contextstream- The InputStream containing the new file content- Returns:
- The updated DriveItem object
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
Creates an upload session for uploading large files in chunks. Use for files larger than 4MB to upload them in multiple parts.- Parameters:
driveItemId- The ID of the drive item to upload- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(String driveItemId, DriveItemUploadableProperties properties) throws GraphExceptionCreates an upload session with uploadable properties. Allows setting metadata for the file being uploaded.- Parameters:
driveItemId- The ID of the drive item to uploadproperties- DriveItemUploadableProperties with metadata for the uploaded file- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(String driveItemId, DriveItemUploadableProperties properties, boolean deferCommit) throws GraphExceptionCreates an upload session with deferred commit option. When deferCommit is true, the file is not finalized until explicitly committed.- Parameters:
driveItemId- The ID of the drive item to uploadproperties- DriveItemUploadableProperties with metadata for the uploaded filedeferCommit- If true, the upload must be explicitly committed after completion- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(String driveItemId, ResourceId resourceId) throws GraphExceptionCreates an upload session with a specific resource context. Creates an upload session in a specific user's drive, group drive, or site.- Parameters:
driveItemId- The ID of the drive item to uploadresourceId- The ResourceId specifying the user, group, or site context- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(String driveItemId, ResourceId resourceId, DriveItemUploadableProperties properties) throws GraphExceptionCreates an upload session with resource context and properties. Creates an upload session with metadata in a specific location.- Parameters:
driveItemId- The ID of the drive item to uploadresourceId- The ResourceId specifying the user, group, or site contextproperties- DriveItemUploadableProperties with metadata for the uploaded file- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(String driveItemId, ResourceId resourceId, boolean deferCommit) throws GraphExceptionCreates an upload session with resource context and deferred commit. Creates an upload session that must be explicitly committed after completion.- Parameters:
driveItemId- The ID of the drive item to uploadresourceId- The ResourceId specifying the user, group, or site contextdeferCommit- If true, the upload must be explicitly committed after completion- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(String driveItemId, ResourceId resourceId, DriveItemUploadableProperties properties, boolean deferCommit) throws GraphExceptionCreates an upload session with full control over properties and options. Creates an upload session with metadata, specific location, and commit behavior.- Parameters:
driveItemId- The ID of the drive item to uploadresourceId- The ResourceId specifying the user, group, or site contextproperties- DriveItemUploadableProperties with metadata for the uploaded filedeferCommit- If true, the upload must be explicitly committed after completion- Returns:
- An UploadSession object containing the upload URL and expiration
- Throws:
GraphException- If an error occurs during the API request
-
uploadDriveItem
public DriveItem uploadDriveItem(UploadSession uploadSession, byte[] content) throws GraphException, IOExceptionUploads a large file using an upload session with content from a byte array. This method handles chunked upload for files larger than 4MB.- Parameters:
uploadSession- The UploadSession created by createUploadSessioncontent- The byte array containing the complete file content- Returns:
- The uploaded DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItem
public DriveItem uploadDriveItem(UploadSession uploadSession, String filePath) throws GraphException, IOExceptionUploads a large file using an upload session from a file path. This method reads the file and uploads it in chunks.- Parameters:
uploadSession- The UploadSession created by createUploadSessionfilePath- The path to the file to upload- Returns:
- The uploaded DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItem
public DriveItem uploadDriveItem(UploadSession uploadSession, String filePath, int bufferSize) throws GraphException, IOExceptionUploads a large file using an upload session from a file path with custom buffer size. This allows controlling the chunk size for the upload.- Parameters:
uploadSession- The UploadSession created by createUploadSessionfilePath- The path to the file to uploadbufferSize- The size of each upload chunk in bytes (default: 1024000)- Returns:
- The uploaded DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItem
public DriveItem uploadDriveItem(UploadSession uploadSession, InputStream stream) throws GraphException, IOExceptionUploads a large file using an upload session from a stream. This method handles chunked upload with default buffer size.- Parameters:
uploadSession- The UploadSession created by createUploadSessionstream- The InputStream containing the file content- Returns:
- The uploaded DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItem
public DriveItem uploadDriveItem(UploadSession uploadSession, InputStream stream, int bufferSize) throws GraphException, IOExceptionUploads a large file using an upload session from a stream with custom buffer size. This provides full control over the chunked upload process.- Parameters:
uploadSession- The UploadSession created by createUploadSessionstream- The InputStream containing the file contentbufferSize- The size of each upload chunk in bytes (default: 1024000)- Returns:
- The uploaded DriveItem object
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItemWithProgress
public UploadResult uploadDriveItemWithProgress(UploadSession uploadSession, byte[] content) throws GraphException, IOExceptionUploads a file using an upload session and reports progress.- Parameters:
uploadSession- The UploadSession created by createUploadSessioncontent- The file content- Returns:
- An UploadResult containing the drive item (if completed) and the upload session state
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItemWithProgress
public UploadResult uploadDriveItemWithProgress(UploadSession uploadSession, String filePath) throws GraphException, IOExceptionUploads a file using an upload session from a file path and reports progress.- Parameters:
uploadSession- The UploadSession created by createUploadSessionfilePath- The path to the file to upload- Returns:
- An UploadResult containing the drive item (if completed) and the upload session state
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItemWithProgress
public UploadResult uploadDriveItemWithProgress(UploadSession uploadSession, String filePath, int bufferSize) throws GraphException, IOExceptionUploads a file using an upload session from a file path with a custom buffer size and reports progress.- Parameters:
uploadSession- The UploadSession created by createUploadSessionfilePath- The path to the file to uploadbufferSize- The size of each upload chunk in bytes (default: 1024000)- Returns:
- An UploadResult containing the drive item (if completed) and the upload session state
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItemWithProgress
public UploadResult uploadDriveItemWithProgress(UploadSession uploadSession, InputStream stream) throws GraphException, IOExceptionUploads a file using an upload session from a stream and reports progress.- Parameters:
uploadSession- The UploadSession created by createUploadSessionstream- The InputStream containing the file content- Returns:
- An UploadResult containing the drive item (if completed) and the upload session state
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItemWithProgress
public UploadResult uploadDriveItemWithProgress(UploadSession uploadSession, InputStream stream, int bufferSize) throws GraphException, IOExceptionUploads a file using an upload session from a stream with a custom buffer size and reports progress.- Parameters:
uploadSession- The UploadSession created by createUploadSessionstream- The InputStream containing the file contentbufferSize- The size of each upload chunk in bytes (default: 1024000)- Returns:
- An UploadResult containing the drive item (if completed) and the upload session state
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
uploadDriveItemWithProgress
public UploadResult uploadDriveItemWithProgress(UploadSession uploadSession, InputStream stream, int bufferSize, UploadProgressListener progressListener) throws GraphException, IOExceptionUploads a file using an upload session from a stream with a custom buffer size and a progress listener. The listener is invoked after each chunk is uploaded, providing real-time progress updates.- Parameters:
uploadSession- The UploadSession created by createUploadSessionstream- The InputStream containing the file contentbufferSize- The size of each upload chunk in bytes (default: 1024000)progressListener- A listener invoked after each chunk is uploaded (may be null)- Returns:
- An UploadResult containing the drive item (if completed) and the upload session state
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
deleteDriveItem
Deletes a drive item (file or folder). The deleted item is moved to the recycle bin and can be restored.- Parameters:
itemId- The ID of the drive item to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteDriveItem
Deletes a drive item with a specific resource context. The deleted item is moved to the recycle bin in the specified location.- Parameters:
itemId- The ID of the drive item to deleteresourceId- The ResourceId specifying the user, group, or site context- Throws:
GraphException- If an error occurs during the API request
-
getDriveItem
Gets metadata for a drive item by its ID. Retrieves properties like name, size, creation date, and modification date.- Parameters:
itemId- The ID of the drive item- Returns:
- A DriveItem object containing the item's metadata
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItem
Gets metadata for a drive item with a specific resource context. Retrieves item properties from a specific user's drive, group drive, or site.- Parameters:
itemId- The ID of the drive itemresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A DriveItem object containing the item's metadata
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
Gets the children of the root folder in the current user's drive. Returns all files and folders in the root directory.- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
Gets the children of a specific folder. Returns all files and folders within the specified parent folder.- Parameters:
itemId- The ID of the parent folder (use "/" for root)- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
Gets the children of the root folder with a specific resource context. Returns items from a specific user's drive, group drive, or site.- Parameters:
resourceId- The ResourceId specifying the user, group, or site context- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
Gets the children of the root folder with query options. Allows filtering, sorting, selecting specific properties, or paging results.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
Gets the children of a specific folder with query options. Allows filtering, sorting, and selecting properties for the children.- Parameters:
itemId- The ID of the parent folder (use "/" for root)query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
public GetDriveItemsResponse getDriveItems(ResourceId resourceId, Query query) throws GraphExceptionGets the children of the root folder with resource context and query options. Combines specific location with filtering and sorting capabilities.- Parameters:
resourceId- The ResourceId specifying the user, group, or site contextquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
public GetDriveItemsResponse getDriveItems(String itemId, ResourceId resourceId) throws GraphExceptionGets the children of a specific folder with resource context. Returns children from a specific location without additional query options.- Parameters:
itemId- The ID of the parent folder (use "/" for root)resourceId- The ResourceId specifying the user, group, or site context- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
public GetDriveItemsResponse getDriveItems(String itemId, ResourceId resourceId, Query query) throws GraphExceptionGets the children of a specific folder with full control over location and query options. Provides complete flexibility for retrieving folder contents with filtering and sorting.- Parameters:
itemId- The ID of the parent folder (use "/" for root) or a skipToken URL for paginationresourceId- The ResourceId specifying the user, group, or site contextquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- GetDriveItemsResponse containing the list of child items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
searchDriveItems
Searches for drive items using a text query. Searches file and folder names, metadata, and content across the user's drive.- Parameters:
searchText- The search query text- Returns:
- SearchDriveItemsResponse containing matching items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
searchDriveItems
public SearchDriveItemsResponse searchDriveItems(String searchText, Query query) throws GraphExceptionSearches for drive items with query options. Allows filtering, sorting, and selecting properties for search results.- Parameters:
searchText- The search query text or a skipToken URL for paginationquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- SearchDriveItemsResponse containing matching items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
searchDriveItems
public SearchDriveItemsResponse searchDriveItems(String searchText, ResourceId resourceId) throws GraphExceptionSearches for drive items with a specific resource context. Searches within a specific user's drive, group drive, or site.- Parameters:
searchText- The search query textresourceId- The ResourceId specifying the user, group, or site context- Returns:
- SearchDriveItemsResponse containing matching items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
searchDriveItems
public SearchDriveItemsResponse searchDriveItems(String searchText, Query query, ResourceId resourceId) throws GraphExceptionSearches for drive items with full control over query and location. Combines search text, query options, and specific resource location.- Parameters:
searchText- The search query text or a skipToken URL for paginationquery- Optional Query object for filtering, selecting, ordering, expanding, or paging resultsresourceId- The ResourceId specifying the user, group, or site context- Returns:
- SearchDriveItemsResponse containing matching items and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getStandardDriveFolder
public DriveItem getStandardDriveFolder(StandardDriveFolder standardDriveFolder) throws GraphExceptionGets a standard system folder from the user's drive. Retrieves special folders like Documents, Photos, or CameraRoll by their well-known names.- Parameters:
standardDriveFolder- The StandardDriveFolder enum value (e.g., DOCUMENTS, PHOTOS)- Returns:
- A DriveItem representing the standard folder
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
public List<DriveItem> getDriveItems(StandardDriveFolder standardDriveFolder) throws GraphExceptionGets the children of a standard system folder. Retrieves files and folders within special folders like Documents or Photos.- Parameters:
standardDriveFolder- The StandardDriveFolder enum value (e.g., DOCUMENTS, PHOTOS)- Returns:
- A list of DriveItem objects representing the folder's contents
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItems
public List<DriveItem> getDriveItems(StandardDriveFolder standardDriveFolder, Query query) throws GraphExceptionGets the children of a standard system folder with query options. Retrieves files and folders with filtering, sorting, or property selection.- Parameters:
standardDriveFolder- The StandardDriveFolder enum value (e.g., DOCUMENTS, PHOTOS)query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of DriveItem objects representing the folder's contents
- Throws:
GraphException- If an error occurs during the API request
-
getFollowedDriveItems
Gets all drive items that the user is following. Returns items that have been explicitly marked as followed for quick access.- Returns:
- A list of DriveItem objects representing followed items
- Throws:
GraphException- If an error occurs during the API request
-
getRecentDriveItems
Gets recently accessed drive items. Returns files and folders that the user has recently viewed or modified.- Returns:
- A list of DriveItem objects representing recently accessed items
- Throws:
GraphException- If an error occurs during the API request
-
getDrives
Gets all accessible drives. Returns all OneDrive and SharePoint document libraries the user has access to.- Returns:
- GetDrivesResponse containing the list of drives and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDrives
Gets the next page of drives using a next link. Continues pagination from a previous getDrives call.- Parameters:
nextLink- The next link URL from a previous response- Returns:
- GetDrivesResponse containing the list of drives and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDrives
Gets drives with a specific resource context. Returns drives from a specific user, group, or site.- Parameters:
resourceId- The ResourceId specifying the user, group, or site context- Returns:
- GetDrivesResponse containing the list of drives and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDrives
Gets drives with query options. Allows filtering, sorting, and selecting properties for drives.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- GetDrivesResponse containing the list of drives and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDrives
Gets drives with resource context and query options. Combines specific location with filtering and sorting capabilities.- Parameters:
resourceId- The ResourceId specifying the user, group, or site contextquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- GetDrivesResponse containing the list of drives and pagination info
- Throws:
GraphException- If an error occurs during the API request
-
getDrive
Gets the user's default drive. Retrieves the OneDrive for the authenticated user.- Returns:
- A Drive object representing the user's default drive
- Throws:
GraphException- If an error occurs during the API request
-
getDrive
Gets a specific drive by ID. Retrieves details of a drive using its unique identifier.- Parameters:
driveId- The ID of the drive to retrieve- Returns:
- A Drive object representing the specified drive
- Throws:
GraphException- If an error occurs during the API request
-
getDrive
Gets a drive from a specific resource context. Retrieves the default drive for a user, group, or site.- Parameters:
resourceId- The ResourceId specifying the user, group, or site context- Returns:
- A Drive object representing the resource's default drive
- Throws:
GraphException- If an error occurs during the API request
-
getDrive
Gets a specific drive from a resource context. Retrieves a particular drive by ID within a user, group, or site.- Parameters:
driveId- The ID of the drive to retrieveresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A Drive object representing the specified drive
- Throws:
GraphException- If an error occurs during the API request
-
getDriveRoot
Gets the root folder of the user's default drive. Returns the root item of the user's OneDrive.- Returns:
- A DriveItem representing the root folder
- Throws:
GraphException- If an error occurs during the API request
-
getDriveRoot
Gets the root folder of a specific drive. Returns the root item of a drive by its ID.- Parameters:
driveId- The ID of the drive- Returns:
- A DriveItem representing the root folder
- Throws:
GraphException- If an error occurs during the API request
-
getDriveRoot
Gets the root folder from a resource context. Returns the root item of the default drive for a user, group, or site.- Parameters:
resourceId- The ResourceId specifying the user, group, or site context- Returns:
- A DriveItem representing the root folder
- Throws:
GraphException- If an error occurs during the API request
-
getDriveRoot
Gets the root folder of a specific drive within a resource context. Returns the root item by combining drive ID and resource location.- Parameters:
driveId- The ID of the driveresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A DriveItem representing the root folder
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemActivities
Gets activities for items in the user's default drive. Returns recent activities like views, edits, and shares.- Returns:
- A list of DriveItemActivity objects
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemActivities
Gets activities for items in a specific drive. Returns recent activities for a drive by its ID.- Parameters:
driveId- The ID of the drive- Returns:
- A list of DriveItemActivity objects
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemActivities
Gets activities from a resource context. Returns activities for the default drive of a user, group, or site.- Parameters:
resourceId- The ResourceId specifying the user, group, or site context- Returns:
- A list of DriveItemActivity objects
- Throws:
GraphException- If an error occurs during the API request
-
getDriveItemActivities
public List<DriveItemActivity> getDriveItemActivities(String driveId, ResourceId resourceId) throws GraphExceptionGets activities for a specific drive within a resource context. Returns activities by combining drive ID and resource location.- Parameters:
driveId- The ID of the driveresourceId- The ResourceId specifying the user, group, or site context- Returns:
- A list of DriveItemActivity objects
- Throws:
GraphException- If an error occurs during the API request
-
createCalendarGroup
Creates a new calendar group for the authenticated user. Calendar groups allow organizing multiple calendars.- Parameters:
name- The name of the calendar group- Returns:
- The created CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendarGroup
Creates a new calendar group for a specific user.- Parameters:
name- The name of the calendar groupuserId- The ID of the user- Returns:
- The created CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendarGroup
Creates a new calendar group for a specific user.- Parameters:
name- The name of the calendar groupuserId- The UserId object specifying the user- Returns:
- The created CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendarGroup
Creates a new calendar group with full properties. Allows setting all calendar group properties during creation.- Parameters:
calendarGroup- The CalendarGroup object with properties to create- Returns:
- The created CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendarGroup
public CalendarGroup createCalendarGroup(CalendarGroup calendarGroup, String userId) throws GraphExceptionCreates a new calendar group for a specific user with full properties.- Parameters:
calendarGroup- The CalendarGroup object with properties to createuserId- The ID of the user- Returns:
- The created CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendarGroup
public CalendarGroup createCalendarGroup(CalendarGroup calendarGroup, UserId userId) throws GraphExceptionCreates a new calendar group for a specific user with full properties.- Parameters:
calendarGroup- The CalendarGroup object with properties to createuserId- The UserId object specifying the user- Returns:
- The created CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendarGroup
Updates a calendar group for the authenticated user. Modifies properties of an existing calendar group.- Parameters:
calendarGroup- The CalendarGroup object with updated properties and ID- Returns:
- The updated CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendarGroup
public CalendarGroup updateCalendarGroup(CalendarGroup calendarGroup, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a calendar group. Only updates the properties specified in the propertyNames list.- Parameters:
calendarGroup- The CalendarGroup object with updated valuespropertyNames- List of property names to update- Returns:
- The updated CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendarGroup
public CalendarGroup updateCalendarGroup(CalendarGroup calendarGroup, String userId) throws GraphExceptionUpdates a calendar group for a specific user.- Parameters:
calendarGroup- The CalendarGroup object with updated properties and IDuserId- The ID of the user- Returns:
- The updated CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendarGroup
public CalendarGroup updateCalendarGroup(CalendarGroup calendarGroup, UserId userId) throws GraphExceptionUpdates a calendar group for a specific user.- Parameters:
calendarGroup- The CalendarGroup object with updated properties and IDuserId- The UserId object specifying the user- Returns:
- The updated CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendarGroup
public CalendarGroup updateCalendarGroup(CalendarGroup calendarGroup, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a calendar group for a specific user.- Parameters:
calendarGroup- The CalendarGroup object with updated valuespropertyNames- List of property names to update, or null to update alluserId- The UserId object specifying the user- Returns:
- The updated CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
getRoom
Gets a specific room by its ID. Retrieves details of a conference room or meeting space.- Parameters:
roomId- The ID of the room- Returns:
- A Room object containing room details
- Throws:
GraphException- If an error occurs during the API request
-
getRooms
Gets all available rooms in the organization. Returns conference rooms and meeting spaces.- Returns:
- A list of Room objects
- Throws:
GraphException- If an error occurs during the API request
-
getRooms
Gets rooms from a specific room list. Retrieves rooms that belong to a particular building or location.- Parameters:
roomListEmailAddress- The email address of the room list- Returns:
- A list of Room objects
- Throws:
GraphException- If an error occurs during the API request
-
getRooms
Gets rooms with query options. Allows filtering, sorting, and selecting room properties.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Room objects
- Throws:
GraphException- If an error occurs during the API request
-
getRooms
Gets rooms from a specific room list with query options.- Parameters:
roomListEmailAddress- The email address of the room list, or null for all roomsquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Room objects
- Throws:
GraphException- If an error occurs during the API request
-
getRoomLists
Gets all room lists in the organization. Room lists represent buildings or locations containing rooms.- Returns:
- A list of RoomList objects
- Throws:
GraphException- If an error occurs during the API request
-
getRoomList
Gets a specific room list by ID. Retrieves details of a building or location containing rooms.- Parameters:
id- The ID of the room list- Returns:
- A RoomList object
- Throws:
GraphException- If an error occurs during the API request
-
getReminderView
Gets reminders for the authenticated user within a time range. Returns calendar event reminders that fall within the specified period.- Parameters:
startTime- The start of the time rangeendTime- The end of the time range- Returns:
- A list of Reminder objects
- Throws:
GraphException- If an error occurs during the API request
-
getReminderView
public List<Reminder> getReminderView(Date startTime, Date endTime, String userId) throws GraphExceptionGets reminders for a specific user within a time range.- Parameters:
startTime- The start of the time rangeendTime- The end of the time rangeuserId- The ID of the user- Returns:
- A list of Reminder objects
- Throws:
GraphException- If an error occurs during the API request
-
getReminderView
public List<Reminder> getReminderView(Date startTime, Date endTime, UserId userId) throws GraphExceptionGets reminders for a specific user within a time range.- Parameters:
startTime- The start of the time rangeendTime- The end of the time rangeuserId- The UserId object specifying the user- Returns:
- A list of Reminder objects
- Throws:
GraphException- If an error occurs during the API request
-
getSchedule
public List<ScheduleInformation> getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end) throws GraphExceptionGets schedule information for users, rooms, or resources. Returns availability and free/busy information with a default 30-minute interval.- Parameters:
schedules- List of email addresses to get schedules for (users, rooms, etc.)start- The start time for the schedule queryend- The end time for the schedule query- Returns:
- A list of ScheduleInformation objects
- Throws:
GraphException- If an error occurs during the API request
-
getSchedule
public List<ScheduleInformation> getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, int availabilityViewInterval) throws GraphExceptionGets schedule information with a custom availability view interval.- Parameters:
schedules- List of email addresses to get schedules for (users, rooms, etc.)start- The start time for the schedule queryend- The end time for the schedule queryavailabilityViewInterval- The time slot interval in minutes (e.g., 30, 60)- Returns:
- A list of ScheduleInformation objects
- Throws:
GraphException- If an error occurs during the API request
-
getSchedule
public List<ScheduleInformation> getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, String userId) throws GraphExceptionGets schedule information for users, rooms, or resources for a specific user. Uses a default 30-minute availability view interval.- Parameters:
schedules- List of email addresses to get schedules for (users, rooms, etc.)start- The start time for the schedule queryend- The end time for the schedule queryuserId- The ID of the user- Returns:
- A list of ScheduleInformation objects
- Throws:
GraphException- If an error occurs during the API request
-
getSchedule
public List<ScheduleInformation> getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, UserId userId) throws GraphExceptionGets schedule information for users, rooms, or resources for a specific user. Uses a default 30-minute availability view interval.- Parameters:
schedules- List of email addresses to get schedules for (users, rooms, etc.)start- The start time for the schedule queryend- The end time for the schedule queryuserId- The UserId object specifying the user- Returns:
- A list of ScheduleInformation objects
- Throws:
GraphException- If an error occurs during the API request
-
getSchedule
public List<ScheduleInformation> getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, int availabilityViewInterval, String userId) throws GraphExceptionGets schedule information for users, rooms, or resources with a custom availability view interval.- Parameters:
schedules- List of email addresses to get schedules for (users, rooms, etc.)start- The start time for the schedule queryend- The end time for the schedule queryavailabilityViewInterval- The time slot interval in minutes (e.g., 30, 60)userId- The ID of the user- Returns:
- A list of ScheduleInformation objects
- Throws:
GraphException- If an error occurs during the API request
-
getSchedule
public List<ScheduleInformation> getSchedule(List<String> schedules, DateTimeTimeZone start, DateTimeTimeZone end, int availabilityViewInterval, UserId userId) throws GraphExceptionGets schedule information for users, rooms, or resources with a custom availability view interval.- Parameters:
schedules- List of email addresses to get schedules for (users, rooms, etc.)start- The start time for the schedule queryend- The end time for the schedule queryavailabilityViewInterval- The time slot interval in minutes (e.g., 30, 60)userId- The UserId object specifying the user- Returns:
- A list of ScheduleInformation objects
- Throws:
GraphException- If an error occurs during the API request
-
findMeetingTimes
public MeetingTimeSuggestionsResult findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint) throws GraphExceptionFinds meeting time suggestions based on attendees and time constraints.- Parameters:
attendees- List of meeting attendeestimeConstraint- Time constraints for the meeting- Returns:
- A MeetingTimeSuggestionsResult containing suggested meeting times
- Throws:
GraphException- If an error occurs during the API request
-
findMeetingTimes
public MeetingTimeSuggestionsResult findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, UserId userid) throws GraphExceptionFinds meeting time suggestions for a specific user.- Parameters:
attendees- List of meeting attendeestimeConstraint- Time constraints for the meetinguserid- The UserId object specifying the organizer- Returns:
- A MeetingTimeSuggestionsResult containing suggested meeting times
- Throws:
GraphException- If an error occurs during the API request
-
findMeetingTimes
public MeetingTimeSuggestionsResult findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration) throws GraphExceptionFinds meeting time suggestions including meeting duration.- Parameters:
attendees- List of meeting attendeestimeConstraint- Time constraints for the meetingmeetingDuration- The meeting duration- Returns:
- A MeetingTimeSuggestionsResult containing suggested meeting times
- Throws:
GraphException- If an error occurs during the API request
-
findMeetingTimes
public MeetingTimeSuggestionsResult findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration, UserId userid) throws GraphExceptionFinds meeting time suggestions including meeting duration for a specific user.- Parameters:
attendees- List of meeting attendeestimeConstraint- Time constraints for the meetingmeetingDuration- The meeting durationuserid- The UserId object specifying the organizer- Returns:
- A MeetingTimeSuggestionsResult containing suggested meeting times
- Throws:
GraphException- If an error occurs during the API request
-
findMeetingTimes
public MeetingTimeSuggestionsResult findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration, boolean isOrganizerOptional, LocationConstraint locationConstraint, int maxCandidates, double minimumAttendeePercentage, boolean returnSuggestionReasons) throws GraphExceptionFinds meeting time suggestions with advanced configuration.- Parameters:
attendees- List of meeting attendeestimeConstraint- Time constraints for the meetingmeetingDuration- The meeting durationisOrganizerOptional- Whether the organizer is optionallocationConstraint- Optional location constraintsmaxCandidates- Maximum number of candidate suggestions to returnminimumAttendeePercentage- Minimum attendee percentage required for a suggestionreturnSuggestionReasons- Whether to include suggestion reasons- Returns:
- A MeetingTimeSuggestionsResult containing suggested meeting times
- Throws:
GraphException- If an error occurs during the API request
-
findMeetingTimes
public MeetingTimeSuggestionsResult findMeetingTimes(List<Attendee> attendees, TimeConstraint timeConstraint, Duration meetingDuration, boolean isOrganizerOptional, LocationConstraint locationConstraint, int maxCandidates, double minimumAttendeePercentage, boolean returnSuggestionReasons, UserId userId) throws GraphExceptionFinds meeting time suggestions with advanced configuration for a specific user.- Parameters:
attendees- List of meeting attendeestimeConstraint- Time constraints for the meetingmeetingDuration- The meeting durationisOrganizerOptional- Whether the organizer is optionallocationConstraint- Optional location constraintsmaxCandidates- Maximum number of candidate suggestions to returnminimumAttendeePercentage- Minimum attendee percentage required for a suggestionreturnSuggestionReasons- Whether to include suggestion reasonsuserId- The UserId object specifying the organizer- Returns:
- A MeetingTimeSuggestionsResult containing suggested meeting times
- Throws:
GraphException- If an error occurs during the API request
-
getCalendar
Gets a calendar by ID for the authenticated user.- Parameters:
calendarId- The ID of the calendar- Returns:
- A Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
getCalendar
Gets a calendar by ID for a specific user.- Parameters:
calendarId- The ID of the calendaruserId- The ID of the user- Returns:
- A Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
getCalendar
Gets a calendar by ID for a specific user.- Parameters:
calendarId- The ID of the calendaruserId- The UserId object specifying the user- Returns:
- A Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
getGroupCalendar
Gets the group calendar for a Microsoft 365 group.- Parameters:
groupId- The ID of the group- Returns:
- A Calendar object representing the group's calendar
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroups
Lists calendar groups for the authenticated user. Calendar groups allow organizing multiple calendars.- Returns:
- A list of CalendarGroup objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroups
Lists calendar groups for the authenticated user with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of CalendarGroup objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroups
Lists calendar groups for a specific user.- Parameters:
userId- The ID of the user- Returns:
- A list of CalendarGroup objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroups
Lists calendar groups for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of CalendarGroup objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroups
Lists calendar groups for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- A list of CalendarGroup objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroups
Lists calendar groups for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of CalendarGroup objects
- Throws:
GraphException- If an error occurs during the API request
-
deleteCalendarGroup
Deletes a calendar group for the authenticated user.- Parameters:
calendarGroupId- The ID of the calendar group to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteCalendarGroup
Deletes a calendar group for a specific user.- Parameters:
calendarGroupId- The ID of the calendar group to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteCalendarGroup
Deletes a calendar group for a specific user.- Parameters:
calendarGroupId- The ID of the calendar group to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroup
Gets a calendar group by ID for the authenticated user.- Parameters:
calendarGroupId- The ID of the calendar group- Returns:
- A CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroup
Gets a calendar group by ID for a specific user.- Parameters:
calendarGroupId- The ID of the calendar groupuserId- The ID of the user- Returns:
- A CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarGroup
Gets a calendar group by ID for a specific user.- Parameters:
calendarGroupId- The ID of the calendar groupuserId- The UserId object specifying the user- Returns:
- A CalendarGroup object
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists all calendars for the authenticated user.- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists all calendars with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists all calendars for a specific user.- Parameters:
userId- The ID of the user- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists all calendars for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists all calendars for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists all calendars for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
Lists calendars within a specific calendar group.- Parameters:
calendarGroupId- The ID of the calendar groupuserId- The ID of the user- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
public List<Calendar> getCalendars(String calendarGroupId, String userId, Query query) throws GraphExceptionLists calendars within a specific calendar group with query options.- Parameters:
calendarGroupId- The ID of the calendar groupuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
public List<Calendar> getCalendars(CalendarGroupId calendarGroupId, UserId userId) throws GraphExceptionLists calendars within a specific calendar group.- Parameters:
calendarGroupId- The CalendarGroupId objectuserId- The UserId object specifying the user- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendars
public List<Calendar> getCalendars(CalendarGroupId calendarGroupId, UserId userId, Query query) throws GraphExceptionLists calendars within a specific calendar group with query options.- Parameters:
calendarGroupId- The CalendarGroupId objectuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Calendar objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists all events for the authenticated user.- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists all events for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar.- Parameters:
calendarId- The ID of the calendar- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar.- Parameters:
calendarId- The CalendarId object- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a calendar within a calendar group.- Parameters:
calendarId- The ID of the calendarcalendarGroupId- The ID of the calendar group- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId) throws GraphExceptionLists events from a calendar within a calendar group.- Parameters:
calendarId- The CalendarId objectcalendarGroupId- The CalendarGroupId object- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(String calendarId, String calendarGroupId, String userId) throws GraphExceptionLists events from a calendar within a calendar group for a specific user.- Parameters:
calendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar for a specific user.- Parameters:
calendarId- The ID of the calendaruserId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar for a specific user.- Parameters:
calendarId- The CalendarId objectuserId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId) throws GraphExceptionLists events from a calendar within a calendar group for a specific user.- Parameters:
calendarId- The CalendarId objectcalendarGroupId- The CalendarGroupId objectuserId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists all events with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists all events for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar with query options.- Parameters:
calendarId- The ID of the calendarquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar with query options.- Parameters:
calendarId- The CalendarId objectquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(String calendarId, String calendarGroupId, Query query) throws GraphExceptionLists events from a calendar within a calendar group with query options.- Parameters:
calendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId, Query query) throws GraphExceptionLists events from a calendar within a calendar group with query options.- Parameters:
calendarId- The CalendarId objectcalendarGroupId- The CalendarGroupId objectquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
Lists events from a specific calendar for a specific user with query options.- Parameters:
calendarId- The ID of the calendaruserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(CalendarId calendarId, UserId userId, Query query) throws GraphExceptionLists events from a specific calendar for a specific user with query options.- Parameters:
calendarId- The CalendarId objectuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(String calendarId, String calendarGroupId, String userId, Query query) throws GraphExceptionLists events from a calendar within a calendar group for a specific user with query options.- Parameters:
calendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvents
public List<Event> getEvents(CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId, Query query) throws GraphExceptionLists events from a calendar within a calendar group for a specific user with query options.- Parameters:
calendarId- The CalendarId objectcalendarGroupId- The CalendarGroupId objectuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getGroupCalendarEvents
Lists events from a group's calendar.- Parameters:
groupId- The ID of the group- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getGroupCalendarEvents
Lists events from a group's calendar with query options.- Parameters:
groupId- The ID of the groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets a specific event by ID for the authenticated user.- Parameters:
eventId- The ID of the event- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets a specific event by ID with query options.- Parameters:
eventId- The ID of the eventquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets a specific event by ID for a specific user.- Parameters:
eventId- The ID of the eventuserId- The ID of the user- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets a specific event by ID for a specific user with query options.- Parameters:
eventId- The ID of the eventuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets a specific event by ID for a specific user.- Parameters:
eventId- The ID of the eventuserId- The UserId object specifying the user- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets a specific event by ID for a specific user with query options.- Parameters:
eventId- The ID of the eventuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
public Event getEvent(String eventId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getEvent
public Event getEvent(String eventId, String userId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getEvent
public Event getEvent(String eventId, UserId userId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getEvent
Gets an event from an event message. Retrieves the event associated with an event message (meeting request, cancellation, etc.).- Parameters:
eventMessageId- The EventMessageId object- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets an event from an event message for a specific user.- Parameters:
eventMessageId- The EventMessageId objectuserId- The ID of the user- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getEvent
Gets an event from an event message for a specific user.- Parameters:
eventMessageId- The EventMessageId objectuserId- The UserId object specifying the user- Returns:
- An Event object
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
Gets a calendar view of events within a specified time range. Returns events that occur, begin, or end in the specified time period.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time range- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
Gets a calendar view with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
Gets a calendar view from a specific calendar.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendar- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, String calendarId, Query query) throws GraphExceptionGets a calendar view from a specific calendar with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
Gets a calendar view for a specific user.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangeuserId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, UserId userId, Query query) throws GraphExceptionGets a calendar view for a specific user with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangeuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId) throws GraphExceptionGets a calendar view from a specific calendar using CalendarId object.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendar- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, Query query) throws GraphExceptionGets a calendar view from a specific calendar with query options using CalendarId object.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, UserId userId) throws GraphExceptionGets a calendar view from a specific calendar for a specific user.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendaruserId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, UserId userId, Query query) throws GraphExceptionGets a calendar view from a specific calendar for a specific user with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendaruserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, String calendarId, String calendarGroupId) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar group- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, String calendarId, String calendarGroupId, Query query) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar group- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, Query query) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group with query options using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, String calendarId, String calendarGroupId, String userId) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group for a specific user.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, String calendarId, String calendarGroupId, String userId, Query query) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group for a specific user with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group for a specific user using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupuserId- The UserId object specifying the user- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getCalendarView
public List<Event> getCalendarView(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId, Query query) throws GraphExceptionGets a calendar view from a specific calendar in a specific calendar group for a specific user with query options using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
Gets event changes using a next link or delta link for change tracking. Use this to get the next page of changes from a previous delta query.- Parameters:
nextLinkOrDeltaLink- The next link or delta link URL from a previous response- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
Gets event changes within a specified time range for delta tracking. Use this to synchronize events and track changes.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time range- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
Gets event changes within a specified time range with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
Gets event changes for a specific calendar.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendar- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, String calendarId, Query query) throws GraphExceptionGets event changes for a specific calendar with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId) throws GraphExceptionGets event changes for a specific calendar using CalendarId object.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendar- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId, Query query) throws GraphExceptionGets event changes for a specific calendar with query options using CalendarId object.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId, UserId userId) throws GraphExceptionGets event changes for a specific calendar for a specific user.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendaruserId- The UserId object specifying the user- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, String calendarId, String calendarGroupId) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar group- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, String calendarId, String calendarGroupId, Query query) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar group- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, Query query) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group with query options using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, String calendarId, String calendarGroupId, String userId) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group for a specific user.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the user- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, String calendarId, String calendarGroupId, String userId, Query query) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group for a specific user with query options.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The ID of the calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group for a specific user using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupuserId- The UserId object specifying the user- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getEventChanges
public EventChanges getEventChanges(Date start, Date end, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId, Query query) throws GraphExceptionGets event changes from a specific calendar in a specific calendar group for a specific user with query options using ID objects.- Parameters:
start- The start date and time of the time rangeend- The end date and time of the time rangecalendarId- The CalendarId object specifying the calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- An EventChanges object containing the events and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getOccurrences
Gets occurrences of a recurring event within a specified time range. Returns individual instances of a recurring event.- Parameters:
eventId- The ID of the recurring eventstart- The start date and time of the time rangeend- The end date and time of the time range- Returns:
- A list of Event objects representing individual occurrences
- Throws:
GraphException- If an error occurs during the API request
-
getOccurrences
public List<Event> getOccurrences(String eventId, Date start, Date end, Query query) throws GraphExceptionGets occurrences of a recurring event with query options.- Parameters:
eventId- The ID of the recurring eventstart- The start date and time of the time rangeend- The end date and time of the time rangequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects representing individual occurrences
- Throws:
GraphException- If an error occurs during the API request
-
getOccurrences
public List<Event> getOccurrences(String eventId, Date start, Date end, UserId userId) throws GraphExceptionGets occurrences of a recurring event for a specific user.- Parameters:
eventId- The ID of the recurring eventstart- The start date and time of the time rangeend- The end date and time of the time rangeuserId- The UserId object specifying the user- Returns:
- A list of Event objects representing individual occurrences
- Throws:
GraphException- If an error occurs during the API request
-
getOccurrences
public List<Event> getOccurrences(String eventId, Date start, Date end, UserId userId, Query query) throws GraphExceptionGets occurrences of a recurring event for a specific user with query options.- Parameters:
eventId- The ID of the recurring eventstart- The start date and time of the time rangeend- The end date and time of the time rangeuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects representing individual occurrences
- Throws:
GraphException- If an error occurs during the API request
-
getOccurrences
public List<Event> getOccurrences(String eventId, Date start, Date end, GroupId groupId) throws GraphExceptionGets occurrences of a group recurring event.- Parameters:
eventId- The ID of the recurring eventstart- The start date and time of the time rangeend- The end date and time of the time rangegroupId- The GroupId object specifying the group- Returns:
- A list of Event objects representing individual occurrences
- Throws:
GraphException- If an error occurs during the API request
-
getOccurrences
public List<Event> getOccurrences(String eventId, Date start, Date end, GroupId groupId, Query query) throws GraphExceptionGets occurrences of a group recurring event with query options.- Parameters:
eventId- The ID of the recurring eventstart- The start date and time of the time rangeend- The end date and time of the time rangegroupId- The GroupId object specifying the groupquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Event objects representing individual occurrences
- Throws:
GraphException- If an error occurs during the API request
-
createOutlookCategory
Creates a new Outlook category for the signed-in user. Categories allow users to organize and track items like emails, events, and contacts.- Parameters:
category- The OutlookCategory object to create- Returns:
- The created OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
createOutlookCategory
public OutlookCategory createOutlookCategory(OutlookCategory category, String userId) throws GraphExceptionCreates a new Outlook category for a specific user.- Parameters:
category- The OutlookCategory object to createuserId- The ID of the user- Returns:
- The created OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
createOutlookCategory
public OutlookCategory createOutlookCategory(OutlookCategory category, UserId userId) throws GraphExceptionCreates a new Outlook category for a specific user using UserId object.- Parameters:
category- The OutlookCategory object to createuserId- The UserId object specifying the user- Returns:
- The created OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
updateOutlookCategory
Updates an Outlook category for the signed-in user.- Parameters:
category- The OutlookCategory object with updated properties- Returns:
- The updated OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
updateOutlookCategory
public OutlookCategory updateOutlookCategory(OutlookCategory category, List<String> propertyNames) throws GraphExceptionUpdates specific properties of an Outlook category.- Parameters:
category- The OutlookCategory object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)- Returns:
- The updated OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
updateOutlookCategory
public OutlookCategory updateOutlookCategory(OutlookCategory category, String userId) throws GraphExceptionUpdates an Outlook category for a specific user.- Parameters:
category- The OutlookCategory object with updated propertiesuserId- The ID of the user- Returns:
- The updated OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
updateOutlookCategory
public OutlookCategory updateOutlookCategory(OutlookCategory category, UserId userId) throws GraphExceptionUpdates an Outlook category for a specific user using UserId object.- Parameters:
category- The OutlookCategory object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
updateOutlookCategory
public OutlookCategory updateOutlookCategory(OutlookCategory category, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of an Outlook category for a specific user.- Parameters:
category- The OutlookCategory object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)userId- The UserId object specifying the user- Returns:
- The updated OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
deleteOutlookCategory
Deletes an Outlook category for the signed-in user.- Parameters:
categoryId- The ID of the category to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteOutlookCategory
Deletes an Outlook category for a specific user.- Parameters:
categoryId- The ID of the category to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteOutlookCategory
Deletes an Outlook category for a specific user using UserId object.- Parameters:
categoryId- The ID of the category to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategories
Gets all Outlook categories for the signed-in user.- Returns:
- A list of OutlookCategory objects
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategories
Gets all Outlook categories with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of OutlookCategory objects
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategories
Gets all Outlook categories for a specific user.- Parameters:
userId- The ID of the user- Returns:
- A list of OutlookCategory objects
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategories
Gets all Outlook categories for a specific user using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- A list of OutlookCategory objects
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategories
public List<OutlookCategory> getOutlookCategories(String userId, Query query) throws GraphExceptionGets all Outlook categories for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of OutlookCategory objects
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategories
public List<OutlookCategory> getOutlookCategories(UserId userId, Query query) throws GraphExceptionGets all Outlook categories for a specific user with query options using UserId object.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of OutlookCategory objects
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategory
Gets a specific Outlook category for the signed-in user.- Parameters:
categoryId- The ID of the category to retrieve- Returns:
- The OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategory
Gets a specific Outlook category for a specific user.- Parameters:
categoryId- The ID of the category to retrieveuserId- The ID of the user- Returns:
- The OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
getOutlookCategory
Gets a specific Outlook category for a specific user using UserId object.- Parameters:
categoryId- The ID of the category to retrieveuserId- The UserId object specifying the user- Returns:
- The OutlookCategory object
- Throws:
GraphException- If an error occurs during the API request
-
forwardEvent
Forwards an event to specified recipients. Allows forwarding a meeting request to additional attendees.- Parameters:
eventId- The ID of the event to forwardtoRecipients- List of EmailAddress objects for the recipients- Throws:
GraphException- If an error occurs during the API request
-
forwardEvent
public void forwardEvent(String eventId, List<EmailAddress> toRecipients, UserId userId) throws GraphExceptionForwards an event to specified recipients for a specific user.- Parameters:
eventId- The ID of the event to forwardtoRecipients- List of EmailAddress objects for the recipientsuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
forwardEvent
public void forwardEvent(String eventId, List<EmailAddress> toRecipients, String newBody) throws GraphExceptionForwards an event with a comment message.- Parameters:
eventId- The ID of the event to forwardtoRecipients- List of EmailAddress objects for the recipientsnewBody- Comment text to include in the forwarding message- Throws:
GraphException- If an error occurs during the API request
-
forwardEvent
public void forwardEvent(String eventId, List<EmailAddress> toRecipients, String newBody, String userId) throws GraphExceptionForwards an event with a comment message for a specific user.- Parameters:
eventId- The ID of the event to forwardtoRecipients- List of EmailAddress objects for the recipientsnewBody- Comment text to include in the forwarding messageuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
forwardEvent
public void forwardEvent(String eventId, List<EmailAddress> toRecipients, String newBody, UserId userId) throws GraphExceptionForwards an event with a comment message for a specific user using UserId object.- Parameters:
eventId- The ID of the event to forwardtoRecipients- List of EmailAddress objects for the recipientsnewBody- Comment text to include in the forwarding messageuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
cancelEvent
Cancels an event and sends cancellation notification. Allows the organizer to cancel a meeting and notify all attendees.- Parameters:
eventId- The ID of the event to cancel- Throws:
GraphException- If an error occurs during the API request
-
cancelEvent
Cancels an event with a comment message.- Parameters:
eventId- The ID of the event to cancelnewBody- Comment text to include in the cancellation message- Throws:
GraphException- If an error occurs during the API request
-
cancelEvent
Cancels an event for a specific user.- Parameters:
eventId- The ID of the event to canceluserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
cancelEvent
Cancels an event with a comment message for a specific user.- Parameters:
eventId- The ID of the event to cancelnewBody- Comment text to include in the cancellation messageuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
cancelEvent
Cancels an event with a comment message for a specific user using UserId object.- Parameters:
eventId- The ID of the event to cancelnewBody- Comment text to include in the cancellation messageuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
Accepts an event invitation and sends a response to the organizer. Allows the attendee to accept a meeting invitation.- Parameters:
eventId- The ID of the event to accept- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
Accepts an event invitation with control over sending response.- Parameters:
eventId- The ID of the event to acceptsendResponse- Whether to send a response to the organizer- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
Accepts an event with a comment message.- Parameters:
eventId- The ID of the event to acceptnewBody- Comment text to include in the response- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
public void acceptEvent(String eventId, boolean sendResponse, String newBody) throws GraphExceptionAccepts an event with send response control and comment message.- Parameters:
eventId- The ID of the event to acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the response- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
Accepts an event for a specific user.- Parameters:
eventId- The ID of the event to acceptuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
Accepts an event for a specific user with send response control.- Parameters:
eventId- The ID of the event to acceptsendResponse- Whether to send a response to the organizeruserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
public void acceptEvent(String eventId, boolean sendResponse, String newBody, String userId) throws GraphExceptionAccepts an event for a specific user with all options.- Parameters:
eventId- The ID of the event to acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
acceptEvent
public void acceptEvent(String eventId, boolean sendResponse, String newBody, UserId userId) throws GraphExceptionAccepts an event for a specific user with all options using UserId object.- Parameters:
eventId- The ID of the event to acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
Tentatively accepts an event invitation and sends a response to the organizer. Allows the attendee to tentatively accept a meeting invitation.- Parameters:
eventId- The ID of the event to tentatively accept- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
Tentatively accepts an event with a proposed new time.- Parameters:
eventId- The ID of the event to tentatively acceptproposedNewTime- Proposed new time for the event- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
Tentatively accepts an event with control over sending response.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizer- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody) throws GraphExceptionTentatively accepts an event with a comment message.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the response- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime) throws GraphExceptionTentatively accepts an event with a proposed new time.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizerproposedNewTime- Proposed new time for the event- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
Tentatively accepts an event for a specific user.- Parameters:
eventId- The ID of the event to tentatively acceptuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, TimeSlot proposedNewTime, UserId userId) throws GraphExceptionTentatively accepts an event with a proposed new time for a specific user.- Parameters:
eventId- The ID of the event to tentatively acceptproposedNewTime- Proposed new time for the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, UserId userId) throws GraphExceptionTentatively accepts an event for a specific user with send response control.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizeruserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody, UserId userId) throws GraphExceptionTentatively accepts an event for a specific user with a comment message.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime, UserId userId) throws GraphExceptionTentatively accepts an event with a proposed new time for a specific user.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizerproposedNewTime- Proposed new time for the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime) throws GraphExceptionTentatively accepts an event with comment and proposed new time.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseproposedNewTime- Proposed new time for the event- Throws:
GraphException- If an error occurs during the API request
-
tentativelyAcceptEvent
public void tentativelyAcceptEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime, UserId userId) throws GraphExceptionTentatively accepts an event with all options for a specific user.- Parameters:
eventId- The ID of the event to tentatively acceptsendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseproposedNewTime- Proposed new time for the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
Declines an event invitation and sends a response to the organizer. Allows the attendee to decline a meeting invitation.- Parameters:
eventId- The ID of the event to decline- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
Declines an event with a proposed new time.- Parameters:
eventId- The ID of the event to declineproposedNewTime- Proposed new time for the event- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
Declines an event with control over sending response.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizer- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, String newBody) throws GraphExceptionDeclines an event with a comment message.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizernewBody- Comment text to include in the response- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime) throws GraphExceptionDeclines an event with a proposed new time.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizerproposedNewTime- Proposed new time for the event- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
Declines an event for a specific user.- Parameters:
eventId- The ID of the event to declineuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, TimeSlot proposedNewTime, UserId userId) throws GraphExceptionDeclines an event with a proposed new time for a specific user.- Parameters:
eventId- The ID of the event to declineproposedNewTime- Proposed new time for the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, UserId userId) throws GraphExceptionDeclines an event for a specific user with send response control.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizeruserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, String newBody, UserId userId) throws GraphExceptionDeclines an event for a specific user with a comment message.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, TimeSlot proposedNewTime, UserId userId) throws GraphExceptionDeclines an event with a proposed new time for a specific user.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizerproposedNewTime- Proposed new time for the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime) throws GraphExceptionDeclines an event with comment and proposed new time.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseproposedNewTime- Proposed new time for the event- Throws:
GraphException- If an error occurs during the API request
-
declineEvent
public void declineEvent(String eventId, boolean sendResponse, String newBody, TimeSlot proposedNewTime, UserId userId) throws GraphExceptionDeclines an event with all options for a specific user.- Parameters:
eventId- The ID of the event to declinesendResponse- Whether to send a response to the organizernewBody- Comment text to include in the responseproposedNewTime- Proposed new time for the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
dismissReminder
Dismisses a reminder for an event. Dismisses the reminder that has been triggered for an event in the signed-in user's calendar.- Parameters:
eventId- The ID of the event- Throws:
GraphException- If an error occurs during the API request
-
dismissReminder
Dismisses a reminder for an event for a specific user.- Parameters:
eventId- The ID of the eventuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
dismissReminder
Dismisses a reminder for an event for a specific user using UserId object.- Parameters:
eventId- The ID of the eventuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
snoozeReminder
Snoozes a reminder for an event to a new time. Postpones the reminder for an event in the signed-in user's calendar until a new time.- Parameters:
eventId- The ID of the eventnewReminderTime- The new date, time, and time zone to which the reminder should be snoozed- Throws:
GraphException- If an error occurs during the API request
-
snoozeReminder
public void snoozeReminder(String eventId, DateTimeTimeZone newReminderTime, String userId) throws GraphExceptionSnoozes a reminder for an event to a new time for a specific user.- Parameters:
eventId- The ID of the eventnewReminderTime- The new date, time, and time zone to which the reminder should be snoozeduserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
snoozeReminder
public void snoozeReminder(String eventId, DateTimeTimeZone newReminderTime, UserId userId) throws GraphExceptionSnoozes a reminder for an event to a new time for a specific user using UserId object.- Parameters:
eventId- The ID of the eventnewReminderTime- The new date, time, and time zone to which the reminder should be snoozeduserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
deleteEvent
Deletes an event from the signed-in user's calendar.- Parameters:
eventId- The ID of the event to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteEvent
Deletes an event from a specific user's calendar.- Parameters:
eventId- The ID of the event to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteEvent
Deletes an event from a specific user's calendar using UserId object.- Parameters:
eventId- The ID of the event to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
Creates a new calendar in the signed-in user's mailbox.- Parameters:
calendar- The Calendar object to create- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
Creates a new calendar in a specific calendar.- Parameters:
calendar- The Calendar object to createcalendarId- The CalendarId object specifying the parent calendar- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
public Calendar createCalendar(Calendar calendar, CalendarId calendarId, CalendarGroupId calendarGroupId) throws GraphExceptionCreates a new calendar in a specific calendar within a calendar group.- Parameters:
calendar- The Calendar object to createcalendarId- The CalendarId object specifying the parent calendarcalendarGroupId- The CalendarGroupId object specifying the calendar group- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
Creates a new calendar for a specific user.- Parameters:
calendar- The Calendar object to createuserid- The UserId object specifying the user- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
public Calendar createCalendar(Calendar calendar, CalendarId calendarId, UserId userid) throws GraphExceptionCreates a new calendar in a specific calendar for a specific user.- Parameters:
calendar- The Calendar object to createcalendarId- The CalendarId object specifying the parent calendaruserid- The UserId object specifying the user- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
public Calendar createCalendar(Calendar calendar, CalendarId calendarId, CalendarGroupId calendarGroupId, UserId userId) throws GraphExceptionCreates a new calendar with all options.- Parameters:
calendar- The Calendar object to createcalendarId- The CalendarId object specifying the parent calendarcalendarGroupId- The CalendarGroupId object specifying the calendar groupuserId- The UserId object specifying the user- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
Creates a new calendar in a specific calendar.- Parameters:
calendar- The Calendar object to createcalendarId- The ID of the parent calendar- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
public Calendar createCalendar(Calendar calendar, String calendarId, String calendarGroupId) throws GraphExceptionCreates a new calendar in a specific calendar within a calendar group.- Parameters:
calendar- The Calendar object to createcalendarId- The ID of the parent calendarcalendarGroupId- The ID of the calendar group- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
createCalendar
public Calendar createCalendar(Calendar calendar, String calendarId, String calendarGroupId, String userId) throws GraphExceptionCreates a new calendar with all options for a specific user.- Parameters:
calendar- The Calendar object to createcalendarId- The ID of the parent calendarcalendarGroupId- The ID of the calendar groupuserId- The ID of the user- Returns:
- The created Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
deleteCalendar
Deletes a calendar from the signed-in user's mailbox.- Parameters:
calendarId- The ID of the calendar to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteCalendar
Deletes a calendar from a specific user's mailbox.- Parameters:
calendarId- The ID of the calendar to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteCalendar
Deletes a calendar from a specific user's mailbox using UserId object.- Parameters:
calendarId- The ID of the calendar to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
updateCalendar
Updates a calendar in the signed-in user's mailbox.- Parameters:
calendar- The Calendar object with updated properties- Returns:
- The updated Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendar
public Calendar updateCalendar(Calendar calendar, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a calendar.- Parameters:
calendar- The Calendar object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)- Returns:
- The updated Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendar
Updates a calendar for a specific user.- Parameters:
calendar- The Calendar object with updated propertiesuserId- The ID of the user- Returns:
- The updated Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendar
Updates a calendar for a specific user using UserId object.- Parameters:
calendar- The Calendar object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
updateCalendar
public Calendar updateCalendar(Calendar calendar, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a calendar for a specific user.- Parameters:
calendar- The Calendar object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)userId- The UserId object specifying the user- Returns:
- The updated Calendar object
- Throws:
GraphException- If an error occurs during the API request
-
updateEvent
Updates an event in the signed-in user's calendar.- Parameters:
eventItem- The Event object with updated properties- Returns:
- The updated Event object
- Throws:
GraphException- If an error occurs during the API request
-
updateEvent
Updates specific properties of an event.- Parameters:
eventItem- The Event object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)- Returns:
- The updated Event object
- Throws:
GraphException- If an error occurs during the API request
-
updateEvent
Updates an event for a specific user.- Parameters:
eventItem- The Event object with updated propertiesuserId- The ID of the user- Returns:
- The updated Event object
- Throws:
GraphException- If an error occurs during the API request
-
updateEvent
Updates an event for a specific user using UserId object.- Parameters:
eventItem- The Event object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated Event object
- Throws:
GraphException- If an error occurs during the API request
-
updateEvent
public Event updateEvent(Event eventItem, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of an event for a specific user.- Parameters:
eventItem- The Event object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)userId- The UserId object specifying the user- Returns:
- The updated Event object
- Throws:
GraphException- If an error occurs during the API request
-
createEvent
Creates a new event in the signed-in user's default calendar.- Parameters:
eventItem- The Event object to create- Returns:
- The created Event object
- Throws:
GraphException- If an error occurs during the API request
-
createEvent
Creates a new event in a specific calendar.- Parameters:
eventItem- The Event object to createcalendarId- The ID of the calendar- Returns:
- The created Event object
- Throws:
GraphException- If an error occurs during the API request
-
createEvent
Creates a new event in a specific calendar using CalendarId object.- Parameters:
eventItem- The Event object to createcalendarId- The CalendarId object specifying the calendar- Returns:
- The created Event object
- Throws:
GraphException- If an error occurs during the API request
-
createEvent
Creates a new event for a specific user's default calendar.- Parameters:
eventItem- The Event object to createuserId- The UserId object specifying the user- Returns:
- The created Event object
- Throws:
GraphException- If an error occurs during the API request
-
createEvent
Creates a new event in a specific calendar for a specific user.- Parameters:
eventItem- The Event object to createcalendarId- The ID of the calendaruserId- The ID of the user- Returns:
- The created Event object
- Throws:
GraphException- If an error occurs during the API request
-
createEvent
public Event createEvent(Event eventItem, CalendarId calendarId, UserId userId) throws GraphExceptionCreates a new event in a specific calendar for a specific user using ID objects.- Parameters:
eventItem- The Event object to createcalendarId- The CalendarId object specifying the calendaruserId- The UserId object specifying the user- Returns:
- The created Event object
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts for the signed-in user.- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts from a specific contact folder.- Parameters:
contactFolderId- The ID of the contact folder- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts from a specific folder with query options.- Parameters:
contactFolderId- The ID of the contact folderquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts from a specific folder for a specific user.- Parameters:
contactFolderId- The ID of the contact folderuserId- The ID of the user- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
Gets all contacts from a specific folder for a specific user using UserId object.- Parameters:
contactFolderId- The ID of the contact folderuserId- The UserId object specifying the user- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
public List<Contact> getContacts(String contactFolderId, String userId, Query query) throws GraphExceptionGets all contacts from a specific folder for a specific user with query options.- Parameters:
contactFolderId- The ID of the contact folderuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContacts
public List<Contact> getContacts(String contactFolderId, UserId userId, Query query) throws GraphExceptionGets all contacts from a specific folder for a specific user with all options.- Parameters:
contactFolderId- The ID of the contact folderuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Contact objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactChanges
Gets contact changes for delta tracking. Returns changes that have been made to contacts for synchronization.- Returns:
- A ContactChanges object containing contacts and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getContactChanges
Gets contact changes using a next link or delta link. Use this to get the next page of changes from a previous delta query.- Parameters:
nextLinkOrDeltaLink- The next link or delta link URL from a previous response- Returns:
- A ContactChanges object containing contacts and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getContactChanges
Gets contact changes with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A ContactChanges object containing contacts and delta link for tracking changes
- Throws:
GraphException- If an error occurs during the API request
-
getContact
Gets a specific contact for the signed-in user.- Parameters:
contactId- The ID of the contact to retrieve- Returns:
- The Contact object
- Throws:
GraphException- If an error occurs during the API request
-
getContact
Gets a specific contact for a specific user.- Parameters:
contactId- The ID of the contact to retrieveuserId- The ID of the user- Returns:
- The Contact object
- Throws:
GraphException- If an error occurs during the API request
-
getContact
Gets a specific contact for a specific user using UserId object.- Parameters:
contactId- The ID of the contact to retrieveuserId- The UserId object specifying the user- Returns:
- The Contact object
- Throws:
GraphException- If an error occurs during the API request
-
deleteContact
Deletes a contact for the signed-in user.- Parameters:
contactId- The ID of the contact to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteContact
Deletes a contact for a specific user.- Parameters:
contactId- The ID of the contact to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteContact
Deletes a contact for a specific user using UserId object.- Parameters:
contactId- The ID of the contact to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
updateContact
Updates a contact for the signed-in user.- Parameters:
contact- The Contact object with updated properties- Returns:
- The updated Contact object
- Throws:
GraphException- If an error occurs during the API request
-
updateContact
Updates specific properties of a contact.- Parameters:
contact- The Contact object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)- Returns:
- The updated Contact object
- Throws:
GraphException- If an error occurs during the API request
-
updateContact
Updates a contact for a specific user.- Parameters:
contact- The Contact object with updated propertiesuserId- The ID of the user- Returns:
- The updated Contact object
- Throws:
GraphException- If an error occurs during the API request
-
updateContact
Updates a contact for a specific user using UserId object.- Parameters:
contact- The Contact object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated Contact object
- Throws:
GraphException- If an error occurs during the API request
-
updateContact
public Contact updateContact(Contact contact, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a contact for a specific user.- Parameters:
contact- The Contact object with updated propertiespropertyNames- List of property names to update (null to update all changed properties)userId- The UserId object specifying the user- Returns:
- The updated Contact object
- Throws:
GraphException- If an error occurs during the API request
-
createContact
Creates a new contact for the signed-in user.- Parameters:
contact- The Contact object to create- Returns:
- The created Contact object
- Throws:
GraphException- If an error occurs during the API request
-
createContact
Creates a new contact in a specific contact folder.- Parameters:
contact- The Contact object to createcontactFolderId- The ID of the contact folder- Returns:
- The created Contact object
- Throws:
GraphException- If an error occurs during the API request
-
createContact
Creates a new contact for a specific user.- Parameters:
contact- The Contact object to createuserId- The UserId object specifying the user- Returns:
- The created Contact object
- Throws:
GraphException- If an error occurs during the API request
-
createContact
public Contact createContact(Contact contact, String contactFolderId, String userId) throws GraphExceptionCreates a new contact in a specific folder for a specific user.- Parameters:
contact- The Contact object to createcontactFolderId- The ID of the contact folderuserId- The ID of the user- Returns:
- The created Contact object
- Throws:
GraphException- If an error occurs during the API request
-
createContact
public Contact createContact(Contact contact, String contactFolderId, UserId userId) throws GraphExceptionCreates a new contact in a specific folder for a specific user using UserId object.- Parameters:
contact- The Contact object to createcontactFolderId- The ID of the contact folderuserId- The UserId object specifying the user- Returns:
- The created Contact object
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
Gets all contact folders for the signed-in user.- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
Gets all child contact folders from a parent folder.- Parameters:
parentFolderId- The ID of the parent contact folder- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
Gets all contact folders with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
public List<ContactFolder> getContactFolders(String parentFolderId, Query query) throws GraphExceptionGets all child contact folders from a parent folder with query options.- Parameters:
parentFolderId- The ID of the parent contact folderquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
Gets all contact folders for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
Gets all contact folders for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
public List<ContactFolder> getContactFolders(String parentFolderId, String userId) throws GraphExceptionGets all child contact folders from a parent folder for a specific user.- Parameters:
parentFolderId- The ID of the parent contact folderuserId- The ID of the user- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
public List<ContactFolder> getContactFolders(String parentFolderId, String userId, Query query) throws GraphExceptionGets all child contact folders from a parent folder for a specific user with query options.- Parameters:
parentFolderId- The ID of the parent contact folderuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
public List<ContactFolder> getContactFolders(String parentFolderId, UserId userId) throws GraphExceptionGets all child contact folders from a parent folder for a specific user using UserId object.- Parameters:
parentFolderId- The ID of the parent contact folderuserId- The UserId object specifying the user- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getContactFolders
public List<ContactFolder> getContactFolders(String parentFolderId, UserId userId, Query query) throws GraphExceptionGets all child contact folders from a parent folder for a specific user with all options.- Parameters:
parentFolderId- The ID of the parent contact folderuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of ContactFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
createContactFolder
Creates a new contact folder for the signed-in user.- Parameters:
displayName- The display name for the new contact folder- Returns:
- The created ContactFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createContactFolder
public ContactFolder createContactFolder(String displayName, String parentFolderId) throws GraphExceptionCreates a new child contact folder within a parent folder.- Parameters:
displayName- The display name for the new contact folderparentFolderId- The ID of the parent contact folder- Returns:
- The created ContactFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createContactFolder
Creates a new contact folder for a specific user.- Parameters:
displayName- The display name for the new contact folderuserId- The UserId object specifying the user- Returns:
- The created ContactFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createContactFolder
public ContactFolder createContactFolder(String displayName, String parentFolderId, String userId) throws GraphExceptionCreates a new child contact folder within a parent folder for a specific user.- Parameters:
displayName- The display name for the new contact folderparentFolderId- The ID of the parent contact folderuserId- The ID of the user- Returns:
- The created ContactFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createContactFolder
public ContactFolder createContactFolder(String displayName, String parentFolderId, UserId userId) throws GraphExceptionCreates a new child contact folder within a parent folder for a specific user using UserId object.- Parameters:
displayName- The display name for the new contact folderparentFolderId- The ID of the parent contact folderuserId- The UserId object specifying the user- Returns:
- The created ContactFolder object
- Throws:
GraphException- If an error occurs during the API request
-
translateExchangeIds
public Hashtable<String,String> translateExchangeIds(List<String> sourceIds, ExchangeIdFormat sourceIdFormat, ExchangeIdFormat targetIdFormat) throws GraphExceptionTranslates Exchange IDs from one format to another for the signed-in user.- Parameters:
sourceIds- List of Exchange IDs to translatesourceIdFormat- The format of the source IDs (e.g., EntryId, EwsId, ImmutableEntryId, RestId, RestImmutableEntryId)targetIdFormat- The target format for the translated IDs- Returns:
- A Hashtable mapping source IDs to translated target IDs
- Throws:
GraphException- If an error occurs during the API request
-
translateExchangeIds
public Hashtable<String,String> translateExchangeIds(List<String> sourceIds, ExchangeIdFormat sourceIdFormat, ExchangeIdFormat targetIdFormat, String userId) throws GraphExceptionTranslates Exchange IDs from one format to another for a specific user.- Parameters:
sourceIds- List of Exchange IDs to translatesourceIdFormat- The format of the source IDstargetIdFormat- The target format for the translated IDsuserId- The ID of the user- Returns:
- A Hashtable mapping source IDs to translated target IDs
- Throws:
GraphException- If an error occurs during the API request
-
translateExchangeIds
public Hashtable<String,String> translateExchangeIds(List<String> sourceIds, ExchangeIdFormat sourceIdFormat, ExchangeIdFormat targetIdFormat, UserId userId) throws GraphExceptionTranslates Exchange IDs from one format to another for a specific user using UserId object.- Parameters:
sourceIds- List of Exchange IDs to translatesourceIdFormat- The format of the source IDstargetIdFormat- The target format for the translated IDsuserId- The UserId object specifying the user- Returns:
- A Hashtable mapping source IDs to translated target IDs
- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients) throws GraphExceptionForwards a message to recipients.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message to- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody) throws GraphExceptionForwards a message with a comment.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message tonewBody- Comment or additional message body to include- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage) throws GraphExceptionForwards a message with updated message properties.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message toupdateMessage- Message object with updated properties to apply to the forwarded message- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage) throws GraphExceptionForwards a message with a comment and updated message properties.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message tonewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to apply- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, UserId userId) throws GraphExceptionForwards a message for a specific user.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message touserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, UserId userId) throws GraphExceptionForwards a message with a comment for a specific user.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message tonewBody- Comment or additional message body to includeuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage, UserId userId) throws GraphExceptionForwards a message with updated message properties for a specific user.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message toupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
forwardMessage
public void forwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage, UserId userId) throws GraphExceptionForwards a message with all options for a specific user.- Parameters:
messageId- The ID of the message to forwardtoRecipients- List of EmailAddress recipients to forward the message tonewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients) throws GraphExceptionCreates a forward message draft without sending it.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward message- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody) throws GraphExceptionCreates a forward message draft with a comment.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messagenewBody- Comment or additional message body to include- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage) throws GraphExceptionCreates a forward message draft with updated message properties.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messageupdateMessage- Message object with updated properties to apply- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage) throws GraphExceptionCreates a forward message draft with a comment and updated properties.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messagenewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to apply- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, UserId userId) throws GraphExceptionCreates a forward message draft for a specific user.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messageuserId- The UserId object specifying the user- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, UserId userId) throws GraphExceptionCreates a forward message draft with a comment for a specific user.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messagenewBody- Comment or additional message body to includeuserId- The UserId object specifying the user- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, Message updateMessage, UserId userId) throws GraphExceptionCreates a forward message draft with updated properties for a specific user.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messageupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createForwardMessage
public Message createForwardMessage(String messageId, List<EmailAddress> toRecipients, String newBody, Message updateMessage, UserId userId) throws GraphExceptionCreates a forward message draft with all options for a specific user.- Parameters:
messageId- The ID of the message to create a forward fortoRecipients- List of EmailAddress recipients for the forward messagenewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Returns:
- The created forward Message draft
- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
Replies to all recipients of a message.- Parameters:
messageId- The ID of the message to reply to- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
Replies to all recipients with a comment.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to include in the reply- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
Replies to all recipients with updated message properties.- Parameters:
messageId- The ID of the message to reply toupdateMessage- Message object with updated properties to apply to the reply- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
public void replyToAll(String messageId, String newBody, Message updateMessage) throws GraphExceptionReplies to all recipients with a comment and updated properties.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to apply- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
Replies to all recipients for a specific user.- Parameters:
messageId- The ID of the message to reply touserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
Replies to all recipients with a comment for a specific user.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to includeuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
public void replyToAll(String messageId, Message updateMessage, UserId userId) throws GraphExceptionReplies to all recipients with updated properties for a specific user.- Parameters:
messageId- The ID of the message to reply toupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyToAll
public void replyToAll(String messageId, String newBody, Message updateMessage, UserId userId) throws GraphExceptionReplies to all recipients with all options for a specific user.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender of a message.- Parameters:
messageId- The ID of the message to reply to- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender with a comment.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to include in the reply- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender with updated message properties.- Parameters:
messageId- The ID of the message to reply toupdateMessage- Message object with updated properties to apply to the reply- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender with a comment and updated properties.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to apply- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender for a specific user.- Parameters:
messageId- The ID of the message to reply touserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender with a comment for a specific user.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to includeuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyTo
Replies to the sender with updated properties for a specific user.- Parameters:
messageId- The ID of the message to reply toupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
replyTo
public void replyTo(String messageId, String newBody, Message updateMessage, UserId userId) throws GraphExceptionReplies to the sender with all options for a specific user.- Parameters:
messageId- The ID of the message to reply tonewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
Creates a reply-to-all message draft without sending it.- Parameters:
messageId- The ID of the message to create a reply for- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
Creates a reply-to-all message draft with a comment.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to include- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
public Message createReplyToAllMessage(String messageId, Message updateMessage) throws GraphExceptionCreates a reply-to-all message draft with updated message properties.- Parameters:
messageId- The ID of the message to create a reply forupdateMessage- Message object with updated properties to apply- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
public Message createReplyToAllMessage(String messageId, String newBody, Message updateMessage) throws GraphExceptionCreates a reply-to-all message draft with a comment and updated properties.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to apply- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
Creates a reply-to-all message draft for a specific user.- Parameters:
messageId- The ID of the message to create a reply foruserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
public Message createReplyToAllMessage(String messageId, String newBody, UserId userId) throws GraphExceptionCreates a reply-to-all message draft with a comment for a specific user.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to includeuserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
public Message createReplyToAllMessage(String messageId, Message updateMessage, UserId userId) throws GraphExceptionCreates a reply-to-all message draft with updated properties for a specific user.- Parameters:
messageId- The ID of the message to create a reply forupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToAllMessage
public Message createReplyToAllMessage(String messageId, String newBody, Message updateMessage, UserId userId) throws GraphExceptionCreates a reply-to-all message draft with all options for a specific user.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
Creates a reply message draft without sending it.- Parameters:
messageId- The ID of the message to create a reply for- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
Creates a reply message draft with a comment.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to include- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
Creates a reply message draft with updated message properties.- Parameters:
messageId- The ID of the message to create a reply forupdateMessage- Message object with updated properties to apply- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
public Message createReplyToMessage(String messageId, String newBody, Message updateMessage) throws GraphExceptionCreates a reply message draft with a comment and updated properties.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to apply- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
Creates a reply message draft for a specific user.- Parameters:
messageId- The ID of the message to create a reply foruserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
public Message createReplyToMessage(String messageId, String newBody, UserId userId) throws GraphExceptionCreates a reply message draft with a comment for a specific user.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to includeuserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
public Message createReplyToMessage(String messageId, Message updateMessage, UserId userId) throws GraphExceptionCreates a reply message draft with updated properties for a specific user.- Parameters:
messageId- The ID of the message to create a reply forupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createReplyToMessage
public Message createReplyToMessage(String messageId, String newBody, Message updateMessage, UserId userId) throws GraphExceptionCreates a reply message draft with all options for a specific user.- Parameters:
messageId- The ID of the message to create a reply fornewBody- Comment or additional message body to includeupdateMessage- Message object with updated properties to applyuserId- The UserId object specifying the user- Returns:
- The created reply Message draft
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(AttachmentItem attachmentItem, OutlookResourceId outlookResourceId) throws GraphExceptionCreates an upload session for uploading large attachments.- Parameters:
attachmentItem- The AttachmentItem containing metadata about the attachmentoutlookResourceId- The OutlookResourceId identifying the resource (message, event, etc.) to attach to- Returns:
- An UploadSession object with upload URL and expiration information
- Throws:
GraphException- If an error occurs during the API request
-
createUploadSession
public UploadSession createUploadSession(AttachmentItem attachmentItem, OutlookResourceId outlookResourceId, UserId userId) throws GraphExceptionCreates an upload session for uploading large attachments for a specific user.- Parameters:
attachmentItem- The AttachmentItem containing metadata about the attachmentoutlookResourceId- The OutlookResourceId identifying the resource to attach touserId- The UserId object specifying the user- Returns:
- An UploadSession object with upload URL and expiration information
- Throws:
GraphException- If an error occurs during the API request
-
createAttachment
public String createAttachment(UploadSession uploadSession, byte[] buffer) throws GraphException, IOExceptionUploads an attachment using an existing upload session from a byte array.- Parameters:
uploadSession- The UploadSession obtained from createUploadSessionbuffer- The byte array containing the file content- Returns:
- The attachment ID of the uploaded file
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createAttachment
public String createAttachment(UploadSession uploadSession, String filePath) throws GraphException, IOExceptionUploads an attachment using an existing upload session from a file.- Parameters:
uploadSession- The UploadSession obtained from createUploadSessionfilePath- The file path to upload- Returns:
- The attachment ID of the uploaded file
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createAttachment
public String createAttachment(UploadSession uploadSession, String filePath, int bufferSize) throws GraphException, IOExceptionUploads an attachment using an existing upload session from a file with custom buffer size.- Parameters:
uploadSession- The UploadSession obtained from createUploadSessionfilePath- The file path to uploadbufferSize- The buffer size for chunked upload (0 for default 1MB)- Returns:
- The attachment ID of the uploaded file
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createAttachment
public String createAttachment(UploadSession uploadSession, InputStream stream) throws GraphException, IOExceptionUploads an attachment using an existing upload session from an InputStream.- Parameters:
uploadSession- The UploadSession obtained from createUploadSessionstream- The InputStream containing the file content- Returns:
- The attachment ID of the uploaded file
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createAttachment
public String createAttachment(UploadSession uploadSession, InputStream stream, int bufferSize) throws GraphException, IOExceptionUploads an attachment using an existing upload session from an InputStream with custom buffer size.- Parameters:
uploadSession- The UploadSession obtained from createUploadSessionstream- The InputStream containing the file contentbufferSize- The buffer size for chunked upload (0 for default 1MB)- Returns:
- The attachment ID of the uploaded file
- Throws:
GraphException- If an error occurs during the API requestIOException- If an I/O error occurs
-
createAttachment
public Attachment createAttachment(Attachment attachment, OutlookResourceId outlookResourceId) throws GraphExceptionCreates an attachment for a message or event.- Parameters:
attachment- The Attachment object to create (FileAttachment, ItemAttachment, or ReferenceAttachment)outlookResourceId- The OutlookResourceId identifying the resource (message, event, etc.) to attach to- Returns:
- The created Attachment object
- Throws:
GraphException- If an error occurs during the API request
-
createAttachment
public Attachment createAttachment(Attachment attachment, OutlookResourceId outlookResourceId, String userId) throws GraphExceptionCreates an attachment for a message or event for a specific user.- Parameters:
attachment- The Attachment object to createoutlookResourceId- The OutlookResourceId identifying the resource to attach touserId- The ID of the user- Returns:
- The created Attachment object
- Throws:
GraphException- If an error occurs during the API request
-
createAttachment
public Attachment createAttachment(Attachment attachment, OutlookResourceId outlookResourceId, UserId userId) throws GraphExceptionCreates an attachment for a message or event for a specific user using UserId object.- Parameters:
attachment- The Attachment object to createoutlookResourceId- The OutlookResourceId identifying the resource to attach touserId- The UserId object specifying the user- Returns:
- The created Attachment object
- Throws:
GraphException- If an error occurs during the API request
-
deleteAttachment
public void deleteAttachment(String attachmentId, OutlookResourceId outlookResourceId) throws GraphExceptionDeletes an attachment from a message or event.- Parameters:
attachmentId- The ID of the attachment to deleteoutlookResourceId- The OutlookResourceId identifying the resource (message, event, etc.)- Throws:
GraphException- If an error occurs during the API request
-
deleteAttachment
public void deleteAttachment(String attachmentId, OutlookResourceId outlookResourceId, String userId) throws GraphExceptionDeletes an attachment from a message or event for a specific user.- Parameters:
attachmentId- The ID of the attachment to deleteoutlookResourceId- The OutlookResourceId identifying the resourceuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteAttachment
public void deleteAttachment(String attachmentId, OutlookResourceId outlookResourceId, UserId userId) throws GraphExceptionDeletes an attachment from a message or event for a specific user using UserId object.- Parameters:
attachmentId- The ID of the attachment to deleteoutlookResourceId- The OutlookResourceId identifying the resourceuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getAttachments
Gets all attachments for a message or event.- Parameters:
outlookResourceId- The OutlookResourceId identifying the resource (message, event, etc.)- Returns:
- A list of Attachment objects (FileAttachment, ItemAttachment, or ReferenceAttachment)
- Throws:
GraphException- If an error occurs during the API request
-
getAttachments
public List<Attachment> getAttachments(OutlookResourceId outlookResourceId, Query query) throws GraphExceptionGets all attachments with query options.- Parameters:
outlookResourceId- The OutlookResourceId identifying the resourcequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Attachment objects
- Throws:
GraphException- If an error occurs during the API request
-
getAttachments
public List<Attachment> getAttachments(OutlookResourceId outlookResourceId, ResourceId resourceId) throws GraphExceptionGets all attachments for a specific resource.- Parameters:
outlookResourceId- The OutlookResourceId identifying the resourceresourceId- The ResourceId for user identification- Returns:
- A list of Attachment objects
- Throws:
GraphException- If an error occurs during the API request
-
getAttachments
public List<Attachment> getAttachments(OutlookResourceId outlookResourceId, ResourceId resourceId, Query query) throws GraphExceptionGets all attachments with all options.- Parameters:
outlookResourceId- The OutlookResourceId identifying the resourceresourceId- The ResourceId for user identificationquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- A list of Attachment objects
- Throws:
GraphException- If an error occurs during the API request
-
getAttachment
public Attachment getAttachment(String attachmentId, OutlookResourceId outlookResourceId) throws GraphExceptionGets a specific attachment.- Parameters:
attachmentId- The ID of the attachment to retrieveoutlookResourceId- The OutlookResourceId identifying the resource (message, event, etc.)- Returns:
- The Attachment object (FileAttachment, ItemAttachment, or ReferenceAttachment)
- Throws:
GraphException- If an error occurs during the API request
-
getAttachment
public Attachment getAttachment(String attachmentId, OutlookResourceId outlookResourceId, Query query) throws GraphExceptionGets a specific attachment with query options.- Parameters:
attachmentId- The ID of the attachment to retrieveoutlookResourceId- The OutlookResourceId identifying the resourcequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- The Attachment object
- Throws:
GraphException- If an error occurs during the API request
-
getAttachment
public Attachment getAttachment(String attachmentId, OutlookResourceId outlookResourceId, ResourceId resourceId) throws GraphExceptionGets a specific attachment for a specific resource.- Parameters:
attachmentId- The ID of the attachment to retrieveoutlookResourceId- The OutlookResourceId identifying the resourceresourceId- The ResourceId for user identification- Returns:
- The Attachment object
- Throws:
GraphException- If an error occurs during the API request
-
getAttachment
public Attachment getAttachment(String attachmentId, OutlookResourceId outlookResourceId, ResourceId resourceId, Query query) throws GraphExceptionGets a specific attachment with all options.- Parameters:
attachmentId- The ID of the attachment to retrieveoutlookResourceId- The OutlookResourceId identifying the resourceresourceId- The ResourceId for user identificationquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- The Attachment object
- Throws:
GraphException- If an error occurs during the API request
-
moveMessage
public Message moveMessage(String messageId, StandardMailboxFolder standardMailboxFolder) throws GraphExceptionMoves a message to a standard mailbox folder.- Parameters:
messageId- The ID of the message to movestandardMailboxFolder- The standard folder to move the message to (e.g., DeletedItems, Drafts, Inbox)- Returns:
- The moved Message object
- Throws:
GraphException- If an error occurs during the API request
-
moveMessage
public Message moveMessage(String messageId, StandardMailboxFolder standardMailboxFolder, String userId) throws GraphExceptionMoves a message to a standard mailbox folder for a specific user.- Parameters:
messageId- The ID of the message to movestandardMailboxFolder- The standard folder to move the message touserId- The ID of the user- Returns:
- The moved Message object
- Throws:
GraphException- If an error occurs during the API request
-
moveMessage
public Message moveMessage(String messageId, StandardMailboxFolder standardMailboxFolder, UserId userId) throws GraphExceptionMoves a message to a standard mailbox folder for a specific user using UserId object.- Parameters:
messageId- The ID of the message to movestandardMailboxFolder- The standard folder to move the message touserId- The UserId object specifying the user- Returns:
- The moved Message object
- Throws:
GraphException- If an error occurs during the API request
-
moveMessage
Moves a message to a specific folder.- Parameters:
messageId- The ID of the message to movedestintionFolderId- The ID of the destination folder- Returns:
- The moved Message object
- Throws:
GraphException- If an error occurs during the API request
-
moveMessage
public Message moveMessage(String messageId, String destintionFolderId, String userId) throws GraphExceptionMoves a message to a specific folder for a specific user.- Parameters:
messageId- The ID of the message to movedestintionFolderId- The ID of the destination folderuserId- The ID of the user- Returns:
- The moved Message object
- Throws:
GraphException- If an error occurs during the API request
-
moveMessage
public Message moveMessage(String messageId, String destintionFolderId, UserId userId) throws GraphExceptionMoves a message to a specific folder for a specific user using UserId object.- Parameters:
messageId- The ID of the message to movedestintionFolderId- The ID of the destination folderuserId- The UserId object specifying the user- Returns:
- The moved Message object
- Throws:
GraphException- If an error occurs during the API request
-
copyMessage
public Message copyMessage(String messageId, StandardMailboxFolder standardMailboxFolder) throws GraphExceptionCopies a message to a standard mailbox folder.- Parameters:
messageId- The ID of the message to copystandardMailboxFolder- The standard folder to copy the message to (e.g., DeletedItems, Drafts, Inbox)- Returns:
- The copied Message object
- Throws:
GraphException- If an error occurs during the API request
-
copyMessage
public Message copyMessage(String messageId, StandardMailboxFolder standardMailboxFolder, String userId) throws GraphExceptionCopies a message to a standard mailbox folder for a specific user.- Parameters:
messageId- The ID of the message to copystandardMailboxFolder- The standard folder to copy the message touserId- The ID of the user- Returns:
- The copied Message object
- Throws:
GraphException- If an error occurs during the API request
-
copyMessage
public Message copyMessage(String messageId, StandardMailboxFolder standardMailboxFolder, UserId userId) throws GraphExceptionCopies a message to a standard mailbox folder for a specific user using UserId object.- Parameters:
messageId- The ID of the message to copystandardMailboxFolder- The standard folder to copy the message touserId- The UserId object specifying the user- Returns:
- The copied Message object
- Throws:
GraphException- If an error occurs during the API request
-
copyMessage
Copies a message to a specific folder.- Parameters:
messageId- The ID of the message to copydestintionFolderId- The ID of the destination folder- Returns:
- The copied Message object
- Throws:
GraphException- If an error occurs during the API request
-
copyMessage
public Message copyMessage(String messageId, String destintionFolderId, String userId) throws GraphExceptionCopies a message to a specific folder for a specific user.- Parameters:
messageId- The ID of the message to copydestintionFolderId- The ID of the destination folderuserId- The ID of the user- Returns:
- The copied Message object
- Throws:
GraphException- If an error occurs during the API request
-
copyMessage
public Message copyMessage(String messageId, String destintionFolderId, UserId userId) throws GraphExceptionCopies a message to a specific folder for a specific user using UserId object.- Parameters:
messageId- The ID of the message to copydestintionFolderId- The ID of the destination folderuserId- The UserId object specifying the user- Returns:
- The copied Message object
- Throws:
GraphException- If an error occurs during the API request
-
deleteMessage
Deletes a message for the signed-in user.- Parameters:
messageId- The ID of the message to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteMessage
Deletes a message for a specific user.- Parameters:
messageId- The ID of the message to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteMessage
Deletes a message for a specific user using UserId object.- Parameters:
messageId- The ID of the message to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getMessageMimeContent
Gets the MIME content of a message.- Parameters:
messageId- The ID of the message- Returns:
- The MIME content as a string
- Throws:
GraphException- If an error occurs during the API request
-
getMessageMimeContent
Gets the MIME content of a message for a specific user.- Parameters:
messageId- The ID of the messageuserId- The ID of the user- Returns:
- The MIME content as a string
- Throws:
GraphException- If an error occurs during the API request
-
getMessageMimeContent
Gets the MIME content of a message for a specific user using UserId object.- Parameters:
messageId- The ID of the messageuserId- The UserId object specifying the user- Returns:
- The MIME content as a string
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
Gets a specific message.- Parameters:
messageId- The ID of the message to retrieve- Returns:
- The Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
Gets a specific message with query options.- Parameters:
messageId- The ID of the message to retrievequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- The Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
Gets a specific message for a specific user.- Parameters:
messageId- The ID of the message to retrieveuserId- The ID of the user- Returns:
- The Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
Gets a specific message for a specific user with query options.- Parameters:
messageId- The ID of the message to retrieveuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- The Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
Gets a specific message for a specific user using UserId object.- Parameters:
messageId- The ID of the message to retrieveuserId- The UserId object specifying the user- Returns:
- The Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
Gets a specific message for a specific user with all options.- Parameters:
messageId- The ID of the message to retrieveuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- The Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMessage
public Message getMessage(String messageId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getMessage
public Message getMessage(String messageId, String userId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getMessage
public Message getMessage(String messageId, UserId userId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getMessageFile
Gets a message as an MSG file format object.- Parameters:
messageId- The ID of the message to retrieve- Returns:
- The Message object in MSG file format
- Throws:
GraphException- If an error occurs during the API request
-
getMessageFile
Gets a message as an MSG file format object for a specific user.- Parameters:
messageId- The ID of the message to retrieveuserId- The ID of the user- Returns:
- The Message object in MSG file format
- Throws:
GraphException- If an error occurs during the API request
-
getMessageFile
public Message getMessageFile(String messageId, String userId, List<ExtendedPropertyId> extendedProperties) throws GraphExceptionGets a message as an MSG file format object for a specific user with extended properties.- Parameters:
messageId- The ID of the message to retrieveuserId- The ID of the userextendedProperties- List of extended properties to retrieve- Returns:
- The Message object in MSG file format
- Throws:
GraphException- If an error occurs during the API request
-
getMessageFile
Gets a message as an MSG file format object for a specific user using UserId object.- Parameters:
messageId- The ID of the message to retrieveuserId- The UserId object specifying the user- Returns:
- The Message object in MSG file format
- Throws:
GraphException- If an error occurs during the API request
-
getMessageFile
public Message getMessageFile(String messageId, UserId userId, List<ExtendedPropertyId> extendedProperties) throws GraphExceptionGets a message as an MSG file format object with all options.- Parameters:
messageId- The ID of the message to retrieveuserId- The UserId object specifying the userextendedProperties- List of extended properties to retrieve- Returns:
- The Message object in MSG file format
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages in the signed-in user's mailbox (including Inbox, Sent Items, and Deleted Items folders).- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(StandardMailboxFolder standardMailboxFolder) throws GraphExceptionGets the list of messages from a standard mailbox folder.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages from a specific folder.- Parameters:
folderId- The ID of the mail folder- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(StandardMailboxFolder standardMailboxFolder, Query query) throws GraphExceptionGets the list of messages from a standard mailbox folder with query options.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages from a specific folder with query options.- Parameters:
folderId- The ID of the mail folderquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(StandardMailboxFolder standardMailboxFolder, String userId) throws GraphExceptionGets the list of messages from a standard mailbox folder for a specific user.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The ID of the user- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(StandardMailboxFolder standardMailboxFolder, UserId userId) throws GraphExceptionGets the list of messages from a standard mailbox folder for a specific user using UserId object.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The UserId object specifying the user- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages from a specific folder for a specific user.- Parameters:
folderId- The ID of the mail folderuserId- The ID of the user- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages from a specific folder for a specific user using UserId object.- Parameters:
folderId- The ID of the mail folderuserId- The UserId object specifying the user- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
Gets the list of messages for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(StandardMailboxFolder standardMailboxFolder, String userId, Query query) throws GraphExceptionGets the list of messages from a standard mailbox folder for a specific user with query options.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(String folderId, String userId, Query query) throws GraphExceptionGets the list of messages from a specific folder for a specific user with query options.- Parameters:
folderId- The ID of the mail folderuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(StandardMailboxFolder standardMailboxFolder, UserId userId, Query query) throws GraphExceptionGets the list of messages from a standard mailbox folder for a specific user with all options.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessages
public List<Message> getMessages(String folderId, UserId userId, Query query) throws GraphExceptionGets the list of messages from a specific folder for a specific user with all options.- Parameters:
folderId- The ID of the mail folderuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Message objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages using a nextLink or deltaLink URL.- Parameters:
nextLinkOrDeltaLink- The nextLink or deltaLink URL from a previous response- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(StandardMailboxFolder standardMailboxFolder) throws GraphExceptionGets delta changes for messages in a standard mailbox folder.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(StandardMailboxFolder standardMailboxFolder, Query query) throws GraphExceptionGets delta changes for messages in a standard mailbox folder with query options.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages from a specific folder with query options.- Parameters:
folderId- The ID of the mail folderquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages for a specific user.- Parameters:
userId- The UserId object specifying the user- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(StandardMailboxFolder standardMailboxFolder, String userId) throws GraphExceptionGets delta changes for messages in a standard mailbox folder for a specific user.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The ID of the user- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(StandardMailboxFolder standardMailboxFolder, UserId userId) throws GraphExceptionGets delta changes for messages in a standard mailbox folder for a specific user using UserId object.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The UserId object specifying the user- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages from a specific folder for a specific user.- Parameters:
folderId- The ID of the mail folderuserId- The ID of the user- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages from a specific folder for a specific user using UserId object.- Parameters:
folderId- The ID of the mail folderuserId- The UserId object specifying the user- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
Gets delta changes for messages for a specific user with query options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(StandardMailboxFolder standardMailboxFolder, String userId, Query query) throws GraphExceptionGets delta changes for messages in a standard mailbox folder for a specific user with query options.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(String folderId, String userId, Query query) throws GraphExceptionGets delta changes for messages from a specific folder for a specific user with query options.- Parameters:
folderId- The ID of the mail folderuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(StandardMailboxFolder standardMailboxFolder, UserId userId, Query query) throws GraphExceptionGets delta changes for messages in a standard mailbox folder for a specific user with all options.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMessageChanges
public MessageChanges getMessageChanges(String folderId, UserId userId, Query query) throws GraphExceptionGets delta changes for messages from a specific folder for a specific user with all options.- Parameters:
folderId- The ID of the mail folderuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MessageChanges object containing messages and delta links
- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends an existing draft message.- Parameters:
messageId- The ID of the draft message to send- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends an existing draft message for a specific user.- Parameters:
messageId- The ID of the draft message to senduserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends an existing draft message for a specific user using UserId object.- Parameters:
messageId- The ID of the draft message to senduserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends a new message without saving to Sent Items folder.- Parameters:
message- The Message object to send- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends a new message with option to save to Sent Items folder.- Parameters:
message- The Message object to sendsaveToSentItems- Whether to save a copy of the message in the Sent Items folder- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends a new message for a specific user without saving to Sent Items folder.- Parameters:
message- The Message object to senduserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
public void sendMessage(Message message, boolean saveToSentItems, String userId) throws GraphExceptionSends a new message for a specific user with option to save to Sent Items folder.- Parameters:
message- The Message object to sendsaveToSentItems- Whether to save a copy of the message in the Sent Items folderuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
Sends a new message for a specific user using UserId object without saving to Sent Items folder.- Parameters:
message- The Message object to senduserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
sendMessage
public void sendMessage(Message message, boolean saveToSentItems, UserId userId) throws GraphExceptionSends a new message for a specific user with all options.- Parameters:
message- The Message object to sendsaveToSentItems- Whether to save a copy of the message in the Sent Items folderuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
sendMimeMessage
Sends a message in MIME format.- Parameters:
mimeContent- The MIME content of the message- Throws:
GraphException- If an error occurs during the API request
-
sendMimeMessage
Sends a message in MIME format for a specific user.- Parameters:
mimeContent- The MIME content of the messageuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
sendMimeMessage
Sends a message in MIME format for a specific user using UserId object.- Parameters:
mimeContent- The MIME content of the messageuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
createMessage
Creates a draft message in the Drafts folder.- Parameters:
message- The Message object to create- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
public Message createMessage(Message message, StandardMailboxFolder standardMailboxFolder) throws GraphExceptionCreates a message in a specific standard mailbox folder.- Parameters:
message- The Message object to createstandardMailboxFolder- The standard mailbox folder to create the message in- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
public Message createMessage(Message message, StandardMailboxFolder standardMailboxFolder, String userId) throws GraphExceptionCreates a message in a specific standard mailbox folder for a specific user.- Parameters:
message- The Message object to createstandardMailboxFolder- The standard mailbox folder to create the message inuserId- The ID of the user- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
Creates a draft message for a specific user using UserId object.- Parameters:
message- The Message object to createuserId- The UserId object specifying the user- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
public Message createMessage(Message message, StandardMailboxFolder standardMailboxFolder, UserId userId) throws GraphExceptionCreates a message in a specific standard mailbox folder for a specific user using UserId object.- Parameters:
message- The Message object to createstandardMailboxFolder- The standard mailbox folder to create the message inuserId- The UserId object specifying the user- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
Creates a message in a specific folder.- Parameters:
message- The Message object to createfolderId- The ID of the mail folder- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
public Message createMessage(Message message, String folderId, String userId) throws GraphExceptionCreates a message in a specific folder for a specific user.- Parameters:
message- The Message object to createfolderId- The ID of the mail folderuserId- The ID of the user- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
createMessage
public Message createMessage(Message message, String folderId, UserId userId) throws GraphExceptionCreates a message in a specific folder for a specific user with all options.- Parameters:
message- The Message object to createfolderId- The ID of the mail folderuserId- The UserId object specifying the user- Returns:
- The created Message object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessage
Updates a message.- Parameters:
message- The Message object with updated properties- Returns:
- The updated Message object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessage
Updates specific properties of a message.- Parameters:
message- The Message object with updated propertiespropertyNames- List of property names to update (if null, all modified properties are updated)- Returns:
- The updated Message object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessage
Updates a message for a specific user.- Parameters:
message- The Message object with updated propertiesuserId- The ID of the user- Returns:
- The updated Message object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessage
Updates a message for a specific user using UserId object.- Parameters:
message- The Message object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated Message object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessage
public Message updateMessage(Message message, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a message for a specific user with all options.- Parameters:
message- The Message object with updated propertiespropertyNames- List of property names to update (if null, all modified properties are updated)userId- The UserId object specifying the user- Returns:
- The updated Message object
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolders
Gets the list of mail folders for the signed-in user.- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolders
Gets the list of mail folders for a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolders
Gets the list of mail folders for a specific user using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolders
Gets the list of mail folders with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolders
Gets the list of mail folders for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolders
Gets the list of mail folders for a specific user with all options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolderChanges
Gets delta changes for mail folders for the signed-in user.- Returns:
- MailFolderChanges object containing mail folders and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolderChanges
Gets delta changes for mail folders using a nextLink or deltaLink URL.- Parameters:
nextLinkOrDeltaLink- The nextLink or deltaLink URL from a previous response- Returns:
- MailFolderChanges object containing mail folders and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolderChanges
Gets delta changes for mail folders for a specific user using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- MailFolderChanges object containing mail folders and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolderChanges
Gets delta changes for mail folders with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MailFolderChanges object containing mail folders and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolderChanges
Gets delta changes for mail folders for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MailFolderChanges object containing mail folders and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolderChanges
Gets delta changes for mail folders for a specific user with all options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- MailFolderChanges object containing mail folders and delta links
- Throws:
GraphException- If an error occurs during the API request
-
getChildMailFolders
Gets the list of child mail folders under a specific mail folder.- Parameters:
mailFolderId- The ID of the parent mail folder- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getChildMailFolders
public List<MailFolder> getChildMailFolders(String mailFolderId, String userId) throws GraphExceptionGets the list of child mail folders under a specific mail folder for a specific user.- Parameters:
mailFolderId- The ID of the parent mail folderuserId- The ID of the user- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getChildMailFolders
public List<MailFolder> getChildMailFolders(String mailFolderId, UserId userId) throws GraphExceptionGets the list of child mail folders under a specific mail folder for a specific user using UserId object.- Parameters:
mailFolderId- The ID of the parent mail folderuserId- The UserId object specifying the user- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getChildMailFolders
public List<MailFolder> getChildMailFolders(String mailFolderId, Query query) throws GraphExceptionGets the list of child mail folders under a specific mail folder with query options.- Parameters:
mailFolderId- The ID of the parent mail folderquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getChildMailFolders
public List<MailFolder> getChildMailFolders(String mailFolderId, String userId, Query query) throws GraphExceptionGets the list of child mail folders under a specific mail folder for a specific user with query options.- Parameters:
mailFolderId- The ID of the parent mail folderuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getChildMailFolders
public List<MailFolder> getChildMailFolders(String mailFolderId, UserId userId, Query query) throws GraphExceptionGets the list of child mail folders under a specific mail folder for a specific user with all options.- Parameters:
mailFolderId- The ID of the parent mail folderuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MailFolder objects
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolder
Gets a specific mail folder by standard mailbox folder.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)- Returns:
- The MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolder
public MailFolder getMailFolder(StandardMailboxFolder standardMailboxFolder, String userId) throws GraphExceptionGets a specific mail folder by standard mailbox folder for a specific user.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The ID of the user- Returns:
- The MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolder
public MailFolder getMailFolder(StandardMailboxFolder standardMailboxFolder, UserId userId) throws GraphExceptionGets a specific mail folder by standard mailbox folder for a specific user using UserId object.- Parameters:
standardMailboxFolder- The standard mailbox folder (e.g., Inbox, SentItems, DeletedItems)userId- The UserId object specifying the user- Returns:
- The MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolder
Gets a specific mail folder by ID.- Parameters:
mailFolderId- The ID of the mail folder- Returns:
- The MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolder
Gets a specific mail folder by ID for a specific user.- Parameters:
mailFolderId- The ID of the mail folderuserId- The ID of the user- Returns:
- The MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
getMailFolder
Gets a specific mail folder by ID for a specific user using UserId object.- Parameters:
mailFolderId- The ID of the mail folderuserId- The UserId object specifying the user- Returns:
- The MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
copyMailFolder
public MailFolder copyMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder) throws GraphExceptionCopies a mail folder to a standard mailbox folder.- Parameters:
sourceFolderId- The ID of the source mail folder to copydestinationParentFolder- The standard mailbox folder destination- Returns:
- The copied MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
copyMailFolder
public MailFolder copyMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, String userId) throws GraphExceptionCopies a mail folder to a standard mailbox folder for a specific user.- Parameters:
sourceFolderId- The ID of the source mail folder to copydestinationParentFolder- The standard mailbox folder destinationuserId- The ID of the user- Returns:
- The copied MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
copyMailFolder
public MailFolder copyMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, UserId userId) throws GraphExceptionCopies a mail folder to a standard mailbox folder for a specific user using UserId object.- Parameters:
sourceFolderId- The ID of the source mail folder to copydestinationParentFolder- The standard mailbox folder destinationuserId- The UserId object specifying the user- Returns:
- The copied MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
copyMailFolder
public MailFolder copyMailFolder(String sourceFolderId, String destinationParentFolderId) throws GraphExceptionCopies a mail folder to another folder.- Parameters:
sourceFolderId- The ID of the source mail folder to copydestinationParentFolderId- The ID of the destination parent folder- Returns:
- The copied MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
copyMailFolder
public MailFolder copyMailFolder(String sourceFolderId, String destinationParentFolderId, String userId) throws GraphExceptionCopies a mail folder to another folder for a specific user.- Parameters:
sourceFolderId- The ID of the source mail folder to copydestinationParentFolderId- The ID of the destination parent folderuserId- The ID of the user- Returns:
- The copied MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
copyMailFolder
public MailFolder copyMailFolder(String sourceFolderId, String destinationParentFolderId, UserId userId) throws GraphExceptionCopies a mail folder to another folder for a specific user with all options.- Parameters:
sourceFolderId- The ID of the source mail folder to copydestinationParentFolderId- The ID of the destination parent folderuserId- The UserId object specifying the user- Returns:
- The copied MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
moveMailFolder
public MailFolder moveMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder) throws GraphExceptionMoves a mail folder to a standard mailbox folder.- Parameters:
sourceFolderId- The ID of the source mail folder to movedestinationParentFolder- The standard mailbox folder destination- Returns:
- The moved MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
moveMailFolder
public MailFolder moveMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, String userId) throws GraphExceptionMoves a mail folder to a standard mailbox folder for a specific user.- Parameters:
sourceFolderId- The ID of the source mail folder to movedestinationParentFolder- The standard mailbox folder destinationuserId- The ID of the user- Returns:
- The moved MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
moveMailFolder
public MailFolder moveMailFolder(String sourceFolderId, StandardMailboxFolder destinationParentFolder, UserId userId) throws GraphExceptionMoves a mail folder to a standard mailbox folder for a specific user using UserId object.- Parameters:
sourceFolderId- The ID of the source mail folder to movedestinationParentFolder- The standard mailbox folder destinationuserId- The UserId object specifying the user- Returns:
- The moved MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
moveMailFolder
public MailFolder moveMailFolder(String sourceFolderId, String destinationParentFolderId) throws GraphExceptionMoves a mail folder to another folder.- Parameters:
sourceFolderId- The ID of the source mail folder to movedestinationParentFolderId- The ID of the destination parent folder- Returns:
- The moved MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
moveMailFolder
public MailFolder moveMailFolder(String sourceFolderId, String destinationParentFolderId, String userId) throws GraphExceptionMoves a mail folder to another folder for a specific user.- Parameters:
sourceFolderId- The ID of the source mail folder to movedestinationParentFolderId- The ID of the destination parent folderuserId- The ID of the user- Returns:
- The moved MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
moveMailFolder
public MailFolder moveMailFolder(String sourceFolderId, String destinationParentFolderId, UserId userId) throws GraphExceptionMoves a mail folder to another folder for a specific user with all options.- Parameters:
sourceFolderId- The ID of the source mail folder to movedestinationParentFolderId- The ID of the destination parent folderuserId- The UserId object specifying the user- Returns:
- The moved MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
deleteMailFolder
Deletes a mail folder.- Parameters:
mailFolderId- The ID of the mail folder to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteMailFolder
Deletes a mail folder for a specific user.- Parameters:
mailFolderId- The ID of the mail folder to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteMailFolder
Deletes a mail folder for a specific user using UserId object.- Parameters:
mailFolderId- The ID of the mail folder to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
updateMailFolder
Updates a mail folder.- Parameters:
mailFolder- The MailFolder object with updated properties- Returns:
- The updated MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
updateMailFolder
public MailFolder updateMailFolder(MailFolder mailFolder, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a mail folder.- Parameters:
mailFolder- The MailFolder object with updated propertiespropertyNames- List of property names to update (if null, all modified properties are updated)- Returns:
- The updated MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
updateMailFolder
Updates a mail folder for a specific user.- Parameters:
mailFolder- The MailFolder object with updated propertiesuserId- The ID of the user- Returns:
- The updated MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
updateMailFolder
Updates a mail folder for a specific user using UserId object.- Parameters:
mailFolder- The MailFolder object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
updateMailFolder
public MailFolder updateMailFolder(MailFolder mailFolder, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a mail folder for a specific user with all options.- Parameters:
mailFolder- The MailFolder object with updated propertiespropertyNames- List of property names to update (if null, all modified properties are updated)userId- The UserId object specifying the user- Returns:
- The updated MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMailFolder
Creates a mail folder with a display name.- Parameters:
displayName- The display name of the mail folder- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMailFolder
Creates a mail folder with a display name for a specific user.- Parameters:
displayName- The display name of the mail folderuserId- The ID of the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMailFolder
Creates a mail folder with a display name for a specific user using UserId object.- Parameters:
displayName- The display name of the mail folderuserId- The UserId object specifying the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMailFolder
Creates a mail folder.- Parameters:
mailFolder- The MailFolder object to create- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMailFolder
Creates a mail folder for a specific user.- Parameters:
mailFolder- The MailFolder object to createuserId- The ID of the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMailFolder
Creates a mail folder for a specific user using UserId object.- Parameters:
mailFolder- The MailFolder object to createuserId- The UserId object specifying the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createChildMailFolder
public MailFolder createChildMailFolder(String displayName, String parentFolderId) throws GraphExceptionCreates a child mail folder under a parent folder.- Parameters:
displayName- The display name of the child mail folderparentFolderId- The ID of the parent folder- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createChildMailFolder
public MailFolder createChildMailFolder(String displayName, String parentFolderId, String userId) throws GraphExceptionCreates a child mail folder under a parent folder for a specific user.- Parameters:
displayName- The display name of the child mail folderparentFolderId- The ID of the parent folderuserId- The ID of the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createChildMailFolder
public MailFolder createChildMailFolder(String displayName, String parentFolderId, UserId userId) throws GraphExceptionCreates a child mail folder under a parent folder for a specific user using UserId object.- Parameters:
displayName- The display name of the child mail folderparentFolderId- The ID of the parent folderuserId- The UserId object specifying the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createChildMailFolder
public MailFolder createChildMailFolder(MailFolder mailFolder, String parentFolderId) throws GraphExceptionCreates a child mail folder under a parent folder.- Parameters:
mailFolder- The MailFolder object to createparentFolderId- The ID of the parent folder- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createChildMailFolder
public MailFolder createChildMailFolder(MailFolder mailFolder, String parentFolderId, String userId) throws GraphExceptionCreates a child mail folder under a parent folder for a specific user.- Parameters:
mailFolder- The MailFolder object to createparentFolderId- The ID of the parent folderuserId- The ID of the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createChildMailFolder
public MailFolder createChildMailFolder(MailFolder mailFolder, String parentFolderId, UserId userId) throws GraphExceptionCreates a child mail folder under a parent folder for a specific user with all options.- Parameters:
mailFolder- The MailFolder object to createparentFolderId- The ID of the parent folderuserId- The UserId object specifying the user- Returns:
- The created MailFolder object
- Throws:
GraphException- If an error occurs during the API request
-
createMessageRule
Creates a message rule.- Parameters:
messageRule- The MessageRule object to create- Returns:
- The created MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
createMessageRule
Creates a message rule for a specific user.- Parameters:
messageRule- The MessageRule object to createuserId- The ID of the user- Returns:
- The created MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
createMessageRule
Creates a message rule for a specific user using UserId object.- Parameters:
messageRule- The MessageRule object to createuserId- The UserId object specifying the user- Returns:
- The created MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessageRule
Updates a message rule.- Parameters:
messageRule- The MessageRule object with updated properties- Returns:
- The updated MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessageRule
public MessageRule updateMessageRule(MessageRule messageRule, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a message rule.- Parameters:
messageRule- The MessageRule object with updated propertiespropertyNames- List of property names to update (if null, all modified properties are updated)- Returns:
- The updated MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessageRule
Updates a message rule for a specific user.- Parameters:
messageRule- The MessageRule object with updated propertiesuserId- The ID of the user- Returns:
- The updated MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessageRule
Updates a message rule for a specific user using UserId object.- Parameters:
messageRule- The MessageRule object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
updateMessageRule
public MessageRule updateMessageRule(MessageRule messageRule, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a message rule for a specific user with all options.- Parameters:
messageRule- The MessageRule object with updated propertiespropertyNames- List of property names to update (if null, all modified properties are updated)userId- The UserId object specifying the user- Returns:
- The updated MessageRule object
- Throws:
GraphException- If an error occurs during the API request
-
deleteMessageRule
Deletes a message rule.- Parameters:
messageRuleId- The ID of the message rule to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteMessageRule
Deletes a message rule for a specific user.- Parameters:
messageRuleId- The ID of the message rule to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteMessageRule
Deletes a message rule for a specific user using UserId object.- Parameters:
messageRuleId- The ID of the message rule to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getMessageRules
Gets the list of message rules for the signed-in user.- Returns:
- List of MessageRule objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessageRules
Gets the list of message rules with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MessageRule objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessageRules
Gets the list of message rules for a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of MessageRule objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessageRules
Gets the list of message rules for a specific user using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of MessageRule objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessageRules
Gets the list of message rules for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MessageRule objects
- Throws:
GraphException- If an error occurs during the API request
-
getMessageRules
Gets the list of message rules for a specific user with all options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of MessageRule objects
- Throws:
GraphException- If an error occurs during the API request
-
listMailboxItems
- Throws:
GraphException
-
listMailboxItems
public List<MailboxItem> listMailboxItems(String mailboxId, String folderId, Query query) throws GraphException- Throws:
GraphException
-
getMailboxItem
public MailboxItem getMailboxItem(String mailboxId, String folderId, String itemId) throws GraphException- Throws:
GraphException
-
getMailboxItem
public MailboxItem getMailboxItem(String mailboxId, String folderId, String itemId, Query query) throws GraphException- Throws:
GraphException
-
getMailboxItem
public MailboxItem getMailboxItem(String mailboxId, String folderId, String itemId, List<ExtendedPropertyId> extendedProperties) throws GraphException- Throws:
GraphException
-
getMailboxItem
public MailboxItem getMailboxItem(String mailboxId, String folderId, String itemId, List<ExtendedPropertyId> extendedProperties, Query query) throws GraphException- Throws:
GraphException
-
getExchangeSettings
- Throws:
GraphException
-
getExchangeSettings
- Throws:
GraphException
-
getExchangeSettings
- Throws:
GraphException
-
getMailboxFolders
- Throws:
GraphException
-
getMailboxFolders
- Throws:
GraphException
-
getChildMailboxFolders
public List<MailboxFolder> getChildMailboxFolders(String mailboxId, String parentFolderId) throws GraphException- Throws:
GraphException
-
getChildMailboxFolders
public List<MailboxFolder> getChildMailboxFolders(String mailboxId, String parentFolderId, Query query) throws GraphException- Throws:
GraphException
-
getMailboxFolder
- Throws:
GraphException
-
getMailboxFolder
public MailboxFolder getMailboxFolder(String mailboxId, String folderId, Query query) throws GraphException- Throws:
GraphException
-
createMailboxFolder
public MailboxFolder createMailboxFolder(MailboxFolder folder, String mailboxId) throws GraphException- Throws:
GraphException
-
createChildMailboxFolder
public MailboxFolder createChildMailboxFolder(MailboxFolder folder, String mailboxId, String parentFolderId) throws GraphException- Throws:
GraphException
-
updateMailboxFolder
public MailboxFolder updateMailboxFolder(MailboxFolder folder, String mailboxId) throws GraphException- Throws:
GraphException
-
updateMailboxFolder
public MailboxFolder updateMailboxFolder(MailboxFolder folder, String mailboxId, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
deleteMailboxFolder
- Throws:
GraphException
-
exportItems
public List<ExportItemResponse> exportItems(String mailboxId, List<String> itemIds) throws GraphException- Throws:
GraphException
-
createMailboxImportSession
- Throws:
GraphException
-
importMailboxItem
public void importMailboxItem(MailboxItemImportSession importSession, byte[] content) throws GraphException- Throws:
GraphException
-
importMailboxItem
- Throws:
GraphException
-
getMailboxFolderChanges
- Throws:
GraphException
-
getMailboxFolderChanges
public MailboxFolderChanges getMailboxFolderChanges(String mailboxId, String nextLinkOrDeltaLink) throws GraphException- Throws:
GraphException
-
getMailboxItemChanges
public MailboxItemChanges getMailboxItemChanges(String mailboxId, String folderId) throws GraphException- Throws:
GraphException
-
getMailboxItemChanges
public MailboxItemChanges getMailboxItemChanges(String mailboxId, String folderId, String nextLinkOrDeltaLink) throws GraphException- Throws:
GraphException
-
getInferenceClassificationOverrides
public List<InferenceClassificationOverride> getInferenceClassificationOverrides() throws GraphException- Throws:
GraphException
-
getInferenceClassificationOverrides
public List<InferenceClassificationOverride> getInferenceClassificationOverrides(Query query) throws GraphException- Throws:
GraphException
-
getInferenceClassificationOverrides
public List<InferenceClassificationOverride> getInferenceClassificationOverrides(String userId) throws GraphException- Throws:
GraphException
-
getInferenceClassificationOverrides
public List<InferenceClassificationOverride> getInferenceClassificationOverrides(UserId userId) throws GraphException- Throws:
GraphException
-
getInferenceClassificationOverrides
public List<InferenceClassificationOverride> getInferenceClassificationOverrides(String userId, Query query) throws GraphException- Throws:
GraphException
-
getInferenceClassificationOverrides
public List<InferenceClassificationOverride> getInferenceClassificationOverrides(UserId userId, Query query) throws GraphException- Throws:
GraphException
-
createInferenceClassificationOverride
public InferenceClassificationOverride createInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride) throws GraphException- Throws:
GraphException
-
createInferenceClassificationOverride
public InferenceClassificationOverride createInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, String userId) throws GraphException- Throws:
GraphException
-
createInferenceClassificationOverride
public InferenceClassificationOverride createInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, UserId userId) throws GraphException- Throws:
GraphException
-
updateInferenceClassificationOverride
public InferenceClassificationOverride updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride) throws GraphException- Throws:
GraphException
-
updateInferenceClassificationOverride
public InferenceClassificationOverride updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
updateInferenceClassificationOverride
public InferenceClassificationOverride updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, String userId) throws GraphException- Throws:
GraphException
-
updateInferenceClassificationOverride
public InferenceClassificationOverride updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, UserId userId) throws GraphException- Throws:
GraphException
-
updateInferenceClassificationOverride
public InferenceClassificationOverride updateInferenceClassificationOverride(InferenceClassificationOverride inferenceClassificationOverride, List<String> propertyNames, UserId userId) throws GraphException- Throws:
GraphException
-
deleteInferenceClassificationOverride
public void deleteInferenceClassificationOverride(String inferenceClassificationOverrideId) throws GraphException- Throws:
GraphException
-
deleteInferenceClassificationOverride
public void deleteInferenceClassificationOverride(String inferenceClassificationOverrideId, String userId) throws GraphException- Throws:
GraphException
-
deleteInferenceClassificationOverride
public void deleteInferenceClassificationOverride(String inferenceClassificationOverrideId, UserId userId) throws GraphException- Throws:
GraphException
-
markMessageAsJunk
- Throws:
GraphException
-
markMessageAsJunk
- Throws:
GraphException
-
markMessageAsJunk
- Throws:
GraphException
-
markMessageAsNotJunk
- Throws:
GraphException
-
markMessageAsNotJunk
- Throws:
GraphException
-
markMessageAsNotJunk
- Throws:
GraphException
-
unsubscribe
- Throws:
GraphException
-
unsubscribe
- Throws:
GraphException
-
unsubscribe
- Throws:
GraphException
-
getMailTips
- Throws:
GraphException
-
getMailTips
public List<MailTips> getMailTips(List<String> emailAddresses, List<MailTipsType> mailTipsTypes) throws GraphException- Throws:
GraphException
-
getMailTips
public List<MailTips> getMailTips(List<String> emailAddresses, String userId) throws GraphException- Throws:
GraphException
-
getMailTips
public List<MailTips> getMailTips(List<String> emailAddresses, List<MailTipsType> mailTipsTypes, String userId) throws GraphException- Throws:
GraphException
-
getMailTips
public List<MailTips> getMailTips(List<String> emailAddresses, UserId userId) throws GraphException- Throws:
GraphException
-
getMailTips
public List<MailTips> getMailTips(List<String> emailAddresses, List<MailTipsType> mailTipsTypes, UserId userId) throws GraphException- Throws:
GraphException
-
createMailSearchFolder
public MailSearchFolder createMailSearchFolder(MailSearchFolder mailSearchFolder, String parentFolderId) throws GraphException- Throws:
GraphException
-
createMailSearchFolder
public MailSearchFolder createMailSearchFolder(MailSearchFolder mailSearchFolder, String parentFolderId, String userId) throws GraphException- Throws:
GraphException
-
createMailSearchFolder
public MailSearchFolder createMailSearchFolder(MailSearchFolder mailSearchFolder, String parentFolderId, UserId userId) throws GraphException- Throws:
GraphException
-
getMailSearchFolder
- Throws:
GraphException
-
getMailSearchFolder
public MailSearchFolder getMailSearchFolder(String mailFolderId, String userId) throws GraphException- Throws:
GraphException
-
getMailSearchFolder
public MailSearchFolder getMailSearchFolder(String mailFolderId, UserId userId) throws GraphException- Throws:
GraphException
-
updateListItem
public ListItem updateListItem(String itemId, String listId, String siteId, List<ListItemField> fields) throws GraphException- Throws:
GraphException
-
updateListItem
public ListItem updateListItem(String itemId, String listId, String siteId, List<ListItemField> fields, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteListItem
- Throws:
GraphException
-
deleteListItem
public void deleteListItem(String itemId, String listId, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListItem
- Throws:
GraphException
-
getListItem
public ListItem getListItem(String itemId, String listId, String siteId, Query query) throws GraphException- Throws:
GraphException
-
getListItem
public ListItem getListItem(String itemId, String listId, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListItem
public ListItem getListItem(String itemId, String listId, String siteId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getListItems
- Throws:
GraphException
-
getListItems
public List<ListItem> getListItems(String listId, String siteId, Query query) throws GraphException- Throws:
GraphException
-
getListItems
public List<ListItem> getListItems(String listId, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListItems
public List<ListItem> getListItems(String listId, String siteId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getList
- Throws:
GraphException
-
getList
- Throws:
GraphException
-
getList
- Throws:
GraphException
-
getList
public List getList(String siteId, String listId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
createList
- Throws:
GraphException
-
createList
- Throws:
GraphException
-
createListItem
public ListItem createListItem(ListItem listItem, String listId, String siteId) throws GraphException- Throws:
GraphException
-
createListItem
public ListItem createListItem(ListItem listItem, String listId, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
createColumn
public ColumnDefinition createColumn(ColumnDefinition column, String siteId, String listId) throws GraphException- Throws:
GraphException
-
createColumn
public ColumnDefinition createColumn(ColumnDefinition column, String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getColumns
- Throws:
GraphException
-
getColumns
public List<ColumnDefinition> getColumns(String siteId, String listId, Query query) throws GraphException- Throws:
GraphException
-
getColumns
public List<ColumnDefinition> getColumns(String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getColumns
public List<ColumnDefinition> getColumns(String siteId, String listId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getColumn
public ColumnDefinition getColumn(String siteId, String listId, String columnId) throws GraphException- Throws:
GraphException
-
getColumn
public ColumnDefinition getColumn(String siteId, String listId, String columnId, Query query) throws GraphException- Throws:
GraphException
-
getColumn
public ColumnDefinition getColumn(String siteId, String listId, String columnId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getColumn
public ColumnDefinition getColumn(String siteId, String listId, String columnId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
createSitePage
- Throws:
GraphException
-
createSitePage
public SitePage createSitePage(SitePage page, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getSitePages
- Throws:
GraphException
-
getSitePages
- Throws:
GraphException
-
getSitePages
- Throws:
GraphException
-
getSitePages
public List<SitePage> getSitePages(String siteId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getSites
- Throws:
GraphException
-
getSites
- Throws:
GraphException
-
getSites
- Throws:
GraphException
-
getSites
public List<Site> getSites(String siteId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getSitePermissions
Gets the permissions for a site.- Parameters:
siteId- The ID of the site- Returns:
- List of Permission objects
- Throws:
GraphException- If an error occurs during the API request
-
getSitePermissions
public List<Permission> getSitePermissions(String siteId, ResourceId resourceId) throws GraphExceptionGets the permissions for a site.- Parameters:
siteId- The ID of the siteresourceId- The resource ID- Returns:
- List of Permission objects
- Throws:
GraphException- If an error occurs during the API request
-
getWorkbookSessionId
Gets the workbook session ID used for workbook operations.- Returns:
- The workbook session ID
-
setWorkbookSessionId
Sets the workbook session ID used for workbook operations. When set, a "workbook-session-id" header is added to subsequent requests.- Parameters:
workbookSessionId- The workbook session ID (null to clear)
-
getWorkbookCommentReplies
public List<CommentReply> getWorkbookCommentReplies(String workbookId, String commentId) throws GraphException- Throws:
GraphException
-
getWorkbookCommentReplies
public List<CommentReply> getWorkbookCommentReplies(String workbookId, String commentId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookComments
- Throws:
GraphException
-
getWorkbookComments
public List<Comment> getWorkbookComments(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
calculateWorkbookApplication
- Throws:
GraphException
-
calculateWorkbookApplication
public void calculateWorkbookApplication(String workbookId, CalculationType calculationType) throws GraphException- Throws:
GraphException
-
calculateWorkbookApplication
public void calculateWorkbookApplication(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
calculateWorkbookApplication
public void calculateWorkbookApplication(String workbookId, CalculationType calculationType, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookApplication
- Throws:
GraphException
-
getWorkbookApplication
public WorkbookApplication getWorkbookApplication(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookNamedItems
- Throws:
GraphException
-
getWorkbookNamedItems
- Throws:
GraphException
-
getWorkbookNamedItems
public List<NamedItem> getWorkbookNamedItems(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookNamedItems
public List<NamedItem> getWorkbookNamedItems(String workbookId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getWorkbookCharts
- Throws:
GraphException
-
getWorkbookCharts
public List<Chart> getWorkbookCharts(String workbookId, String worksheetId, Query query) throws GraphException- Throws:
GraphException
-
getWorkbookCharts
public List<Chart> getWorkbookCharts(String workbookId, String worksheetId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookCharts
public List<Chart> getWorkbookCharts(String workbookId, String worksheetId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
createWorkbookChart
public Chart createWorkbookChart(Chart chart, String workbookId, String worksheetId) throws GraphException- Throws:
GraphException
-
createWorkbookChart
public Chart createWorkbookChart(Chart chart, String workbookId, String worksheetId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookChart
public Chart getWorkbookChart(String workbookId, String worksheetId, String chartId) throws GraphException- Throws:
GraphException
-
getWorkbookChart
public Chart getWorkbookChart(String workbookId, String worksheetId, String chartId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookChartImage
public byte[] getWorkbookChartImage(String workbookId, String worksheetId, String chartId) throws GraphException- Throws:
GraphException
-
getWorkbookChartImage
public byte[] getWorkbookChartImage(String workbookId, String worksheetId, String chartId, int width, int height) throws GraphException- Throws:
GraphException
-
getWorkbookChartImage
public byte[] getWorkbookChartImage(String workbookId, String worksheetId, String chartId, int width, int height, ChartFittingMode fittingMode, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
setWorkbookChartPosition
public void setWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell) throws GraphException- Throws:
GraphException
-
setWorkbookChartPosition
public void setWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell, String endCell) throws GraphException- Throws:
GraphException
-
setWorkbookChartPosition
public void setWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
setWorkbookChartPosition
public void setWorkbookChartPosition(String workbookId, String worksheetId, String chartId, String startCell, String endCell, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookTables
- Throws:
GraphException
-
getWorkbookTables
- Throws:
GraphException
-
getWorkbookTables
public List<Table> getWorkbookTables(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorkbookTables
public List<Table> getWorkbookTables(String workbookId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
createWorksheet
- Throws:
GraphException
-
createWorksheet
- Throws:
GraphException
-
createWorksheet
- Throws:
GraphException
-
createWorksheet
public Worksheet createWorksheet(String workbookId, String name, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorksheetCell
public Cell getWorksheetCell(String workbookId, String worksheetId, int row, int column) throws GraphException- Throws:
GraphException
-
getWorksheetCell
public Cell getWorksheetCell(String workbookId, String worksheetId, int row, int column, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorksheetUsedRange
- Throws:
GraphException
-
getWorksheetUsedRange
public Range getWorksheetUsedRange(String workbookId, String worksheetId, boolean valuesOnly) throws GraphException- Throws:
GraphException
-
getWorksheetUsedRange
public Range getWorksheetUsedRange(String workbookId, String worksheetId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorksheetUsedRange
public Range getWorksheetUsedRange(String workbookId, String worksheetId, boolean valuesOnly, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorksheet
- Throws:
GraphException
-
getWorksheet
public Worksheet getWorksheet(String workbookId, String worksheetId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorksheets
- Throws:
GraphException
-
getWorksheets
- Throws:
GraphException
-
getWorksheets
public List<Worksheet> getWorksheets(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getWorksheets
public List<Worksheet> getWorksheets(String workbookId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
createWorkbookSession
- Throws:
GraphException
-
createWorkbookSession
public WorkbookSessionInfo createWorkbookSession(String workbookId, boolean persistChanges) throws GraphException- Throws:
GraphException
-
createWorkbookSession
public WorkbookSessionInfo createWorkbookSession(String workbookId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
createWorkbookSession
public WorkbookSessionInfo createWorkbookSession(String workbookId, boolean persistChanges, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
refreshWorkbookSession
- Throws:
GraphException
-
refreshWorkbookSession
- Throws:
GraphException
-
refreshWorkbookSession
- Throws:
GraphException
-
refreshWorkbookSession
public void refreshWorkbookSession(String workbookId, String sessionId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
closeWorkbookSession
- Throws:
GraphException
-
closeWorkbookSession
- Throws:
GraphException
-
closeWorkbookSession
- Throws:
GraphException
-
closeWorkbookSession
public void closeWorkbookSession(String workbookId, String sessionId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
updateColumn
- Throws:
GraphException
-
updateColumn
public ColumnDefinition updateColumn(ColumnDefinition column, String siteId, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
updateColumn
public ColumnDefinition updateColumn(ColumnDefinition column, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
updateListColumn
public ColumnDefinition updateListColumn(ColumnDefinition column, String siteId, String listId) throws GraphException- Throws:
GraphException
-
updateListColumn
public ColumnDefinition updateListColumn(ColumnDefinition column, String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteColumn
- Throws:
GraphException
-
deleteColumn
public void deleteColumn(String columnId, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteListColumn
- Throws:
GraphException
-
deleteListColumn
public void deleteListColumn(String columnId, String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
updateList
- Throws:
GraphException
-
updateList
- Throws:
GraphException
-
updateList
- Throws:
GraphException
-
deleteList
- Throws:
GraphException
-
deleteList
- Throws:
GraphException
-
getSitePage
- Throws:
GraphException
-
getSitePage
- Throws:
GraphException
-
getSitePage
public SitePage getSitePage(String siteId, String pageId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getSitePage
public SitePage getSitePage(String siteId, String pageId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
updateSitePage
- Throws:
GraphException
-
updateSitePage
public SitePage updateSitePage(SitePage page, String siteId, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
updateSitePage
public SitePage updateSitePage(SitePage page, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteSitePage
- Throws:
GraphException
-
deleteSitePage
public void deleteSitePage(String siteId, String pageId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
publishSitePage
- Throws:
GraphException
-
publishSitePage
public void publishSitePage(String siteId, String pageId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getSiteByPath
- Throws:
GraphException
-
getSiteByPath
- Throws:
GraphException
-
searchSites
- Throws:
GraphException
-
searchSites
- Throws:
GraphException
-
getContentTypes
- Throws:
GraphException
-
getContentTypes
- Throws:
GraphException
-
getContentTypes
public List<ContentType> getContentTypes(String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListContentTypes
- Throws:
GraphException
-
getListContentTypes
public List<ContentType> getListContentTypes(String siteId, String listId, Query query) throws GraphException- Throws:
GraphException
-
getListContentTypes
public List<ContentType> getListContentTypes(String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getContentType
- Throws:
GraphException
-
getContentType
public ContentType getContentType(String siteId, String contentTypeId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListContentType
public ContentType getListContentType(String siteId, String listId, String contentTypeId) throws GraphException- Throws:
GraphException
-
getListContentType
public ContentType getListContentType(String siteId, String listId, String contentTypeId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
createContentType
- Throws:
GraphException
-
createContentType
public ContentType createContentType(ContentType contentType, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
createListContentType
public ContentType createListContentType(ContentType contentType, String siteId, String listId) throws GraphException- Throws:
GraphException
-
createListContentType
public ContentType createListContentType(ContentType contentType, String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
updateContentType
- Throws:
GraphException
-
updateContentType
public ContentType updateContentType(ContentType contentType, String siteId, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
updateContentType
public ContentType updateContentType(ContentType contentType, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
updateListContentType
public ContentType updateListContentType(ContentType contentType, String siteId, String listId) throws GraphException- Throws:
GraphException
-
updateListContentType
public ContentType updateListContentType(ContentType contentType, String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteContentType
- Throws:
GraphException
-
deleteContentType
public void deleteContentType(String contentTypeId, String siteId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteListContentType
public void deleteListContentType(String contentTypeId, String siteId, String listId) throws GraphException- Throws:
GraphException
-
deleteListContentType
public void deleteListContentType(String contentTypeId, String siteId, String listId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
publishContentType
- Throws:
GraphException
-
publishContentType
public void publishContentType(String siteId, String contentTypeId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
unpublishContentType
- Throws:
GraphException
-
unpublishContentType
public void unpublishContentType(String siteId, String contentTypeId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
associateContentTypeWithHubSites
public void associateContentTypeWithHubSites(String siteId, String contentTypeId, List<String> hubSiteUrls, boolean propagateToExistingLists) throws GraphException- Throws:
GraphException
-
associateContentTypeWithHubSites
public void associateContentTypeWithHubSites(String siteId, String contentTypeId, List<String> hubSiteUrls, boolean propagateToExistingLists, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
isContentTypePublished
- Throws:
GraphException
-
isContentTypePublished
public boolean isContentTypePublished(String siteId, String contentTypeId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListItemVersions
public List<ListItemVersion> getListItemVersions(String siteId, String listId, String itemId) throws GraphException- Throws:
GraphException
-
getListItemVersions
public List<ListItemVersion> getListItemVersions(String siteId, String listId, String itemId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getListItemActivities
public List<ItemActivityStat> getListItemActivities(String siteId, String listId, String itemId, Date startDateTime, Date endDateTime, ActivityInterval interval) throws GraphException- Throws:
GraphException
-
getListItemActivities
public List<ItemActivityStat> getListItemActivities(String siteId, String listId, String itemId, Date startDateTime, Date endDateTime, ActivityInterval interval, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getDocumentSetVersions
public List<DocumentSetVersion> getDocumentSetVersions(String siteId, String listId, String itemId) throws GraphException- Throws:
GraphException
-
getDocumentSetVersions
public List<DocumentSetVersion> getDocumentSetVersions(String siteId, String listId, String itemId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
createDocumentSetVersion
public DocumentSetVersion createDocumentSetVersion(DocumentSetVersion documentSetVersion, String siteId, String listId, String itemId) throws GraphException- Throws:
GraphException
-
createDocumentSetVersion
public DocumentSetVersion createDocumentSetVersion(DocumentSetVersion documentSetVersion, String siteId, String listId, String itemId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getSitePermission
- Throws:
GraphException
-
getSitePermission
public Permission getSitePermission(String siteId, String permissionId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
createSitePermission
public Permission createSitePermission(String siteId, List<String> roles, String applicationId, String applicationDisplayName) throws GraphException- Throws:
GraphException
-
createSitePermission
public Permission createSitePermission(String siteId, List<String> roles, String applicationId, String applicationDisplayName, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
updateSitePermission
public Permission updateSitePermission(String siteId, String permissionId, List<String> roles) throws GraphException- Throws:
GraphException
-
updateSitePermission
public Permission updateSitePermission(String siteId, String permissionId, List<String> roles, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
deleteSitePermission
- Throws:
GraphException
-
deleteSitePermission
public void deleteSitePermission(String siteId, String permissionId, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
grantSitePermission
public List<Permission> grantSitePermission(String siteId, String permissionId, List<String> roles) throws GraphException- Throws:
GraphException
-
grantSitePermission
public List<Permission> grantSitePermission(String siteId, String permissionId, List<String> roles, ResourceId resourceId) throws GraphException- Throws:
GraphException
-
getLists
- Throws:
GraphException
-
getLists
- Throws:
GraphException
-
getLists
- Throws:
GraphException
-
getLists
public List<List> getLists(String siteId, ResourceId resourceId, Query query) throws GraphException- Throws:
GraphException
-
getRootSites
- Throws:
GraphException
-
getRootSites
- Throws:
GraphException
-
getFollowedSites
- Throws:
GraphException
-
getFollowedSites
- Throws:
GraphException
-
getFollowedSites
- Throws:
GraphException
-
getFollowedSites
- Throws:
GraphException
-
getSite
- Throws:
GraphException
-
getSite
- Throws:
GraphException
-
getSite
- Throws:
GraphException
-
getSite
- Throws:
GraphException
-
getSitePageWebParts
- Throws:
GraphException
-
getSitePageWebParts
public List<WebPart> getSitePageWebParts(String siteId, String sitePageId, Query query) throws GraphException- Throws:
GraphException
-
createSubscription
- Throws:
GraphException
-
getSubscriptions
- Throws:
GraphException
-
getSubscriptions
- Throws:
GraphException
-
getSubscription
- Throws:
GraphException
-
deleteSubscription
- Throws:
GraphException
-
updateSubscription
- Throws:
GraphException
-
createTeam
Creates a new team and returns the team ID.- Parameters:
team- The Team object to create- Returns:
- The ID of the created team (retrieved from Location header)
- Throws:
GraphException- If an error occurs during the API request
-
createTeamFromGroup
Creates a new team from an existing Microsoft 365 group.- Parameters:
team- The Team object to creategroupId- The ID of the Microsoft 365 group- Returns:
- The created Team object
- Throws:
GraphException- If an error occurs during the API request
-
updateTeam
Updates a team.- Parameters:
team- The Team object with updated properties (must have ID set)- Throws:
GraphException- If an error occurs during the API request
-
updateTeam
Updates specific properties of a team.- Parameters:
team- The Team object with updated properties (must have ID set)propertyNames- List of property names to update (if null, all modified properties are updated)- Throws:
GraphException- If an error occurs during the API request
-
deleteTeam
Deletes a team.Deleting a team deletes its underlying group. See Microsoft Graph API documentation
- Parameters:
teamId- The ID of the team to delete- Throws:
GraphException- If an error occurs during the API request
-
getUserPresence
Gets the presence information for the authenticated user.- Returns:
- The Presence information
- Throws:
GraphException- If an error occurs during the API request
-
getUserPresence
Gets the presence information for a specific user.- Parameters:
userId- The user ID or user principal name- Returns:
- The Presence information
- Throws:
GraphException- If an error occurs during the API request
-
getUserPresence
Gets the presence information for a specific user.- Parameters:
userId- The user ID object- Returns:
- The Presence information
- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity) throws GraphExceptionSets the authenticated user's presence information.- Parameters:
sessionId- A unique ID for the session (use the client ID as the session ID)availability- The availability statusactivity- The activity type- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, Duration expirationDuration) throws GraphExceptionSets the authenticated user's presence information with an expiration duration.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability statusactivity- The activity typeexpirationDuration- The duration after which the presence expires- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, String userId) throws GraphExceptionSets a specific user's presence information.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability statusactivity- The activity typeuserId- The user ID or user principal name- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, Duration expirationDuration, String userId) throws GraphExceptionSets a specific user's presence information with an expiration duration.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability statusactivity- The activity typeexpirationDuration- The duration after which the presence expiresuserId- The user ID or user principal name- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, UserId userId) throws GraphExceptionSets a specific user's presence information.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability statusactivity- The activity typeuserId- The user ID object- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, PresenceAvailability availability, PresenceActivity activity, Duration expirationDuration, UserId userId) throws GraphExceptionSets a specific user's presence information with an expiration duration.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability statusactivity- The activity typeexpirationDuration- The duration after which the presence expiresuserId- The user ID object- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, String availability, String activity) throws GraphExceptionSets the authenticated user's presence information using string values.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability status as a stringactivity- The activity type as a string- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, String availability, String activity, Duration expirationDuration) throws GraphExceptionSets the authenticated user's presence information with expiration using string values.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability status as a stringactivity- The activity type as a stringexpirationDuration- The duration after which the presence expires- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, String availability, String activity, String userId) throws GraphExceptionSets a specific user's presence information using string values.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability status as a stringactivity- The activity type as a stringuserId- The user ID or user principal name- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, String availability, String activity, Duration expirationDuration, String userId) throws GraphExceptionSets a specific user's presence information with expiration using string values.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability status as a stringactivity- The activity type as a stringexpirationDuration- The duration after which the presence expiresuserId- The user ID or user principal name- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, String availability, String activity, UserId userId) throws GraphExceptionSets a specific user's presence information using string values.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability status as a stringactivity- The activity type as a stringuserId- The user ID object- Throws:
GraphException- If an error occurs during the API request
-
setUserPresence
public void setUserPresence(String sessionId, String availability, String activity, Duration expirationDuration, UserId userId) throws GraphExceptionSets a specific user's presence information with expiration using string values.- Parameters:
sessionId- A unique ID for the sessionavailability- The availability status as a stringactivity- The activity type as a stringexpirationDuration- The duration after which the presence expiresuserId- The user ID object- Throws:
GraphException- If an error occurs during the API request
-
getTeams
Gets a list of all teams.- Returns:
- GetTeamsResponse containing the list of teams and pagination information
- Throws:
GraphException- If an error occurs during the API request
-
getTeams
Gets a list of teams using a nextLink for pagination.- Parameters:
nextLink- The nextLink URL from a previous response (if null, gets the first page)- Returns:
- GetTeamsResponse containing the list of teams and pagination information
- Throws:
GraphException- If an error occurs during the API request
-
addTeamMember
public ConversationMember addTeamMember(String teamId, ConversationMember member) throws GraphExceptionAdds a member to a team.- Parameters:
teamId- The ID of the teammember- The ConversationMember object to add- Returns:
- The added ConversationMember object
- Throws:
GraphException- If an error occurs during the API request
-
updateTeamMember
public ConversationMember updateTeamMember(String teamId, ConversationMember member) throws GraphExceptionUpdates a team member's properties.- Parameters:
teamId- The ID of the teammember- The ConversationMember object with updated properties (must have ID set)- Returns:
- The updated ConversationMember object
- Throws:
GraphException- If an error occurs during the API request
-
getTeamMember
Gets a specific team member.- Parameters:
teamId- The ID of the teammemberId- The ID of the member- Returns:
- The ConversationMember object
- Throws:
GraphException- If an error occurs during the API request
-
deleteTeamMember
Removes a member from a team.- Parameters:
teamId- The ID of the teammemberId- The ID of the member to remove- Throws:
GraphException- If an error occurs during the API request
-
getJoinedTeams
Gets the list of teams that the signed-in user is a member of.- Returns:
- List of Team objects
- Throws:
GraphException- If an error occurs during the API request
-
getJoinedTeams
Gets the list of teams that a specific user is a member of.- Parameters:
userId- The ID of the user- Returns:
- List of Team objects
- Throws:
GraphException- If an error occurs during the API request
-
getJoinedTeams
Gets the list of teams that a specific user is a member of using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of Team objects
- Throws:
GraphException- If an error occurs during the API request
-
getTeam
Gets a specific team by ID.- Parameters:
teamId- The ID of the team- Returns:
- The Team object
- Throws:
GraphException- If an error occurs during the API request
-
getTeam
Gets a specific team by ID with query options.- Parameters:
teamId- The ID of the teamquery- Optional Query object for expanding, selecting properties- Returns:
- The Team object
- Throws:
GraphException- If an error occurs during the API request
-
getTeamMembers
Gets the list of members in a team.- Parameters:
teamId- The ID of the team- Returns:
- List of ConversationMember objects
- Throws:
GraphException- If an error occurs during the API request
-
getTeamMembers
Gets the list of members in a team with query options.- Parameters:
teamId- The ID of the teamquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ConversationMember objects
- Throws:
GraphException- If an error occurs during the API request
-
createOnlineMeeting
- Throws:
GraphException
-
createOnlineMeeting
public OnlineMeeting createOnlineMeeting(OnlineMeeting onlineMeeting, String userId) throws GraphException- Throws:
GraphException
-
createOnlineMeeting
public OnlineMeeting createOnlineMeeting(OnlineMeeting onlineMeeting, UserId userId) throws GraphException- Throws:
GraphException
-
updateOnlineMeeting
- Throws:
GraphException
-
updateOnlineMeeting
public OnlineMeeting updateOnlineMeeting(OnlineMeeting onlineMeeting, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
updateOnlineMeeting
public OnlineMeeting updateOnlineMeeting(OnlineMeeting onlineMeeting, String userId) throws GraphException- Throws:
GraphException
-
updateOnlineMeeting
public OnlineMeeting updateOnlineMeeting(OnlineMeeting onlineMeeting, UserId userId) throws GraphException- Throws:
GraphException
-
updateOnlineMeeting
public OnlineMeeting updateOnlineMeeting(OnlineMeeting onlineMeeting, List<String> propertyNames, UserId userId) throws GraphException- Throws:
GraphException
-
deleteOnlineMeeting
- Throws:
GraphException
-
deleteOnlineMeeting
- Throws:
GraphException
-
deleteOnlineMeeting
- Throws:
GraphException
-
getOnlineMeeting
- Throws:
GraphException
-
getOnlineMeeting
- Throws:
GraphException
-
getOnlineMeeting
- Throws:
GraphException
-
getOnlineMeetingRecordings
public List<CallRecording> getOnlineMeetingRecordings(String onlineMeetingId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingRecordings
public List<CallRecording> getOnlineMeetingRecordings(String onlineMeetingId, String userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingRecordings
public List<CallRecording> getOnlineMeetingRecordings(String onlineMeetingId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingRecording
public CallRecording getOnlineMeetingRecording(String onlineMeetingId, String recordingId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingRecording
public CallRecording getOnlineMeetingRecording(String onlineMeetingId, String recordingId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingRecordingContent
public byte[] getOnlineMeetingRecordingContent(String onlineMeetingId, String recordingId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingRecordingContent
public byte[] getOnlineMeetingRecordingContent(String onlineMeetingId, String recordingId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscripts
public List<CallTranscript> getOnlineMeetingTranscripts(String onlineMeetingId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscripts
public List<CallTranscript> getOnlineMeetingTranscripts(String onlineMeetingId, String userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscripts
public List<CallTranscript> getOnlineMeetingTranscripts(String onlineMeetingId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscript
public CallTranscript getOnlineMeetingTranscript(String onlineMeetingId, String transcriptId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscript
public CallTranscript getOnlineMeetingTranscript(String onlineMeetingId, String transcriptId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscriptContent
public byte[] getOnlineMeetingTranscriptContent(String onlineMeetingId, String transcriptId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingTranscriptContent
public byte[] getOnlineMeetingTranscriptContent(String onlineMeetingId, String transcriptId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingAttendanceReports
public List<MeetingAttendanceReport> getOnlineMeetingAttendanceReports(String onlineMeetingId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingAttendanceReports
public List<MeetingAttendanceReport> getOnlineMeetingAttendanceReports(String onlineMeetingId, String userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingAttendanceReports
public List<MeetingAttendanceReport> getOnlineMeetingAttendanceReports(String onlineMeetingId, UserId userId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingAttendanceReport
public MeetingAttendanceReport getOnlineMeetingAttendanceReport(String onlineMeetingId, String reportId) throws GraphException- Throws:
GraphException
-
getOnlineMeetingAttendanceReport
public MeetingAttendanceReport getOnlineMeetingAttendanceReport(String onlineMeetingId, String reportId, UserId userId) throws GraphException- Throws:
GraphException
-
getCallRecords
- Throws:
GraphException
-
getCallRecords
- Throws:
GraphException
-
getCallRecords
- Throws:
GraphException
-
getCallRecord
- Throws:
GraphException
-
getCallRecord
- Throws:
GraphException
-
createCall
- Throws:
GraphException
-
getCall
- Throws:
GraphException
-
getCall
- Throws:
GraphException
-
deleteCall
- Throws:
GraphException
-
getCallParticipants
- Throws:
GraphException
-
answerCall
public void answerCall(String callId, String callbackUri, List<Modality> acceptedModalities, MediaConfig mediaConfig) throws GraphException- Throws:
GraphException
-
rejectCall
- Throws:
GraphException
-
redirectCall
public void redirectCall(String callId, List<InvitationParticipantInfo> targets) throws GraphException- Throws:
GraphException
-
transferCall
public void transferCall(String callId, InvitationParticipantInfo transferTarget) throws GraphException- Throws:
GraphException
-
muteCall
- Throws:
GraphException
-
unmuteCall
- Throws:
GraphException
-
playPrompt
public CommsOperation playPrompt(String callId, List<MediaPrompt> prompts, String clientContext) throws GraphException- Throws:
GraphException
-
recordResponse
public RecordOperation recordResponse(String callId, List<MediaPrompt> prompts, String clientContext) throws GraphException- Throws:
GraphException
-
inviteParticipants
public CommsOperation inviteParticipants(String callId, List<InvitationParticipantInfo> participants, String clientContext) throws GraphException- Throws:
GraphException
-
removeParticipant
- Throws:
GraphException
-
getTeamChannels
Gets the list of channels in a team.- Parameters:
teamId- The ID of the team- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getTeamChannels
Gets the list of channels in a team with query options.- Parameters:
teamId- The ID of the teamquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getChats
Gets the list of chats that the signed-in user is part of.- Returns:
- List of Chat objects
- Throws:
GraphException- If an error occurs during the API request
-
getChats
Gets the list of chats with query options.- Parameters:
query- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Chat objects
- Throws:
GraphException- If an error occurs during the API request
-
getChats
Gets the list of chats for a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of Chat objects
- Throws:
GraphException- If an error occurs during the API request
-
getChats
Gets the list of chats for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Chat objects
- Throws:
GraphException- If an error occurs during the API request
-
getChats
Gets the list of chats for a specific user using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of Chat objects
- Throws:
GraphException- If an error occurs during the API request
-
getChats
Gets the list of chats for a specific user with all options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Chat objects
- Throws:
GraphException- If an error occurs during the API request
-
getAllChannels
Gets the list of all channels in a team (including private and shared channels).- Parameters:
teamId- The ID of the team- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getAllChannels
Gets the list of all channels in a team with query options.- Parameters:
teamId- The ID of the teamquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getIncomingChannels
Gets the list of incoming channels (channels shared with the team from other teams).- Parameters:
teamId- The ID of the team- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getIncomingChannels
Gets the list of incoming channels with query options.- Parameters:
teamId- The ID of the teamquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannels
Gets the list of channels in a team.- Parameters:
teamId- The ID of the team- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannels
Gets the list of channels in a team with query options.- Parameters:
teamId- The ID of the teamquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of Channel objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannel
Gets a specific channel in a team.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channel- Returns:
- The Channel object
- Throws:
GraphException- If an error occurs during the API request
-
createChannel
Creates a new channel in a team.- Parameters:
teamId- The ID of the teamchannel- The Channel object to create- Returns:
- The created Channel object
- Throws:
GraphException- If an error occurs during the API request
-
updateChannel
Updates a channel's properties.- Parameters:
teamId- The ID of the teamchannel- The Channel object with updated properties (must have ID set)- Returns:
- The updated Channel object
- Throws:
GraphException- If an error occurs during the API request
-
updateChannel
public Channel updateChannel(String teamId, Channel channel, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a channel.- Parameters:
teamId- The ID of the teamchannel- The Channel object with updated properties (must have ID set)propertyNames- List of property names to update (if null, all modified properties are updated)- Returns:
- The updated Channel object
- Throws:
GraphException- If an error occurs during the API request
-
deleteChannel
Deletes a channel from a team.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channel to delete- Throws:
GraphException- If an error occurs during the API request
-
getChannelMembers
public List<ConversationMember> getChannelMembers(String teamId, String channelId) throws GraphExceptionGets the list of members in a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channel- Returns:
- List of ConversationMember objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMembers
public List<ConversationMember> getChannelMembers(String teamId, String channelId, Query query) throws GraphExceptionGets the list of members in a channel with query options.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ConversationMember objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMember
public ConversationMember getChannelMember(String teamId, String channelId, String memberId) throws GraphExceptionGets a specific member of a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmemberId- The ID of the member- Returns:
- The ConversationMember object
- Throws:
GraphException- If an error occurs during the API request
-
addChannelMember
public ConversationMember addChannelMember(String teamId, String channelId, ConversationMember member) throws GraphExceptionAdds a member to a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmember- The ConversationMember object to add- Returns:
- The added ConversationMember object
- Throws:
GraphException- If an error occurs during the API request
-
deleteChannelMember
public void deleteChannelMember(String teamId, String channelId, String memberId) throws GraphExceptionRemoves a member from a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmemberId- The ID of the member to remove- Throws:
GraphException- If an error occurs during the API request
-
getChannelMessages
Gets the list of messages in a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channel- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMessages
public List<ChatMessage> getChannelMessages(String teamId, String channelId, Query query) throws GraphExceptionGets the list of messages in a channel with query options.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMessage
public ChatMessage getChannelMessage(String teamId, String channelId, String messageId) throws GraphExceptionGets a specific message from a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessageId- The ID of the message- Returns:
- The ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMessageReplies
public List<ChatMessage> getChannelMessageReplies(String teamId, String channelId, String messageId) throws GraphExceptionGets the list of replies to a message in a channel.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessageId- The ID of the parent message- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMessageReplies
public List<ChatMessage> getChannelMessageReplies(String teamId, String channelId, String messageId, Query query) throws GraphExceptionGets the list of replies to a message in a channel with query options.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessageId- The ID of the parent messagequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChannelMessageReply
public ChatMessage getChannelMessageReply(String teamId, String channelId, String messageId, String replyId) throws GraphExceptionGets a specific reply to a channel message.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessageId- The ID of the parent messagereplyId- The ID of the reply message- Returns:
- The ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
getAllMessagesFromAllChats
Gets all messages from all chats for a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getAllMessagesFromAllChats
public List<ChatMessage> getAllMessagesFromAllChats(String userId, Query query) throws GraphExceptionGets all messages from all chats for a specific user with query options.- Parameters:
userId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getAllMessagesFromAllChats
Gets all messages from all chats for a specific user using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getAllMessagesFromAllChats
public List<ChatMessage> getAllMessagesFromAllChats(UserId userId, Query query) throws GraphExceptionGets all messages from all chats for a specific user with all options.- Parameters:
userId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessages
Gets the list of messages in a chat.- Parameters:
chatId- The ID of the chat- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessages
Gets the list of messages in a chat with query options.- Parameters:
chatId- The ID of the chatquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessages
Gets the list of messages in a chat for a specific user.- Parameters:
chatId- The ID of the chatuserId- The ID of the user- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessages
public List<ChatMessage> getChatMessages(String chatId, String userId, Query query) throws GraphExceptionGets the list of messages in a chat for a specific user with query options.- Parameters:
chatId- The ID of the chatuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessages
Gets the list of messages in a chat for a specific user using UserId object.- Parameters:
chatId- The ID of the chatuserId- The UserId object specifying the user- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessages
public List<ChatMessage> getChatMessages(String chatId, UserId userId, Query query) throws GraphExceptionGets the list of messages in a chat with all options.- Parameters:
chatId- The ID of the chatuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessage
Gets a specific message from a chat.- Parameters:
chatId- The ID of the chatmessageId- The ID of the message- Returns:
- The ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessage
public ChatMessage getChatMessage(String chatId, String messageId, String userId) throws GraphExceptionGets a specific message from a chat for a specific user.- Parameters:
chatId- The ID of the chatmessageId- The ID of the messageuserId- The ID of the user- Returns:
- The ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessage
public ChatMessage getChatMessage(String chatId, String messageId, UserId userId) throws GraphExceptionGets a specific message from a chat using UserId object.- Parameters:
chatId- The ID of the chatmessageId- The ID of the messageuserId- The UserId object specifying the user- Returns:
- The ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReplies
public List<ChatMessage> getChatMessageReplies(String chatId, String messageId) throws GraphExceptionGets the list of replies to a message in a chat.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent message- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReplies
public List<ChatMessage> getChatMessageReplies(String chatId, String messageId, Query query) throws GraphExceptionGets the list of replies to a message in a chat with query options.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messagequery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReplies
public List<ChatMessage> getChatMessageReplies(String chatId, String messageId, String userId) throws GraphExceptionGets the list of replies to a message in a chat for a specific user.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messageuserId- The ID of the user- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReplies
public List<ChatMessage> getChatMessageReplies(String chatId, String messageId, String userId, Query query) throws GraphExceptionGets the list of replies to a message in a chat for a specific user with query options.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messageuserId- The ID of the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReplies
public List<ChatMessage> getChatMessageReplies(String chatId, String messageId, UserId userId) throws GraphExceptionGets the list of replies to a message in a chat using UserId object.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messageuserId- The UserId object specifying the user- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReplies
public List<ChatMessage> getChatMessageReplies(String chatId, String messageId, UserId userId, Query query) throws GraphExceptionGets the list of replies to a message in a chat with all options.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messageuserId- The UserId object specifying the userquery- Optional Query object for filtering, selecting, ordering, expanding, or paging results- Returns:
- List of ChatMessage objects
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReply
public ChatMessage getChatMessageReply(String chatId, String messageId, String replyId) throws GraphExceptionGets a specific reply to a message in a chat.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messagereplyId- The ID of the reply message- Returns:
- The ChatMessage object representing the reply
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReply
public ChatMessage getChatMessageReply(String chatId, String messageId, String replyId, String userId) throws GraphExceptionGets a specific reply to a message in a chat for a specific user.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messagereplyId- The ID of the reply messageuserId- The ID of the user- Returns:
- The ChatMessage object representing the reply
- Throws:
GraphException- If an error occurs during the API request
-
getChatMessageReply
public ChatMessage getChatMessageReply(String chatId, String messageId, String replyId, UserId userId) throws GraphExceptionGets a specific reply to a message in a chat using UserId object.- Parameters:
chatId- The ID of the chatmessageId- The ID of the parent messagereplyId- The ID of the reply messageuserId- The UserId object specifying the user- Returns:
- The ChatMessage object representing the reply
- Throws:
GraphException- If an error occurs during the API request
-
sendChatMessage
Sends a new message to a chat using a plain text message.- Parameters:
chatId- The ID of the chatmessage- The text content of the message to send- Returns:
- The created ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
sendChatMessage
Sends a new message to a chat using a ChatMessage object.- Parameters:
chatId- The ID of the chatmessage- The ChatMessage object containing the message details to send- Returns:
- The created ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
sendChatMessage
public ChatMessage sendChatMessage(String teamId, String channelId, String message) throws GraphExceptionSends a new message to a team channel using a plain text message.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessage- The text content of the message to send- Returns:
- The created ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
sendChannelMessage
public ChatMessage sendChannelMessage(String teamId, String channelId, ChatMessage message) throws GraphExceptionSends a new message to a team channel using a ChatMessage object.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessage- The ChatMessage object containing the message details to send- Returns:
- The created ChatMessage object
- Throws:
GraphException- If an error occurs during the API request
-
sendChannelMessageReply
public ChatMessage sendChannelMessageReply(String teamId, String channelId, String messageId, String replyMessage) throws GraphExceptionSends a reply to a message in a team channel using a plain text message.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessageId- The ID of the parent message to reply toreplyMessage- The text content of the reply message to send- Returns:
- The created ChatMessage object representing the reply
- Throws:
GraphException- If an error occurs during the API request
-
sendChannelMessageReply
public ChatMessage sendChannelMessageReply(String teamId, String channelId, String messageId, ChatMessage replyMessage) throws GraphExceptionSends a reply to a message in a team channel using a ChatMessage object.- Parameters:
teamId- The ID of the teamchannelId- The ID of the channelmessageId- The ID of the parent message to reply toreplyMessage- The ChatMessage object containing the reply message details to send- Returns:
- The created ChatMessage object representing the reply
- Throws:
GraphException- If an error occurs during the API request
-
createChat
Creates a new chat.- Parameters:
chat- The Chat object containing the chat details to create- Returns:
- The created Chat object with the assigned chat ID
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTaskLists
Gets the list of todo task lists for the current user.- Returns:
- List of TodoTaskList objects
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTaskLists
Gets the list of todo task lists for a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of TodoTaskList objects
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTaskLists
Gets the list of todo task lists using UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of TodoTaskList objects
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTaskList
Gets a specific todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task list- Returns:
- The TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTaskList
Gets a specific todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task listuserId- The ID of the user- Returns:
- The TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTaskList
Gets a specific todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task listuserId- The UserId object specifying the user- Returns:
- The TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
createTodoTaskList
Creates a new todo task list for the current user.- Parameters:
todoTaskList- The TodoTaskList object to create- Returns:
- The created TodoTaskList object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
createTodoTaskList
public TodoTaskList createTodoTaskList(TodoTaskList todoTaskList, String userId) throws GraphExceptionCreates a new todo task list for a specific user.- Parameters:
todoTaskList- The TodoTaskList object to createuserId- The ID of the user- Returns:
- The created TodoTaskList object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
createTodoTaskList
public TodoTaskList createTodoTaskList(TodoTaskList todoTaskList, UserId userId) throws GraphExceptionCreates a new todo task list using UserId object.- Parameters:
todoTaskList- The TodoTaskList object to createuserId- The UserId object specifying the user- Returns:
- The created TodoTaskList object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTaskList
Updates a todo task list for the current user.- Parameters:
todoTaskList- The TodoTaskList object with updated properties- Returns:
- The updated TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTaskList
public TodoTaskList updateTodoTaskList(TodoTaskList todoTaskList, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a todo task list for the current user.- Parameters:
todoTaskList- The TodoTaskList object with updated propertiespropertyNames- List of property names to update- Returns:
- The updated TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTaskList
public TodoTaskList updateTodoTaskList(TodoTaskList todoTaskList, String userId) throws GraphExceptionUpdates a todo task list for a specific user.- Parameters:
todoTaskList- The TodoTaskList object with updated propertiesuserId- The ID of the user- Returns:
- The updated TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTaskList
public TodoTaskList updateTodoTaskList(TodoTaskList todoTaskList, UserId userId) throws GraphExceptionUpdates a todo task list using UserId object.- Parameters:
todoTaskList- The TodoTaskList object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTaskList
public TodoTaskList updateTodoTaskList(TodoTaskList todoTaskList, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a todo task list with all options.- Parameters:
todoTaskList- The TodoTaskList object with updated propertiespropertyNames- List of property names to updateuserId- The UserId object specifying the user- Returns:
- The updated TodoTaskList object
- Throws:
GraphException- If an error occurs during the API request
-
deleteTodoTaskList
Deletes a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task list to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteTodoTaskList
Deletes a todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task list to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteTodoTaskList
Deletes a todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task list to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getTodoTasks
Gets the list of tasks in a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task list- Returns:
- List of TodoTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTasks
Gets the list of tasks in a todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task listuserId- The ID of the user- Returns:
- List of TodoTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTasks
Gets the list of tasks in a todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task listuserId- The UserId object specifying the user- Returns:
- List of TodoTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTask
Gets a specific task from a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTaskId- The ID of the task- Returns:
- The TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTask
public TodoTask getTodoTask(String todoTaskListId, String todoTaskId, String userId) throws GraphExceptionGets a specific task from a todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTaskId- The ID of the taskuserId- The ID of the user- Returns:
- The TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
getTodoTask
public TodoTask getTodoTask(String todoTaskListId, String todoTaskId, UserId userId) throws GraphExceptionGets a specific task from a todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task listtodoTaskId- The ID of the taskuserId- The UserId object specifying the user- Returns:
- The TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
createTodoTask
Creates a new task in a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object to create- Returns:
- The created TodoTask object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
createTodoTask
public TodoTask createTodoTask(String todoTaskListId, TodoTask todoTask, String userId) throws GraphExceptionCreates a new task in a todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object to createuserId- The ID of the user- Returns:
- The created TodoTask object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
createTodoTask
public TodoTask createTodoTask(String todoTaskListId, TodoTask todoTask, UserId userId) throws GraphExceptionCreates a new task in a todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object to createuserId- The UserId object specifying the user- Returns:
- The created TodoTask object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTask
Updates a task in a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object with updated properties- Returns:
- The updated TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTask
public TodoTask updateTodoTask(String todoTaskListId, TodoTask todoTask, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a task in a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object with updated propertiespropertyNames- List of property names to update- Returns:
- The updated TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTask
public TodoTask updateTodoTask(String todoTaskListId, TodoTask todoTask, String userId) throws GraphExceptionUpdates a task in a todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object with updated propertiesuserId- The ID of the user- Returns:
- The updated TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTask
public TodoTask updateTodoTask(String todoTaskListId, TodoTask todoTask, UserId userId) throws GraphExceptionUpdates a task in a todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object with updated propertiesuserId- The UserId object specifying the user- Returns:
- The updated TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
updateTodoTask
public TodoTask updateTodoTask(String todoTaskListId, TodoTask todoTask, List<String> propertyNames, UserId userId) throws GraphExceptionUpdates specific properties of a task in a todo task list with all options.- Parameters:
todoTaskListId- The ID of the todo task listtodoTask- The TodoTask object with updated propertiespropertyNames- List of property names to updateuserId- The UserId object specifying the user- Returns:
- The updated TodoTask object
- Throws:
GraphException- If an error occurs during the API request
-
deleteTodoTask
Deletes a task from a todo task list for the current user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTaskId- The ID of the task to delete- Throws:
GraphException- If an error occurs during the API request
-
deleteTodoTask
public void deleteTodoTask(String todoTaskListId, String todoTaskId, String userId) throws GraphExceptionDeletes a task from a todo task list for a specific user.- Parameters:
todoTaskListId- The ID of the todo task listtodoTaskId- The ID of the task to deleteuserId- The ID of the user- Throws:
GraphException- If an error occurs during the API request
-
deleteTodoTask
public void deleteTodoTask(String todoTaskListId, String todoTaskId, UserId userId) throws GraphExceptionDeletes a task from a todo task list using UserId object.- Parameters:
todoTaskListId- The ID of the todo task listtodoTaskId- The ID of the task to deleteuserId- The UserId object specifying the user- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserTasks
Gets planner tasks assigned to the current user.- Returns:
- List of PlannerTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserTasks
Gets planner tasks assigned to a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of PlannerTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserTasks
Gets planner tasks assigned to a specific user using a UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of PlannerTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserFavoritePlans
Gets planner plans marked as favorite by the current user.- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserFavoritePlans
Gets planner plans marked as favorite by a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserFavoritePlans
Gets planner plans marked as favorite by a specific user using a UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserRecentPlans
Gets planner plans recently viewed by the current user.- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserRecentPlans
Gets planner plans recently viewed by a specific user.- Parameters:
userId- The ID of the user- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerUserRecentPlans
Gets planner plans recently viewed by a specific user using a UserId object.- Parameters:
userId- The UserId object specifying the user- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlanDetails
Gets the details of a specific planner plan.- Parameters:
planId- The ID of the plan- Returns:
- The PlannerPlanDetails object
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerPlanDetails
public PlannerPlanDetails updatePlannerPlanDetails(String planId, PlannerPlanDetails details) throws GraphExceptionUpdates the details of a planner plan.- Parameters:
planId- The ID of the plandetails- The PlannerPlanDetails object with updated properties- Returns:
- The updated PlannerPlanDetails object
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerPlanDetails
public PlannerPlanDetails updatePlannerPlanDetails(String planId, PlannerPlanDetails details, List<String> propertyNames) throws GraphExceptionUpdates specific properties of the details of a planner plan.- Parameters:
planId- The ID of the plandetails- The PlannerPlanDetails object with updated propertiespropertyNames- List of property names to update- Returns:
- The updated PlannerPlanDetails object
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerTaskDetails
Gets the details of a specific planner task.- Parameters:
taskId- The ID of the task- Returns:
- The PlannerTaskDetails object
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerTaskDetails
public PlannerTaskDetails updatePlannerTaskDetails(String taskId, PlannerTaskDetails details) throws GraphExceptionUpdates the details of a planner task.- Parameters:
taskId- The ID of the taskdetails- The PlannerTaskDetails object with updated properties- Returns:
- The updated PlannerTaskDetails object
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerTaskDetails
public PlannerTaskDetails updatePlannerTaskDetails(String taskId, PlannerTaskDetails details, List<String> propertyNames) throws GraphExceptionUpdates specific properties of the details of a planner task.- Parameters:
taskId- The ID of the taskdetails- The PlannerTaskDetails object with updated propertiespropertyNames- List of property names to update- Returns:
- The updated PlannerTaskDetails object
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlans
Gets all plans for a group.- Parameters:
groupId- The ID of the group- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlans
Gets all plans for a group using a GroupId object.- Parameters:
groupId- The GroupId object specifying the group- Returns:
- List of PlannerPlan objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlan
Gets a specific planner plan.- Parameters:
planId- The ID of the plan- Returns:
- The PlannerPlan object
- Throws:
GraphException- If an error occurs during the API request
-
createPlannerPlan
Creates a new planner plan.- Parameters:
plan- The PlannerPlan object to create- Returns:
- The created PlannerPlan object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerPlan
Updates a planner plan.- Parameters:
plan- The PlannerPlan object with updated properties- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerPlan
Updates specific properties of a planner plan.- Parameters:
plan- The PlannerPlan object with updated propertiespropertyNames- List of property names to update- Throws:
GraphException- If an error occurs during the API request
-
deletePlannerPlan
Deletes a planner plan.- Parameters:
planId- The ID of the plan to delete- Throws:
GraphException- If an error occurs during the API request
-
deletePlannerPlan
- Throws:
GraphException
-
archivePlannerPlan
Archives a planner plan.- Parameters:
planId- The ID of the plan to archive- Returns:
- The archived PlannerPlan
- Throws:
GraphException- If an error occurs during the API request
-
archivePlannerPlan
Archives a planner plan with a justification.- Parameters:
planId- The ID of the plan to archivejustification- The reason for archiving- Returns:
- The archived PlannerPlan
- Throws:
GraphException- If an error occurs during the API request
-
unarchivePlannerPlan
Unarchives a planner plan.- Parameters:
planId- The ID of the plan to unarchive- Returns:
- The unarchived PlannerPlan
- Throws:
GraphException- If an error occurs during the API request
-
unarchivePlannerPlan
Unarchives a planner plan with a justification.- Parameters:
planId- The ID of the plan to unarchivejustification- The reason for unarchiving- Returns:
- The unarchived PlannerPlan
- Throws:
GraphException- If an error occurs during the API request
-
movePlannerPlanToContainer
public PlannerPlan movePlannerPlanToContainer(String planId, PlannerPlanContainer container) throws GraphExceptionMoves a planner plan to a different container.- Parameters:
planId- The ID of the plan to movecontainer- The destination container- Returns:
- The moved PlannerPlan
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlanChanges
Gets incremental changes to planner plans using a previously obtained nextLink or deltaLink.- Parameters:
nextLinkOrDeltaLink- The nextLink or deltaLink from a previous delta response- Returns:
- The PlannerPlanChanges collection
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlanChanges
Gets incremental changes to planner plans in a group (delta query).- Parameters:
groupId- The ID of the groupquery- The query options- Returns:
- The PlannerPlanChanges collection
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerBucketChanges
public PlannerBucketChanges getPlannerBucketChanges(String nextLinkOrDeltaLink) throws GraphExceptionGets incremental changes to planner buckets using a previously obtained nextLink or deltaLink.- Parameters:
nextLinkOrDeltaLink- The nextLink or deltaLink from a previous delta response- Returns:
- The PlannerBucketChanges collection
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerBucketChanges
public PlannerBucketChanges getPlannerBucketChanges(String planId, Query query) throws GraphExceptionGets incremental changes to buckets within a planner plan (delta query).- Parameters:
planId- The ID of the planner planquery- The query options- Returns:
- The PlannerBucketChanges collection
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerTaskChanges
Gets incremental changes to planner tasks using a previously obtained nextLink or deltaLink.- Parameters:
nextLinkOrDeltaLink- The nextLink or deltaLink from a previous delta response- Returns:
- The PlannerTaskChanges collection
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerTaskChanges
Gets incremental changes to tasks within a planner plan (delta query).- Parameters:
planId- The ID of the planner planquery- The query options- Returns:
- The PlannerTaskChanges collection
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlanUsageRights
Gets the usage rights for a planner plan.- Parameters:
planId- The ID of the planner plan- Returns:
- List of PlannerUsageRight objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerPlanBuckets
Gets all buckets in a plan.- Parameters:
planId- The ID of the plan- Returns:
- List of PlannerBucket objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerBucket
Gets a specific planner bucket.- Parameters:
bucketId- The ID of the bucket- Returns:
- The PlannerBucket object
- Throws:
GraphException- If an error occurs during the API request
-
createPlannerBucket
Creates a new planner bucket.- Parameters:
bucket- The PlannerBucket object to create- Returns:
- The created PlannerBucket object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerBucket
Updates a planner bucket.- Parameters:
bucket- The PlannerBucket object with updated properties- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerBucket
public void updatePlannerBucket(PlannerBucket bucket, List<String> propertyNames) throws GraphExceptionUpdates specific properties of a planner bucket.- Parameters:
bucket- The PlannerBucket object with updated propertiespropertyNames- List of property names to update- Throws:
GraphException- If an error occurs during the API request
-
deletePlannerBucket
Deletes a planner bucket.- Parameters:
bucketId- The ID of the bucket to delete- Throws:
GraphException- If an error occurs during the API request
-
deletePlannerBucket
- Throws:
GraphException
-
getPlannerPlanTasks
Gets all tasks in a plan.- Parameters:
planId- The ID of the plan- Returns:
- List of PlannerTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerBucketTasks
Gets all tasks in a bucket.- Parameters:
bucketId- The ID of the bucket- Returns:
- List of PlannerTask objects
- Throws:
GraphException- If an error occurs during the API request
-
getPlannerTask
Gets a specific planner task.- Parameters:
taskId- The ID of the task- Returns:
- The PlannerTask object
- Throws:
GraphException- If an error occurs during the API request
-
createPlannerTask
Creates a new planner task.- Parameters:
task- The PlannerTask object to create- Returns:
- The created PlannerTask object with the assigned ID
- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerTask
Updates a planner task.- Parameters:
task- The PlannerTask object with updated properties- Throws:
GraphException- If an error occurs during the API request
-
updatePlannerTask
Updates specific properties of a planner task.- Parameters:
task- The PlannerTask object with updated propertiespropertyNames- List of property names to update- Throws:
GraphException- If an error occurs during the API request
-
deletePlannerTask
Deletes a planner task.- Parameters:
taskId- The ID of the task to delete- Throws:
GraphException- If an error occurs during the API request
-
deletePlannerTask
- Throws:
GraphException
-
getChat
- Throws:
GraphException
-
getChat
- Throws:
GraphException
-
getChat
- Throws:
GraphException
-
getChat
- Throws:
GraphException
-
updateChat
- Throws:
GraphException
-
updateChat
- Throws:
GraphException
-
getChatMembers
- Throws:
GraphException
-
getChatMembers
- Throws:
GraphException
-
getChatMember
- Throws:
GraphException
-
addChatMember
public ConversationMember addChatMember(String chatId, ConversationMember member) throws GraphException- Throws:
GraphException
-
removeChatMember
- Throws:
GraphException
-
markChatReadForUser
- Throws:
GraphException
-
markChatUnreadForUser
- Throws:
GraphException
-
hideChatForUser
- Throws:
GraphException
-
unhideChatForUser
- Throws:
GraphException
-
updateChatMessage
- Throws:
GraphException
-
updateChatMessage
public ChatMessage updateChatMessage(String chatId, ChatMessage message, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
softDeleteChatMessage
public void softDeleteChatMessage(String chatId, String messageId, String userId) throws GraphException- Throws:
GraphException
-
softDeleteChatMessage
public void softDeleteChatMessage(String chatId, String messageId, UserId userId) throws GraphException- Throws:
GraphException
-
undoSoftDeleteChatMessage
public void undoSoftDeleteChatMessage(String chatId, String messageId, String userId) throws GraphException- Throws:
GraphException
-
undoSoftDeleteChatMessage
public void undoSoftDeleteChatMessage(String chatId, String messageId, UserId userId) throws GraphException- Throws:
GraphException
-
setChatMessageReaction
public void setChatMessageReaction(String chatId, String messageId, String reactionType) throws GraphException- Throws:
GraphException
-
unsetChatMessageReaction
public void unsetChatMessageReaction(String chatId, String messageId, String reactionType) throws GraphException- Throws:
GraphException
-
getChatMessageHostedContent
public byte[] getChatMessageHostedContent(String chatId, String messageId, String hostedContentId) throws GraphException- Throws:
GraphException
-
updateChannelMessage
public ChatMessage updateChannelMessage(String teamId, String channelId, ChatMessage message) throws GraphException- Throws:
GraphException
-
updateChannelMessage
public ChatMessage updateChannelMessage(String teamId, String channelId, ChatMessage message, List<String> propertyNames) throws GraphException- Throws:
GraphException
-
softDeleteChannelMessage
public void softDeleteChannelMessage(String teamId, String channelId, String messageId) throws GraphException- Throws:
GraphException
-
undoSoftDeleteChannelMessage
public void undoSoftDeleteChannelMessage(String teamId, String channelId, String messageId) throws GraphException- Throws:
GraphException
-
setChannelMessageReaction
public void setChannelMessageReaction(String teamId, String channelId, String messageId, String reactionType) throws GraphException- Throws:
GraphException
-
unsetChannelMessageReaction
public void unsetChannelMessageReaction(String teamId, String channelId, String messageId, String reactionType) throws GraphException- Throws:
GraphException
-
getChannelMessageHostedContent
public byte[] getChannelMessageHostedContent(String teamId, String channelId, String messageId, String hostedContentId) throws GraphException- Throws:
GraphException
-
updateChannelMember
public ConversationMember updateChannelMember(String teamId, String channelId, ConversationMember member) throws GraphException- Throws:
GraphException
-
archiveChannel
- Throws:
GraphException
-
unarchiveChannel
- Throws:
GraphException
-
getChannelFilesFolder
- Throws:
GraphException
-
getHostUri
Gets host uri. Default is "https://graph.microsoft.com"- Returns:
- the Microsoft Graph host uri
-
setHostUri
Sets host uri. Default is "https://graph.microsoft.com"- Parameters:
hostUri- the the Microsoft Graph host uri
-
getLoginHostUri
Gets login host uri. Default is "https://login.microsoftonline.com"- Returns:
- the Microsoft Graph login host uri
-
setLoginHostUri
Sets login host uri. Default is "https://login.microsoftonline.com"- Parameters:
loginHostUri- the the Microsoft Graph login host uri
-
getUsername
Gets username.- Returns:
- the username
-
setUsername
Sets username.- Parameters:
username- the new username
-
getPassword
Gets user's password.- Returns:
- the password
-
setPassword
Sets user's password.- Parameters:
password- the new password
-
getHttpURLConnectionProxy
Gets HttpURLConnection proxy server.- Returns:
- the http url connection proxy
-
setHttpURLConnectionProxy
Sets HttpURLConnection proxy server.- Parameters:
httpURLConnectionProxy- the new http url connection proxy
-
getProxy
public org.apache.hc.core5.http.HttpHost getProxy()Gets HttpClient proxy.- Returns:
- the proxy
-
setProxy
public void setProxy(org.apache.hc.core5.http.HttpHost proxy)Sets HttpClient proxy.- Parameters:
proxy- the new proxy
-
getProxyCredentials
public org.apache.hc.client5.http.auth.Credentials getProxyCredentials()Gets proxy credentials.- Returns:
- the proxy credentials
-
setProxyCredentials
public void setProxyCredentials(org.apache.hc.client5.http.auth.Credentials proxyCredentials)Sets proxy credentials.- Parameters:
proxyCredentials- the new proxy credentials
-
getClientConnectionManager
public org.apache.hc.client5.http.io.HttpClientConnectionManager getClientConnectionManager()Gets connection manager.- Returns:
- the client connection manager
-
setClientConnectionManager
public void setClientConnectionManager(org.apache.hc.client5.http.io.HttpClientConnectionManager connectionManager)Sets connection manager.- Parameters:
connectionManager- the new client connection manager
-
getRequestConfig
public org.apache.hc.client5.http.config.RequestConfig getRequestConfig()Gets request configuration.- Returns:
- the request configuration
-
setRequestConfig
public void setRequestConfig(org.apache.hc.client5.http.config.RequestConfig requestConfig)Sets request configuration.- Parameters:
requestConfig- the request configuration
-
setHttpURLConnection
public void setHttpURLConnection(boolean useHttpURLConnection)Sets the http url connection.- Parameters:
useHttpURLConnection- the new http url connection
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)Sets the specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by the HttpURLConnection. If the timeout expires before the connection can be established, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout.- Parameters:
connectTimeout- the new connect timeout
-
getConnectTimeout
public int getConnectTimeout()Returns setting for connect timeout. 0 return implies that the option is disabled (i.e., timeout of infinity).- Returns:
- the connect timeout
-
setReadTimeout
public void setReadTimeout(int readTimeout)Sets the read timeout to the specified timeout, in milliseconds. A non-zero value specifies the timeout when reading from Input stream when a connection is established to a resource. If the timeout expires before there is data available for read, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout.- Parameters:
readTimeout- the new read timeout
-
getReadTimeout
public int getReadTimeout()Returns setting for read timeout. 0 return implies that the option is disabled (i.e., timeout of infinity).- Returns:
- the read timeout
-
setAcceptGzipEncoding
public void setAcceptGzipEncoding(boolean acceptGzipEncoding)Set whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value.- Parameters:
acceptGzipEncoding- the new accept gzip encoding
-
isAcceptGzipEncoding
public boolean isAcceptGzipEncoding()Return whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value.- Returns:
- true, if is accept gzip encoding
-
getRequestHttpHeaders
-
getResponseHttpHeaders
-
setOAuthToken
-
getOAuthToken
-
setClientId
-
getClientId
-
setTenant
-
getTenant
-
getScope
-
setClientSecret
-
getClientSecret
-
setclientAssertion
-
getClientAssertion
-
setAuthorizationCode
-
getAuthorizationCode
-
setAuthorizationCodeRedirectUri
-
getAuthorizationCodeRedirectUri
-
setDeviceCode
-
getDeviceCode
-