We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba6d907 commit 6b8da96Copy full SHA for 6b8da96
1 file changed
src/main/java/com/sendgrid/SendGrid.java
@@ -18,6 +18,8 @@
18
import java.io.FileNotFoundException;
19
20
public class SendGrid {
21
+ public final String VERSION = "1.0.0";
22
+
23
private String username;
24
private String password;
25
private String url;
@@ -29,6 +31,7 @@ public SendGrid(String username, String password) {
29
31
this.password = password;
30
32
this.url = "https://api.sendgrid.com";
33
this.endpoint = "/api/mail.send.json";
34
+ Unirest.setDefaultHeader("User-Agent", "sendgrid/" + VERSION + ";java");
35
}
36
37
public SendGrid setUrl(String url) {
0 commit comments