post_segment_members: Batch add/remove list members to static segment

Description Usage Arguments Value Examples

View source: R/POST_lists.R

Description

Batch add/remove list members to static segment

Usage

1
2
3
post_segment_members(list_id = NULL, segment_id = NULL,
  members_to_add = NULL, members_to_remove = NULL, apikey = NULL,
  user = "anystring", ...)

Arguments

segment_id

Id of segment.

members_to_add

A vector of emails to be used for a static segment. Any emails provided that are not present on the list will be ignored.

members_to_remove

A vector of emails to be used for a static segment. Any emails provided that are not present on the list will be ignored.

apikey

API key for mailchimp account

user

User to use in authentication. Can be any string you like. Defaults to "anystring".

...

Query string parameters. See available parameters under CREATE here: API documentation.

Value

Response body parameters. See response parameters under CREATE here: API documentation.

Examples

1
2
3
**## Not run:**
post_segment_members <- post_segment_members(list_id = "xxxxxxxxxx", members_to_add = c("e@mail1.com", "e@mail2.com"), members_to_remove = c("e@mail3.com", "e@mail4.com"), apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-usxx")
## End(**Not run**)

56north/mailchimpR documentation built on May 5, 2019, 11:27 a.m.