Class Marketing
- java.lang.Object
-
- com.stackone.stackone_client_java.Marketing
-
public class Marketing extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AsyncMarketingasync()Switches to the async SDK.MarketingCreateContentBlockRequestBuildercreateContentBlock()Create Content BlockMarketingCreateContentBlockResponsecreateContentBlock(java.lang.String xAccountId, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto)Create Content BlockMarketingCreateContentBlockResponsecreateContentBlock(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto, java.util.Optional<Options> options)Create Content BlockMarketingCreateEmailTemplateRequestBuildercreateEmailTemplate()Create Email TemplatesMarketingCreateEmailTemplateResponsecreateEmailTemplate(java.lang.String xAccountId, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto)Create Email TemplatesMarketingCreateEmailTemplateResponsecreateEmailTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto, java.util.Optional<Options> options)Create Email TemplatesMarketingCreateInAppTemplateRequestBuildercreateInAppTemplate()Create In-App TemplateMarketingCreateInAppTemplateResponsecreateInAppTemplate(java.lang.String xAccountId, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto)Create In-App TemplateMarketingCreateInAppTemplateResponsecreateInAppTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto, java.util.Optional<Options> options)Create In-App TemplateMarketingCreateOmniChannelTemplateRequestBuildercreateOmniChannelTemplate()Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingCreateOmniChannelTemplateResponsecreateOmniChannelTemplate(java.lang.String xAccountId, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingCreateOmniChannelTemplateResponsecreateOmniChannelTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto, java.util.Optional<Options> options)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingCreatePushTemplateRequestBuildercreatePushTemplate()Create Push TemplateMarketingCreatePushTemplateResponsecreatePushTemplate(java.lang.String xAccountId, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto)Create Push TemplateMarketingCreatePushTemplateResponsecreatePushTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto, java.util.Optional<Options> options)Create Push TemplateMarketingCreateSmsTemplateRequestBuildercreateSmsTemplate()Create SMS TemplateMarketingCreateSmsTemplateResponsecreateSmsTemplate(java.lang.String xAccountId, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto)Create SMS TemplateMarketingCreateSmsTemplateResponsecreateSmsTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto, java.util.Optional<Options> options)Create SMS TemplateMarketingGetCampaignRequestBuildergetCampaign()Get campaignMarketingGetCampaignResponsegetCampaign(MarketingGetCampaignRequest request)Get campaignMarketingGetCampaignResponsegetCampaign(MarketingGetCampaignRequest request, java.util.Optional<Options> options)Get campaignMarketingGetContentBlockRequestBuildergetContentBlock()Get Content BlocksMarketingGetContentBlockResponsegetContentBlock(MarketingGetContentBlockRequest request)Get Content BlocksMarketingGetContentBlockResponsegetContentBlock(MarketingGetContentBlockRequest request, java.util.Optional<Options> options)Get Content BlocksMarketingGetEmailTemplateRequestBuildergetEmailTemplate()Get Email TemplatesMarketingGetEmailTemplateResponsegetEmailTemplate(MarketingGetEmailTemplateRequest request)Get Email TemplatesMarketingGetEmailTemplateResponsegetEmailTemplate(MarketingGetEmailTemplateRequest request, java.util.Optional<Options> options)Get Email TemplatesMarketingGetInAppTemplateRequestBuildergetInAppTemplate()Get In-App TemplateMarketingGetInAppTemplateResponsegetInAppTemplate(MarketingGetInAppTemplateRequest request)Get In-App TemplateMarketingGetInAppTemplateResponsegetInAppTemplate(MarketingGetInAppTemplateRequest request, java.util.Optional<Options> options)Get In-App TemplateMarketingGetOmniChannelTemplateRequestBuildergetOmniChannelTemplate()Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingGetOmniChannelTemplateResponsegetOmniChannelTemplate(MarketingGetOmniChannelTemplateRequest request)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingGetOmniChannelTemplateResponsegetOmniChannelTemplate(MarketingGetOmniChannelTemplateRequest request, java.util.Optional<Options> options)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingGetPushTemplateRequestBuildergetPushTemplate()Get Push TemplateMarketingGetPushTemplateResponsegetPushTemplate(MarketingGetPushTemplateRequest request)Get Push TemplateMarketingGetPushTemplateResponsegetPushTemplate(MarketingGetPushTemplateRequest request, java.util.Optional<Options> options)Get Push TemplateMarketingGetSmsTemplateRequestBuildergetSmsTemplate()Get SMS TemplateMarketingGetSmsTemplateResponsegetSmsTemplate(MarketingGetSmsTemplateRequest request)Get SMS TemplateMarketingGetSmsTemplateResponsegetSmsTemplate(MarketingGetSmsTemplateRequest request, java.util.Optional<Options> options)Get SMS TemplateMarketingListCampaignsRequestBuilderlistCampaigns()List campaignsMarketingListCampaignsResponselistCampaigns(MarketingListCampaignsRequest request)List campaignsMarketingListCampaignsResponselistCampaigns(MarketingListCampaignsRequest request, java.util.Optional<Options> options)List campaignsMarketingListContentBlocksRequestBuilderlistContentBlocks()List Content BlocksMarketingListContentBlocksResponselistContentBlocks(MarketingListContentBlocksRequest request)List Content BlocksMarketingListContentBlocksResponselistContentBlocks(MarketingListContentBlocksRequest request, java.util.Optional<Options> options)List Content BlocksMarketingListEmailTemplatesRequestBuilderlistEmailTemplates()List Email TemplatesMarketingListEmailTemplatesResponselistEmailTemplates(MarketingListEmailTemplatesRequest request)List Email TemplatesMarketingListEmailTemplatesResponselistEmailTemplates(MarketingListEmailTemplatesRequest request, java.util.Optional<Options> options)List Email TemplatesMarketingListInAppTemplatesRequestBuilderlistInAppTemplates()List In-App TemplatesMarketingListInAppTemplatesResponselistInAppTemplates(MarketingListInAppTemplatesRequest request)List In-App TemplatesMarketingListInAppTemplatesResponselistInAppTemplates(MarketingListInAppTemplatesRequest request, java.util.Optional<Options> options)List In-App TemplatesMarketingListOmniChannelTemplatesRequestBuilderlistOmniChannelTemplates()Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingListOmniChannelTemplatesResponselistOmniChannelTemplates(MarketingListOmniChannelTemplatesRequest request)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingListOmniChannelTemplatesResponselistOmniChannelTemplates(MarketingListOmniChannelTemplatesRequest request, java.util.Optional<Options> options)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingListPushTemplatesRequestBuilderlistPushTemplates()List Push TemplatesMarketingListPushTemplatesResponselistPushTemplates(MarketingListPushTemplatesRequest request)List Push TemplatesMarketingListPushTemplatesResponselistPushTemplates(MarketingListPushTemplatesRequest request, java.util.Optional<Options> options)List Push TemplatesMarketingListSmsTemplatesRequestBuilderlistSmsTemplates()List SMS TemplatesMarketingListSmsTemplatesResponselistSmsTemplates(MarketingListSmsTemplatesRequest request)List SMS TemplatesMarketingListSmsTemplatesResponselistSmsTemplates(MarketingListSmsTemplatesRequest request, java.util.Optional<Options> options)List SMS TemplatesMarketingUpdateContentBlockRequestBuilderupdateContentBlock()Update Content BlockMarketingUpdateContentBlockResponseupdateContentBlock(java.lang.String xAccountId, java.lang.String id, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto)Update Content BlockMarketingUpdateContentBlockResponseupdateContentBlock(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto, java.util.Optional<Options> options)Update Content BlockMarketingUpdateEmailTemplateRequestBuilderupdateEmailTemplate()Update Email TemplatesMarketingUpdateEmailTemplateResponseupdateEmailTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto)Update Email TemplatesMarketingUpdateEmailTemplateResponseupdateEmailTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto, java.util.Optional<Options> options)Update Email TemplatesMarketingUpdateInAppTemplateRequestBuilderupdateInAppTemplate()Update In-App TemplateMarketingUpdateInAppTemplateResponseupdateInAppTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto)Update In-App TemplateMarketingUpdateInAppTemplateResponseupdateInAppTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto, java.util.Optional<Options> options)Update In-App TemplateMarketingUpdateOmniChannelTemplateRequestBuilderupdateOmniChannelTemplate()Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingUpdateOmniChannelTemplateResponseupdateOmniChannelTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingUpdateOmniChannelTemplateResponseupdateOmniChannelTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto, java.util.Optional<Options> options)Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.MarketingUpdatePushTemplateRequestBuilderupdatePushTemplate()Update Push TemplateMarketingUpdatePushTemplateResponseupdatePushTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto)Update Push TemplateMarketingUpdatePushTemplateResponseupdatePushTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto, java.util.Optional<Options> options)Update Push TemplateMarketingUpdateSmsTemplateRequestBuilderupdateSmsTemplate()Update SMS TemplateMarketingUpdateSmsTemplateResponseupdateSmsTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto)Update SMS TemplateMarketingUpdateSmsTemplateResponseupdateSmsTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto, java.util.Optional<Options> options)Update SMS Template
-
-
-
Method Detail
-
async
public AsyncMarketing async()
Switches to the async SDK.- Returns:
- The async SDK
-
listEmailTemplates
public MarketingListEmailTemplatesRequestBuilder listEmailTemplates()
List Email Templates- Returns:
- The call builder
-
listEmailTemplates
public MarketingListEmailTemplatesResponse listEmailTemplates(MarketingListEmailTemplatesRequest request)
List Email Templates- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listEmailTemplates
public MarketingListEmailTemplatesResponse listEmailTemplates(MarketingListEmailTemplatesRequest request, java.util.Optional<Options> options)
List Email Templates- 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.RuntimeException- subclass if the API call fails
-
createEmailTemplate
public MarketingCreateEmailTemplateRequestBuilder createEmailTemplate()
Create Email Templates- Returns:
- The call builder
-
createEmailTemplate
public MarketingCreateEmailTemplateResponse createEmailTemplate(java.lang.String xAccountId, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto)
Create Email Templates- Parameters:
xAccountId- The account identifiermarketingCreateEmailTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createEmailTemplate
public MarketingCreateEmailTemplateResponse createEmailTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto, java.util.Optional<Options> options)
Create Email Templates- Parameters:
xAccountId- The account identifierprefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateEmailTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getEmailTemplate
public MarketingGetEmailTemplateRequestBuilder getEmailTemplate()
Get Email Templates- Returns:
- The call builder
-
getEmailTemplate
public MarketingGetEmailTemplateResponse getEmailTemplate(MarketingGetEmailTemplateRequest request)
Get Email Templates- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getEmailTemplate
public MarketingGetEmailTemplateResponse getEmailTemplate(MarketingGetEmailTemplateRequest request, java.util.Optional<Options> options)
Get Email Templates- 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.RuntimeException- subclass if the API call fails
-
updateEmailTemplate
public MarketingUpdateEmailTemplateRequestBuilder updateEmailTemplate()
Update Email Templates- Returns:
- The call builder
-
updateEmailTemplate
public MarketingUpdateEmailTemplateResponse updateEmailTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto)
Update Email Templates- Parameters:
xAccountId- The account identifierid-marketingCreateEmailTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateEmailTemplate
public MarketingUpdateEmailTemplateResponse updateEmailTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateEmailTemplateRequestDto marketingCreateEmailTemplateRequestDto, java.util.Optional<Options> options)
Update Email Templates- Parameters:
xAccountId- The account identifierid-prefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateEmailTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listInAppTemplates
public MarketingListInAppTemplatesRequestBuilder listInAppTemplates()
List In-App Templates- Returns:
- The call builder
-
listInAppTemplates
public MarketingListInAppTemplatesResponse listInAppTemplates(MarketingListInAppTemplatesRequest request)
List In-App Templates- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listInAppTemplates
public MarketingListInAppTemplatesResponse listInAppTemplates(MarketingListInAppTemplatesRequest request, java.util.Optional<Options> options)
List In-App Templates- 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.RuntimeException- subclass if the API call fails
-
createInAppTemplate
public MarketingCreateInAppTemplateRequestBuilder createInAppTemplate()
Create In-App Template- Returns:
- The call builder
-
createInAppTemplate
public MarketingCreateInAppTemplateResponse createInAppTemplate(java.lang.String xAccountId, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto)
Create In-App Template- Parameters:
xAccountId- The account identifiermarketingCreateInAppTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createInAppTemplate
public MarketingCreateInAppTemplateResponse createInAppTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto, java.util.Optional<Options> options)
Create In-App Template- Parameters:
xAccountId- The account identifierprefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateInAppTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getInAppTemplate
public MarketingGetInAppTemplateRequestBuilder getInAppTemplate()
Get In-App Template- Returns:
- The call builder
-
getInAppTemplate
public MarketingGetInAppTemplateResponse getInAppTemplate(MarketingGetInAppTemplateRequest request)
Get In-App Template- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getInAppTemplate
public MarketingGetInAppTemplateResponse getInAppTemplate(MarketingGetInAppTemplateRequest request, java.util.Optional<Options> options)
Get In-App Template- 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.RuntimeException- subclass if the API call fails
-
updateInAppTemplate
public MarketingUpdateInAppTemplateRequestBuilder updateInAppTemplate()
Update In-App Template- Returns:
- The call builder
-
updateInAppTemplate
public MarketingUpdateInAppTemplateResponse updateInAppTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto)
Update In-App Template- Parameters:
xAccountId- The account identifierid-marketingCreateInAppTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateInAppTemplate
public MarketingUpdateInAppTemplateResponse updateInAppTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateInAppTemplateRequestDto marketingCreateInAppTemplateRequestDto, java.util.Optional<Options> options)
Update In-App Template- Parameters:
xAccountId- The account identifierid-prefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateInAppTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listSmsTemplates
public MarketingListSmsTemplatesRequestBuilder listSmsTemplates()
List SMS Templates- Returns:
- The call builder
-
listSmsTemplates
public MarketingListSmsTemplatesResponse listSmsTemplates(MarketingListSmsTemplatesRequest request)
List SMS Templates- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listSmsTemplates
public MarketingListSmsTemplatesResponse listSmsTemplates(MarketingListSmsTemplatesRequest request, java.util.Optional<Options> options)
List SMS Templates- 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.RuntimeException- subclass if the API call fails
-
createSmsTemplate
public MarketingCreateSmsTemplateRequestBuilder createSmsTemplate()
Create SMS Template- Returns:
- The call builder
-
createSmsTemplate
public MarketingCreateSmsTemplateResponse createSmsTemplate(java.lang.String xAccountId, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto)
Create SMS Template- Parameters:
xAccountId- The account identifiermarketingCreateSmsTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createSmsTemplate
public MarketingCreateSmsTemplateResponse createSmsTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto, java.util.Optional<Options> options)
Create SMS Template- Parameters:
xAccountId- The account identifierprefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateSmsTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getSmsTemplate
public MarketingGetSmsTemplateRequestBuilder getSmsTemplate()
Get SMS Template- Returns:
- The call builder
-
getSmsTemplate
public MarketingGetSmsTemplateResponse getSmsTemplate(MarketingGetSmsTemplateRequest request)
Get SMS Template- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getSmsTemplate
public MarketingGetSmsTemplateResponse getSmsTemplate(MarketingGetSmsTemplateRequest request, java.util.Optional<Options> options)
Get SMS Template- 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.RuntimeException- subclass if the API call fails
-
updateSmsTemplate
public MarketingUpdateSmsTemplateRequestBuilder updateSmsTemplate()
Update SMS Template- Returns:
- The call builder
-
updateSmsTemplate
public MarketingUpdateSmsTemplateResponse updateSmsTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto)
Update SMS Template- Parameters:
xAccountId- The account identifierid-marketingCreateSmsTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateSmsTemplate
public MarketingUpdateSmsTemplateResponse updateSmsTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateSmsTemplateRequestDto marketingCreateSmsTemplateRequestDto, java.util.Optional<Options> options)
Update SMS Template- Parameters:
xAccountId- The account identifierid-prefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateSmsTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listOmniChannelTemplates
@Deprecated public MarketingListOmniChannelTemplatesRequestBuilder listOmniChannelTemplates()
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.List Omni-Channel Templates- Returns:
- The call builder
-
listOmniChannelTemplates
@Deprecated public MarketingListOmniChannelTemplatesResponse listOmniChannelTemplates(MarketingListOmniChannelTemplatesRequest request)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.List Omni-Channel Templates- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listOmniChannelTemplates
@Deprecated public MarketingListOmniChannelTemplatesResponse listOmniChannelTemplates(MarketingListOmniChannelTemplatesRequest request, java.util.Optional<Options> options)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.List Omni-Channel Templates- 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.RuntimeException- subclass if the API call fails
-
createOmniChannelTemplate
@Deprecated public MarketingCreateOmniChannelTemplateRequestBuilder createOmniChannelTemplate()
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Create Omni-Channel Template- Returns:
- The call builder
-
createOmniChannelTemplate
@Deprecated public MarketingCreateOmniChannelTemplateResponse createOmniChannelTemplate(java.lang.String xAccountId, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Create Omni-Channel Template- Parameters:
xAccountId- The account identifiermarketingCreateTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createOmniChannelTemplate
@Deprecated public MarketingCreateOmniChannelTemplateResponse createOmniChannelTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto, java.util.Optional<Options> options)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Create Omni-Channel Template- Parameters:
xAccountId- The account identifierprefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getOmniChannelTemplate
@Deprecated public MarketingGetOmniChannelTemplateRequestBuilder getOmniChannelTemplate()
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Get Omni-Channel Template- Returns:
- The call builder
-
getOmniChannelTemplate
@Deprecated public MarketingGetOmniChannelTemplateResponse getOmniChannelTemplate(MarketingGetOmniChannelTemplateRequest request)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Get Omni-Channel Template- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getOmniChannelTemplate
@Deprecated public MarketingGetOmniChannelTemplateResponse getOmniChannelTemplate(MarketingGetOmniChannelTemplateRequest request, java.util.Optional<Options> options)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Get Omni-Channel Template- 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.RuntimeException- subclass if the API call fails
-
updateOmniChannelTemplate
@Deprecated public MarketingUpdateOmniChannelTemplateRequestBuilder updateOmniChannelTemplate()
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Update Omni-Channel Template- Returns:
- The call builder
-
updateOmniChannelTemplate
@Deprecated public MarketingUpdateOmniChannelTemplateResponse updateOmniChannelTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Update Omni-Channel Template- Parameters:
xAccountId- The account identifierid-marketingCreateTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateOmniChannelTemplate
@Deprecated public MarketingUpdateOmniChannelTemplateResponse updateOmniChannelTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateTemplateRequestDto marketingCreateTemplateRequestDto, java.util.Optional<Options> options)
Deprecated.method: This will be removed in a future release, please migrate away from it as soon as possible.Update Omni-Channel Template- Parameters:
xAccountId- The account identifierid-prefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listPushTemplates
public MarketingListPushTemplatesRequestBuilder listPushTemplates()
List Push Templates- Returns:
- The call builder
-
listPushTemplates
public MarketingListPushTemplatesResponse listPushTemplates(MarketingListPushTemplatesRequest request)
List Push Templates- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listPushTemplates
public MarketingListPushTemplatesResponse listPushTemplates(MarketingListPushTemplatesRequest request, java.util.Optional<Options> options)
List Push Templates- 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.RuntimeException- subclass if the API call fails
-
createPushTemplate
public MarketingCreatePushTemplateRequestBuilder createPushTemplate()
Create Push Template- Returns:
- The call builder
-
createPushTemplate
public MarketingCreatePushTemplateResponse createPushTemplate(java.lang.String xAccountId, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto)
Create Push Template- Parameters:
xAccountId- The account identifiermarketingCreatePushTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createPushTemplate
public MarketingCreatePushTemplateResponse createPushTemplate(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto, java.util.Optional<Options> options)
Create Push Template- Parameters:
xAccountId- The account identifierprefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreatePushTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getPushTemplate
public MarketingGetPushTemplateRequestBuilder getPushTemplate()
Get Push Template- Returns:
- The call builder
-
getPushTemplate
public MarketingGetPushTemplateResponse getPushTemplate(MarketingGetPushTemplateRequest request)
Get Push Template- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getPushTemplate
public MarketingGetPushTemplateResponse getPushTemplate(MarketingGetPushTemplateRequest request, java.util.Optional<Options> options)
Get Push Template- 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.RuntimeException- subclass if the API call fails
-
updatePushTemplate
public MarketingUpdatePushTemplateRequestBuilder updatePushTemplate()
Update Push Template- Returns:
- The call builder
-
updatePushTemplate
public MarketingUpdatePushTemplateResponse updatePushTemplate(java.lang.String xAccountId, java.lang.String id, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto)
Update Push Template- Parameters:
xAccountId- The account identifierid-marketingCreatePushTemplateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updatePushTemplate
public MarketingUpdatePushTemplateResponse updatePushTemplate(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreatePushTemplateRequestDto marketingCreatePushTemplateRequestDto, java.util.Optional<Options> options)
Update Push Template- Parameters:
xAccountId- The account identifierid-prefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreatePushTemplateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listCampaigns
public MarketingListCampaignsRequestBuilder listCampaigns()
List campaigns- Returns:
- The call builder
-
listCampaigns
public MarketingListCampaignsResponse listCampaigns(MarketingListCampaignsRequest request)
List campaigns- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listCampaigns
public MarketingListCampaignsResponse listCampaigns(MarketingListCampaignsRequest request, java.util.Optional<Options> options)
List campaigns- 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.RuntimeException- subclass if the API call fails
-
getCampaign
public MarketingGetCampaignRequestBuilder getCampaign()
Get campaign- Returns:
- The call builder
-
getCampaign
public MarketingGetCampaignResponse getCampaign(MarketingGetCampaignRequest request)
Get campaign- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getCampaign
public MarketingGetCampaignResponse getCampaign(MarketingGetCampaignRequest request, java.util.Optional<Options> options)
Get campaign- 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.RuntimeException- subclass if the API call fails
-
listContentBlocks
public MarketingListContentBlocksRequestBuilder listContentBlocks()
List Content Blocks- Returns:
- The call builder
-
listContentBlocks
public MarketingListContentBlocksResponse listContentBlocks(MarketingListContentBlocksRequest request)
List Content Blocks- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listContentBlocks
public MarketingListContentBlocksResponse listContentBlocks(MarketingListContentBlocksRequest request, java.util.Optional<Options> options)
List Content Blocks- 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.RuntimeException- subclass if the API call fails
-
createContentBlock
public MarketingCreateContentBlockRequestBuilder createContentBlock()
Create Content Block- Returns:
- The call builder
-
createContentBlock
public MarketingCreateContentBlockResponse createContentBlock(java.lang.String xAccountId, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto)
Create Content Block- Parameters:
xAccountId- The account identifiermarketingCreateContentBlocksRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createContentBlock
public MarketingCreateContentBlockResponse createContentBlock(java.lang.String xAccountId, java.util.Optional<java.lang.String> prefer, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto, java.util.Optional<Options> options)
Create Content Block- Parameters:
xAccountId- The account identifierprefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateContentBlocksRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getContentBlock
public MarketingGetContentBlockRequestBuilder getContentBlock()
Get Content Blocks- Returns:
- The call builder
-
getContentBlock
public MarketingGetContentBlockResponse getContentBlock(MarketingGetContentBlockRequest request)
Get Content Blocks- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getContentBlock
public MarketingGetContentBlockResponse getContentBlock(MarketingGetContentBlockRequest request, java.util.Optional<Options> options)
Get Content Blocks- 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.RuntimeException- subclass if the API call fails
-
updateContentBlock
public MarketingUpdateContentBlockRequestBuilder updateContentBlock()
Update Content Block- Returns:
- The call builder
-
updateContentBlock
public MarketingUpdateContentBlockResponse updateContentBlock(java.lang.String xAccountId, java.lang.String id, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto)
Update Content Block- Parameters:
xAccountId- The account identifierid-marketingCreateContentBlocksRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateContentBlock
public MarketingUpdateContentBlockResponse updateContentBlock(java.lang.String xAccountId, java.lang.String id, java.util.Optional<java.lang.String> prefer, MarketingCreateContentBlocksRequestDto marketingCreateContentBlocksRequestDto, java.util.Optional<Options> options)
Update Content Block- Parameters:
xAccountId- The account identifierid-prefer- Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)marketingCreateContentBlocksRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
-