public class SuppressionManager extends SendGrid
authHeader, baseUrl, DEFAULT_URL, jackson| Constructor and Description |
|---|
SuppressionManager(String apiKey) |
SuppressionManager(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
add(Group group,
String... email) |
List<String> |
add(int groupId,
String... email) |
void |
remove(Group group,
String... email) |
void |
remove(int groupId,
String... email) |
List<String> |
retrieve(Group group) |
List<String> |
retrieve(int groupId) |
List<Suppression> |
retrieve(String email) |
void |
save(String email,
List<Suppression> suppressions) |
getBaseUrl, setBaseUrlpublic SuppressionManager(String apiKey)
public List<String> add(Group group, String... email) throws IOException
IOExceptionpublic List<String> add(int groupId, String... email) throws IOException
IOExceptionpublic void remove(Group group, String... email) throws IOException
IOExceptionpublic void remove(int groupId,
String... email)
throws IOException
IOExceptionpublic List<String> retrieve(Group group) throws IOException
IOExceptionpublic List<String> retrieve(int groupId) throws IOException
IOExceptionpublic List<Suppression> retrieve(String email) throws IOException
IOExceptionpublic void save(String email, List<Suppression> suppressions) throws IOException
IOExceptionCopyright © 2016. All rights reserved.