@Connector(name="marketo", minMuleVersion="3.7", friendlyName="Marketo") @RequiresEnterpriseLicense(allowEval=true) public class MarketoConnector extends Object
Constructor and Description |
---|
MarketoConnector() |
Modifier and Type | Method and Description |
---|---|
List<LeadsList> |
addLeadsToList(int listId,
List<Integer> leadIds,
org.mule.api.MuleMessage muleMessage)
Allows the called to add leads to a list
|
EmailId |
approveEmailById(int emailId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to approve the draft version of an email by ID.
|
EmailTemplate |
approveEmailTemplateById(int templateId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to approve an email template by its ID.
|
IdOnlyProgram |
approveProgram(int programId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to approve a program by ID.
|
Snippet |
approveSnippetById(int snippetId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to approve the draft version of a snippet by ID.
|
void |
associateLead(int leadId,
String cookie,
org.mule.api.MuleMessage muleMessage)
Allows the caller to associate a lead with a cookie value
|
org.mule.streaming.ProviderAwarePagingDelegate<Folder,MarketoConnector> |
browseFolders(FolderId root,
Integer maxDepth,
String workSpace,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the contents of a folder.
|
org.mule.streaming.ProviderAwarePagingDelegate<ProgramResponse,MarketoConnector> |
browsePrograms(ProgramStatus status,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Retrieves a list of programs.
|
EmailResponse |
cloneEmailById(int emailId,
String emailName,
FolderId folder,
String description,
Boolean isOperational,
org.mule.api.MuleMessage muleMessage)
Allows the caller to clone an email by its ID.
|
EmailTemplate |
cloneEmailTemplate(int templateId,
String emailTemplateName,
FolderId folder,
org.mule.api.MuleMessage muleMessage)
Allows the caller to clone an email template.
|
ProgramResponse |
cloneProgram(int programId,
String programName,
FolderId folder,
String description,
org.mule.api.MuleMessage muleMessage)
Allows to user to clone a program and its underlying assets to a target folder with the designated name and description.
|
Snippet |
cloneSnippetById(int snippetId,
String snippetName,
FolderId folder,
String description,
org.mule.api.MuleMessage muleMessage)
Allows the caller to clone a snippet by its ID.
|
EmailResponse |
createEmail(Email email,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create an email.
|
EmailTemplate |
createEmailTemplate(String emailTemplateName,
FolderId folder,
Object content,
String description,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create an email template.
|
AssetFile |
createFile(String fileName,
Object content,
FolderId folder,
String description,
Boolean insertOnly,
org.mule.api.MuleMessage muleMessage)
Allows the caller to upload a file.
|
Folder |
createFolder(String folderName,
FolderId parent,
String description,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create a folder.
|
LandingPageTemplate |
createLandingPageTemplate(String templateName,
FolderId folder,
String description,
TemplateType templateType,
org.mule.api.MuleMessage muleMessage)
Allows the caller create Landing Page Template.
|
List<CustomObject> |
createOrUpdateCustomObjects(String customObjectName,
List<Map<String,Object>> customObjects,
CustomObjectsActions actions,
DedupeBy dedupeBy,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create, update, or upsert data for specified custom objects.
|
List<CreateOrUpdateLead> |
createOrUpdateLead(List<Map<String,Object>> records,
String lookupField,
LeadsActions action,
boolean asyncProcessing,
String partitionName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create new leads within Marketo, or if the lead already exists update it with the submitted values
|
List<OpportunityResponse> |
createOrUpdateOpportunity(List<Map<String,Object>> objectDefinitions,
EntityActions action,
DedupeBy dedupeBy,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create/update or upsert opportunity object metadata.
|
List<OpportunityResponse> |
createOrUpdateOpportunityRoles(List<Map<String,Object>> objectDefinitions,
EntityActions action,
DedupeBy dedupeBy,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create/update or upsert opportunity role object
|
ProgramResponse |
createProgram(FolderId folder,
String programName,
ProgramType type,
String description,
String channel,
List<Tag> tags,
List<Cost> costs,
org.mule.api.MuleMessage muleMessage)
Alows for the creation of a new program.
|
Snippet |
createSnippet(String snippetName,
FolderId folder,
String description,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create a snippet.
|
TokenResponse |
createToken(TokenCreateInput token,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create custom tokens for a folder or program.
|
List<CreateOrUpdateEntity> |
createUpdateUpsertCompanies(String key,
List<Map<String,Object>> inputCompanies,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create/update or upsert company object metadata.
|
List<CreateOrUpdateEntity> |
createUpdateUpsertSalesPersons(String key,
List<Map<String,Object>> inputSalesPersons,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create/update or upsert sales person objects records.
|
List<DeletedEntity> |
deleteCompanies(String deleteBy,
List<Map<String,Object>> criteria,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete companies by dedupe fields or ID field.
|
List<CustomObject> |
deleteCustomObjects(String key,
List<Map<String,Object>> criteria,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete custom objects by dedupe fields or id field
|
EmailId |
deleteEmailById(int emailId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete an email by its ID.
|
EmailTemplateId |
deleteEmailTemplateById(int templateId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete an email template by its ID.
|
DeletedFolder |
deleteFolderById(FolderId folderId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete a folder by folder ID.
|
List<CreateOrUpdateLead> |
deleteLead(List<LeadId> records,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete leads
|
List<OpportunityResponse> |
deleteOpportunities(List<Map<String,Object>> searchValues,
String deleteBy,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete opportunities by dedupe fields or id field
|
List<OpportunityResponse> |
deleteOpportunityRoles(List<Map<String,Object>> searchValues,
String deleteBy,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete opportunity by dedupe fields or id field.
|
IdOnlyProgram |
deleteProgramById(int programId,
org.mule.api.MuleMessage muleMessage)
Allows deletion of program by Id.
|
List<DeletedEntity> |
deleteSalesPersons(String deleteBy,
List<Map<String,Object>> criteria,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete sales persons by dedupe fields or ID field.
|
SnippetId |
deleteSnippet(int snippetId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete a snippet by id.
|
List<DeletedToken> |
deleteTokensByFolderId(TokenDeleteInput token,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete a token by folder ID.
|
EntityDescription |
describeCompany(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve company object metadata.
|
Map<String,Object> |
describeCustomObjects(String customObjectName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve the metadata for a specified custom object.
|
List<Lead> |
describeLead(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve all fields and the data type of a lead object.
|
Opportunity |
describeOpportunity(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve opportunity object metadata.
|
Opportunity |
describeOpportunityRole(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve opportunity role object metadata
|
EntityDescription |
describeSalesPerson(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve all fields and the data type of a sales person object.
|
EmailId |
discardEmailDraftById(int emailId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete a draft email by ID.
|
EmailTemplateId |
discardEmailTemplateDraftById(int templateId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to discard a draft of an email template.
|
SnippetId |
discardSnippetDraftById(int snippetId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to delete a draft snippet by ID.
|
List<ActivityTypes> |
getActivityTypes(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve metadata about activity types
|
Campaign |
getCampaignById(int campaignId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve a campaign using a Marketo ID
|
Channel |
getChannelByName(String channelName,
org.mule.api.MuleMessage muleMessage)
Returns a channel by its name.
|
org.mule.streaming.ProviderAwarePagingDelegate<Channel,MarketoConnector> |
getChannels(org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Get Channels.
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getCompanies(String filterType,
List<Map<String,Object>> filterValues,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve companies using specified input parameters.
|
Config |
getConfig() |
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getCustomObjects(String key,
List<Map<String,Object>> searchValues,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve custom objects using specified input parameters
|
DailyErrors |
getDailyErrors(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve error codes and their count for the day
|
DailyUsage |
getDailyUsage(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve total and user-level usage count for the day
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getDeletedLeads(String nextPageToken,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve a list of leads that were deleted
|
EmailResponse |
getEmailById(int emailId,
EmailStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get an email based on its ID.
|
EmailResponse |
getEmailByName(String emailName,
EmailStatus status,
FolderId folder,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get an email by name.
|
EmailContent |
getEmailContentById(int emailId,
EmailStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the content associated with an email by its ID.
|
EmailDynamicContentResponse |
getEmailDynamicContentById(int emailId,
String dynamicContentId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to associate static or dynamic content to a given editable section of an email.
|
org.mule.streaming.ProviderAwarePagingDelegate<EmailResponse,MarketoConnector> |
getEmails(EmailStatus status,
FolderId folder,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a list of emails.
|
EmailTemplate |
getEmailTemplateById(int templateId,
EmailTemplateStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get an email template by its ID.
|
EmailTemplate |
getEmailTemplateByName(String emailTemplateName,
EmailTemplateStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get an email template by its ID.
|
EmailTemplateContent |
getEmailTemplateContentById(int templateId,
EmailTemplateStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the content associated with an email template by the template ID.
|
org.mule.streaming.ProviderAwarePagingDelegate<EmailTemplate,MarketoConnector> |
getEmailTemplates(EmailTemplateStatus status,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a list of email templates.
|
AssetFile |
getFileById(Integer fileId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the contents of a file based on its ID.
|
AssetFile |
getFileByName(String fileName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the contents of a file based on its name.
|
org.mule.streaming.ProviderAwarePagingDelegate<AssetFile,MarketoConnector> |
getFileList(FolderId folder,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a list of files from a folder.
|
Folder |
getFolderById(FolderId folderId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a folder or program based on its ID.
|
List<Folder> |
getFolderByName(String folderName,
FolderType type,
Integer root,
String workSpace,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a folder or program by name.
|
org.mule.streaming.ProviderAwarePagingDelegate<FolderContents,MarketoConnector> |
getFolderContents(FolderId folderId,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the contents of a folder.
|
File |
getImportFailureFile(int batchId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to return the failure file from Import Lead call in the same format that was used
|
List<LeadStatus> |
getImportLeadStatus(int batchId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve the status of lead operation from Import Lead call
|
File |
getImportWarningFile(int batchId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to return the warning file from Import Lead call in the same format that was used
|
LandingPageTemplateContent |
getLandingPageContent(int templateId,
LandingPageTemplateStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve Landing Page Template content.
|
LandingPageTemplate |
getLandingPageTemplateById(int templateId,
LandingPageTemplateStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve Landing Page Template metadata.
|
LandingPageTemplate |
getLandingPageTemplateByName(String templateName,
LandingPageTemplateStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve Landing Page Template metadata by Name.
|
List<DailyErrors> |
getLast7DaysErrors(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve error codes and their count for the last 7 days
|
List<DailyUsage> |
getLast7DaysUsage(org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve total and user-level usage count for last 7 days
|
org.mule.streaming.ProviderAwarePagingDelegate<LeadActivities,MarketoConnector> |
getLeadActivities(List<Integer> activityTypeIds,
String nextPageToken,
Integer listId,
List<String> leadIds,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve activities for the requested activity types
|
Map<String,Object> |
getLeadById(int leadId,
List<String> fields,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve a single lead using the Lead Id
|
org.mule.streaming.ProviderAwarePagingDelegate<LeadChanges,MarketoConnector> |
getLeadChanges(String nextPageToken,
Integer listId,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve a list of changed data value for lead
|
List<Partition> |
getLeadPartitions(org.mule.api.MuleMessage muleMessage)
Allows the caller to return a list of lead partitions in a Marketo instance
|
MarketoList |
getListById(int listId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve a List by their id
|
List<Map<String,Object>> |
getListOfCustomObjects(List<String> customObjectNames,
org.mule.api.MuleMessage muleMessage)
Allows the called to retrieve a list of custom object definitions based on a specified search criteria
|
org.mule.streaming.ProviderAwarePagingDelegate<Campaign,MarketoConnector> |
getMultipleCampaigns(List<Integer> campaignIds,
List<String> names,
List<String> programNames,
List<String> workspaceNames,
String nextPageToken,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve multiple campaigns
|
org.mule.streaming.ProviderAwarePagingDelegate<LandingPageTemplate,MarketoConnector> |
getMultipleLandingPageTemplates(LandingPageTemplateStatus status,
FolderId folder,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve metadata for multiple Landing Page Templates.
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getMultipleLeadsByFilterType(String filterType,
List<String> filterValues,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve multiple leads for a given search criteria
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getMultipleLeadsByListId(int listId,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve multiple leads from a given list id
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getMultipleLeadsByProgramId(int programId,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve multiple leads from a given list id
|
org.mule.streaming.ProviderAwarePagingDelegate<MarketoList,MarketoConnector> |
getMultipleLists(List<Integer> listIds,
List<String> names,
List<String> programNames,
List<String> workspaceNames,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve multiple lists.
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getOpportunities(String filterType,
List<String> filterValues,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve opportunities using specified input parameters
|
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getOpportunityRoles(String filterType,
List<String> filterValues,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve opportunity roles using specified input parameters
|
String |
getPagingToken(Calendar sinceDateTime,
org.mule.api.MuleMessage muleMessage)
Allows the caller to retrieve a token for a given date
|
ProgramResponse |
getProgramById(int programId,
org.mule.api.MuleMessage muleMessage)
Allows the user to retrieve a
program based on its ID. |
ProgramResponse |
getProgramByName(String programName,
org.mule.api.MuleMessage muleMessage)
Allows a user to specify a name parameter to use to retrieve program data.
|
List<ProgramResponse> |
getProgramByTag(Tag tag,
org.mule.api.MuleMessage muleMessage)
Allows a user to specify a
Tag (type and value) parameter to use to retrieve program data. |
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> |
getSalesPersons(String filterType,
List<Map<String,Object>> filterValues,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Allows the caller to retrieve sales persons using specified input parameters.
|
org.mule.streaming.ProviderAwarePagingDelegate<Segmentation,MarketoConnector> |
getSegmentations(SegmentStatus status,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Returns a list of segmentations present in the instance.
|
org.mule.streaming.ProviderAwarePagingDelegate<Segment,MarketoConnector> |
getSegments(int segmentationId,
SegmentStatus status,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Retrieves a list of segments from a parent segmentation.
|
Snippet |
getSnippetById(int snippetId,
SnippetStatus status,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a snippet based on its id.
|
List<AssetContent<SnippetDynamicContentType>> |
getSnippetContentById(int snippetId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the content of a snippet by its ID.
|
SnippetDynamicContentResponse |
getSnippetDynamicContentById(int snippetId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get the content of a segment that is associated with a snippet.
|
org.mule.streaming.ProviderAwarePagingDelegate<Snippet,MarketoConnector> |
getSnippets(SnippetStatus status,
org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get a list of snippets.
|
TagType |
getTagByName(String tagName,
org.mule.api.MuleMessage muleMessage)
Returns a tag by its name.
|
org.mule.streaming.ProviderAwarePagingDelegate<TagType,MarketoConnector> |
getTags(org.mule.streaming.PagingConfiguration pagingConfiguration,
org.mule.api.MuleMessage muleMessage)
Returns a list of all available tags in the target instance.
|
TokenResponse |
getTokenByFolderId(FolderId folderId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to get tokens for a folder based on the folder ID.
|
List<Map<String,Object>> |
importLead(ImportLeadFormats format,
Object file,
String lookupField,
Integer listId,
String partitionName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to sync leads in bulk
|
List<LeadsList> |
memberOfList(int listId,
List<Integer> leadIds,
org.mule.api.MuleMessage muleMessage)
Allows the caller to find out if leads are a member of a given list
|
void |
mergeLead(int leadId,
List<LeadId> losingLeadIds,
boolean mergeInCRM,
org.mule.api.MuleMessage muleMessage)
Allows the caller to merge a winning lead and a list of losers leads.
|
List<LeadsList> |
removeLeadsFromList(int listId,
List<Integer> leadIds,
org.mule.api.MuleMessage muleMessage)
Allows the caller to remove a lead from a list
|
IdOnlyObject |
requestCampaign(int campaignId,
List<Integer> leads,
List<CampaignTokens> tokens,
org.mule.api.MuleMessage muleMessage)
Allows the user to run an existing Marketo lead in a Marketo Smart Campaign
|
IdOnlyObject |
scheduleCampaign(int campaignId,
Calendar runAt,
String cloneToProgramName,
List<CampaignTokens> token,
org.mule.api.MuleMessage muleMessage)
Allows the caller to schedule a batch Smart Campaign to run either immediately or at a future date
|
ServiceResponse |
sendSampleEmail(int emailId,
String emailAddress,
Boolean textOnly,
Integer leadId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to send a sample email to a given address.
|
void |
setConfig(Config config) |
EmailId |
unapproveEmailById(int emailId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to unapprove an email by ID.
|
EmailTemplate |
unapproveEmailTemplateById(int templateId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to unapprove an email template by its ID.
|
IdOnlyProgram |
unapproveProgram(int programId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to unapprove a program.
|
Snippet |
unapproveSnippetById(int snippetId,
org.mule.api.MuleMessage muleMessage)
Allows the caller to unapprove a snippet by ID.
|
EmailResponse |
updateEmail(int emailId,
String description,
String emailName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update an email using its ID.
|
EmailId |
updateEmailContentById(int emailId,
EmailField subject,
EmailField fromEmail,
EmailField fromName,
EmailField replyTo,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update an email's content by id.
|
EmailId |
updateEmailContentInEditableSection(int emailId,
String htmlId,
EmailContentType type,
Object value,
String textValue,
org.mule.api.MuleMessage muleMessage)
Allows the caller to associate static or dynamic content to a given editable section of an email.
|
EmailId |
updateEmailDynamicContentById(int emailId,
String dynamicContentId,
String segment,
String value,
EmailDynamicContentType type,
org.mule.api.MuleMessage muleMessage)
Allows the caller to create or update a section of the dynamic content of an email by segment ID.
|
EmailTemplate |
updateEmailTemplate(int templateId,
String description,
String emailTemplateName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update an email template.
|
EmailTemplateId |
updateEmailTemplateContentById(int templateId,
Object content,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update the content of an email template by the template ID.
|
AssetFile |
updateFile(Integer fileId,
Object content,
org.mule.api.MuleMessage muleMessage)
Allows the caller to replace the content of the file with the given id.
|
Folder |
updateFolder(FolderId folderId,
String description,
String newFolderName,
Boolean isArchive,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update a folder using its ID.
|
LandingPageTemplate |
updateLandingPageTemplate(int templateId,
String templateName,
String description,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update Landing Page Template metadata.
|
UpdatedLandingPageTemplate |
updateLandingPageTemplateContentById(LandingPageTemplateContent landingPageTemplateContent,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update the content of a landing page template.
|
List<PartitionResponse> |
updateLeadsPartition(List<UpdateLeadPartition> input,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update the partition for one or more leads
|
ProgramResponse |
updateProgram(int programId,
String description,
String programName,
List<Tag> tags,
List<Cost> costs,
boolean costsDestructiveUpdate,
org.mule.api.MuleMessage muleMessage)
Allows the user to update fields on the target program.
|
Snippet |
updateSnippetById(int snippetId,
String description,
String snippetName,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update a snippet using its id.
|
SnippetId |
updateSnippetContentById(int snippetId,
SnippetDynamicContentType type,
String content,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update the content of a snippet by its ID.
|
SnippetId |
updateSnippetDynamicContentById(int snippetId,
int segmentId,
SnippetDynamicContentType type,
String value,
org.mule.api.MuleMessage muleMessage)
Allows the caller to update the content of a segment that is associated with a snippet.
|
public Config getConfig()
public void setConfig(Config config)
@Processor(friendlyName="Program | Get Channels") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Channel,MarketoConnector> getChannels(@RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
This function retrieves the following information about a channel set up in Marketo:
pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Channel
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Get Channel by Name") public Channel getChannelByName(@Default(value="#[payload]") String channelName, org.mule.api.MuleMessage muleMessage) throws MarketoException
channelName
- The name of the channel to retrieve.muleMessage
- injected by Mule, used for adding Outbound PropertiesChannel
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Custom Objects | Describe Custom Objects") @MetaDataScope(value=GetCustomObjectsNamesMetaData.class) public Map<String,Object> describeCustomObjects(@MetaDataKeyParam String customObjectName, org.mule.api.MuleMessage muleMessage) throws MarketoException
customObjectName
- the name of the custom objectmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Custom Objects | Create or Update Custom Objects") @MetaDataScope(value=CreateUpdateCustomObjectsMetaData.class) public List<CustomObject> createOrUpdateCustomObjects(@MetaDataKeyParam(affects=INPUT) String customObjectName, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> customObjects, @Default(value="CREATE_OR_UPDATE") CustomObjectsActions actions, @Default(value="DEDUPE_FIELDS") DedupeBy dedupeBy, org.mule.api.MuleMessage muleMessage) throws MarketoException
customObjectName
- the name of the custom objectcustomObjects
- the custom object definitionsactions
- the storage operation. Default: createOrUpdatededupeBy
- the deduplication method. Only valid if actions is UpdateOnly. Default: dedupeFieldsmuleMessage
- injected by Mule, used for adding Outbound PropertiesList
of {org.mule.modules.marketo.model.customobject.CustomObject} with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Custom Objects | Get List of Custom Objects") public List<Map<String,Object>> getListOfCustomObjects(@Default(value="#[payload]") List<String> customObjectNames, org.mule.api.MuleMessage muleMessage) throws MarketoException
customObjectNames
- list of custom object names. If not specified, then all custom objects are returnedmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Custom Objects | Delete Custom Objects") @MetaDataScope(value=DeleteCustomObjectsMetaData.class) public List<CustomObject> deleteCustomObjects(@MetaDataKeyParam(affects=INPUT,labels={"Custom Object Name","Dedupe By"}) String key, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> criteria, org.mule.api.MuleMessage muleMessage) throws MarketoException
criteria
- deletion criteriakey
- the MetaDataKey. Must have the following format: (customObjectName)||(dedupeBy). DedupeBy can be dedupeFields or idField.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of {org.mule.modules.marketo.model.customobject.CustomObject} with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Custom Objects | Get Custom Objects") @Paged @MetaDataScope(value=GetCustomObjectsMetaData.class) public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getCustomObjects(@MetaDataKeyParam(affects=BOTH,labels={"Custom Object Name","Filter Type"}) String key, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> searchValues, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
searchValues
- search valueskey
- the MetaDataKey. Must have the following format: (customObjectName)||(filterType). FilterType can be be any of the searchableFields set that has a single field in
it.fields
- list of fields to return. If not specified, then contains the following fields: marketoGuid, dedupeFields, updatedAt, createdAt and filterTypepagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Usage and Error Counts | Get Daily Usage") public DailyUsage getDailyUsage(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Usage and Error Counts | Get Last 7 Days Usage") public List<DailyUsage> getLast7DaysUsage(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Usage and Error Counts | Get Daily Errors") public DailyErrors getDailyErrors(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Usage and Error Counts | Get Last 7 Days Errors") public List<DailyErrors> getLast7DaysErrors(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Activities | Get Paging Token") public String getPagingToken(@Default(value="#[payload]") Calendar sinceDateTime, org.mule.api.MuleMessage muleMessage) throws MarketoException
sinceDateTime
- the timeframe for your request to the Get Lead Activities or Get Lead Changes APIs. Supported datetime format: "2014-10-06T13:22:17-08:00"
"2014-10-06T13:22-07:00" "2014-10-06"muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Activities | Get Activity Types") public List<ActivityTypes> getActivityTypes(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Activities | Get Deleted Leads") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getDeletedLeads(@Default(value="#[payload]") String nextPageToken, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
nextPageToken
- used to paginate through large result setspagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Activities | Get Lead Changes") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<LeadChanges,MarketoConnector> getLeadChanges(@Default(value="#[payload]") String nextPageToken, @Optional Integer listId, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
nextPageToken
- used to paginate through large result setslistId
- the activities for leads with in this given listfields
- the fields to returnpagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.LeadChanges
with the call response} with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Activities | Get Lead Activities") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<LeadActivities,MarketoConnector> getLeadActivities(@RefOnly List<Integer> activityTypeIds, @Default(value="#[payload]") String nextPageToken, @Optional Integer listId, @Optional List<String> leadIds, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
activityTypeIds
- a list of activity type ids (max 10)nextPageToken
- used to paginate through large result setslistId
- the activities for leads with in this given listleadIds
- a list of lead IDspagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.List
of LeadActivities
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Campaigns | Get Campaign By Id") public Campaign getCampaignById(int campaignId, org.mule.api.MuleMessage muleMessage) throws MarketoException
campaignId
- the campaign IDmuleMessage
- injected by Mule, used for adding Outbound PropertiesCampaign
with the call responseMarketoException
- on valid error from the endpoint@Paged @Processor(friendlyName="Campaigns | Get Multiple Campaigns") public org.mule.streaming.ProviderAwarePagingDelegate<Campaign,MarketoConnector> getMultipleCampaigns(@RefOnly@Optional List<Integer> campaignIds, @Default(value="#[payload]") List<String> names, @Optional List<String> programNames, @Optional List<String> workspaceNames, @Optional String nextPageToken, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
campaignIds
- the campaigns idsnames
- the campaigns namesprogramNames
- the program namesworkspaceNames
- the workspaces namesnextPageToken
- used to paginate through large result setspagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Campaign
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Campaigns | Schedule Campaign") public IdOnlyObject scheduleCampaign(int campaignId, @Optional Calendar runAt, @Optional String cloneToProgramName, @RefOnly@Default(value="#[payload]") List<CampaignTokens> token, org.mule.api.MuleMessage muleMessage) throws MarketoException
campaignId
- the campaign IDrunAt
- the time to run the scheduled campaign. If not provided, schedule it to be 5 mins later.cloneToProgramName
- when this attribute is present, the campaign’s parent program will be cloned and the newly created campaign will be scheduled.token
- The name of the token/s you want to send a new value for.muleMessage
- injected by Mule, used for adding Outbound PropertiesIdOnlyObject
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Campaigns | Request Campaign") public IdOnlyObject requestCampaign(int campaignId, @RefOnly List<Integer> leads, @RefOnly@Default(value="#[payload]") List<CampaignTokens> tokens, org.mule.api.MuleMessage muleMessage) throws MarketoException
campaignId
- the campaign IDleads
- a list of lead IDstokens
- the name of the token/s you want to send a new value formuleMessage
- injected by Mule, used for adding Outbound PropertiesIdOnlyObject
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Create Folder") public Folder createFolder(@Default(value="#[payload]") String folderName, @RefOnly FolderId parent, @Optional String description, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderName
- Name for the folder shown in UI. Name has to be unique under the parent folder. Maximum length 255 characters.parent
- Parent folder under which the folder will be created.description
- Description for the folder. Data type: String. Maximum length 2000 characters.muleMessage
- injected by Mule, used for adding Outbound PropertiesFolder
that was created.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Get Folder by ID") public Folder getFolderById(@RefOnly@Default(value="#[payload]") FolderId folderId, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderId
- The ID for folder in database.muleMessage
- injected by Mule, used for adding Outbound PropertiesFolder
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Get Folder by name") public List<Folder> getFolderByName(@Default(value="#[payload]") String folderName, @RefOnly@Optional FolderType type, @Optional Integer root, @Optional String workSpace, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderName
- Name of folder in the database. Case insensitive.type
- Type of folder to retrieve.root
- ID of the parent folder in the database.workSpace
- Workspace that folder belongs to.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Folder
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Get Folder Contents") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<FolderContents,MarketoConnector> getFolderContents(@RefOnly@Default(value="#[payload]") FolderId folderId, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderId
- ID and Type of folder to retrieve.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of FolderContents
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Update Folder") public Folder updateFolder(@RefOnly@Default(value="#[payload]") FolderId folderId, @Optional String description, @Optional String newFolderName, @Optional Boolean isArchive, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderId
- ID and Type of folder to update.description
- Update folder with this description. Maximum length 2000 characters.newFolderName
- Update folder with this name. Maximum length 255 characters. Must be unique to the workspace. Name cannot be updated for programs.isArchive
- Set to true to archive the folder. If true, then all children folders will be archived as well.muleMessage
- injected by Mule, used for adding Outbound PropertiesFolder
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Delete Folder by ID") public DeletedFolder deleteFolderById(@RefOnly@Default(value="#[payload]") FolderId folderId, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderId
- ID and Type of folder to be deleted.muleMessage
- injected by Mule, used for adding Outbound PropertiesFolder
, with only its ID populated.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Folder | Browse Folders") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Folder,MarketoConnector> browseFolders(@RefOnly@Default(value="#[payload]") FolderId root, @Optional Integer maxDepth, @Optional String workSpace, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
root
- ID and Type of Root folder in the database.maxDepth
- Maximum number of levels to inspect in directory hierarchy. Default value is 2workSpace
- Workspace filter.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Folder
s inside the root Folder
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | File | Create file") public AssetFile createFile(String fileName, @RefOnly@Default(value="#[payload]") Object content, @RefOnly FolderId folder, @Optional String description, @Optional Boolean insertOnly, org.mule.api.MuleMessage muleMessage) throws MarketoException
fileName
- The name of the file to be uploaded.content
- The content of the file.folder
- The ID and Type of the parent folder under which the file will be created.description
- The name of the file to be uploaded.insertOnly
- Sets if existing files are overwritten.muleMessage
- injected by Mule, used for adding Outbound PropertiesAssetFile
.MarketoException
- on valid error from the endpoint.@Processor(friendlyName="Assets | File | Get file by ID") public AssetFile getFileById(Integer fileId, org.mule.api.MuleMessage muleMessage) throws MarketoException
fileId
- ID of the file to be retrieved.muleMessage
- injected by Mule, used for adding Outbound PropertiesAssetFile
with the given id.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Segmentations | Get Segmentations") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Segmentation,MarketoConnector> getSegmentations(@Optional SegmentStatus status, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
status
- Optional status filter for segmentations.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Segmentation
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Segmentations | Get Segments") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Segment,MarketoConnector> getSegments(int segmentationId, @Optional SegmentStatus status, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
segmentationId
- ID of the parent segmentation.status
- Query parameter to filter on draft or approved set of segments.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Segment
s.MarketoException
- on valid error from the endpoint@Paged @Processor(friendlyName="Lists | Get Multiple Lists") public org.mule.streaming.ProviderAwarePagingDelegate<MarketoList,MarketoConnector> getMultipleLists(@RefOnly@Optional List<Integer> listIds, @Default(value="#[payload]") List<String> names, @Optional List<String> programNames, @Optional List<String> workspaceNames, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
listIds
- the list of idsnames
- the list of namesprogramNames
- the list of program namesworkspaceNames
- the list of workspace namespagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of MarketoList
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Get List By Id") public MarketoList getListById(int listId, org.mule.api.MuleMessage muleMessage) throws MarketoException
listId
- the list idmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | File | Get file by name") public AssetFile getFileByName(@Default(value="#[payload]") String fileName, org.mule.api.MuleMessage muleMessage) throws MarketoException
fileName
- Name of the file to be retrieved.muleMessage
- injected by Mule, used for adding Outbound PropertiesAssetFile
with the given name.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Tokens | Create Token") public TokenResponse createToken(@RefOnly@Default(value="#[payload]") TokenCreateInput token, org.mule.api.MuleMessage muleMessage) throws MarketoException
token
- The token to create.muleMessage
- injected by Mule, used for adding Outbound PropertiesToken
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | File | List files") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<AssetFile,MarketoConnector> getFileList(@RefOnly@Default(value="#[payload]") FolderId folder, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
folder
- ID and Type of folder to retrieve.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of AssetFile
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Tokens | Get Tokens by Folder ID") public TokenResponse getTokenByFolderId(@RefOnly@Default(value="#[payload]") FolderId folderId, org.mule.api.MuleMessage muleMessage) throws MarketoException
folderId
- ID of folder or program.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Token
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Add Leads To List") public List<LeadsList> addLeadsToList(int listId, @RefOnly List<Integer> leadIds, org.mule.api.MuleMessage muleMessage) throws MarketoException
listId
- the desired list where the leads will be addedleadIds
- the list of lead idsmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | File | Update file content") public AssetFile updateFile(@RefOnly Integer fileId, @RefOnly@Default(value="#[payload]") Object content, org.mule.api.MuleMessage muleMessage) throws MarketoException
fileId
- ID of the file to update.content
- The new content of the file.muleMessage
- injected by Mule, used for adding Outbound PropertiesAssetFile
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Remove Leads From List") public List<LeadsList> removeLeadsFromList(int listId, @RefOnly@Optional List<Integer> leadIds, org.mule.api.MuleMessage muleMessage) throws MarketoException
listId
- the desired list where the leads will be removedleadIds
- the list of lead idsmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Member Of List") public List<LeadsList> memberOfList(int listId, @RefOnly List<Integer> leadIds, org.mule.api.MuleMessage muleMessage) throws MarketoException
listId
- the desired list where the leads will be removedleadIds
- the list of lead idsmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Import Lead") public List<Map<String,Object>> importLead(@Default(value="CSV") ImportLeadFormats format, @RefOnly@Default(value="#[payload]") Object file, @Optional String lookupField, @Optional Integer listId, @Optional String partitionName, org.mule.api.MuleMessage muleMessage) throws MarketoException
format
- the file format: csv, tst or ssvfile
- the leads datalookupField
- the deduplication fieldlistId
- if listId is not specified, this API operation will create temp static list. Workspace for the list is determined whether partitionName is given or not.partitionName
- if specified, this parameter will verify if user has access to the partition. If not specified, this API operation will use primary partition of the list
workspacemuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Get Import Lead Status") public List<LeadStatus> getImportLeadStatus(int batchId, org.mule.api.MuleMessage muleMessage) throws MarketoException
batchId
- the batch id returned from Import Lead callmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Get Import Failure File") public File getImportFailureFile(int batchId, org.mule.api.MuleMessage muleMessage) throws MarketoException
batchId
- the batch id returned from Import Lead callmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Lists | Get Import Warning File") public File getImportWarningFile(int batchId, org.mule.api.MuleMessage muleMessage) throws MarketoException
batchId
- the batch id returned from Import Lead callmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Tokens | Delete Tokens by Folder ID") public List<DeletedToken> deleteTokensByFolderId(@RefOnly@Default(value="#[payload]") TokenDeleteInput token, org.mule.api.MuleMessage muleMessage) throws MarketoException
token
- The token to delete.muleMessage
- injected by Mule, used for adding Outbound PropertiesDeletedToken
s, containing only their folder IDs.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Create Or Update") @MetaDataScope(value=CreateLeadFieldsMetaData.class) public List<CreateOrUpdateLead> createOrUpdateLead(@RefOnly@Default(value="#[payload]") List<Map<String,Object>> records, @Optional String lookupField, @Default(value="CREATE_OR_UPDATE") LeadsActions action, @Default(value="false") boolean asyncProcessing, @Optional String partitionName, org.mule.api.MuleMessage muleMessage) throws MarketoException
records
- the list of lead records to create or updatelookupField
- if specified, will use this attribute to find the duplicate. Otherwise, email will be used for deduplicationaction
- the action to performasyncProcessing
- this allows you to make call asynchronously. Default is falsepartitionName
- lead partition nameMarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Delete Lead") public List<CreateOrUpdateLead> deleteLead(@RefOnly@Default(value="#[payload]") List<LeadId> records, org.mule.api.MuleMessage muleMessage) throws MarketoException
records
- array of lead ids records to deleteMarketoException
- on valid error from the endpoint@MetaDataScope(value=CreateLeadFieldsMetaData.class) @Processor(friendlyName="Leads | Get Lead By Id") public Map<String,Object> getLeadById(int leadId, @Optional List<String> fields, org.mule.api.MuleMessage muleMessage) throws MarketoException
leadId
- the id of the leadfields
- the fields parameter is not included, the following default fields will be returned: email, updatedAt, createdAt, lastName, firstName, and idMarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Get Lead Partitions") public List<Partition> getLeadPartitions(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Describe") public List<Lead> describeLead(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Associate Lead") public void associateLead(int leadId, @Default(value="#[payload]") String cookie, org.mule.api.MuleMessage muleMessage) throws MarketoException
leadId
- the id of the leadcookie
- cookie value of leadmuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Merge Lead") public void mergeLead(int leadId, @RefOnly@Default(value="#[payload]") List<LeadId> losingLeadIds, @FriendlyName(value="Merge in CRM")@Default(value="false") boolean mergeInCRM, org.mule.api.MuleMessage muleMessage) throws MarketoException
leadId
- the winner lead idlosingLeadIds
- a list of losers leadIdmergeInCRM
- set to true to merge in CRM. Default is falsemuleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Paged @MetaDataScope(value=CreateLeadFieldsMetaData.class) @Processor(friendlyName="Leads | Get Multiple Leads By List Id") public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getMultipleLeadsByListId(int listId, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
listId
- the id of the list. To retrieve a list id, see getMultipleListsfields
- the list of fields to returnpagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Paged @MetaDataScope(value=CreateLeadFieldsMetaData.class) @Processor(friendlyName="Leads | Get Multiple Leads By Program Id") public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getMultipleLeadsByProgramId(int programId, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
programId
- the id of the program.fields
- the list of fields to returnpagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Paged @MetaDataScope(value=CreateLeadFieldsMetaData.class) @Processor(friendlyName="Leads | Get Multiple Leads By Filter Type") public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getMultipleLeadsByFilterType(String filterType, List<String> filterValues, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
filterType
- one of the Marketo supported filter typesfilterValues
- list of filter valuesfields
- the list of fields to returnpagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Create Landing Page Template") public LandingPageTemplate createLandingPageTemplate(@Default(value="#[payload]") String templateName, @RefOnly FolderId folder, String description, TemplateType templateType, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateName
- Name for the Landing Page Template shown in UI. It has to be unique. Maximum length 255 characters.folder
- Folder in which the template will be created. Must be Folder for Landing Page Templates.description
- Description for the template. Maximum length 2000 characters.templateType
- Type of the template. Expects "freeForm" or "guided" and defaults to freeForm.muleMessage
- injected by Mule, used for adding Outbound PropertiesLandingPageTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Get Landing Page Template by ID") public LandingPageTemplate getLandingPageTemplateById(int templateId, @RefOnly LandingPageTemplateStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the Landing Page Template to retrieve.status
- Status of template to retrieve.muleMessage
- injected by Mule, used for adding Outbound PropertiesLandingPageTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Get Landing Page Template by name") public LandingPageTemplate getLandingPageTemplateByName(@Default(value="#[payload]") String templateName, @RefOnly LandingPageTemplateStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateName
- The name of the Landing Page Template to retrieve.status
- Status of template to retrieve.muleMessage
- injected by Mule, used for adding Outbound PropertiesLandingPageTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Get multiple Landing Page Templates") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<LandingPageTemplate,MarketoConnector> getMultipleLandingPageTemplates(@RefOnly LandingPageTemplateStatus status, @RefOnly@Default(value="#[payload]") FolderId folder, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
status
- Status of template to retrieve.folder
- Parent folder to retrieve templates from. Must be a Folder for Landing Page Templates.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of LandingPageTemplate
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Get Landing Page Template Content") public LandingPageTemplateContent getLandingPageContent(int templateId, @RefOnly LandingPageTemplateStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the Landing Page Template to retrieve.status
- Status of template to retrieve.muleMessage
- injected by Mule, used for adding Outbound PropertiesLandingPageTemplateContent
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Update Landing Page Template Content by Id") public UpdatedLandingPageTemplate updateLandingPageTemplateContentById(@RefOnly@Default(value="#[payload]") LandingPageTemplateContent landingPageTemplateContent, org.mule.api.MuleMessage muleMessage) throws MarketoException
landingPageTemplateContent
- The ID and content of the Landing Page Template to update.muleMessage
- injected by Mule, used for adding Outbound PropertiesUpdatedLandingPageTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Landing Page Templates | Update Landing Page Template") public LandingPageTemplate updateLandingPageTemplate(int templateId, String templateName, String description, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the Landing Page Template to update.templateName
- Name of the landing page template.description
- Description of the template.muleMessage
- injected by Mule, used for adding Outbound PropertiesLandingPageTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Leads | Update Leads Partition") public List<PartitionResponse> updateLeadsPartition(@RefOnly@Default(value="#[payload]") List<UpdateLeadPartition> input, org.mule.api.MuleMessage muleMessage) throws MarketoException
input
- Array of input object (id and partitionName)muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Create") public Snippet createSnippet(@Default(value="#[payload]") String snippetName, @RefOnly FolderId folder, String description, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetName
- The name of the snippet. Maximum length 100 characters.folder
- The folder associated with the snippet.description
- The description of the snippet. Maximum length 2000 characters.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippet
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Get by ID") public Snippet getSnippetById(int snippetId, @RefOnly SnippetStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the required snippet.status
- The status of the snippet.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippet
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Delete by ID") public SnippetId deleteSnippet(int snippetId, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet to be deleted.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippetId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Update") public Snippet updateSnippetById(int snippetId, @Optional String description, @Optional String snippetName, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet to be updated.description
- The updated description of the snippet. Maximum length 2000 characters.snippetName
- The updated name for the snippet. Maximum length 100 characters.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippet
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Get list") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Snippet,MarketoConnector> getSnippets(@Optional SnippetStatus status, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
status
- Snippet status.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Snippet
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Get content by ID") public List<AssetContent<SnippetDynamicContentType>> getSnippetContentById(int snippetId, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the required snippet content.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Snippet
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Update content by ID") public SnippetId updateSnippetContentById(int snippetId, @RefOnly SnippetDynamicContentType type, String content, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet which content is to be updated.type
- The content type of the snippet.content
- The content of the snippet.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippetId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Approve by ID") public Snippet approveSnippetById(int snippetId, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet to be approved.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippet
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Unapprove by ID") public Snippet unapproveSnippetById(int snippetId, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet to be unapproved.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippet
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Disapprove by ID") public SnippetId discardSnippetDraftById(int snippetId, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet which draft is to be discarded.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippetId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Clone snippet by ID") public Snippet cloneSnippetById(int snippetId, String snippetName, @RefOnly FolderId folder, @Optional String description, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet to be cloned.snippetName
- The name of the cloned snippet.folder
- The folder in which the cloned snippet will be created.description
- The description of the snippet.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippet
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Update snippet dynamic content by ID") public SnippetId updateSnippetDynamicContentById(int snippetId, int segmentId, @RefOnly@Optional SnippetDynamicContentType type, @Optional String value, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet to be updated.segmentId
- The segment ID associated with the snippet.type
- The type of the new content.value
- The content for the segment.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippetId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Snippets | Get snippet dynamic content by ID") public SnippetDynamicContentResponse getSnippetDynamicContentById(int snippetId, org.mule.api.MuleMessage muleMessage) throws MarketoException
snippetId
- The ID of the snippet which dynamic content will be retrieved.muleMessage
- injected by Mule, used for adding Outbound PropertiesSnippetId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Create email template") public EmailTemplate createEmailTemplate(String emailTemplateName, @RefOnly FolderId folder, @RefOnly@Default(value="#[payload]") Object content, @Optional String description, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailTemplateName
- Name of the email template. Must be unique under parent folder. Maximum of 100 characters.folder
- The ID and Type of the parent folder under which the template will be created.content
- File containing HTML content for the email.description
- Description of the template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Get email template by ID") public EmailTemplate getEmailTemplateById(int templateId, @Optional EmailTemplateStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template.status
- The status of the template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Get email template by name") public EmailTemplate getEmailTemplateByName(String emailTemplateName, @Optional EmailTemplateStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailTemplateName
- Name of the email template.status
- The status of the template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Get email template by name") public EmailTemplate updateEmailTemplate(int templateId, @Optional String description, @Optional String emailTemplateName, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template to update.description
- Updated description for the email template.emailTemplateName
- Updated name for the email template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Delete email template by ID") public EmailTemplateId deleteEmailTemplateById(int templateId, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template to be deleted.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplateId
with the deleted email template ID.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Get email templates") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<EmailTemplate,MarketoConnector> getEmailTemplates(@RefOnly@Optional EmailTemplateStatus status, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
status
- Status of the template to retrieve.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of EmailTemplate
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Get email template content by ID") public EmailTemplateContent getEmailTemplateContentById(int templateId, @Optional EmailTemplateStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template.status
- The status of the template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplateContent
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Update email template content by ID") public EmailTemplateId updateEmailTemplateContentById(int templateId, @RefOnly@Default(value="#[payload]") Object content, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template.content
- The ID and content of the Landing Page Template to update.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplateContent
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Approve email template by ID") public EmailTemplate approveEmailTemplateById(int templateId, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Unapprove email template by ID") public EmailTemplate unapproveEmailTemplateById(int templateId, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Discard email template by ID") public EmailTemplateId discardEmailTemplateDraftById(int templateId, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template to discard.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email templates | Clone email template") public EmailTemplate cloneEmailTemplate(int templateId, String emailTemplateName, @RefOnly FolderId folder, org.mule.api.MuleMessage muleMessage) throws MarketoException
templateId
- ID of the email template to clone.emailTemplateName
- Name of the clone email template. Must be unique under parent folder. Maximum of 100 characters.folder
- The ID and Type of the parent folder under which the template will be created.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailTemplate
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Company | Describe Company") public EntityDescription describeCompany(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesEntityDescription
.MarketoException
- on valid error from the endpoint@Paged @MetaDataScope(value=GetCompaniesMetaData.class) @Processor(friendlyName="Company | Get Companies") public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getCompanies(@MetaDataKeyParam(affects=BOTH) String filterType, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> filterValues, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
filterType
- Can be any one of the searchable fields as indicated by the The describeOpportunity(org.mule.api.MuleMessage)
company call.filterValues
- List of values corresponding to the field in 'filterType', to use to perform de query.fields
- List of company fields required. If not specified, the response will contain the following fields: id, dedupeFields, updatedAt, createdAt.pagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@MetaDataScope(value=CreateUpdateUpsertCompaniesMetaData.class) @Processor(friendlyName="Company | Create/Update/Upsert Companies") public List<CreateOrUpdateEntity> createUpdateUpsertCompanies(@MetaDataKeyParam(labels={"Action","Dedupe By"}) String key, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> inputCompanies, org.mule.api.MuleMessage muleMessage) throws MarketoException
key
- The MetaDataKey. Must have the following format: (action)||(dedupeBy). Action can be createOnly, updateOnly, or createOrUpdate. DedupeBy can be dedupeFields or
idField.inputCompanies
- The Company Object definitions.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of created/updated/upserted companies
.MarketoException
- on valid error from the endpoint@MetaDataScope(value=DeleteCompaniesMetaData.class) @Processor(friendlyName="Company | Delete Companies") public List<DeletedEntity> deleteCompanies(@MetaDataKeyParam(affects=INPUT) String deleteBy, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> criteria, org.mule.api.MuleMessage muleMessage) throws MarketoException
deleteBy
- The deletion method. Can be "dedupeFields" or "idField".criteria
- Deletion criteria.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of deleted companies
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Create Program") public ProgramResponse createProgram(@RefOnly FolderId folder, @Default(value="#[payload]") String programName, @Default(value="DEFAULT") ProgramType type, @Optional String description, String channel, @RefOnly@Optional List<Tag> tags, @RefOnly@Optional List<Cost> costs, org.mule.api.MuleMessage muleMessage) throws MarketoException
folder
- ID and Type of folder where the program is to be created.programName
- Name of the new program. This name must be globally unique to the target instance.type
- Type of program.description
- Description of the new program.channel
- The channel of the program. Must be one of the available channels in the target instance. Obtain list of valid channels by calling getChannels(org.mule.streaming.PagingConfiguration, org.mule.api.MuleMessage)
.tags
- List of tag keys and values for the program. Obtain list of valid tag types by calling getTags(org.mule.streaming.PagingConfiguration, org.mule.api.MuleMessage)
. Obtain list of valid tag values by calling
getTagByName(java.lang.String, org.mule.api.MuleMessage)
.costs
- List of period costs for the program.muleMessage
- injected by Mule, used for adding Outbound Propertiesprogram
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Delete Program by ID") public IdOnlyProgram deleteProgramById(int programId, org.mule.api.MuleMessage muleMessage) throws MarketoException
programId
- ID of the program to delete.muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Get Program by ID") public ProgramResponse getProgramById(int programId, org.mule.api.MuleMessage muleMessage) throws MarketoException
program
based on its ID.programId
- ID of the program.muleMessage
- injected by Mule, used for adding Outbound Propertiesprogram
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Get Program by Name") public ProgramResponse getProgramByName(@Default(value="#[payload]") String programName, org.mule.api.MuleMessage muleMessage) throws MarketoException
programName
- Name of program to retrieve.muleMessage
- injected by Mule, used for adding Outbound Propertiesprogram
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Get Program by Tag") public List<ProgramResponse> getProgramByTag(@RefOnly@Default(value="#[payload]") Tag tag, org.mule.api.MuleMessage muleMessage) throws MarketoException
Tag
(type and value) parameter to use to retrieve program data.tag
- Tag
type and value to filter on.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of programs
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Browse Programs") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<ProgramResponse,MarketoConnector> browsePrograms(@Optional ProgramStatus status, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
status
- A status filter for Engagement and Email type programs. Can be used to filter on "on," "off," and "unlocked"pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of programs
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Approve Program") public IdOnlyProgram approveProgram(int programId, org.mule.api.MuleMessage muleMessage) throws MarketoException
programId
- ID of the program to be approved.muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Unapprove Program") public IdOnlyProgram unapproveProgram(int programId, org.mule.api.MuleMessage muleMessage) throws MarketoException
programId
- ID of the program to be unapproved.muleMessage
- injected by Mule, used for adding Outbound PropertiesMarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Clone Program") public ProgramResponse cloneProgram(int programId, String programName, @RefOnly FolderId folder, @Optional String description, org.mule.api.MuleMessage muleMessage) throws MarketoException
programId
- ID of the program to clone.programName
- Name of the resulting program. Must be globally unique to the target instance.folder
- Parent folder. May not be in a different workspace from the program being cloned.description
- Description of the resulting program.muleMessage
- injected by Mule, used for adding Outbound Propertiesprogram
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Update Program") public ProgramResponse updateProgram(int programId, @Optional String description, @Optional String programName, @RefOnly@Optional List<Tag> tags, @RefOnly@Optional List<Cost> costs, @Default(value="false") boolean costsDestructiveUpdate, org.mule.api.MuleMessage muleMessage) throws MarketoException
programId
- ID of the program to update.description
- New description for the target program.programName
- New name for the target program.tags
- New set of tags for the target program.costs
- List of period costs for the program.costsDestructiveUpdate
- Boolean flag to destroy existing costs and replace them with the included costs. Defaults to false.muleMessage
- injected by Mule, used for adding Outbound Propertiesprogram
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Describe Opportunity") public Opportunity describeOpportunity(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Opportunity
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Describe Opportunity Role") public Opportunity describeOpportunityRole(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of Opportunity
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Get Tags") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<TagType,MarketoConnector> getTags(@RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of tags
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Program | Get Tag by Name") public TagType getTagByName(@Default(value="#[payload]") String tagName, org.mule.api.MuleMessage muleMessage) throws MarketoException
tagName
- The name of the tag to retrieve.muleMessage
- injected by Mule, used for adding Outbound Propertiestag
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Create Or Update Opportunity") @MetaDataScope(value=CreateOpportunityFieldsMetaData.class) public List<OpportunityResponse> createOrUpdateOpportunity(@RefOnly@Default(value="#[payload]") List<Map<String,Object>> objectDefinitions, @Default(value="CREATE_OR_UPDATE") EntityActions action, @Default(value="DEDUPE_FIELDS") DedupeBy dedupeBy, org.mule.api.MuleMessage muleMessage) throws MarketoException
objectDefinitions
- the Opportunity Object definitions.action
- the storage operationdedupeBy
- the deduplication methodmuleMessage
- injected by Mule, used for adding Outbound PropertiesOpportunityResponse
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Delete Opportunities") @MetaDataScope(value=DeleteOpportunityMetaData.class) public List<OpportunityResponse> deleteOpportunities(@RefOnly@Default(value="#[payload]") List<Map<String,Object>> searchValues, @MetaDataKeyParam(affects=INPUT) String deleteBy, org.mule.api.MuleMessage muleMessage) throws MarketoException
searchValues
- the Opportunity Objects search valuesdeleteBy
- the deletion methodmuleMessage
- injected by Mule, used for adding Outbound PropertiesOpportunityResponse
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Get Opportunities") @MetaDataScope(value=CreateOpportunityFieldsMetaData.class) @Paged public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getOpportunities(String filterType, @Default(value="#[payload]") List<String> filterValues, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
filterType
- can be any field from searchableFields setfilterValues
- a list of search valuesfields
- a list of fields. If not specified, the response will retrieve "marketoGuid", "dedupeFields", "udpatedAt", "createdAt"pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Create Or Update Opportunity Roles") @MetaDataScope(value=CreateOpportunityFieldsMetaData.class) public List<OpportunityResponse> createOrUpdateOpportunityRoles(@RefOnly@Default(value="#[payload]") List<Map<String,Object>> objectDefinitions, @Default(value="CREATE_OR_UPDATE") EntityActions action, @Default(value="DEDUPE_FIELDS") DedupeBy dedupeBy, org.mule.api.MuleMessage muleMessage) throws MarketoException
objectDefinitions
- the Opportunity Role Object definitionsaction
- the storage operationdedupeBy
- the deduplication methodmuleMessage
- injected by Mule, used for adding Outbound PropertiesOpportunityResponse
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Sales Person | Describe Sales Person") public EntityDescription describeSalesPerson(org.mule.api.MuleMessage muleMessage) throws MarketoException
muleMessage
- injected by Mule, used for adding Outbound PropertiesEntityDescription
.MarketoException
- on valid error from the endpoint@MetaDataScope(value=CreateUpdateUpsertSalesPersonsMetaData.class) @Processor(friendlyName="Sales Person | Create/Update/Upsert Sales Persons") public List<CreateOrUpdateEntity> createUpdateUpsertSalesPersons(@MetaDataKeyParam(labels={"Action","Dedupe By"}) String key, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> inputSalesPersons, org.mule.api.MuleMessage muleMessage) throws MarketoException
key
- The MetaDataKey. Must have the following format: (action)||(dedupeBy). Action can be createOnly, updateOnly, or createOrUpdate. DedupeBy can be dedupeFields or
idField.inputSalesPersons
- The Sales Person Object definitions.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of created/updated/upserted companies
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Opportunity | Delete Opportunity Roles") @MetaDataScope(value=DeleteOpportunityRolesMetaData.class) public List<OpportunityResponse> deleteOpportunityRoles(@RefOnly@Default(value="#[payload]") List<Map<String,Object>> searchValues, @MetaDataKeyParam(affects=INPUT) String deleteBy, org.mule.api.MuleMessage muleMessage) throws MarketoException
searchValues
- the Opportunity Roles Objects search valuesdeleteBy
- the deletion methodmuleMessage
- injected by Mule, used for adding Outbound PropertiesOpportunityResponse
.MarketoException
- on valid error from the endpoint@MetaDataScope(value=DeleteSalesPersonsMetaData.class) @Processor(friendlyName="Sales Person | Delete Sales Persons") public List<DeletedEntity> deleteSalesPersons(@MetaDataKeyParam(affects=INPUT) String deleteBy, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> criteria, org.mule.api.MuleMessage muleMessage) throws MarketoException
deleteBy
- The deletion method. Can be "dedupeFields" or "idField".criteria
- Deletion criteria.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of deleted companies
.MarketoException
- on valid error from the endpoint@Paged @Processor(friendlyName="Opportunity | Get Opportunity Roles") @MetaDataScope(value=CreateOpportunityFieldsMetaData.class) public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getOpportunityRoles(String filterType, @Default(value="#[payload]") List<String> filterValues, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
filterType
- can be any searchableFields set that has a single field in itfilterValues
- a list of search valuesfields
- a list of fields. If not specified, the response will retrieve "marketoGuid", "dedupeFields", "udpatedAt", "createdAt"pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Paged @MetaDataScope(value=GetSalesPersonsMetaData.class) @Processor(friendlyName="Sales Person | Get Sales Persons") public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,MarketoConnector> getSalesPersons(@MetaDataKeyParam(affects=BOTH) String filterType, @RefOnly@Default(value="#[payload]") List<Map<String,Object>> filterValues, @Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration) throws MarketoException
filterType
- Can be any one of the searchable fields as indicated by the describeSalesPerson(org.mule.api.MuleMessage)
call.filterValues
- List of values corresponding to the field in 'filterType', to use to perform de query.fields
- List of sales person fields required. If not specified, the response will contain the following fields: id, dedupeFields, updatedAt, createdAt.pagingConfiguration
- The PagingConfiguration
object with the needed parameters for paged queries.List
of Map
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Create email") public EmailResponse createEmail(@RefOnly@Default(value="#[payload]") Email email, org.mule.api.MuleMessage muleMessage) throws MarketoException
email
- A POJO with the data of the Email to be created.muleMessage
- Injected by Mule, used for adding Outbound PropertiesEmailResponse
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Get email by ID") public EmailResponse getEmailById(int emailId, @Optional EmailStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The email ID.status
- The email status.muleMessage
- Injected by Mule, used for adding Outbound PropertiesEmailResponse
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Delete email by ID") public EmailId deleteEmailById(int emailId, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- ID of the email to be deleted.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the deleted email ID.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Update email") public EmailResponse updateEmail(int emailId, @Optional String description, @Optional String emailName, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- ID of the email template to update.description
- Updated description for the email template.emailName
- Updated name for the email template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the updated email ID.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Get emails") @Paged public org.mule.streaming.ProviderAwarePagingDelegate<EmailResponse,MarketoConnector> getEmails(@Optional EmailStatus status, @RefOnly@Default(value="#[payload]") FolderId folder, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration, org.mule.api.MuleMessage muleMessage) throws MarketoException
status
- Email status.folder
- The folder under which the search is performed.pagingConfiguration
- the PagingConfiguration
object with the needed parameters for paged queries.muleMessage
- injected by Mule, used for adding Outbound PropertiesList
of EmailResponse
s.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Get email content by ID") public EmailContent getEmailContentById(int emailId, @Optional EmailStatus status, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- ID of the email.status
- The status of the template.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailContent
.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Update email content by ID") public EmailId updateEmailContentById(int emailId, @RefOnly@Optional EmailField subject, @RefOnly@Optional EmailField fromEmail, @RefOnly@Optional EmailField fromName, @RefOnly@Optional EmailField replyTo, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- ID of the email.subject
- The subject for the email.fromEmail
- The from address for the email.fromName
- The from name for the email.replyTo
- The reply email address for the email.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the updated email ID.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Update email content in editable section") public EmailId updateEmailContentInEditableSection(int emailId, String htmlId, @Optional EmailContentType type, @RefOnly@Optional Object value, @Optional String textValue, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- ID of the email.htmlId
- The HTML ID of the editable section.type
- The type of the editable section.value
- Depends of the type of the specified editable section: - Text: A String
containing the HTML content. - DynamicContent: An Integer
with the ID of
the segmentation. - Snippet: An Integer
with the ID of the snippet.textValue
- The text content if the type is text.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the updated email ID.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Get email dynamic content by ID") public EmailDynamicContentResponse getEmailDynamicContentById(int emailId, @Default(value="#[payload]") String dynamicContentId, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- ID of the email.dynamicContentId
- ID of the dynamic content.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the updated email ID.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Update email dynamic content by ID") public EmailId updateEmailDynamicContentById(int emailId, @Default(value="#[payload]") String dynamicContentId, @Optional String segment, @Optional String value, EmailDynamicContentType type, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The ID of the email to be updated.dynamicContentId
- The segment ID associated with the email.segment
- The segment name.value
- The content for the segment.type
- The type of the new content.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Approve by ID") public EmailId approveEmailById(int emailId, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The ID of the email to be approved.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Unapprove by ID") public EmailId unapproveEmailById(int emailId, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The ID of the email to be unapproved.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailResponse
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Discard draft by ID") public EmailId discardEmailDraftById(int emailId, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The ID of the email which draft is to be discarded.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | Email | Clone email by ID") public EmailResponse cloneEmailById(int emailId, @Default(value="#[payload]") String emailName, @RefOnly FolderId folder, @Optional String description, @Optional Boolean isOperational, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The ID of the email to be cloned.emailName
- The name of the cloned email.folder
- The folder in which the cloned email will be created.description
- The description of the email.isOperational
- Indicates if this is an operational email. Default: false.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailResponse
with the call responseMarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | File | Get email by name") public EmailResponse getEmailByName(@Default(value="#[payload]") String emailName, @Optional EmailStatus status, @RefOnly@Optional FolderId folder, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailName
- Name of the email to be retrieved.status
- The email status.folder
- The parent folder of the email.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailResponse
with the given name.MarketoException
- on valid error from the endpoint@Processor(friendlyName="Assets | File | Send sample email") public ServiceResponse sendSampleEmail(int emailId, @Default(value="#[payload]") String emailAddress, @Optional Boolean textOnly, @Optional Integer leadId, org.mule.api.MuleMessage muleMessage) throws MarketoException
emailId
- The ID of the email to be sent.emailAddress
- The email address to receive the sample email.textOnly
- Sends the text version of the sample in addition to the HTML version. Default is false.leadId
- The lead id. If specified, then the token values for the lead are populated when the email is sent.muleMessage
- injected by Mule, used for adding Outbound PropertiesEmailId
with the sent email.MarketoException
- on valid error from the endpointCopyright © 2010–2018. All rights reserved.