Mailchimp API docs API reference
Get a Mailchimp API key at https://mailchimp.com/developer/
Keep this key private. You can pass the key in to each function via the
key
parameter, but it's better to store the key as an environment
variable (MAILCHIMP_KEY
).
We're sticking to read only (i.e., GET
) methods for now.
The R6
classes ChmpCampaigns
, ChmpList
, and ChmpReports
have methods on them that
you can call for various API routes under each high level topic. Generally an id is
required (e.g., campaign id, list id, report id), but there are some methods that don't
require an id.
chmp_ping
- ping chmp_root
- API rootchmp_lists
/chmp_lists_
- get all listsChmpCampaigns
- methods for campaignsChmpList
- methods for individual listsChmpReports
- methods for reportsHigh level API
parse to a list or data.frame
Low level API
just get some JSON
...
Development version
remotes::install_github("sckott/chimpr")
library("chimpr")
all lists
# JSON
chmp_lists_()
# parse to data.frame where possible
chmp_lists()
# parse to a list
chmp_lists(parse = FALSE)
chimpr
in R doing citation(package = 'chimpr')