Class Crm
- java.lang.Object
-
- com.stackone.stackone_client_java.Crm
-
public class Crm extends java.lang.Object
-
-
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 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 CrmCreateContactRequestBuilder createContact()
Create Contact- Returns:
- The call builder
-
createContact
public CrmCreateContactResponse createContact(java.lang.String xAccountId, CrmCreateContactRequestDto crmCreateContactRequestDto) throws java.lang.Exception
Create 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
Create Contact- 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 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 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)- 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 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 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 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 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 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 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 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 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 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- 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 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 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
-
-