.put("sent", dyn.getSentReportApi()).build();
// test the regular report functionality
for (Map.Entry<String, ReportApi> entry : apis.entrySet()) {
String name = entry.getKey();
ReportApi api = entry.getValue();
System.out.println(name + " list : "
+ api.list("2014-01-01", "2014-11-01", 0));
System.out.println(name + " count : "
+ api.count("2014-01-01", "2014-11-01"));
}
Map<String, UniqueReportApi> unique = ImmutableMap
.<String, UniqueReportApi> builder()
.put("clicks", dyn.getClicksReportApi())
.put("opens", dyn.getOpensReportApi()).build();
// unique report functionality
for (Map.Entry<String, UniqueReportApi> entry : unique.entrySet()) {
String name = entry.getKey();
UniqueReportApi api = entry.getValue();
System.out.println(name + " list unique : "
+ api.listUnique("2014-01-01", "2014-11-01", 0));
System.out.println(name + " count unique : "
+ api.countUnique("2014-01-01", "2014-11-01"));
}
}