public class ProgramClientImpl extends RestClient implements ProgramClient
DATE_FORMAT_TIMEZONE, DATE_FORMAT_Z, DATE_FORMAT_Z_MILLIS, 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 |
---|
ProgramClientImpl(Config config) |
buildGetInvocation, buildPostInvocation, buildPostInvocation, buildPostInvocation, buildPostInvocation, bulkWebTarget, process, putIfNotNull, queryParamIfNotNull, webTarget
public ProgramClientImpl(Config config)
public MarketoResponse<ProgramResponse> createProgram(CreateProgram program)
createProgram
in interface ProgramClient
public MarketoResponse<IdOnlyProgram> deleteProgramById(int id)
deleteProgramById
in interface ProgramClient
public MarketoResponse<ProgramResponse> getProgramById(int id)
getProgramById
in interface ProgramClient
public MarketoResponse<ProgramResponse> getProgramByName(String name)
getProgramByName
in interface ProgramClient
public MarketoResponse<ProgramResponse> getProgramByTag(Tag tag)
getProgramByTag
in interface ProgramClient
public MarketoResponse<ProgramResponse> browsePrograms(Integer offset, Integer maxReturn, ProgramStatus status)
browsePrograms
in interface ProgramClient
public MarketoResponse<IdOnlyProgram> approveProgram(int id)
approveProgram
in interface ProgramClient
public MarketoResponse<IdOnlyProgram> unapproveProgram(int id)
unapproveProgram
in interface ProgramClient
public MarketoResponse<ProgramResponse> cloneProgram(int id, String name, FolderId folder, String description)
cloneProgram
in interface ProgramClient
public MarketoResponse<ProgramResponse> updateProgram(int id, String description, String name, List<Tag> tags, List<Cost> costs, boolean costsDestructiveUpdate)
updateProgram
in interface ProgramClient
public MarketoResponse<TagType> getTags(Integer offset, Integer maxReturn)
getTags
in interface ProgramClient
public MarketoResponse<TagType> getTagByName(String name)
getTagByName
in interface ProgramClient
public MarketoResponse<Channel> getChannels(Integer offset, Integer maxReturn)
getChannels
in interface ProgramClient
public MarketoResponse<Channel> getChannelByName(String name)
getChannelByName
in interface ProgramClient
Copyright © 2010–2018. All rights reserved.