Skip to content

Commit 5193197

Browse files
chore(deps): update dependency com.mailjet:mailjet-client to v4.6.0 (GoogleCloudPlatform#4122)
* chore(deps): update dependency com.mailjet:mailjet-client to v4.6.0 * remove deprecated error Co-authored-by: averikitsch <[email protected]>
1 parent 88898fb commit 5193197

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compute/mailjet/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<properties>
3333
<maven.compiler.target>1.8</maven.compiler.target>
3434
<maven.compiler.source>1.8</maven.compiler.source>
35-
<mailjet.version>4.5.0</mailjet.version>
35+
<mailjet.version>4.6.0</mailjet.version>
3636
</properties>
3737

3838
<dependencies>

compute/mailjet/src/main/java/com/example/compute/mailjet/MailjetSender.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import com.mailjet.client.MailjetRequest;
2424
import com.mailjet.client.MailjetResponse;
2525
import com.mailjet.client.errors.MailjetException;
26-
import com.mailjet.client.errors.MailjetSocketTimeoutException;
2726
import com.mailjet.client.resource.Emailv31;
2827
import org.json.JSONArray;
2928
import org.json.JSONObject;
@@ -33,7 +32,7 @@
3332
// [START app]
3433
public class MailjetSender {
3534

36-
public static void main(String[] args) throws MailjetException, MailjetSocketTimeoutException {
35+
public static void main(String[] args) throws MailjetException {
3736
final String mailjetApiKey = "YOUR-MAILJET-API-KEY";
3837
final String mailjetSecretKey = "YOUR-MAILJET-SECRET-KEY";
3938
MailjetClient client = new MailjetClient(
@@ -44,7 +43,7 @@ public static void main(String[] args) throws MailjetException, MailjetSocketTim
4443
}
4544

4645
public MailjetResponse sendMailjet(String recipient, String sender, MailjetClient client)
47-
throws MailjetException, MailjetSocketTimeoutException {
46+
throws MailjetException {
4847
MailjetRequest email = new MailjetRequest(Emailv31.resource)
4948
.property(Emailv31.MESSAGES, new JSONArray()
5049
.put(new JSONObject()

0 commit comments

Comments
 (0)