public interface ExactTargetClient
Modifier and Type | Method and Description |
---|---|
void |
addSubscriberToList(Subscriber subscriber)
This function calls an ET webservice to add a subscriber to a list.
|
void |
checkCredentials()
This function is used to validate the connection parameters with ExactTarget provided while creating the ExactTarget cloudservice configuration
|
List |
createList(List list)
This function calls ET WebService to create a list in ET.
|
void |
deleteList(java.lang.String listId)
This function calls ET WebService to delete a list from ET.
|
void |
deleteSubscriberFromList(Subscriber subscriber)
This function calls ET Webservice to delete a subscriber from a list.
|
java.util.List<PropertyDefinition> |
describeSubscriber()
This function calls a webservice that describes the ET subscriber parameters.
|
java.util.List<Account> |
getAccounts(FilterPart filter)
This function returns all the accounts associated with the ExactTarget configuration.
|
java.util.List<Email> |
getEmails(FilterPart filter)
This function calls ET WebService to get all the emails for an account.
|
java.util.List<SendClassification> |
getSendClassifications(FilterPart filter)
This function calls ET WebService to get all the email send classifications for an account.
|
java.util.List<List> |
getSubscriberList(FilterPart filter)
This function calls an ET webservice to fetch the subscription lists in ET.
|
java.util.List<ListSubscriber> |
getSubscribers(java.lang.String listId)
This function calls ET WebService to get all subscribers on a list in ET.
|
Email |
publishEmail(Email email)
This fucntion calls an ET webservice to publish and Email to ET.
|
java.util.List<DataExtension> |
retrieveDataExtension(java.lang.String[] properties,
FilterPart filter)
This function is used to retrieve filtered
data extension objects. |
java.util.List<DataExtensionField> |
retrieveDataExtensionFields(FilterPart filter,
java.lang.String[] fields)
This function is used to retrieve data extension
columns
from the data extension specified in the filter |
void |
sendEmail(Email email,
Subscriber subscriber)
This function calls ET WebService to send an email to a subscriber through ET.
|
void |
sendEmail(Email email,
SubscriberList subscriberList)
This function calls an ET webservice to send an email through ET.
|
void |
updateEmail(Email email)
This function calls an ET webservice to update published email on ExactTarget
|
java.util.Map<java.lang.String,java.lang.String> |
viewPublishedNewsletter(java.lang.String entityId) |
java.util.List<PropertyDefinition> describeSubscriber() throws ExactTargetException
ExactTargetException
- In case of error.java.util.List<List> getSubscriberList(FilterPart filter) throws ExactTargetException
filter
- custom filtering parameters to fetch the list.ExactTargetException
- In case of error.void addSubscriberToList(Subscriber subscriber) throws ExactTargetException
subscriber
- A subscriber that needs to be added to the mailing lists specified within the subscriber , see set lists
.ExactTargetException
- In case of error.Email publishEmail(Email email) throws ExactTargetException
email
- The email object to be publishedExactTargetException
- In case of error.void updateEmail(Email email) throws ExactTargetException
email
- The email containing the updated content and ID set to that of the email to be updated on ExactTargetExactTargetException
void sendEmail(Email email, SubscriberList subscriberList) throws ExactTargetException
email
- with ID set to that of the existing email on ExactTarget which is meant to be sent. Further emailclassification(customerkey
) can be set.subscriberList
- The list to which mail will be sent.ExactTargetException
- In case of error.void deleteSubscriberFromList(Subscriber subscriber) throws ExactTargetException
subscriber
- The subscriber to be deleted from lists specified within subscriber,see set lists
.ExactTargetException
- In case of error.java.util.List<Email> getEmails(FilterPart filter) throws ExactTargetException
filter
- filtering criteria for emails (future use)ExactTargetException
- In case of error.java.util.List<SendClassification> getSendClassifications(FilterPart filter) throws ExactTargetException
filter
- filtering criteria for send classifications (future use)ExactTargetException
- In case of error.void sendEmail(Email email, Subscriber subscriber) throws ExactTargetException
email
- with ID set to that of the existing email on ExactTarget which is meant to be sent. Further emailclassification(customerkey
) can be set.subscriber
- The subscriber to which the email has to be sentExactTargetException
- In case of error.List createList(List list) throws ExactTargetException
list
- The list to be createdExactTargetException
- In case of error.void deleteList(java.lang.String listId) throws ExactTargetException
listId
- ID of the list to be deletedExactTargetException
- In case of error.java.util.List<ListSubscriber> getSubscribers(java.lang.String listId) throws ExactTargetException
listId
- ID of the list for which subscribers need to be fetchedExactTargetException
- In case of error.java.util.List<Account> getAccounts(FilterPart filter) throws ExactTargetException
filter
- Pass null if no filtering needed.ExactTargetException
- in case of errorsjava.util.Map<java.lang.String,java.lang.String> viewPublishedNewsletter(java.lang.String entityId) throws ExactTargetException
params
- The parameter to connect to ExactTargetentityId
- Id of the published email/newsletter as saved on ExactTargetExactTargetException
void checkCredentials() throws ExactTargetException
EmailServiceException
- in case of errors.ExactTargetException
java.util.List<DataExtension> retrieveDataExtension(java.lang.String[] properties, FilterPart filter) throws ExactTargetException
data extension
objects.properties
- The properties of the data extension to be retrieved.filter
- Filter
to be applied while retrieving, e.g, IsSendable equals trueExactTargetException
- in case of errorsjava.util.List<DataExtensionField> retrieveDataExtensionFields(FilterPart filter, java.lang.String[] fields) throws ExactTargetException
columns
from the data extension specified in the filterfilter
- Filter should specify the DataExtension whose columns are to be retrieved, e.g., DataExtension.CustomerKey equals *****fields
- Attributes of the columns, e.g., Name, DefaultValue, etc.column fields
ExactTargetException
- in case of errors"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"