Closed swd99999999 closed 5 months ago
This is done as follows:
TemplateFolder folder = findTemplateFolder(chimpCon,"<foldername>");
if (folder != null) {
System.out.println("Mailchimp template folder " + folder.getName() + " - " + folder.getId() + ":");
MailChimpQueryParameters queryParameters = new MailChimpQueryParameters()
.param("folder_id", folder.getId());
for(Template template : chimpCon.getTemplates(queryParameters)) {
System.out.println(template.toString());
System.out.println("");
}
}
MailChimpQueryParameters no allows specifying query parameters to all GET operations
Like so
https://us3.api.mailchimp.com/3.0/templates?folder_id={id}