Class Crm


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

      • listContacts

        public CrmListContactsResponse listContacts​(CrmListContactsRequest request)
                                             throws java.lang.Exception
        List Contacts
        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
      • listContacts

        public CrmListContactsResponse listContacts​(CrmListContactsRequest request,
                                                    java.util.Optional<Options> options)
                                             throws java.lang.Exception
        List Contacts
        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
      • createContact

        public CrmCreateContactResponse createContact​(java.lang.String xAccountId,
                                                      CrmCreateContactRequestDto crmCreateContactRequestDto)
                                               throws java.lang.Exception
        Creates a new Contact
        Parameters:
        xAccountId - The account identifier
        crmCreateContactRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • createContact

        public CrmCreateContactResponse createContact​(java.lang.String xAccountId,
                                                      CrmCreateContactRequestDto crmCreateContactRequestDto,
                                                      java.util.Optional<Options> options)
                                               throws java.lang.Exception
        Creates a new Contact
        Parameters:
        xAccountId - The account identifier
        crmCreateContactRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getContact

        public CrmGetContactResponse getContact​(CrmGetContactRequest request)
                                         throws java.lang.Exception
        Get Contact
        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
      • getContact

        public CrmGetContactResponse getContact​(CrmGetContactRequest request,
                                                java.util.Optional<Options> options)
                                         throws java.lang.Exception
        Get Contact
        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
      • updateContact

        public CrmUpdateContactResponse updateContact​(java.lang.String xAccountId,
                                                      java.lang.String id,
                                                      CrmCreateContactRequestDto crmCreateContactRequestDto)
                                               throws java.lang.Exception
        Update Contact (early access)
        Parameters:
        xAccountId - The account identifier
        id -
        crmCreateContactRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • updateContact

        public CrmUpdateContactResponse updateContact​(java.lang.String xAccountId,
                                                      java.lang.String id,
                                                      CrmCreateContactRequestDto crmCreateContactRequestDto,
                                                      java.util.Optional<Options> options)
                                               throws java.lang.Exception
        Update Contact (early access)
        Parameters:
        xAccountId - The account identifier
        id -
        crmCreateContactRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • listAccounts

        public CrmListAccountsResponse listAccounts​(CrmListAccountsRequest request)
                                             throws java.lang.Exception
        List Accounts
        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
      • listAccounts

        public CrmListAccountsResponse listAccounts​(CrmListAccountsRequest request,
                                                    java.util.Optional<Options> options)
                                             throws java.lang.Exception
        List Accounts
        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
      • getAccount

        public CrmGetAccountResponse getAccount​(CrmGetAccountRequest request)
                                         throws java.lang.Exception
        Get Account
        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
      • getAccount

        public CrmGetAccountResponse getAccount​(CrmGetAccountRequest request,
                                                java.util.Optional<Options> options)
                                         throws java.lang.Exception
        Get Account
        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
      • listLists

        public CrmListListsResponse listLists​(CrmListListsRequest request)
                                       throws java.lang.Exception
        Get all Lists
        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
      • listLists

        public CrmListListsResponse listLists​(CrmListListsRequest request,
                                              java.util.Optional<Options> options)
                                       throws java.lang.Exception
        Get all Lists
        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
      • getList

        public CrmGetListResponse getList​(CrmGetListRequest request)
                                   throws java.lang.Exception
        Get List
        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
      • getList

        public CrmGetListResponse getList​(CrmGetListRequest request,
                                          java.util.Optional<Options> options)
                                   throws java.lang.Exception
        Get List
        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
      • listContactCustomFieldDefinitions

        public CrmListContactCustomFieldDefinitionsResponse listContactCustomFieldDefinitions​(CrmListContactCustomFieldDefinitionsRequest request,
                                                                                              java.util.Optional<Options> options)
                                                                                       throws java.lang.Exception
        List Contact Custom Field Definitions
        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
      • getContactCustomFieldDefinition

        public CrmGetContactCustomFieldDefinitionResponse getContactCustomFieldDefinition​(CrmGetContactCustomFieldDefinitionRequest request)
                                                                                   throws java.lang.Exception
        Get Contact Custom Field Definition
        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
      • getContactCustomFieldDefinition

        public CrmGetContactCustomFieldDefinitionResponse getContactCustomFieldDefinition​(CrmGetContactCustomFieldDefinitionRequest request,
                                                                                          java.util.Optional<Options> options)
                                                                                   throws java.lang.Exception
        Get Contact Custom Field Definition
        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