diff --git a/README.md b/README.md index 04ac382..7f54d55 100644 --- a/README.md +++ b/README.md @@ -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: @@ -23,31 +23,14 @@ Maven: com.resend resend-java - 1.0.0 + 2.0.0 ``` -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 diff --git a/build.gradle b/build.gradle index 1551271..61e3cff 100644 --- a/build.gradle +++ b/build.gradle @@ -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' }