@@ -10,7 +10,7 @@ import com.sendgrid.*;
1010
1111public class SendGridExample {
1212 public static void main (String [] args ) {
13- SendGrid sendgrid = new SendGrid (System . getenv( " SENDGRID_USERNAME " ), System . getenv( " SENDGRID_PASSWORD" ) );
13+ SendGrid sendgrid = new SendGrid (" SENDGRID USERNAME " , " SENDGRID_PASSWORD" );
1414
1515 SendGrid . Email email = new SendGrid .Email ();
1616 email. addTo(" example@example.com" );
@@ -31,7 +31,7 @@ public class SendGridExample {
3131Compile and run this example with
3232
3333``` bash
34- $ javac -classpath sendgrid-1.2.0 -jar.jar:. SendGridExample.java && java -classpath sendgrid-1.2.0 -jar.jar:. SendGridExample
34+ $ javac -classpath sendgrid-1.2.1 -jar.jar:. SendGridExample.java && java -classpath sendgrid-1.2.1 -jar.jar:. SendGridExample
3535```
3636
3737## Installation
@@ -46,7 +46,7 @@ Add the following to your build.gradle file in the root of your project.
4646...
4747dependencies {
4848 ...
49- compile 'com.sendgrid:sendgrid-java:1.2.0 '
49+ compile 'com.sendgrid:sendgrid-java:1.2.1 '
5050}
5151
5252repositories {
@@ -61,6 +61,16 @@ Then import the library - in the file appropriate to your Java project.
6161import com.sendgrid.SendGrid ;
6262```
6363
64+ ### via jar file
65+
66+ You can just drop the jar file in. It's a fat jar - it has all the dependencies built in.
67+
68+ [ sendgrid-java.jar] ( https://sendgrid-open-source.s3.amazonaws.com/sendgrid-java/sendgrid-java.jar )
69+
70+ ``` java
71+ import com.sendgrid.* ;
72+ ```
73+
6474## Usage
6575
6676To begin using this library, initialize the SendGrid object with your SendGrid credentials.
0 commit comments