Class SendinblueSender
- java.lang.Object
-
- de.intension.keycloak.sendinblue.internal.SendinblueSender
-
public class SendinblueSender extends Object
-
-
Constructor Summary
Constructors Constructor Description SendinblueSender()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SendinblueSendercreate()voidpostToSendinblue(org.keycloak.models.UserModel user, long templateId, Map<String,String> params)Sends an email using sendinblue API.SendinblueSendersetApiKey(String apiKey)Sets the API key and update the default client.
-
-
-
Method Detail
-
create
public static SendinblueSender create()
-
postToSendinblue
public void postToSendinblue(org.keycloak.models.UserModel user, long templateId, Map<String,String> params) throws org.keycloak.email.EmailExceptionSends an email using sendinblue API.- Parameters:
user- recipient of the emailtemplateId- ID of the template to use for the mailparams- paramter to be replaced in the mail template- Throws:
org.keycloak.email.EmailException- with message from Sendinblue'sApiException(for example: 'Unauthorized' when API key is invalid or 'Not Found' when template couldn't be found.
-
setApiKey
public SendinblueSender setApiKey(String apiKey)
Sets the API key and update the default client.- Parameters:
apiKey- api-key to use sendinblue API- Returns:
- ths instance
-
-