Class Messaging


  • public class Messaging
    extends java.lang.Object
    • Method Detail

      • async

        public AsyncMessaging async()
        Switches to the async SDK.
        Returns:
        The async SDK
      • listConversations

        public MessagingListConversationsResponse listConversations​(MessagingListConversationsRequest request)
                                                             throws java.lang.Exception
        List Conversations
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listConversations

        public MessagingListConversationsResponse listConversations​(MessagingListConversationsRequest request,
                                                                    java.util.Optional<Options> options)
                                                             throws java.lang.Exception
        List Conversations
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • createConversation

        public MessagingCreateConversationResponse createConversation​(java.lang.String xAccountId,
                                                                      MessagingCreateConversationRequestDto messagingCreateConversationRequestDto)
                                                               throws java.lang.Exception
        Create Conversation
        Parameters:
        xAccountId - The account identifier
        messagingCreateConversationRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • createConversation

        public MessagingCreateConversationResponse createConversation​(java.lang.String xAccountId,
                                                                      MessagingCreateConversationRequestDto messagingCreateConversationRequestDto,
                                                                      java.util.Optional<Options> options)
                                                               throws java.lang.Exception
        Create Conversation
        Parameters:
        xAccountId - The account identifier
        messagingCreateConversationRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getConversation

        public MessagingGetConversationResponse getConversation​(MessagingGetConversationRequest request)
                                                         throws java.lang.Exception
        Get Conversation
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getConversation

        public MessagingGetConversationResponse getConversation​(MessagingGetConversationRequest request,
                                                                java.util.Optional<Options> options)
                                                         throws java.lang.Exception
        Get Conversation
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listAttachments

        public MessagingListAttachmentsResponse listAttachments​(MessagingListAttachmentsRequest request)
                                                         throws java.lang.Exception
        List Attachments
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listAttachments

        public MessagingListAttachmentsResponse listAttachments​(MessagingListAttachmentsRequest request,
                                                                java.util.Optional<Options> options)
                                                         throws java.lang.Exception
        List Attachments
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getAttachment

        public MessagingGetAttachmentResponse getAttachment​(MessagingGetAttachmentRequest request)
                                                     throws java.lang.Exception
        Get Attachment
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getAttachment

        public MessagingGetAttachmentResponse getAttachment​(MessagingGetAttachmentRequest request,
                                                            java.util.Optional<Options> options)
                                                     throws java.lang.Exception
        Get Attachment
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listUsers

        public MessagingListUsersResponse listUsers​(MessagingListUsersRequest request)
                                             throws java.lang.Exception
        List Users
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listUsers

        public MessagingListUsersResponse listUsers​(MessagingListUsersRequest request,
                                                    java.util.Optional<Options> options)
                                             throws java.lang.Exception
        List Users
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getUser

        public MessagingGetUserResponse getUser​(MessagingGetUserRequest request)
                                         throws java.lang.Exception
        Get User
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getUser

        public MessagingGetUserResponse getUser​(MessagingGetUserRequest request,
                                                java.util.Optional<Options> options)
                                         throws java.lang.Exception
        Get User
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listConversationMessages

        public MessagingListConversationMessagesResponse listConversationMessages​(MessagingListConversationMessagesRequest request,
                                                                                  java.util.Optional<Options> options)
                                                                           throws java.lang.Exception
        List Conversation Messages
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getMessage

        public MessagingGetMessageResponse getMessage​(MessagingGetMessageRequest request)
                                               throws java.lang.Exception
        Get Message
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getMessage

        public MessagingGetMessageResponse getMessage​(MessagingGetMessageRequest request,
                                                      java.util.Optional<Options> options)
                                               throws java.lang.Exception
        Get Message
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • sendMessage

        public MessagingSendMessageResponse sendMessage​(java.lang.String xAccountId,
                                                        MessagingMessageSendRequestDto messagingMessageSendRequestDto)
                                                 throws java.lang.Exception
        Send Message
        Parameters:
        xAccountId - The account identifier
        messagingMessageSendRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • sendMessage

        public MessagingSendMessageResponse sendMessage​(java.lang.String xAccountId,
                                                        MessagingMessageSendRequestDto messagingMessageSendRequestDto,
                                                        java.util.Optional<Options> options)
                                                 throws java.lang.Exception
        Send Message
        Parameters:
        xAccountId - The account identifier
        messagingMessageSendRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails