You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72-54Lines changed: 72 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,94 +90,112 @@ You can just drop the jar file in. It's a fat jar - it has all the dependencies
90
90
<aname="quick-start"></a>
91
91
# Quick Start
92
92
93
-
## Hello Email
94
-
95
-
The following is the minimum needed code to send an email with the [/mail/send Helper](src/main/java/com/sendgrid/helpers) ([here](examples/helpers/mail/Example.java#L30) is a full example):
96
-
97
-
### With Mail Helper Class
93
+
## Alerts API
94
+
Sendgrid provides an API for sending alerts. The following is the minimum needed code to send an alert using the Java Helper Library:
The `Mail` constructor creates a [personalization object](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/personalizations.html) for you. [Here](examples/helpers/mail/Example.java#L221) is an example of how to add to it.
129
-
130
-
### Without Mail Helper Class
131
-
132
-
The following is the minimum needed code to send an email without the /mail/send Helper ([here](examples/mail/mail.java#L54) is a full example):
request.setBody("{\"personalizations\":[{\"to\":[{\"email\":\"[email protected]\"}],\"subject\":\"Sending with Twilio SendGrid is Fun\"}],\"from\":{\"email\":\"[email protected]\"},\"content\":[{\"type\":\"text/plain\",\"value\": \"and easy to do anywhere, even with Java\"}]}");
You can send an email with the [/mail/send Helper](src/main/java/com/sendgrid/helpers) ([here](examples/helpers/mail/Example.java#L30) is a full example).
187
+
188
+
### With Mail Helper Class
189
+
The `Mail` constructor creates a [personalization object](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/personalizations.html) for you. [Here](examples/helpers/mail/Example.java#L221) is an example of how to add to it.
190
+
191
+
### Without Mail Helper Class
192
+
193
+
You can also send an email without the /mail/send Helper ([here](examples/mail/mail.java#L54) is a full example).
194
+
195
+
## General v3 Web API Usage
196
+
197
+
[Here](examples/apikeys/apikeys.java) is the full example of using v3 web API.
_`MAJOR` version bumps will have upgrade notes posted here._
4
+
5
+
[2023-10-XX] 4.x.x to 5.x.x-rc.x
6
+
--------------------------------
7
+
### Overview
8
+
9
+
#### Sendgrid Java Helper Library’s major version 5.0.0-rc.x is now available. We ensured that you can upgrade to Java helper Library 5.0.0-rc.x version without any breaking changes
10
+
11
+
Behind the scenes Java Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages.
0 commit comments