use of com.sendgrid.Client in project iaf by ibissource.
the class SendGridSender method open.
@Override
public void open() throws SenderException {
super.open();
httpSender.open();
CloseableHttpClient httpClient = httpSender.getHttpClient();
if (httpClient == null)
throw new SenderException("no HttpClient found, did it initialize properly?");
Client client = new Client(httpClient);
sendGrid = new SendGrid(getCredentialFactory().getPassword(), client);
}
Aggregations