Skip to content

Bounces

Igor Balos edited this page Nov 9, 2017 · 13 revisions
// retrieve delivery stats
DeliveryStats deliveryStats = client.getDeliveryStats();
deliveryStats.getBounces().get(0).getName();
// retrieve a list of bounces
Bounces bounces = client.getBounces(Parameters.init().build("count", 1).build("offset", 0));
bounces.getBounces().get(0).getBouncedAt();
// retrieve first bounce from bounce list and it's id
Bounces bounces client.getBounces(Parameters.init().build("count", 1).build("offset", 0));
Integer bounceId = bounces.getBounces().get(0).getId()

// retrieve a single bounce by bounce ID
Bounce bounce = client.getBounce(bounceId);
System.out.println(bounce.getDescription());
// retrieve a single bounce dump
BounceDump bounceDump = client.getBounceDump(bounceId);
// activate a single bounce message
client.activateBounce(bounceId);
// retrieve a list of all bounce tags
ArrayList<String> bounceTags = client.getBounceTags();
System.out.println(bounceTags);

Clone this wiki locally