@@ -16,7 +16,7 @@ All updates to this project is documented in our [CHANGELOG](https://github.com/
1616...
1717dependencies {
1818 ...
19- compile 'com.sendgrid:java-http-client:2.2.1 '
19+ compile 'com.sendgrid:java-http-client:2.3.0 '
2020}
2121
2222repositories {
@@ -31,15 +31,15 @@ repositories {
3131<dependency >
3232 <groupId >com.sendgrid</groupId >
3333 <artifactId >java-http-client</artifactId >
34- <version >2.2.1 </version >
34+ <version >2.3.0 </version >
3535</dependency >
3636```
3737
3838` mvn install `
3939
4040## Fat Jar
4141
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 )
4343
4444## Dependencies
4545
7474
7575``` java
7676Map<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" );
7978request. headers = requestHeaders;
8079Map<String ,String > queryParams = new HashMap<String , String > ();
8180queryParams. put(" limit" , " 100" );
@@ -113,7 +112,7 @@ source ./sendgrid.env
113112``` bash
114113mvn package
115114cd 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
117116```
118117
119118## Roadmap
0 commit comments