Description Usage Arguments Value Examples
Create a new segment in a specific list.
1 2 |
name |
The name of the segment. |
static_segment |
Vector of emails. Any emails provided that are not present will be ignored. Passing an empty vector will create a static segment without any subscribers. This field cannot be provided with the options field. |
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. |
Response body parameters. See response parameters under CREATE here: API documentation.
1 2 3 | **## Not run:**
post_segment <- post_segment(name = "my_new_segment", static_segment = c("e@mail1.com", "e@mail2.com"), apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-usxx")
## End(**Not run**)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.