public interface MailChimpClient
| Modifier and Type | Method and Description |
|---|---|
static MailChimpClientBuilder |
builder() |
Store |
create(StoreCreate store)
Creates a store.
|
Cart |
create(String storeId,
CartCreate cart)
Creates a cart.
|
Customer |
create(String storeId,
CustomerCreate customer)
Creates a customer.
|
Product |
create(String storeId,
ProductCreate product)
Creates a product.
|
Batch |
createBatch(CreateBatch batch)
Create batch.
|
SubscriberList |
createList(SubscriberList subscriberList)
Create subscriberList.
|
Member |
createListMember(String listId,
Member member)
Creates member in list.
|
ListMergeField |
createMergeField(String listId,
ListMergeField mergeField)
Create merge-field for list.
|
Segment |
createSegment(String listId,
SegmentCreate segment)
Create segment in list.
|
Batch |
getBatch(String batchId)
Get batch.
|
Batches |
getBatches(BatchesQuery query)
Get batches by filter.
|
Cart |
getCart(String storeId,
String cartId)
Retrieves a cart by its id.
|
Customers |
getCustomers(String storeId)
List customers for a store.
|
SubscriberList |
getList(String listId)
Gets list.
|
Member |
getListMember(String listId,
String subscriberHash)
Gets member by subscriberHash in list.
|
Members |
getListMembers(String listId,
ListMembersQuery query)
Gets list members.
|
ListMergeFields |
getListMergeFields(String listId)
Get list's member-fields.
|
SubscriberLists |
getLists(ListsQuery query)
Gets lists by query.
|
Root |
getRoot()
Gets API Root.
|
Segment |
getSegment(String listId,
Integer segmentId)
Get a segment in the list.
|
Segments |
getSegments(String listId)
Get segments in list.
|
Store |
getStore(String storeId)
Search stores by id.
|
Stores |
getStores(StoresQuery query)
Search stores by query.
|
SegmentModified |
modifySegment(String listId,
Integer segmentId,
SegmentModify segment)
Modify a segment in list.
|
void |
removeBatch(String batchId)
Removes batch
|
void |
removeCart(String storeId,
String cartId)
Removes a cart by its id.
|
void |
removeList(String listId)
Removes list.
|
void |
removeListMember(String listId,
String subscriberHash)
Removes member from list.
|
void |
removeListMergeField(String listId,
String mergeId)
Removes merge-field from list.
|
void |
removeSegment(String listId,
Integer segmentId)
Removes segment.
|
void |
removeStore(String storeId)
Removes store
|
SearchMembers |
searchMembers(String query)
Search members by query.
|
SearchMembers |
searchMembers(String query,
String listId)
Search members by query and listId.
|
Cart |
updateCart(String storeId,
String cartId,
CartCreate cart)
Updates a specific cart.
|
Member |
updateListMember(String listId,
String subscriberHash,
Member member)
Updates member in a list.
|
static MailChimpClientBuilder builder()
Root getRoot()
Member getListMember(String listId, String subscriberHash)
listId - if of the listsubscriberHash - hash of member's email (see Member.getSubscriberHash(String))MailChimpErrorException - when listId or subscriberHash was not foundMember createListMember(String listId, Member member)
listId - id of the list where to create the member inmember - to createMailChimpErrorException - when the list-id was not foundMember updateListMember(String listId, String subscriberHash, Member member)
listId - id of the list where to create the member insubscriberHash - hash of member's email (see Member.getSubscriberHash(String))member - to updateMailChimpErrorException - when the list-id was not foundvoid removeListMember(String listId, String subscriberHash)
listId - id of the listsubscriberHash - hash of member's email (see Member.getSubscriberHash(String))MailChimpErrorException - when listId or subscriberHash was not foundSubscriberList createList(SubscriberList subscriberList)
subscriberList - to createvoid removeList(String listId)
listId - id of the listMailChimpErrorException - when listId was not foundSubscriberList getList(String listId)
listId - id of the listMailChimpErrorException - when listId was not foundSubscriberLists getLists(ListsQuery query)
query - to filter results onMembers getListMembers(String listId, ListMembersQuery query)
listId - id of the listquery - to filter results onMailChimpErrorException - when listId was not foundListMergeFields getListMergeFields(String listId)
listId - id of the listMailChimpErrorException - when listId was not foundListMergeField createMergeField(String listId, ListMergeField mergeField)
listId - id of the listmergeField - merge-field to createMailChimpErrorException - when listId was not foundvoid removeListMergeField(String listId, String mergeId)
listId - id of the listmergeId - id of merge-fieldMailChimpErrorException - when listId or mergeId was not foundSegment createSegment(String listId, SegmentCreate segment)
listId - id of the listsegment - segment to createMailChimpErrorException - when listId was not foundSegmentModified modifySegment(String listId, Integer segmentId, SegmentModify segment)
listId - id of the listsegmentId - id of segmentsegment - segment to be modifiedMailChimpErrorException - when listId was not foundSegments getSegments(String listId)
listId - id of the listMailChimpErrorException - when listId was not foundSegment getSegment(String listId, Integer segmentId)
listId - id of the listsegmentId - id of the segmentMailChimpErrorException - when listId or segmentId was not foundvoid removeSegment(String listId, Integer segmentId)
listId - id of the listsegmentId - id of the segmentMailChimpErrorException - when listId or segmentId was not foundBatch createBatch(CreateBatch batch)
batch - to createBatch getBatch(String batchId)
batchId - id of batchMailChimpErrorException - when batchId was not foundBatches getBatches(BatchesQuery query)
query - to filtervoid removeBatch(String batchId)
batchId - id of batchMailChimpErrorException - when batchId was not foundSearchMembers searchMembers(String query)
query - to search bySearchMembers searchMembers(String query, String listId)
query - to search bylistId - id of listMailChimpErrorException - when batchId was not foundStores getStores(StoresQuery query)
query - to filter.MailChimpErrorException - when storeId was not foundStore getStore(String storeId)
storeId - id of storeMailChimpErrorException - when storeId was not foundStore create(StoreCreate store)
store - the store to be createdMailChimpErrorException - when storeId was not foundvoid removeStore(String storeId)
storeId - id of storeMailChimpErrorException - when storeId was not foundCustomer create(String storeId, CustomerCreate customer)
customer - the customer to be createdMailChimpErrorException - when storeId was not foundCustomers getCustomers(String storeId)
storeId - the store id to be createdMailChimpErrorException - when storeId was not foundCart create(String storeId, CartCreate cart)
cart - the cart to be createdMailChimpErrorException - when storeId was not foundCart getCart(String storeId, String cartId)
MailChimpErrorException - when storeId was not foundMailChimpErrorException - when cartId was not foundvoid removeCart(String storeId, String cartId)
MailChimpErrorException - when storeId was not foundMailChimpErrorException - when cartId was not foundCart updateCart(String storeId, String cartId, CartCreate cart)
MailChimpErrorException - when storeId was not foundMailChimpErrorException - when cartId was not foundProduct create(String storeId, ProductCreate product)
product - the product to be createdMailChimpErrorException - when storeId was not foundCopyright © 2020. All rights reserved.