banana-j / bananaj

Java API wrapper for MailChimp API 3.0
MIT License
38 stars 33 forks source link

Needs filters #35

Closed swd99999999 closed 5 months ago

swd99999999 commented 5 years ago

Like so

https://us3.api.mailchimp.com/3.0/templates?folder_id={id}

gscriver commented 6 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("");
    }
}
SavvasGaryScriver commented 5 months ago

MailChimpQueryParameters no allows specifying query parameters to all GET operations