Class Crm
- java.lang.Object
-
- com.stackone.stackone_client_java.Crm
-
- All Implemented Interfaces:
SDKMethodInterfaces.MethodCallCrmCreateContact,SDKMethodInterfaces.MethodCallCrmGetAccount,SDKMethodInterfaces.MethodCallCrmGetContact,SDKMethodInterfaces.MethodCallCrmGetContactCustomFieldDefinition,SDKMethodInterfaces.MethodCallCrmGetList,SDKMethodInterfaces.MethodCallCrmListAccounts,SDKMethodInterfaces.MethodCallCrmListContactCustomFieldDefinitions,SDKMethodInterfaces.MethodCallCrmListContacts,SDKMethodInterfaces.MethodCallCrmListLists,SDKMethodInterfaces.MethodCallCrmUpdateContact
public class Crm extends java.lang.Object implements SDKMethodInterfaces.MethodCallCrmListContacts, SDKMethodInterfaces.MethodCallCrmCreateContact, SDKMethodInterfaces.MethodCallCrmGetContact, SDKMethodInterfaces.MethodCallCrmUpdateContact, SDKMethodInterfaces.MethodCallCrmListAccounts, SDKMethodInterfaces.MethodCallCrmGetAccount, SDKMethodInterfaces.MethodCallCrmListLists, SDKMethodInterfaces.MethodCallCrmGetList, SDKMethodInterfaces.MethodCallCrmListContactCustomFieldDefinitions, SDKMethodInterfaces.MethodCallCrmGetContactCustomFieldDefinition
-
-
Method Summary
-
-
-
Method Detail
-
listContacts
public CrmListContactsRequestBuilder listContacts()
List Contacts- Returns:
- The call builder
-
listContacts
public CrmListContactsResponse listContacts(CrmListContactsRequest request) throws java.lang.Exception
List Contacts- Parameters:
request- The request object containing all of 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- Specified by:
listContactsin interfaceSDKMethodInterfaces.MethodCallCrmListContacts- Parameters:
request- The request object containing all of 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 CrmCreateContactRequestBuilder createContact()
Creates a new Contact- Returns:
- The call builder
-
createContact
public CrmCreateContactResponse createContact(java.lang.String xAccountId, CrmCreateContactRequestDto crmCreateContactRequestDto) throws java.lang.Exception
Creates a new Contact- Parameters:
xAccountId- The account identifiercrmCreateContactRequestDto-- 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- Specified by:
createContactin interfaceSDKMethodInterfaces.MethodCallCrmCreateContact- Parameters:
xAccountId- The account identifiercrmCreateContactRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getContact
public CrmGetContactRequestBuilder getContact()
Get Contact- Returns:
- The call builder
-
getContact
public CrmGetContactResponse getContact(CrmGetContactRequest request) throws java.lang.Exception
Get Contact- Parameters:
request- The request object containing all of 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- Specified by:
getContactin interfaceSDKMethodInterfaces.MethodCallCrmGetContact- Parameters:
request- The request object containing all of 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 CrmUpdateContactRequestBuilder updateContact()
Update Contact (early access)- Returns:
- The call builder
-
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 identifierid-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)- Specified by:
updateContactin interfaceSDKMethodInterfaces.MethodCallCrmUpdateContact- Parameters:
xAccountId- The account identifierid-crmCreateContactRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
listAccounts
public CrmListAccountsRequestBuilder listAccounts()
List Accounts- Returns:
- The call builder
-
listAccounts
public CrmListAccountsResponse listAccounts(CrmListAccountsRequest request) throws java.lang.Exception
List Accounts- Parameters:
request- The request object containing all of 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- Specified by:
listAccountsin interfaceSDKMethodInterfaces.MethodCallCrmListAccounts- Parameters:
request- The request object containing all of 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 CrmGetAccountRequestBuilder getAccount()
Get Account- Returns:
- The call builder
-
getAccount
public CrmGetAccountResponse getAccount(CrmGetAccountRequest request) throws java.lang.Exception
Get Account- Parameters:
request- The request object containing all of 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- Specified by:
getAccountin interfaceSDKMethodInterfaces.MethodCallCrmGetAccount- Parameters:
request- The request object containing all of 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 CrmListListsRequestBuilder listLists()
Get all Lists- Returns:
- The call builder
-
listLists
public CrmListListsResponse listLists(CrmListListsRequest request) throws java.lang.Exception
Get all Lists- Parameters:
request- The request object containing all of 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- Specified by:
listListsin interfaceSDKMethodInterfaces.MethodCallCrmListLists- Parameters:
request- The request object containing all of 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 CrmGetListRequestBuilder getList()
Get List- Returns:
- The call builder
-
getList
public CrmGetListResponse getList(CrmGetListRequest request) throws java.lang.Exception
Get List- Parameters:
request- The request object containing all of 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- Specified by:
getListin interfaceSDKMethodInterfaces.MethodCallCrmGetList- Parameters:
request- The request object containing all of 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 CrmListContactCustomFieldDefinitionsRequestBuilder listContactCustomFieldDefinitions()
List Contact Custom Field Definitions- Returns:
- The call builder
-
listContactCustomFieldDefinitions
public CrmListContactCustomFieldDefinitionsResponse listContactCustomFieldDefinitions(CrmListContactCustomFieldDefinitionsRequest request) throws java.lang.Exception
List Contact Custom Field Definitions- Parameters:
request- The request object containing all of the parameters for the API call.- 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- Specified by:
listContactCustomFieldDefinitionsin interfaceSDKMethodInterfaces.MethodCallCrmListContactCustomFieldDefinitions- Parameters:
request- The request object containing all of 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 CrmGetContactCustomFieldDefinitionRequestBuilder getContactCustomFieldDefinition()
Get Contact Custom Field Definition- Returns:
- The call builder
-
getContactCustomFieldDefinition
public CrmGetContactCustomFieldDefinitionResponse getContactCustomFieldDefinition(CrmGetContactCustomFieldDefinitionRequest request) throws java.lang.Exception
Get Contact Custom Field Definition- Parameters:
request- The request object containing all of 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- Specified by:
getContactCustomFieldDefinitionin interfaceSDKMethodInterfaces.MethodCallCrmGetContactCustomFieldDefinition- Parameters:
request- The request object containing all of 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
-
-