diff --git a/README.md b/README.md new file mode 100644 index 0000000..837bf7f --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +## Sendgrid API + +https://www.twilio.com/docs/sendgrid + +Instantiate + +```java +SendgridApi api = new SendgridApi(apiKey); +``` + +Send Email + +```java +api.sendEmail(from, to, subject, body); +``` + +Send Template Email + +```java +api.sendTemplateEmail(templateId, from, to, templateData); +``` + +**Note**: Template Data is a HashMap that maps to email {{ variable }}