Skip to content

Commit

Permalink
fixed readme and added new sdk version to the gradle config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kewyn Akshlley committed Sep 22, 2023
1 parent ab6f97e commit 96fccf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
25 changes: 4 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To get the most out of this guide, you’ll need to:
1. Add the dependecy to your project:

```
implementation 'com.resend:resend-java:1.0.0'
implementation 'com.resend:resend-java:2.0.0'
```

Maven:
Expand All @@ -23,31 +23,14 @@ Maven:
<dependency>
<groupId>com.resend</groupId>
<artifactId>resend-java</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</dependency>
```

2. Set the API Key via environment variable or programmatically:
2. Replace ```re_123456789``` on Main with your API key.

Environment variables:
```sh
export RESEND_API_KEY="re_123456789"
```

Instantiate the ResendEmails with empty constructor:
```
ResendEmails emailClient = new ResendEmails();
```

Programmatically:

```
String apiKey = "re_123";
AuthenticationProvider provider = new AuthenticationProviderStandard(apiKey);
ResendEmails emailClient = new ResendEmails(provider);
```
3. Execute the project
3. Execute the project by running the Main class

## License

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies {
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'

// https://mvnrepository.com/artifact/com.resend/resend-java
implementation 'com.resend:resend-java:1.0.0'
implementation 'com.resend:resend-java:2.0.0'

}

Expand Down

0 comments on commit 96fccf3

Please sign in to comment.