@@ -16,7 +16,7 @@ All updates to this project is documented in our [CHANGELOG](https://github.com/
16
16
...
17
17
dependencies {
18
18
...
19
- compile 'com.sendgrid:java-http-client:2.2.1 '
19
+ compile 'com.sendgrid:java-http-client:2.3.0 '
20
20
}
21
21
22
22
repositories {
@@ -31,15 +31,15 @@ repositories {
31
31
<dependency >
32
32
<groupId >com.sendgrid</groupId >
33
33
<artifactId >java-http-client</artifactId >
34
- <version >2.2.1 </version >
34
+ <version >2.3.0 </version >
35
35
</dependency >
36
36
```
37
37
38
38
` mvn install `
39
39
40
40
## Fat Jar
41
41
42
- [ Download] ( http://repo1.maven.org/maven2/com/sendgrid/java-http-client/2.2.1 /java-http-client-2.2.1 -jar.jar )
42
+ [ Download] ( http://repo1.maven.org/maven2/com/sendgrid/java-http-client/2.3.0 /java-http-client-2.3.0 -jar.jar )
43
43
44
44
## Dependencies
45
45
74
74
75
75
``` java
76
76
Map<String ,String > requestHeaders = new HashMap<String , String > ();
77
- requestHeaders. put(" Authorization" , " Bearer " + System . getenv(" SENDGRID_API_KEY" ));
78
- requestHeaders. put(" Content-Type" , " application/json" );
77
+ requestHeaders. put(" Authorization" , " Bearer YOUR_API_KEY" );
79
78
request. headers = requestHeaders;
80
79
Map<String ,String > queryParams = new HashMap<String , String > ();
81
80
queryParams. put(" limit" , " 100" );
@@ -113,7 +112,7 @@ source ./sendgrid.env
113
112
``` bash
114
113
mvn package
115
114
cd examples
116
- javac -classpath ./jackson-databind-2.7.3.jar:./jackson-annotations-2.7.0.jar:./jackson-core-2.7.3.jar:/{path_to}/java-http-client-2.2.1 -jar.jar:. Example.java && java -classpath ./jackson-databind-2.7.3.jar:./jackson-annotations-2.7.0.jar:./jackson-core-2.7.3.jar:/{path_to}/java-http-client-2.2.1 -jar.jar:. Example
115
+ javac -classpath ./jackson-databind-2.7.3.jar:./jackson-annotations-2.7.0.jar:./jackson-core-2.7.3.jar:/{path_to}/java-http-client-2.3.0 -jar.jar:. Example.java && java -classpath ./jackson-databind-2.7.3.jar:./jackson-annotations-2.7.0.jar:./jackson-core-2.7.3.jar:/{path_to}/java-http-client-2.3.0 -jar.jar:. Example
117
116
```
118
117
119
118
## Roadmap
0 commit comments