public class AssetClientImpl extends RestClient implements AssetClient
DATE_FORMAT_TIMEZONE, DATE_FORMAT_Z, DATE_FORMAT_Z_TIMEZONE, DATE_ONLY_FORMAT, JOINER, RESPONSE_MAP_GENERIC_TYPE, SERVICE_RESPONSE_GENERIC_TYPE, SINGLE_ENTRY_MAP_TO_STRING, VOID_GENERIC_TYPE
Constructor and Description |
---|
AssetClientImpl(Config config) |
buildGetInvocation, buildPostInvocation, buildPostInvocation, buildPostInvocation, buildPostInvocation, bulkWebTarget, process, putIfNotNull, queryParamIfNotNull, webTarget
public AssetClientImpl(Config config)
public MarketoResponse<Folder> createFolder(@NotNull String name, @NotNull FolderId parent, @Nullable String description)
createFolder
in interface AssetClient
public MarketoResponse<Folder> getFolderById(@NotNull FolderId folderId)
getFolderById
in interface AssetClient
public MarketoResponse<Folder> getFolderByName(@NotNull String name, @Nullable FolderType type, @Nullable Integer root, @Nullable String workSpace)
getFolderByName
in interface AssetClient
public MarketoResponse<FolderContents> getFolderContents(@NotNull FolderId folderId, @Nullable Integer offset, @Nullable Integer maxReturn)
getFolderContents
in interface AssetClient
public MarketoResponse<Folder> updateFolder(@NotNull FolderId folderId, @Nullable String description, @Nullable String name, @Nullable Boolean isArchive)
updateFolder
in interface AssetClient
public MarketoResponse<DeletedFolder> deleteFolderById(@NotNull FolderId folderId)
deleteFolderById
in interface AssetClient
public MarketoResponse<Folder> browseFolders(@NotNull FolderId root, @Nullable Integer offset, @Nullable Integer maxDepth, @Nullable Integer maxReturn, @Nullable String workSpace)
browseFolders
in interface AssetClient
public MarketoResponse<AssetFile> createFile(@NotNull String name, @NotNull InputStream file, @NotNull FolderId folder, @Nullable String description, @Nullable Boolean insertOnly)
createFile
in interface AssetClient
public MarketoResponse<AssetFile> getFileById(int id)
getFileById
in interface AssetClient
public MarketoResponse<AssetFile> getFileByName(@NotNull String name)
getFileByName
in interface AssetClient
public MarketoResponse<AssetFile> getFileList(@NotNull FolderId folderId, @Nullable Integer offset, @Nullable Integer maxReturn)
getFileList
in interface AssetClient
public MarketoResponse<AssetFile> updateFile(int id, @NotNull InputStream file)
updateFile
in interface AssetClient
public MarketoResponse<Segmentation> getSegmentations(@Nullable Integer offset, @Nullable Integer maxReturn, @Nullable SegmentStatus status)
getSegmentations
in interface AssetClient
public MarketoResponse<Segment> getSegments(int segmentationId, @Nullable Integer offset, @Nullable Integer maxReturn, @Nullable SegmentStatus status)
getSegments
in interface AssetClient
public MarketoResponse<TokenResponse> createToken(@NotNull TokenCreateInput token)
createToken
in interface AssetClient
public MarketoResponse<TokenResponse> getTokenByFolderId(@NotNull FolderId folderId)
getTokenByFolderId
in interface AssetClient
public MarketoResponse<DeletedToken> deleteTokensByFolderId(@NotNull TokenDeleteInput token)
deleteTokensByFolderId
in interface AssetClient
public MarketoResponse<LandingPageTemplate> createLandingPageTemplate(@NotNull String name, @NotNull FolderId folder, @Nullable String description, @Nullable TemplateType templateType)
createLandingPageTemplate
in interface AssetClient
public MarketoResponse<LandingPageTemplate> getLandingPageTemplateById(int id, @Nullable LandingPageTemplateStatus status)
getLandingPageTemplateById
in interface AssetClient
public MarketoResponse<LandingPageTemplate> getLandingPageTemplateByName(@NotNull String name, @Nullable LandingPageTemplateStatus status)
getLandingPageTemplateByName
in interface AssetClient
public MarketoResponse<LandingPageTemplate> getMultipleLandingPageTemplates(@Nullable Integer offset, @Nullable LandingPageTemplateStatus status, @Nullable FolderId folder, Integer maxReturn)
getMultipleLandingPageTemplates
in interface AssetClient
public MarketoResponse<LandingPageTemplateContent> getLandingPageContent(int id, @Nullable LandingPageTemplateStatus status)
getLandingPageContent
in interface AssetClient
public MarketoResponse<UpdatedLandingPageTemplate> updateLandingPageTemplateContentById(@NotNull LandingPageTemplateContent landingPageTemplateContent)
updateLandingPageTemplateContentById
in interface AssetClient
public MarketoResponse<LandingPageTemplate> updateLandingPageTemplate(int id, @Nullable String name, @Nullable String description)
updateLandingPageTemplate
in interface AssetClient
public MarketoResponse<Snippet> createSnippet(@NotNull String name, @NotNull FolderId folder, @Nullable String description)
createSnippet
in interface AssetClient
public MarketoResponse<Snippet> getSnippetById(int id, @Nullable SnippetStatus status)
getSnippetById
in interface AssetClient
public MarketoResponse<SnippetId> deleteSnippetById(int id)
deleteSnippetById
in interface AssetClient
public MarketoResponse<Snippet> updateSnippetById(int id, @Nullable String description, @Nullable String name)
updateSnippetById
in interface AssetClient
public MarketoResponse<Snippet> getSnippets(@Nullable Integer offset, @Nullable Integer maxReturn, @Nullable SnippetStatus status)
getSnippets
in interface AssetClient
public MarketoResponse<AssetContent<SnippetDynamicContentType>> getSnippetContentById(int id)
getSnippetContentById
in interface AssetClient
public MarketoResponse<SnippetId> updateSnippetContentById(int id, @NotNull SnippetDynamicContentType type, @NotNull String content)
updateSnippetContentById
in interface AssetClient
public MarketoResponse<Snippet> approveSnippetById(int id)
approveSnippetById
in interface AssetClient
public MarketoResponse<Snippet> unapproveSnippetById(int id)
unapproveSnippetById
in interface AssetClient
public MarketoResponse<SnippetId> discardSnippetDraftById(int id)
discardSnippetDraftById
in interface AssetClient
public MarketoResponse<Snippet> cloneSnippetById(int id, @NotNull String snippetName, @NotNull FolderId folder, @Nullable String description)
cloneSnippetById
in interface AssetClient
public MarketoResponse<SnippetId> updateSnippetDynamicContentById(int id, int segmentId, @Nullable SnippetDynamicContentType type, @Nullable String value)
updateSnippetDynamicContentById
in interface AssetClient
public MarketoResponse<SnippetDynamicContentResponse> getSnippetDynamicContentById(int id)
getSnippetDynamicContentById
in interface AssetClient
public MarketoResponse<EmailTemplate> createEmailTemplate(@NotNull String name, @NotNull FolderId folder, @NotNull InputStream content, @Nullable String description)
createEmailTemplate
in interface AssetClient
public MarketoResponse<EmailTemplate> getEmailTemplateById(int id, @Nullable EmailTemplateStatus status)
getEmailTemplateById
in interface AssetClient
public MarketoResponse<EmailTemplate> getEmailTemplateByName(String name, @Nullable EmailTemplateStatus status)
getEmailTemplateByName
in interface AssetClient
public MarketoResponse<EmailTemplate> updateEmailTemplate(int id, @Nullable String description, @Nullable String name)
updateEmailTemplate
in interface AssetClient
public MarketoResponse<EmailTemplateId> deleteEmailTemplateById(int id)
deleteEmailTemplateById
in interface AssetClient
public MarketoResponse<EmailTemplate> getEmailTemplates(@Nullable Integer offset, @Nullable Integer maxReturn, @Nullable EmailTemplateStatus status)
getEmailTemplates
in interface AssetClient
public MarketoResponse<EmailTemplateContent> getEmailTemplateContentById(int id, @Nullable EmailTemplateStatus status)
getEmailTemplateContentById
in interface AssetClient
public MarketoResponse<EmailTemplateId> updateEmailTemplateContentById(int id, @NotNull InputStream content)
updateEmailTemplateContentById
in interface AssetClient
public MarketoResponse<EmailTemplate> approveEmailTemplateById(int id)
approveEmailTemplateById
in interface AssetClient
public MarketoResponse<EmailTemplate> unapproveEmailTemplateById(int id)
unapproveEmailTemplateById
in interface AssetClient
public MarketoResponse<EmailTemplateId> discardEmailTemplateDraftById(int id)
discardEmailTemplateDraftById
in interface AssetClient
public MarketoResponse<EmailTemplate> cloneEmailTemplate(int id, @NotNull String name, @NotNull FolderId folder)
cloneEmailTemplate
in interface AssetClient
public MarketoResponse<EmailResponse> createEmail(@NotNull Email email)
createEmail
in interface AssetClient
public MarketoResponse<EmailResponse> getEmailById(int id, @Nullable EmailStatus status)
getEmailById
in interface AssetClient
public MarketoResponse<EmailId> deleteEmailById(int id)
deleteEmailById
in interface AssetClient
public MarketoResponse<EmailResponse> updateEmail(int id, @Nullable String description, @Nullable String name)
updateEmail
in interface AssetClient
public MarketoResponse<EmailResponse> getEmails(@Nullable Integer offset, @Nullable Integer maxReturn, @Nullable EmailStatus status, @Nullable FolderId folder)
getEmails
in interface AssetClient
public MarketoResponse<EmailContent> getEmailContentById(int id, @Nullable EmailStatus status)
getEmailContentById
in interface AssetClient
public MarketoResponse<EmailId> updateEmailContentById(int id, @Nullable EmailField subject, @Nullable EmailField fromEmail, @Nullable EmailField fromName, @Nullable EmailField replyTo)
updateEmailContentById
in interface AssetClient
public MarketoResponse<EmailId> updateEmailContentInEditableSection(int id, @NotNull String htmlId, @Nullable EmailContentType type, @Nullable Object value, @Nullable String textValue)
updateEmailContentInEditableSection
in interface AssetClient
public MarketoResponse<EmailDynamicContentResponse> getEmailDynamicContentById(int id, @NotNull String dynamicContentId)
getEmailDynamicContentById
in interface AssetClient
public MarketoResponse<EmailId> updateEmailDynamicContentById(int id, @NotNull String dynamicContentId, @Nullable String segment, @Nullable String value, @Nullable EmailDynamicContentType type)
updateEmailDynamicContentById
in interface AssetClient
public MarketoResponse<EmailId> approveEmailById(int id)
approveEmailById
in interface AssetClient
public MarketoResponse<EmailId> unapproveEmailById(int id)
unapproveEmailById
in interface AssetClient
public MarketoResponse<EmailId> discardEmailDraftById(int id)
discardEmailDraftById
in interface AssetClient
public MarketoResponse<EmailResponse> cloneEmailById(int id, @NotNull String name, @NotNull FolderId folder, @Nullable String description, @Nullable Boolean isOperational)
cloneEmailById
in interface AssetClient
public MarketoResponse<EmailResponse> getEmailByName(@NotNull String name, @Nullable EmailStatus status, @Nullable FolderId folder)
getEmailByName
in interface AssetClient
public MarketoResponse<ServiceResponse> sendSampleMail(int id, @NotNull String emailAddress, @Nullable Boolean textOnly, @Nullable Integer leadId)
sendSampleMail
in interface AssetClient
Copyright © 2010–2016. All rights reserved.