From 6d5b12654724323a91d53b2e758987a607d2e224 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Tue, 19 Sep 2017 13:18:05 +0200 Subject: [PATCH 001/288] Alway serialize click-tracking parameters Othwerwise setting them to a false value produces an invalid request, because the fields are required. Fixes #181 --- .../sendgrid/helpers/mail/objects/ClickTrackingSetting.java | 1 - src/test/java/com/sendgrid/helpers/MailTest.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java index 839c8fbf..9214eb45 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java @@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) public class ClickTrackingSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("enable_text") private boolean enableText; diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index e4eedd58..7ad8bfe5 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -170,7 +170,7 @@ public void testKitchenSink() throws IOException { TrackingSettings trackingSettings = new TrackingSettings(); ClickTrackingSetting clickTrackingSetting = new ClickTrackingSetting(); clickTrackingSetting.setEnable(true); - clickTrackingSetting.setEnableText(true); + clickTrackingSetting.setEnableText(false); trackingSettings.setClickTrackingSetting(clickTrackingSetting); OpenTrackingSetting openTrackingSetting = new OpenTrackingSetting(); openTrackingSetting.setEnable(true); @@ -197,7 +197,7 @@ public void testKitchenSink() throws IOException { replyTo.setEmail("test@example.com"); mail.setReplyTo(replyTo); - Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":true},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); + Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); } @Test From 3acee9fa3c25b784ad2f3380ea951fa0bc505bc1 Mon Sep 17 00:00:00 2001 From: Stephen Calabrese Date: Sun, 1 Oct 2017 15:08:23 -0500 Subject: [PATCH 002/288] The license file is put into the release jar. --- pom.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 07545420..86ef37d8 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,15 @@ scm:git:git@github.com:sendgrid/sendgrid-java.git HEAD - + + + + ${basedir} + + LICENSE.txt + + + org.apache.maven.plugins @@ -119,4 +127,4 @@ test - + \ No newline at end of file From e61af6c70ac0663dfa4c09cb73c48607d5dbc433 Mon Sep 17 00:00:00 2001 From: Stephen Calabrese Date: Sun, 1 Oct 2017 15:37:56 -0500 Subject: [PATCH 003/288] Adding SendGridApi interface. --- src/main/java/com/sendgrid/SendGrid.java | 2 +- src/main/java/com/sendgrid/SendGridApi.java | 34 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/sendgrid/SendGridApi.java diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 421b11a9..061316b8 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -7,7 +7,7 @@ /** * Class SendGrid allows for quick and easy access to the SendGrid API. */ -public class SendGrid { +public class SendGrid implements SendGridApi{ private static final String VERSION = "3.0.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; diff --git a/src/main/java/com/sendgrid/SendGridApi.java b/src/main/java/com/sendgrid/SendGridApi.java new file mode 100644 index 00000000..d6273b36 --- /dev/null +++ b/src/main/java/com/sendgrid/SendGridApi.java @@ -0,0 +1,34 @@ +package com.sendgrid; + +import java.io.IOException; +import java.util.Map; + +public interface SendGridApi { + + public void initializeSendGrid(String apiKey); + + public String getLibraryVersion(); + + public String getVersion(); + + public void setVersion(String version); + + public Map getRequestHeaders(); + + public Map addRequestHeader(String key, String value); + + public Map removeRequestHeader(String key); + public String getHost(); + + public void setHost(String host); + + /** + * Class makeCall makes the call to the SendGrid API, override this method for testing. + */ + public Response makeCall(Request request) throws IOException; + + /** + * Class api sets up the request to the SendGrid API, this is main interface. + */ + public Response api(Request request) throws IOException; +} From b8af1fc0f7dfdf494d99b7fc1cd5ffb2bcd61a72 Mon Sep 17 00:00:00 2001 From: Stephen Calabrese Date: Sun, 1 Oct 2017 17:22:10 -0500 Subject: [PATCH 004/288] Fixing Mail deserialization issue. --- .../java/com/sendgrid/helpers/mail/Mail.java | 70 +++++++++++++++++++ .../sendgrid/helpers/mail/objects/ASM.java | 25 +++++++ .../helpers/mail/objects/Attachments.java | 49 +++++++++++++ .../helpers/mail/objects/BccSettings.java | 28 ++++++++ .../mail/objects/ClickTrackingSetting.java | 25 +++++++ .../helpers/mail/objects/Content.java | 31 ++++++++ .../sendgrid/helpers/mail/objects/Email.java | 31 ++++++++ .../helpers/mail/objects/FooterSetting.java | 34 +++++++++ .../mail/objects/GoogleAnalyticsSetting.java | 52 ++++++++++++++ .../helpers/mail/objects/MailSettings.java | 49 +++++++++++++ .../mail/objects/OpenTrackingSetting.java | 29 ++++++++ .../helpers/mail/objects/Personalization.java | 65 ++++++++++++++++- .../helpers/mail/objects/Setting.java | 22 ++++++ .../mail/objects/SpamCheckSetting.java | 31 ++++++++ .../objects/SubscriptionTrackingSetting.java | 40 +++++++++++ .../mail/objects/TrackingSettings.java | 43 ++++++++++++ .../java/com/sendgrid/helpers/MailTest.java | 14 ++++ 17 files changed, 637 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index beba5a53..99f08556 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -281,4 +281,74 @@ public String buildPretty() throws IOException { throw ex; } } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((batchId == null) ? 0 : batchId.hashCode()); + result = prime * result + ((categories == null) ? 0 : categories.hashCode()); + result = prime * result + ((customArgs == null) ? 0 : customArgs.hashCode()); + result = prime * result + ((headers == null) ? 0 : headers.hashCode()); + result = prime * result + ((ipPoolId == null) ? 0 : ipPoolId.hashCode()); + result = prime * result + ((sections == null) ? 0 : sections.hashCode()); + result = prime * result + (int) (sendAt ^ (sendAt >>> 32)); + result = prime * result + ((subject == null) ? 0 : subject.hashCode()); + result = prime * result + ((templateId == null) ? 0 : templateId.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Mail other = (Mail) obj; + if (batchId == null) { + if (other.batchId != null) + return false; + } else if (!batchId.equals(other.batchId)) + return false; + if (categories == null) { + if (other.categories != null) + return false; + } else if (!categories.equals(other.categories)) + return false; + if (customArgs == null) { + if (other.customArgs != null) + return false; + } else if (!customArgs.equals(other.customArgs)) + return false; + if (headers == null) { + if (other.headers != null) + return false; + } else if (!headers.equals(other.headers)) + return false; + if (ipPoolId == null) { + if (other.ipPoolId != null) + return false; + } else if (!ipPoolId.equals(other.ipPoolId)) + return false; + if (sections == null) { + if (other.sections != null) + return false; + } else if (!sections.equals(other.sections)) + return false; + if (sendAt != other.sendAt) + return false; + if (subject == null) { + if (other.subject != null) + return false; + } else if (!subject.equals(other.subject)) + return false; + if (templateId == null) { + if (other.templateId != null) + return false; + } else if (!templateId.equals(other.templateId)) + return false; + return true; + } } diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java b/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java index 1a65a65d..29952ae1 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java @@ -28,4 +28,29 @@ public int[] getGroupsToDisplay() { public void setGroupsToDisplay(int[] groupsToDisplay) { this.groupsToDisplay = Arrays.copyOf(groupsToDisplay, groupsToDisplay.length); } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + groupId; + result = prime * result + Arrays.hashCode(groupsToDisplay); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + ASM other = (ASM) obj; + if (groupId != other.groupId) + return false; + if (!Arrays.equals(groupsToDisplay, other.groupsToDisplay)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java index 9323b837..6bec689f 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java @@ -137,4 +137,53 @@ public Attachments build() { return attachments; } } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((content == null) ? 0 : content.hashCode()); + result = prime * result + ((contentId == null) ? 0 : contentId.hashCode()); + result = prime * result + ((disposition == null) ? 0 : disposition.hashCode()); + result = prime * result + ((filename == null) ? 0 : filename.hashCode()); + result = prime * result + ((type == null) ? 0 : type.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Attachments other = (Attachments) obj; + if (content == null) { + if (other.content != null) + return false; + } else if (!content.equals(other.content)) + return false; + if (contentId == null) { + if (other.contentId != null) + return false; + } else if (!contentId.equals(other.contentId)) + return false; + if (disposition == null) { + if (other.disposition != null) + return false; + } else if (!disposition.equals(other.disposition)) + return false; + if (filename == null) { + if (other.filename != null) + return false; + } else if (!filename.equals(other.filename)) + return false; + if (type == null) { + if (other.type != null) + return false; + } else if (!type.equals(other.type)) + return false; + return true; + } } diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java index 176387fa..fa9758f2 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java @@ -26,4 +26,32 @@ public String getEmail() { public void setEmail(String email) { this.email = email; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((email == null) ? 0 : email.hashCode()); + result = prime * result + (enable ? 1231 : 1237); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + BccSettings other = (BccSettings) obj; + if (email == null) { + if (other.email != null) + return false; + } else if (!email.equals(other.email)) + return false; + if (enable != other.enable) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java index 839c8fbf..2abc58c8 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java @@ -26,4 +26,29 @@ public boolean getEnableText() { public void setEnableText(boolean enableText) { this.enableText = enableText; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (enable ? 1231 : 1237); + result = prime * result + (enableText ? 1231 : 1237); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + ClickTrackingSetting other = (ClickTrackingSetting) obj; + if (enable != other.enable) + return false; + if (enableText != other.enableText) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java index b00f9566..faa9820b 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java @@ -35,4 +35,35 @@ public String getValue() { public void setValue(String value) { this.value = value; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((type == null) ? 0 : type.hashCode()); + result = prime * result + ((value == null) ? 0 : value.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Content other = (Content) obj; + if (type == null) { + if (other.type != null) + return false; + } else if (!type.equals(other.type)) + return false; + if (value == null) { + if (other.value != null) + return false; + } else if (!value.equals(other.value)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Email.java b/src/main/java/com/sendgrid/helpers/mail/objects/Email.java index 43396a85..cbfce557 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Email.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Email.java @@ -39,4 +39,35 @@ public String getEmail() { public void setEmail(String email) { this.email = email; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((email == null) ? 0 : email.hashCode()); + result = prime * result + ((name == null) ? 0 : name.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Email other = (Email) obj; + if (email == null) { + if (other.email != null) + return false; + } else if (!email.equals(other.email)) + return false; + if (name == null) { + if (other.name != null) + return false; + } else if (!name.equals(other.name)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java index 8e542c7f..1b2ece01 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java @@ -36,4 +36,38 @@ public String getHtml() { public void setHtml(String html) { this.html = html; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (enable ? 1231 : 1237); + result = prime * result + ((html == null) ? 0 : html.hashCode()); + result = prime * result + ((text == null) ? 0 : text.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + FooterSetting other = (FooterSetting) obj; + if (enable != other.enable) + return false; + if (html == null) { + if (other.html != null) + return false; + } else if (!html.equals(other.html)) + return false; + if (text == null) { + if (other.text != null) + return false; + } else if (!text.equals(other.text)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java index ce30edbc..594743d6 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java @@ -66,4 +66,56 @@ public String getCampaignMedium() { public void setCampaignMedium(String campaignMedium) { this.campaignMedium = campaignMedium; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((campaignContent == null) ? 0 : campaignContent.hashCode()); + result = prime * result + ((campaignMedium == null) ? 0 : campaignMedium.hashCode()); + result = prime * result + ((campaignName == null) ? 0 : campaignName.hashCode()); + result = prime * result + ((campaignSource == null) ? 0 : campaignSource.hashCode()); + result = prime * result + ((campaignTerm == null) ? 0 : campaignTerm.hashCode()); + result = prime * result + (enable ? 1231 : 1237); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + GoogleAnalyticsSetting other = (GoogleAnalyticsSetting) obj; + if (campaignContent == null) { + if (other.campaignContent != null) + return false; + } else if (!campaignContent.equals(other.campaignContent)) + return false; + if (campaignMedium == null) { + if (other.campaignMedium != null) + return false; + } else if (!campaignMedium.equals(other.campaignMedium)) + return false; + if (campaignName == null) { + if (other.campaignName != null) + return false; + } else if (!campaignName.equals(other.campaignName)) + return false; + if (campaignSource == null) { + if (other.campaignSource != null) + return false; + } else if (!campaignSource.equals(other.campaignSource)) + return false; + if (campaignTerm == null) { + if (other.campaignTerm != null) + return false; + } else if (!campaignTerm.equals(other.campaignTerm)) + return false; + if (enable != other.enable) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java index 63580458..0590b224 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java @@ -56,4 +56,53 @@ public SpamCheckSetting getSpamCheck() { public void setSpamCheckSetting(SpamCheckSetting spamCheckSetting) { this.spamCheckSetting = spamCheckSetting; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((bccSettings == null) ? 0 : bccSettings.hashCode()); + result = prime * result + ((bypassListManagement == null) ? 0 : bypassListManagement.hashCode()); + result = prime * result + ((footerSetting == null) ? 0 : footerSetting.hashCode()); + result = prime * result + ((sandBoxMode == null) ? 0 : sandBoxMode.hashCode()); + result = prime * result + ((spamCheckSetting == null) ? 0 : spamCheckSetting.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + MailSettings other = (MailSettings) obj; + if (bccSettings == null) { + if (other.bccSettings != null) + return false; + } else if (!bccSettings.equals(other.bccSettings)) + return false; + if (bypassListManagement == null) { + if (other.bypassListManagement != null) + return false; + } else if (!bypassListManagement.equals(other.bypassListManagement)) + return false; + if (footerSetting == null) { + if (other.footerSetting != null) + return false; + } else if (!footerSetting.equals(other.footerSetting)) + return false; + if (sandBoxMode == null) { + if (other.sandBoxMode != null) + return false; + } else if (!sandBoxMode.equals(other.sandBoxMode)) + return false; + if (spamCheckSetting == null) { + if (other.spamCheckSetting != null) + return false; + } else if (!spamCheckSetting.equals(other.spamCheckSetting)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java index aeb7ede1..b5508946 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java @@ -26,4 +26,33 @@ public String getSubstitutionTag() { public void setSubstitutionTag(String substitutionTag) { this.substitutionTag = substitutionTag; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (enable ? 1231 : 1237); + result = prime * result + ((substitutionTag == null) ? 0 : substitutionTag.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + OpenTrackingSetting other = (OpenTrackingSetting) obj; + if (enable != other.enable) + return false; + if (substitutionTag == null) { + if (other.substitutionTag != null) + return false; + } else if (!substitutionTag.equals(other.substitutionTag)) + return false; + return true; + } + } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index 734dc9c0..e3646451 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -143,5 +143,68 @@ public long sendAt() { public void setSendAt(long sendAt) { this.sendAt = sendAt; } - + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((bccs == null) ? 0 : bccs.hashCode()); + result = prime * result + ((ccs == null) ? 0 : ccs.hashCode()); + result = prime * result + ((customArgs == null) ? 0 : customArgs.hashCode()); + result = prime * result + ((headers == null) ? 0 : headers.hashCode()); + result = prime * result + (int) (sendAt ^ (sendAt >>> 32)); + result = prime * result + ((subject == null) ? 0 : subject.hashCode()); + result = prime * result + ((substitutions == null) ? 0 : substitutions.hashCode()); + result = prime * result + ((tos == null) ? 0 : tos.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Personalization other = (Personalization) obj; + if (bccs == null) { + if (other.bccs != null) + return false; + } else if (!bccs.equals(other.bccs)) + return false; + if (ccs == null) { + if (other.ccs != null) + return false; + } else if (!ccs.equals(other.ccs)) + return false; + if (customArgs == null) { + if (other.customArgs != null) + return false; + } else if (!customArgs.equals(other.customArgs)) + return false; + if (headers == null) { + if (other.headers != null) + return false; + } else if (!headers.equals(other.headers)) + return false; + if (sendAt != other.sendAt) + return false; + if (subject == null) { + if (other.subject != null) + return false; + } else if (!subject.equals(other.subject)) + return false; + if (substitutions == null) { + if (other.substitutions != null) + return false; + } else if (!substitutions.equals(other.substitutions)) + return false; + if (tos == null) { + if (other.tos != null) + return false; + } else if (!tos.equals(other.tos)) + return false; + return true; + } } diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java index 5818a145..2fab69e8 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java @@ -16,4 +16,26 @@ public boolean getEnable() { public void setEnable(boolean enable) { this.enable = enable; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (enable ? 1231 : 1237); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Setting other = (Setting) obj; + if (enable != other.enable) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java index 85d1dc10..ba5c0105 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java @@ -36,4 +36,35 @@ public String getPostToUrl() { public void setPostToUrl(String postToUrl) { this.postToUrl = postToUrl; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (enable ? 1231 : 1237); + result = prime * result + ((postToUrl == null) ? 0 : postToUrl.hashCode()); + result = prime * result + spamThreshold; + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + SpamCheckSetting other = (SpamCheckSetting) obj; + if (enable != other.enable) + return false; + if (postToUrl == null) { + if (other.postToUrl != null) + return false; + } else if (!postToUrl.equals(other.postToUrl)) + return false; + if (spamThreshold != other.spamThreshold) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java index ad1121c2..da02d8e9 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java @@ -46,4 +46,44 @@ public String getSubstitutionTag() { public void setSubstitutionTag(String substitutionTag) { this.substitutionTag = substitutionTag; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (enable ? 1231 : 1237); + result = prime * result + ((html == null) ? 0 : html.hashCode()); + result = prime * result + ((substitutionTag == null) ? 0 : substitutionTag.hashCode()); + result = prime * result + ((text == null) ? 0 : text.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + SubscriptionTrackingSetting other = (SubscriptionTrackingSetting) obj; + if (enable != other.enable) + return false; + if (html == null) { + if (other.html != null) + return false; + } else if (!html.equals(other.html)) + return false; + if (substitutionTag == null) { + if (other.substitutionTag != null) + return false; + } else if (!substitutionTag.equals(other.substitutionTag)) + return false; + if (text == null) { + if (other.text != null) + return false; + } else if (!text.equals(other.text)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java index 4da565d5..06ff62df 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java @@ -46,4 +46,47 @@ public GoogleAnalyticsSetting getGoogleAnalyticsSetting() { public void setGoogleAnalyticsSetting(GoogleAnalyticsSetting googleAnalyticsSetting) { this.googleAnalyticsSetting = googleAnalyticsSetting; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((clickTrackingSetting == null) ? 0 : clickTrackingSetting.hashCode()); + result = prime * result + ((googleAnalyticsSetting == null) ? 0 : googleAnalyticsSetting.hashCode()); + result = prime * result + ((openTrackingSetting == null) ? 0 : openTrackingSetting.hashCode()); + result = prime * result + ((subscriptionTrackingSetting == null) ? 0 : subscriptionTrackingSetting.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + TrackingSettings other = (TrackingSettings) obj; + if (clickTrackingSetting == null) { + if (other.clickTrackingSetting != null) + return false; + } else if (!clickTrackingSetting.equals(other.clickTrackingSetting)) + return false; + if (googleAnalyticsSetting == null) { + if (other.googleAnalyticsSetting != null) + return false; + } else if (!googleAnalyticsSetting.equals(other.googleAnalyticsSetting)) + return false; + if (openTrackingSetting == null) { + if (other.openTrackingSetting != null) + return false; + } else if (!openTrackingSetting.equals(other.openTrackingSetting)) + return false; + if (subscriptionTrackingSetting == null) { + if (other.subscriptionTrackingSetting != null) + return false; + } else if (!subscriptionTrackingSetting.equals(other.subscriptionTrackingSetting)) + return false; + return true; + } } \ No newline at end of file diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index e4eedd58..a8b49fe3 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -208,4 +208,18 @@ public void fromShouldReturnCorrectFrom() { Assert.assertSame(from, mail.getFrom()); } + + @Test + public void mailDeserialization() throws IOException { + Email to = new Email("foo@bar.com"); + Content content = new Content("text/plain", "test"); + Email from = new Email("no-reply@bar.com"); + Mail mail = new Mail(from, "subject", to, content); + + ObjectMapper mapper = new ObjectMapper(); + String json = mapper.writeValueAsString(mail); + Mail deserialized = mapper.readValue(json, Mail.class); + + Assert.assertEquals(deserialized, mail); + } } From 2c0183d7770a841ce417897d5a8241b85af4a7a2 Mon Sep 17 00:00:00 2001 From: Dmitry Avershin Date: Tue, 3 Oct 2017 09:28:28 +0200 Subject: [PATCH 005/288] Changes serialization type for settings to serialize values only if they are non-empty instead of defaults. --- .../helpers/mail/objects/BccSettings.java | 2 +- .../mail/objects/ClickTrackingSetting.java | 2 +- .../helpers/mail/objects/FooterSetting.java | 2 +- .../mail/objects/GoogleAnalyticsSetting.java | 2 +- .../mail/objects/OpenTrackingSetting.java | 2 +- .../mail/objects/SpamCheckSetting.java | 2 +- .../objects/SubscriptionTrackingSetting.java | 2 +- .../objects/SettingsSerializationTest.java | 86 +++++++++++++++++++ 8 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java index 176387fa..79f6cc5c 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class BccSettings { @JsonProperty("enable") private boolean enable; @JsonProperty("email") private String email; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java index 839c8fbf..5c014d3f 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class ClickTrackingSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("enable_text") private boolean enableText; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java index 8e542c7f..c179a606 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class FooterSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("text") private String text; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java index ce30edbc..45485234 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class GoogleAnalyticsSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("utm_source") private String campaignSource; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java index aeb7ede1..ac87f74d 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class OpenTrackingSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("substitution_tag") private String substitutionTag; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java index 85d1dc10..a0ae0269 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class SpamCheckSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("threshold") private int spamThreshold; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java index ad1121c2..839609bc 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_EMPTY) public class SubscriptionTrackingSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("text") private String text; diff --git a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java new file mode 100644 index 00000000..48fbfcc6 --- /dev/null +++ b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java @@ -0,0 +1,86 @@ +package com.sendgrid.helpers.mail.objects; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.sendgrid.BccSettings; +import com.sendgrid.ClickTrackingSetting; +import com.sendgrid.FooterSetting; +import com.sendgrid.GoogleAnalyticsSetting; +import com.sendgrid.OpenTrackingSetting; +import com.sendgrid.SpamCheckSetting; +import com.sendgrid.SubscriptionTrackingSetting; +import org.junit.Assert; +import org.junit.Test; + +public class SettingsSerializationTest { + + private ObjectMapper mapper = new ObjectMapper(); + + @Test + public void testOpenTrackingSettingSerialization() throws Exception { + OpenTrackingSetting setting = new OpenTrackingSetting(); + setting.setEnable(false); + + String jsonOne = mapper.writeValueAsString(setting); + Assert.assertEquals(jsonOne, "{\"enable\":false}"); + } + + @Test + public void testClickTrackingSettingSerialization() throws Exception { + ClickTrackingSetting setting = new ClickTrackingSetting(); + setting.setEnable(false); + + String jsonTwo = mapper.writeValueAsString(setting); + System.out.println(jsonTwo); + Assert.assertEquals(jsonTwo, "{\"enable\":false,\"enable_text\":false}"); + } + + @Test + public void testSubscriptionTrackingSettingSerialization() throws Exception { + SubscriptionTrackingSetting setting = new SubscriptionTrackingSetting(); + setting.setEnable(false); + + String jsonTwo = mapper.writeValueAsString(setting); + System.out.println(jsonTwo); + Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + } + + @Test + public void testGoogleAnalyticsTrackingSettingSerialization() throws Exception { + GoogleAnalyticsSetting setting = new GoogleAnalyticsSetting(); + setting.setEnable(false); + + String jsonTwo = mapper.writeValueAsString(setting); + System.out.println(jsonTwo); + Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + } + + @Test + public void testSpamCheckSettingSerialization() throws Exception { + SpamCheckSetting setting = new SpamCheckSetting(); + setting.setEnable(false); + + String jsonTwo = mapper.writeValueAsString(setting); + System.out.println(jsonTwo); + Assert.assertEquals(jsonTwo, "{\"enable\":false,\"threshold\":0}"); + } + + @Test + public void testFooterSettingSerialization() throws Exception { + FooterSetting setting = new FooterSetting(); + setting.setEnable(false); + + String jsonTwo = mapper.writeValueAsString(setting); + System.out.println(jsonTwo); + Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + } + + @Test + public void testBccSettingsSerialization() throws Exception { + BccSettings settings = new BccSettings(); + settings.setEnable(false); + + String jsonTwo = mapper.writeValueAsString(settings); + System.out.println(jsonTwo); + Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + } +} From b785ae22c9124d840950defd59cd03f5d704e527 Mon Sep 17 00:00:00 2001 From: scaalabr Date: Mon, 9 Oct 2017 22:52:29 -0500 Subject: [PATCH 006/288] Addressing comments --- src/main/java/com/sendgrid/SendGrid.java | 3 +- src/main/java/com/sendgrid/SendGridApi.java | 40 +++++++++++++++++++-- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 061316b8..96277d3e 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -7,7 +7,8 @@ /** * Class SendGrid allows for quick and easy access to the SendGrid API. */ -public class SendGrid implements SendGridApi{ +public class SendGrid implements SendGridAPI { + private static final String VERSION = "3.0.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; diff --git a/src/main/java/com/sendgrid/SendGridApi.java b/src/main/java/com/sendgrid/SendGridApi.java index d6273b36..bfbb230c 100644 --- a/src/main/java/com/sendgrid/SendGridApi.java +++ b/src/main/java/com/sendgrid/SendGridApi.java @@ -3,23 +3,59 @@ import java.io.IOException; import java.util.Map; -public interface SendGridApi { +public interface SendGridAPI { + /** + * Initializes SendGrid + * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys + */ public void initializeSendGrid(String apiKey); + /** + * Initializes SendGrid + * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys + */ public String getLibraryVersion(); + /** + * Gets the version. + */ public String getVersion(); + /** + * Sets the version. + * @param version the SendGrid version. + */ public void setVersion(String version); + + /** + * Gets the request headers. + */ public Map getRequestHeaders(); + /** + * Adds a request headers. + * @param key the key + * @param value the value + */ public Map addRequestHeader(String key, String value); + /** + * Removes a request headers. + * @param key the key + */ public Map removeRequestHeader(String key); + + /** + * Gets the host. + */ public String getHost(); - + + /** + * Sets the host. + * @param host the host to set + */ public void setHost(String host); /** From dc35aba01fb616c771c215fd9b4980ed1f5b8be3 Mon Sep 17 00:00:00 2001 From: sccalabr Date: Mon, 9 Oct 2017 22:56:32 -0500 Subject: [PATCH 007/288] Rename SendGridApi.java to SendGridAPI.java --- src/main/java/com/sendgrid/{SendGridApi.java => SendGridAPI.java} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/main/java/com/sendgrid/{SendGridApi.java => SendGridAPI.java} (100%) diff --git a/src/main/java/com/sendgrid/SendGridApi.java b/src/main/java/com/sendgrid/SendGridAPI.java similarity index 100% rename from src/main/java/com/sendgrid/SendGridApi.java rename to src/main/java/com/sendgrid/SendGridAPI.java From 0000925234db32bff25ba723f06338746fe32531 Mon Sep 17 00:00:00 2001 From: Andy Trimble Date: Tue, 10 Oct 2017 13:57:47 -0600 Subject: [PATCH 008/288] Initial implementation. --- src/main/java/com/sendgrid/APICallback.java | 19 +++ .../java/com/sendgrid/RateLimitException.java | 36 +++++ src/main/java/com/sendgrid/SendGrid.java | 126 +++++++++++++++++- src/test/java/com/sendgrid/SendGridTest.java | 92 +++++++++++++ 4 files changed, 266 insertions(+), 7 deletions(-) create mode 100644 src/main/java/com/sendgrid/APICallback.java create mode 100644 src/main/java/com/sendgrid/RateLimitException.java diff --git a/src/main/java/com/sendgrid/APICallback.java b/src/main/java/com/sendgrid/APICallback.java new file mode 100644 index 00000000..fde54f9d --- /dev/null +++ b/src/main/java/com/sendgrid/APICallback.java @@ -0,0 +1,19 @@ +package com.sendgrid; + +/** + * An interface describing a callback mechanism for the + * asynchronous, rate limit aware API connection. + */ +public interface APICallback { + /** + * Callback method in case of an error. + * @param ex the error that was thrown. + */ + public void error(Exception ex); + + /** + * Callback method in case of a valid response. + * @param response the valid response. + */ + public void response(Response response); +} diff --git a/src/main/java/com/sendgrid/RateLimitException.java b/src/main/java/com/sendgrid/RateLimitException.java new file mode 100644 index 00000000..4912ac92 --- /dev/null +++ b/src/main/java/com/sendgrid/RateLimitException.java @@ -0,0 +1,36 @@ +package com.sendgrid; + +/** + * An exception thrown when the maximum number of retries + * have occurred, and the API calls are still rate limited. + */ +public class RateLimitException extends Exception { + private final Request request; + private final int retryCount; + + /** + * Construct a new exception. + * @param request the originating request object. + * @param retryCount the number of times a retry was attempted. + */ + public RateLimitException(Request request, int retryCount) { + this.request = request; + this.retryCount = retryCount; + } + + /** + * Get the originating request object. + * @return the request object. + */ + public Request getRequest() { + return this.request; + } + + /** + * Get the number of times the action was attemted. + * @return the retry count. + */ + public int getRetryCount() { + return this.retryCount; + } +} diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 6bf14295..1d49d4f4 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -3,6 +3,8 @@ import java.io.IOException; import java.util.HashMap; import java.util.Map; +import java.util.concurrent.Executors; +import java.util.concurrent.ExecutorService; /** * Class SendGrid allows for quick and easy access to the SendGrid API. @@ -13,6 +15,10 @@ public class SendGrid { /** The user agent string to return to SendGrid. */ private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; + private static final int RATE_LIMIT_RESPONSE_CODE = 429; + private static final int THREAD_POOL_SIZE = 8; + + private ExecutorService pool; /** The user's API key. */ private String apiKey; @@ -27,7 +33,13 @@ public class SendGrid { private Client client; /** The request headers container. */ - private Map requestHeaders; + private Map requestHeaders; + + /** The number of times to try after a rate limit. */ + private int rateLimitRetry; + + /** The number of milliseconds to sleep between retries. */ + private int rateLimitSleep; /** * Construct a new SendGrid API wrapper. @@ -73,6 +85,10 @@ public void initializeSendGrid(String apiKey) { this.requestHeaders.put("Authorization", "Bearer " + apiKey); this.requestHeaders.put("User-agent", USER_AGENT); this.requestHeaders.put("Accept", "application/json"); + this.rateLimitRetry = 5; + this.rateLimitSleep = 1100; + + this.pool = Executors.newFixedThreadPool(THREAD_POOL_SIZE); } /** @@ -103,7 +119,7 @@ public void setVersion(String version) { * Obtain the request headers. * @return the request headers. */ - public Map getRequestHeaders() { + public Map getRequestHeaders() { return this.requestHeaders; } @@ -113,7 +129,7 @@ public Map getRequestHeaders() { * @param value the header value. * @return the new set of request headers. */ - public Map addRequestHeader(String key, String value) { + public Map addRequestHeader(String key, String value) { this.requestHeaders.put(key, value); return getRequestHeaders(); } @@ -123,7 +139,7 @@ public Map addRequestHeader(String key, String value) { * @param key the header key to remove. * @return the new set of request headers. */ - public Map removeRequestHeader(String key) { + public Map removeRequestHeader(String key) { this.requestHeaders.remove(key); return getRequestHeaders(); } @@ -145,7 +161,43 @@ public void setHost(String host) { } /** - * Class makeCall makes the call to the SendGrid API, override this method for testing. + * Get the maximum number of retries on a rate limit response. + * The default is 5. + * @return the number of retries on a rate limit. + */ + public int getRateLimitRetry() { + return this.rateLimitRetry; + } + + /** + * Set the maximum number of retries on a rate limit response. + * @param rateLimitRetry the maximum retry count. + */ + public void setRateLimitRetry(int rateLimitRetry) { + this.rateLimitRetry = rateLimitRetry; + } + + /** + * Get the duration of time (in milliseconds) to sleep between + * consecutive rate limit retries. The SendGrid API enforces + * the rate limit to the second. The default value is 1.1 seconds. + * @return the sleep duration. + */ + public int getRateLimitSleep() { + return this.rateLimitSleep; + } + + /** + * Set the duration of time (in milliseconds) to sleep between + * consecutive rate limit retries. + * @param rateLimitSleep the sleep duration. + */ + public void setRateLimitSleep(int rateLimitSleep) { + this.rateLimitSleep = rateLimitSleep; + } + + /** + * Makes the call to the SendGrid API, override this method for testing. * @param request the request to make. * @return the response object. * @throws IOException in case of a network error. @@ -166,13 +218,73 @@ public Response api(Request request) throws IOException { req.setBaseUri(this.host); req.setEndpoint("/" + version + "/" + request.getEndpoint()); req.setBody(request.getBody()); - for (Map.Entry header : this.requestHeaders.entrySet()) { + for (Map.Entry header : this.requestHeaders.entrySet()) { req.addHeader(header.getKey(), header.getValue()); } - for (Map.Entry queryParam : request.getQueryParams().entrySet()) { + for (Map.Entry queryParam : request.getQueryParams().entrySet()) { req.addQueryParam(queryParam.getKey(), queryParam.getValue()); } return makeCall(req); } + + /** + * Attempt an API call. This method executes the API call asynchronously + * on an internal thread pool. If the call is rate limited, the thread + * will retry up to the maximum configured time. + * @param request the API request. + */ + public void attempt(Request request) { + this.attempt(request, new APICallback() { + @Override + public void error(Exception ex) { + } + + public void response(Response r) { + } + }); + } + + /** + * Attempt an API call. This method executes the API call asynchronously + * on an internal thread pool. If the call is rate limited, the thread + * will retry up to the maximum configured time. The supplied callback + * will be called in the event of an error, or a successful response. + * @param request the API request. + * @param callback the callback. + */ + public void attempt(Request request, APICallback callback) { + this.pool.execute(new Runnable() { + @Override + public void run() { + Response response; + + // Retry until the retry limit has been reached. + for (int i = 0; i < rateLimitRetry; ++i) { + try { + response = api(request); + } catch (IOException ex) { + // Stop retrying if there is a network error. + callback.error(ex); + return; + } + + // We have been rate limited. + if (response.getStatusCode() == RATE_LIMIT_RESPONSE_CODE) { + try { + Thread.sleep(rateLimitSleep); + } catch (InterruptedException ex) { + // Can safely ignore this exception and retry. + } + } else { + callback.response(response); + return; + } + } + + // Retries exhausted. Return error. + callback.error(new RateLimitException(request, rateLimitRetry)); + } + }); + } } diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 5ec45eab..8f469bf0 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -74,6 +74,98 @@ public void testHost() { Assert.assertEquals(sg.getHost(), "api.new.com"); } + @Test + public void testRateLimitRetry() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setRateLimitRetry(100); + Assert.assertEquals(sg.getRateLimitRetry(), 100); + } + + @Test + public void testRateLimitSleep() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setRateLimitSleep(999); + Assert.assertEquals(sg.getRateLimitSleep(), 999); + } + + + @Test + public void test_async() { + Object sync = new Object(); + SendGrid sg = null; + if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { + sg = new SendGrid("SENDGRID_API_KEY"); + sg.setHost(System.getenv("MOCK_HOST")); + } else { + sg = new SendGrid("SENDGRID_API_KEY", true); + sg.setHost("localhost:4010"); + } + sg.addRequestHeader("X-Mock", "200"); + + Request request = new Request(); + + request.setMethod(Method.GET); + request.setEndpoint("access_settings/activity"); + request.addQueryParam("limit", "1"); + sg.attempt(request, new APICallback() { + @Override + public void error(Exception e) { + Assert.fail(); + sync.notify(); + } + + @Override + public void response(Response response) { + Assert.assertEquals(200, response.getStatusCode()); + sync.notify(); + } + }); + + try { + sync.wait(2000); + } catch(InterruptedException ex) { + Assert.fail(ex.toString()); + } + } + + @Test + public void test_async_rate_limit() { + Object sync = new Object(); + SendGrid sg = null; + if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { + sg = new SendGrid("SENDGRID_API_KEY"); + sg.setHost(System.getenv("MOCK_HOST")); + } else { + sg = new SendGrid("SENDGRID_API_KEY", true); + sg.setHost("localhost:4010"); + } + sg.addRequestHeader("X-Mock", "429"); + + Request request = new Request(); + + request.setMethod(Method.GET); + request.setEndpoint("access_settings/activity"); + request.addQueryParam("limit", "1"); + sg.attempt(request, new APICallback() { + @Override + public void error(Exception e) { + Assert.assertEquals(e.getClass(), RateLimitException.class); + sync.notify(); + } + + @Override + public void response(Response response) { + Assert.fail(); + sync.notify(); + } + }); + + try { + sync.wait(2000); + } catch(InterruptedException ex) { + Assert.fail(ex.toString()); + } + } @Test public void test_access_settings_activity_get() throws IOException { From 6e6d7b59499ecac98765e3288ebe5d646e4d9027 Mon Sep 17 00:00:00 2001 From: Andy Trimble Date: Tue, 10 Oct 2017 14:07:45 -0600 Subject: [PATCH 009/288] Fixed test race condition, and compile issue. --- src/main/java/com/sendgrid/SendGrid.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 1d49d4f4..37839f56 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -253,7 +253,7 @@ public void response(Response r) { * @param request the API request. * @param callback the callback. */ - public void attempt(Request request, APICallback callback) { + public void attempt(final Request request, final APICallback callback) { this.pool.execute(new Runnable() { @Override public void run() { diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 8f469bf0..2249b81f 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -91,7 +91,7 @@ public void testRateLimitSleep() { @Test public void test_async() { - Object sync = new Object(); + final Object sync = new Object(); SendGrid sg = null; if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { sg = new SendGrid("SENDGRID_API_KEY"); @@ -111,18 +111,24 @@ public void test_async() { @Override public void error(Exception e) { Assert.fail(); - sync.notify(); + synchronized(sync) { + sync.notify(); + } } @Override public void response(Response response) { Assert.assertEquals(200, response.getStatusCode()); - sync.notify(); + synchronized(sync) { + sync.notify(); + } } }); try { - sync.wait(2000); + synchronized(sync) { + sync.wait(2000); + } } catch(InterruptedException ex) { Assert.fail(ex.toString()); } @@ -130,7 +136,7 @@ public void response(Response response) { @Test public void test_async_rate_limit() { - Object sync = new Object(); + final Object sync = new Object(); SendGrid sg = null; if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { sg = new SendGrid("SENDGRID_API_KEY"); @@ -161,7 +167,9 @@ public void response(Response response) { }); try { - sync.wait(2000); + synchronized(sync) { + sync.wait(2000); + } } catch(InterruptedException ex) { Assert.fail(ex.toString()); } From 10a0ea26446a5c225ddeb4172e2c3b449d552507 Mon Sep 17 00:00:00 2001 From: sccalabr Date: Tue, 10 Oct 2017 21:59:09 -0500 Subject: [PATCH 010/288] Adding @return @throws @param and formatting file. --- src/main/java/com/sendgrid/SendGridAPI.java | 128 ++++++++++++-------- 1 file changed, 75 insertions(+), 53 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index bfbb230c..d190675c 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -5,66 +5,88 @@ public interface SendGridAPI { - /** - * Initializes SendGrid - * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys - */ - public void initializeSendGrid(String apiKey); + /** + * Initializes SendGrid + * + * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys + */ + public void initializeSendGrid(String apiKey); - /** - * Initializes SendGrid - * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys - */ - public String getLibraryVersion(); + /** + * Initializes SendGrid + * + * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys + * @return + */ + public String getLibraryVersion(); - /** - * Gets the version. - */ - public String getVersion(); + /** + * Gets the version. + * + * @return + */ + public String getVersion(); - /** - * Sets the version. - * @param version the SendGrid version. - */ - public void setVersion(String version); + /** + * Sets the version. + * + * @param version the SendGrid version. + */ + public void setVersion(String version); + /** + * Gets the request headers. + * @return + */ + public Map getRequestHeaders(); - /** - * Gets the request headers. - */ - public Map getRequestHeaders(); + /** + * Adds a request headers. + * + * @param keythe key + * @param valuethe value + * @return + */ + public Map addRequestHeader(String key, String value); - /** - * Adds a request headers. - * @param key the key - * @param value the value - */ - public Map addRequestHeader(String key, String value); + /** + * Removes a request headers. + * + * @param key the key + * @return + */ + public Map removeRequestHeader(String key); - /** - * Removes a request headers. - * @param key the key - */ - public Map removeRequestHeader(String key); - - /** - * Gets the host. - */ - public String getHost(); - - /** - * Sets the host. - * @param host the host to set - */ - public void setHost(String host); + /** + * Gets the host. + * + * @return + */ + public String getHost(); - /** - * Class makeCall makes the call to the SendGrid API, override this method for testing. - */ - public Response makeCall(Request request) throws IOException; + /** + * Sets the host. + * + * @param host the host to set + */ + public void setHost(String host); - /** - * Class api sets up the request to the SendGrid API, this is main interface. - */ - public Response api(Request request) throws IOException; + /** + * Class makeCall makes the call to the SendGrid API, override this method for + * testing. + * + * @param request + * @return + * @throws IOException + */ + public Response makeCall(Request request) throws IOException; + + /** + * Class api sets up the request to the SendGrid API, this is main interface. + * + * @param request + * @return + * @throws IOException + */ + public Response api(Request request) throws IOException; } From 5a0da482e7fe8e75c1c0645b569c63e92b3fedec Mon Sep 17 00:00:00 2001 From: dmitraver Date: Thu, 12 Oct 2017 12:06:17 +0200 Subject: [PATCH 011/288] Fixes field naming in tests. --- .../objects/SettingsSerializationTest.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java index 48fbfcc6..74e6c8b5 100644 --- a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java +++ b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java @@ -20,8 +20,8 @@ public void testOpenTrackingSettingSerialization() throws Exception { OpenTrackingSetting setting = new OpenTrackingSetting(); setting.setEnable(false); - String jsonOne = mapper.writeValueAsString(setting); - Assert.assertEquals(jsonOne, "{\"enable\":false}"); + String json = mapper.writeValueAsString(setting); + Assert.assertEquals(json, "{\"enable\":false}"); } @Test @@ -29,9 +29,9 @@ public void testClickTrackingSettingSerialization() throws Exception { ClickTrackingSetting setting = new ClickTrackingSetting(); setting.setEnable(false); - String jsonTwo = mapper.writeValueAsString(setting); - System.out.println(jsonTwo); - Assert.assertEquals(jsonTwo, "{\"enable\":false,\"enable_text\":false}"); + String json = mapper.writeValueAsString(setting); + System.out.println(json); + Assert.assertEquals(json, "{\"enable\":false,\"enable_text\":false}"); } @Test @@ -39,9 +39,9 @@ public void testSubscriptionTrackingSettingSerialization() throws Exception { SubscriptionTrackingSetting setting = new SubscriptionTrackingSetting(); setting.setEnable(false); - String jsonTwo = mapper.writeValueAsString(setting); - System.out.println(jsonTwo); - Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + String json = mapper.writeValueAsString(setting); + System.out.println(json); + Assert.assertEquals(json, "{\"enable\":false}"); } @Test @@ -49,9 +49,9 @@ public void testGoogleAnalyticsTrackingSettingSerialization() throws Exception { GoogleAnalyticsSetting setting = new GoogleAnalyticsSetting(); setting.setEnable(false); - String jsonTwo = mapper.writeValueAsString(setting); - System.out.println(jsonTwo); - Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + String json = mapper.writeValueAsString(setting); + System.out.println(json); + Assert.assertEquals(json, "{\"enable\":false}"); } @Test @@ -59,9 +59,9 @@ public void testSpamCheckSettingSerialization() throws Exception { SpamCheckSetting setting = new SpamCheckSetting(); setting.setEnable(false); - String jsonTwo = mapper.writeValueAsString(setting); - System.out.println(jsonTwo); - Assert.assertEquals(jsonTwo, "{\"enable\":false,\"threshold\":0}"); + String json = mapper.writeValueAsString(setting); + System.out.println(json); + Assert.assertEquals(json, "{\"enable\":false,\"threshold\":0}"); } @Test @@ -69,9 +69,9 @@ public void testFooterSettingSerialization() throws Exception { FooterSetting setting = new FooterSetting(); setting.setEnable(false); - String jsonTwo = mapper.writeValueAsString(setting); - System.out.println(jsonTwo); - Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + String json = mapper.writeValueAsString(setting); + System.out.println(json); + Assert.assertEquals(json, "{\"enable\":false}"); } @Test @@ -79,8 +79,8 @@ public void testBccSettingsSerialization() throws Exception { BccSettings settings = new BccSettings(); settings.setEnable(false); - String jsonTwo = mapper.writeValueAsString(settings); - System.out.println(jsonTwo); - Assert.assertEquals(jsonTwo, "{\"enable\":false}"); + String json = mapper.writeValueAsString(settings); + System.out.println(json); + Assert.assertEquals(json, "{\"enable\":false}"); } } From 2464dd8747e6e7da35c9513a0b6c25ee2a57c7fb Mon Sep 17 00:00:00 2001 From: sccalabr Date: Thu, 12 Oct 2017 22:15:55 -0500 Subject: [PATCH 012/288] Adding new line at the end of the file. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 86ef37d8..7cc79a80 100644 --- a/pom.xml +++ b/pom.xml @@ -127,4 +127,4 @@ test - \ No newline at end of file + From e28455d4391aca01a053b72ff7c302fbad99b97e Mon Sep 17 00:00:00 2001 From: sccalabr Date: Thu, 12 Oct 2017 22:17:33 -0500 Subject: [PATCH 013/288] Adding new line at the end of the file. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 7cc79a80..d250df9f 100644 --- a/pom.xml +++ b/pom.xml @@ -128,3 +128,4 @@ + From 56e8770c72f5a3e06416bfc6e7eb1655700ce071 Mon Sep 17 00:00:00 2001 From: Diego Camargo Date: Mon, 16 Oct 2017 21:09:20 +0200 Subject: [PATCH 014/288] Add a way to verify that the content doesn't contain sensitive information --- .../helpers/mail/objects/Content.java | 23 +++++++++ .../com/sendgrid/helpers/ContentTest.java | 47 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 src/test/java/com/sendgrid/helpers/ContentTest.java diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java index f6621ac9..1a348ea5 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java @@ -4,6 +4,14 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.regex.Pattern; +import java.lang.IllegalArgumentException; + /** * An object in which you may specify the content of your email. */ @@ -64,6 +72,21 @@ public String getValue() { * @param value the value. */ public void setValue(String value) { + ContentVerifier.verifyContent(value); this.value = value; } } + +class ContentVerifier { + private static final List FORBIDDEN_PATTERNS = Collections.singletonList( + Pattern.compile(".*SG\\.[a-zA-Z0-9(-|_)]*\\.[a-zA-Z0-9(-|_)]*.*") + ); + + static void verifyContent(String content) { + for (Pattern pattern: FORBIDDEN_PATTERNS) { + if (pattern.matcher(content).matches()) { + throw new IllegalArgumentException("Found a Forbidden Pattern in the content of the email"); + } + } + } +} diff --git a/src/test/java/com/sendgrid/helpers/ContentTest.java b/src/test/java/com/sendgrid/helpers/ContentTest.java new file mode 100644 index 00000000..05e2328c --- /dev/null +++ b/src/test/java/com/sendgrid/helpers/ContentTest.java @@ -0,0 +1,47 @@ +package com.sendgrid; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.ExpectedException; + +import java.util.ArrayList; +import java.util.Arrays; + +public class ContentTest { + private Content content; + + @Before + public void setUp() { + this.content = new Content(); + } + + @Rule + public final ExpectedException exception = ExpectedException.none(); + + @Test + public void testForbiddenContentIsRejected() { + + ArrayList sampleApiKeys = new ArrayList<>( + Arrays.asList( + "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", + "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" + ) + + ); + + for (String apiKey: sampleApiKeys) { + exception.expect(IllegalArgumentException.class); + this.content.setValue("My api key is: " + apiKey); + } + } + + @Test + public void testNormalContentIsAllowed() { + String message = "I will not send you my api key!"; + this.content.setValue(message); + Assert.assertEquals(message, this.content.getValue()); + } + +} From f9b1b920b590e992bb2df201943ade47c65bf5df Mon Sep 17 00:00:00 2001 From: sccalabr Date: Sun, 22 Oct 2017 13:17:33 -0500 Subject: [PATCH 015/288] Addressing comments. --- src/main/java/com/sendgrid/SendGridAPI.java | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index d190675c..4f277cd7 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -13,17 +13,17 @@ public interface SendGridAPI { public void initializeSendGrid(String apiKey); /** - * Initializes SendGrid + * Returns the library version * * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys - * @return + * @return the library version. */ public String getLibraryVersion(); /** * Gets the version. * - * @return + * @return returns the version. */ public String getVersion(); @@ -36,16 +36,16 @@ public interface SendGridAPI { /** * Gets the request headers. - * @return + * @return returns a map of request headers. */ public Map getRequestHeaders(); /** * Adds a request headers. * - * @param keythe key - * @param valuethe value - * @return + * @param key the key + * @param value the value + * @return returns a map of request headers. */ public Map addRequestHeader(String key, String value); @@ -53,14 +53,14 @@ public interface SendGridAPI { * Removes a request headers. * * @param key the key - * @return + * @return returns a map of request headers. */ public Map removeRequestHeader(String key); /** * Gets the host. * - * @return + * @return returns the host. */ public String getHost(); @@ -76,8 +76,8 @@ public interface SendGridAPI { * testing. * * @param request - * @return - * @throws IOException + * @return returns a response. + * @throws IOException in case of network or marshal error. */ public Response makeCall(Request request) throws IOException; @@ -86,7 +86,7 @@ public interface SendGridAPI { * * @param request * @return - * @throws IOException + * @throws IOException in case of network or marshal error. */ public Response api(Request request) throws IOException; } From ac1a990c7869e3fdb2a2a1a30ddff6b7a4623465 Mon Sep 17 00:00:00 2001 From: btrajkovski Date: Mon, 23 Oct 2017 18:32:47 +0200 Subject: [PATCH 016/288] Fix java package names Java packages were not corresponding to the actual location of classes, all packages were update to match class location. --- .../java/com/sendgrid/helpers/mail/Mail.java | 9 +---- .../sendgrid/helpers/mail/objects/ASM.java | 2 +- .../helpers/mail/objects/Attachments.java | 2 +- .../helpers/mail/objects/BccSettings.java | 2 +- .../mail/objects/ClickTrackingSetting.java | 2 +- .../helpers/mail/objects/Content.java | 2 +- .../sendgrid/helpers/mail/objects/Email.java | 2 +- .../helpers/mail/objects/FooterSetting.java | 2 +- .../mail/objects/GoogleAnalyticsSetting.java | 2 +- .../helpers/mail/objects/MailSettings.java | 38 +++++++++---------- .../mail/objects/OpenTrackingSetting.java | 2 +- .../helpers/mail/objects/Personalization.java | 2 +- .../helpers/mail/objects/Setting.java | 2 +- .../mail/objects/SpamCheckSetting.java | 2 +- .../objects/SubscriptionTrackingSetting.java | 2 +- .../mail/objects/TrackingSettings.java | 2 +- .../helpers/AttachmentBuilderTest.java | 2 +- .../java/com/sendgrid/helpers/MailTest.java | 5 ++- 18 files changed, 39 insertions(+), 43 deletions(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index edf02a15..937b1e62 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -1,16 +1,11 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; - import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.ObjectWriter; import com.fasterxml.jackson.databind.SerializationFeature; +import com.sendgrid.helpers.mail.objects.*; import java.io.IOException; import java.util.ArrayList; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java b/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java index 00763af7..c92a6243 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java index 059fc835..cb075ed5 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonIgnoreType; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java index 37be0866..e1c2fa1b 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java index e901e086..7e40b57d 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java index f6621ac9..81994296 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Email.java b/src/main/java/com/sendgrid/helpers/mail/objects/Email.java index 5642e345..a1b22212 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Email.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Email.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java index 1428b66b..ee033101 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java index eac91899..0c6cf0f3 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java index 1210eb08..76b21502 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java @@ -1,12 +1,12 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; /** - * An object representing a collection of different mail - * settings that you can use to specify how you would + * An object representing a collection of different mail + * settings that you can use to specify how you would * like this email to be handled. */ @JsonInclude(Include.NON_DEFAULT) @@ -25,7 +25,7 @@ public class MailSettings { public BccSettings getBccSettings() { return bccSettings; } - + /** * Set the BCC settings. * @param bccSettings the BCC settings. @@ -33,12 +33,12 @@ public BccSettings getBccSettings() { public void setBccSettings(BccSettings bccSettings) { this.bccSettings = bccSettings; } - + /** - * A setting that allows you to bypass all unsubscribe - * groups and suppressions to ensure that the email is - * delivered to every single recipient. This should only - * be used in emergencies when it is absolutely necessary + * A setting that allows you to bypass all unsubscribe + * groups and suppressions to ensure that the email is + * delivered to every single recipient. This should only + * be used in emergencies when it is absolutely necessary * that every recipient receives your email. * @return the bypass list setting. */ @@ -54,7 +54,7 @@ public Setting getBypassListManagement() { public void setBypassListManagement(Setting bypassListManagement) { this.bypassListManagement = bypassListManagement; } - + /** * Get the the footer settings that you would like included on every email. * @return the setting. @@ -63,7 +63,7 @@ public void setBypassListManagement(Setting bypassListManagement) { public FooterSetting getFooterSetting() { return footerSetting; } - + /** * Set the the footer settings that you would like included on every email. * @param footerSetting the setting. @@ -71,9 +71,9 @@ public FooterSetting getFooterSetting() { public void setFooterSetting(FooterSetting footerSetting) { this.footerSetting = footerSetting; } - + /** - * Get sandbox mode. This allows you to send a test email to + * Get sandbox mode. This allows you to send a test email to * ensure that your request body is valid and formatted correctly. * @return the sandbox mode setting. */ @@ -81,18 +81,18 @@ public void setFooterSetting(FooterSetting footerSetting) { public Setting getSandBoxMode() { return sandBoxMode; } - + /** - * Set sandbox mode. + * Set sandbox mode. * @param sandBoxMode the sandbox mode setting. */ @JsonProperty("sandbox_mode") public void setSandboxMode(Setting sandBoxMode) { this.sandBoxMode = sandBoxMode; } - + /** - * Get the spam check setting. This allows you to test the + * Get the spam check setting. This allows you to test the * content of your email for spam. * @return the spam check setting. */ @@ -100,9 +100,9 @@ public void setSandboxMode(Setting sandBoxMode) { public SpamCheckSetting getSpamCheck() { return spamCheckSetting; } - + /** - * Set the spam check setting. This allows you to test the + * Set the spam check setting. This allows you to test the * content of your email for spam. * @param spamCheckSetting the spam check setting. */ diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java index deba6d33..a0dab662 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index 83bd9c56..67226059 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java index 20b8d64e..c6157711 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java index dbd43955..95f425b9 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java index 304eb916..1280d440 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java index 0e2a47bb..72be0747 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java @@ -1,4 +1,4 @@ -package com.sendgrid; +package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; diff --git a/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java b/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java index 824e8145..3ea3f379 100644 --- a/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java +++ b/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java @@ -1,6 +1,6 @@ package com.sendgrid.helpers; -import com.sendgrid.Attachments; +import com.sendgrid.helpers.mail.objects.Attachments; import org.apache.commons.codec.binary.Base64; import org.junit.Assert; import org.junit.Test; diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index e4eedd58..9476a1d5 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -1,7 +1,8 @@ -package com.sendgrid; +package com.sendgrid.helpers; +import com.sendgrid.helpers.mail.Mail; +import com.sendgrid.helpers.mail.objects.*; import org.junit.Assert; -import org.junit.Before; import org.junit.Test; import java.io.IOException; From b9ddb85b2e2c5f4856d2bc8eed9215af7715f66d Mon Sep 17 00:00:00 2001 From: Thiago Barbato Date: Thu, 26 Oct 2017 23:12:06 -0200 Subject: [PATCH 017/288] Add .env_sample file --- .env_sample | 1 + .gitignore | 3 ++- README.md | 8 +++++--- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .env_sample diff --git a/.env_sample b/.env_sample new file mode 100644 index 00000000..937e999d --- /dev/null +++ b/.env_sample @@ -0,0 +1 @@ +export SENDGRID_API_KEY='' diff --git a/.gitignore b/.gitignore index 009d149a..2c5dd118 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ target examples/Example.java .settings .classpath -.project \ No newline at end of file +.project +.env diff --git a/README.md b/README.md index 9155acd6..009eeb0b 100644 --- a/README.md +++ b/README.md @@ -44,11 +44,13 @@ We appreciate your continued support, thank you! Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example: +1. Copy the sample environment file to a new file ```bash -echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env -echo "sendgrid.env" >> .gitignore -source ./sendgrid.env +cp .env_sample .env ``` +2. Edit the new `.env` to add your API key +3. Source the `.env` file to set rhe variable in the current session + ## Install Package Choose your installation method - Maven w/ Gradle (recommended), Maven or Jar file. From 1ca8320d332ec293c9f87e823ed55e24a5a0c541 Mon Sep 17 00:00:00 2001 From: teisena Date: Sat, 28 Oct 2017 02:43:28 +0300 Subject: [PATCH 018/288] split whitelabel examples by endpoint --- examples/whitelabel/domains.java | 281 +++++++++++++ examples/whitelabel/ips.java | 122 ++++++ examples/whitelabel/links.java | 238 +++++++++++ examples/whitelabel/whitelabel.java | 625 ---------------------------- 4 files changed, 641 insertions(+), 625 deletions(-) create mode 100644 examples/whitelabel/domains.java create mode 100644 examples/whitelabel/ips.java create mode 100644 examples/whitelabel/links.java delete mode 100644 examples/whitelabel/whitelabel.java diff --git a/examples/whitelabel/domains.java b/examples/whitelabel/domains.java new file mode 100644 index 00000000..26a0d0a2 --- /dev/null +++ b/examples/whitelabel/domains.java @@ -0,0 +1,281 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Create a domain whitelabel. +// POST /whitelabel/domains + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains"); + request.setBody("{\"automatic_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// List all domain whitelabels. +// GET /whitelabel/domains + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/domains"); + request.addQueryParam("username", "test_string"); + request.addQueryParam("domain", "test_string"); + request.addQueryParam("exclude_subusers", "true"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Get the default domain whitelabel. +// GET /whitelabel/domains/default + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/domains/default"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// List the domain whitelabel associated with the given user. +// GET /whitelabel/domains/subuser + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/domains/subuser"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Disassociate a domain whitelabel from a given user. +// DELETE /whitelabel/domains/subuser + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/domains/subuser"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Update a domain whitelabel. +// PATCH /whitelabel/domains/{domain_id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("whitelabel/domains/{domain_id}"); + request.setBody("{\"default\":false,\"custom_spf\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve a domain whitelabel. +// GET /whitelabel/domains/{domain_id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/domains/{domain_id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Delete a domain whitelabel. +// DELETE /whitelabel/domains/{domain_id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/domains/{domain_id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Associate a domain whitelabel with a given user. +// POST /whitelabel/domains/{domain_id}/subuser + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains/{domain_id}/subuser"); + request.setBody("{\"username\":\"jane@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Add an IP to a domain whitelabel. +// POST /whitelabel/domains/{id}/ips + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains/{id}/ips"); + request.setBody("{\"ip\":\"192.168.0.1\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Remove an IP from a domain whitelabel. +// DELETE /whitelabel/domains/{id}/ips/{ip} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/domains/{id}/ips/{ip}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Validate a domain whitelabel. +// POST /whitelabel/domains/{id}/validate + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains/{id}/validate"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/whitelabel/ips.java b/examples/whitelabel/ips.java new file mode 100644 index 00000000..54cb2af3 --- /dev/null +++ b/examples/whitelabel/ips.java @@ -0,0 +1,122 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Create an IP whitelabel +// POST /whitelabel/ips + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/ips"); + request.setBody("{\"ip\":\"192.168.1.1\",\"domain\":\"example.com\",\"subdomain\":\"email\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve all IP whitelabels +// GET /whitelabel/ips + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/ips"); + request.addQueryParam("ip", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve an IP whitelabel +// GET /whitelabel/ips/{id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/ips/{id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Delete an IP whitelabel +// DELETE /whitelabel/ips/{id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/ips/{id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Validate an IP whitelabel +// POST /whitelabel/ips/{id}/validate + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/ips/{id}/validate"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/whitelabel/links.java b/examples/whitelabel/links.java new file mode 100644 index 00000000..ca7218ff --- /dev/null +++ b/examples/whitelabel/links.java @@ -0,0 +1,238 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Create a Link Whitelabel +// POST /whitelabel/links + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/links"); + request.setBody("{\"default\":true,\"domain\":\"example.com\",\"subdomain\":\"mail\"}"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve all link whitelabels +// GET /whitelabel/links + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/links"); + request.addQueryParam("limit", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve a Default Link Whitelabel +// GET /whitelabel/links/default + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/links/default"); + request.addQueryParam("domain", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve Associated Link Whitelabel +// GET /whitelabel/links/subuser + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/links/subuser"); + request.addQueryParam("username", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Disassociate a Link Whitelabel +// DELETE /whitelabel/links/subuser + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/links/subuser"); + request.addQueryParam("username", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Update a Link Whitelabel +// PATCH /whitelabel/links/{id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("whitelabel/links/{id}"); + request.setBody("{\"default\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Retrieve a Link Whitelabel +// GET /whitelabel/links/{id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/links/{id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Delete a Link Whitelabel +// DELETE /whitelabel/links/{id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/links/{id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Validate a Link Whitelabel +// POST /whitelabel/links/{id}/validate + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/links/{id}/validate"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + +////////////////////////////////////////////////////////////////// +// Associate a Link Whitelabel +// POST /whitelabel/links/{link_id}/subuser + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/links/{link_id}/subuser"); + request.setBody("{\"username\":\"jane@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + diff --git a/examples/whitelabel/whitelabel.java b/examples/whitelabel/whitelabel.java deleted file mode 100644 index 4c668de5..00000000 --- a/examples/whitelabel/whitelabel.java +++ /dev/null @@ -1,625 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Create a domain whitelabel. -// POST /whitelabel/domains - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains"); - request.setBody("{\"automatic_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// List all domain whitelabels. -// GET /whitelabel/domains - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains"); - request.addQueryParam("username", "test_string"); - request.addQueryParam("domain", "test_string"); - request.addQueryParam("exclude_subusers", "true"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Get the default domain whitelabel. -// GET /whitelabel/domains/default - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains/default"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// List the domain whitelabel associated with the given user. -// GET /whitelabel/domains/subuser - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains/subuser"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Disassociate a domain whitelabel from a given user. -// DELETE /whitelabel/domains/subuser - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/domains/subuser"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update a domain whitelabel. -// PATCH /whitelabel/domains/{domain_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("whitelabel/domains/{domain_id}"); - request.setBody("{\"default\":false,\"custom_spf\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a domain whitelabel. -// GET /whitelabel/domains/{domain_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains/{domain_id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a domain whitelabel. -// DELETE /whitelabel/domains/{domain_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/domains/{domain_id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Associate a domain whitelabel with a given user. -// POST /whitelabel/domains/{domain_id}/subuser - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains/{domain_id}/subuser"); - request.setBody("{\"username\":\"jane@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Add an IP to a domain whitelabel. -// POST /whitelabel/domains/{id}/ips - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains/{id}/ips"); - request.setBody("{\"ip\":\"192.168.0.1\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Remove an IP from a domain whitelabel. -// DELETE /whitelabel/domains/{id}/ips/{ip} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/domains/{id}/ips/{ip}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Validate a domain whitelabel. -// POST /whitelabel/domains/{id}/validate - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains/{id}/validate"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Create an IP whitelabel -// POST /whitelabel/ips - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/ips"); - request.setBody("{\"ip\":\"192.168.1.1\",\"domain\":\"example.com\",\"subdomain\":\"email\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all IP whitelabels -// GET /whitelabel/ips - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/ips"); - request.addQueryParam("ip", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve an IP whitelabel -// GET /whitelabel/ips/{id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/ips/{id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete an IP whitelabel -// DELETE /whitelabel/ips/{id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/ips/{id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Validate an IP whitelabel -// POST /whitelabel/ips/{id}/validate - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/ips/{id}/validate"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Create a Link Whitelabel -// POST /whitelabel/links - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/links"); - request.setBody("{\"default\":true,\"domain\":\"example.com\",\"subdomain\":\"mail\"}"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all link whitelabels -// GET /whitelabel/links - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links"); - request.addQueryParam("limit", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a Default Link Whitelabel -// GET /whitelabel/links/default - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links/default"); - request.addQueryParam("domain", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve Associated Link Whitelabel -// GET /whitelabel/links/subuser - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links/subuser"); - request.addQueryParam("username", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Disassociate a Link Whitelabel -// DELETE /whitelabel/links/subuser - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/links/subuser"); - request.addQueryParam("username", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update a Link Whitelabel -// PATCH /whitelabel/links/{id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("whitelabel/links/{id}"); - request.setBody("{\"default\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a Link Whitelabel -// GET /whitelabel/links/{id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links/{id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a Link Whitelabel -// DELETE /whitelabel/links/{id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/links/{id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Validate a Link Whitelabel -// POST /whitelabel/links/{id}/validate - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/links/{id}/validate"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Associate a Link Whitelabel -// POST /whitelabel/links/{link_id}/subuser - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/links/{link_id}/subuser"); - request.setBody("{\"username\":\"jane@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From 61de103f6df7b786bf477e519e96c90767ccf70a Mon Sep 17 00:00:00 2001 From: Luan Cestari Date: Fri, 27 Oct 2017 22:44:41 -0200 Subject: [PATCH 019/288] [issue#336] Possible fix the duplciated code --- .../java/com/sendgrid/helpers/mail/Mail.java | 71 ++++++++----------- 1 file changed, 29 insertions(+), 42 deletions(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index edf02a15..034e768c 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -200,12 +200,7 @@ public List getPersonalization() { * @param personalization a personalization. */ public void addPersonalization(Personalization personalization) { - if (this.personalization == null) { - this.personalization = new ArrayList(); - this.personalization.add(personalization); - } else { - this.personalization.add(personalization); - } + this.personalization = addToList(personalization, this.personalization); } /** @@ -226,12 +221,7 @@ public void addContent(Content content) { Content newContent = new Content(); newContent.setType(content.getType()); newContent.setValue(content.getValue()); - if (this.content == null) { - this.content = new ArrayList(); - this.content.add(newContent); - } else { - this.content.add(newContent); - } + this.content = addToList(newContent, this.content); } /** @@ -255,12 +245,7 @@ public void addAttachments(Attachments attachments) { newAttachment.setFilename(attachments.getFilename()); newAttachment.setDisposition(attachments.getDisposition()); newAttachment.setContentId(attachments.getContentId()); - if (this.attachments == null) { - this.attachments = new ArrayList(); - this.attachments.add(newAttachment); - } else { - this.attachments.add(newAttachment); - } + this.attachments = addToList(newAttachment, this.attachments); } /** @@ -296,12 +281,7 @@ public Map getSections() { * @param value the section's value. */ public void addSection(String key, String value) { - if (sections == null) { - sections = new HashMap(); - sections.put(key, value); - } else { - sections.put(key, value); - } + this.sections = addToMap(key, value, this.sections); } /** @@ -320,12 +300,7 @@ public Map getHeaders() { * @param value the header's value. */ public void addHeader(String key, String value) { - if (headers == null) { - headers = new HashMap(); - headers.put(key, value); - } else { - headers.put(key, value); - } + this.headers = addToMap(key, value, this.headers); } /** @@ -343,12 +318,7 @@ public List getCategories() { * @param category the category. */ public void addCategory(String category) { - if (categories == null) { - categories = new ArrayList(); - categories.add(category); - } else { - categories.add(category); - } + this.categories = addToList(category, this.categories); } /** @@ -367,12 +337,7 @@ public Map getCustomArgs() { * @param value the argument's value. */ public void addCustomArg(String key, String value) { - if (customArgs == null) { - customArgs = new HashMap(); - customArgs.put(key, value); - } else { - customArgs.put(key, value); - } + this.customArgs = addToMap(key, value, this.customArgs); } /** @@ -504,4 +469,26 @@ public String buildPretty() throws IOException { throw ex; } } + + private List addToList(T element, List defaultList) { + if (defaultList != null) { + defaultList.add(element); + return defaultList; + } else { + List list = new ArrayList(); + list.add(element); + return list; + } + } + + private Map addToMap(K key, V value, Map defaultMap) { + if (defaultMap != null) { + defaultMap.put(key, value); + return defaultMap; + } else { + Map map = new HashMap(); + map.put(key, value); + return map; + } + } } From 7cb6fb1d03e16fa24337159f75ec4e52d73df1f3 Mon Sep 17 00:00:00 2001 From: Luan Cestari Date: Fri, 27 Oct 2017 22:50:37 -0200 Subject: [PATCH 020/288] [issue#336] Fix a generic type mismatch --- src/main/java/com/sendgrid/helpers/mail/Mail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index 034e768c..a1af2c2b 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -486,7 +486,7 @@ private Map addToMap(K key, V value, Map defaultMap) { defaultMap.put(key, value); return defaultMap; } else { - Map map = new HashMap(); + Map map = new HashMap(); map.put(key, value); return map; } From aaa28b33bf49c22a3ac3d121b4a530f93d90f855 Mon Sep 17 00:00:00 2001 From: Luan Cestari Date: Fri, 27 Oct 2017 22:53:43 -0200 Subject: [PATCH 021/288] [issue#336] Fix a generic type mismatch --- src/main/java/com/sendgrid/helpers/mail/Mail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index a1af2c2b..b34d7294 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -481,7 +481,7 @@ private List addToList(T element, List defaultList) { } } - private Map addToMap(K key, V value, Map defaultMap) { + private Map addToMap(K key, V value, Map defaultMap) { if (defaultMap != null) { defaultMap.put(key, value); return defaultMap; From dc40bc981ae458184cf27d30b1b3dab8f1295d06 Mon Sep 17 00:00:00 2001 From: sccalabr Date: Fri, 27 Oct 2017 20:15:10 -0500 Subject: [PATCH 022/288] Addressing comments. --- src/main/java/com/sendgrid/SendGridAPI.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index 4f277cd7..32998459 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -75,7 +75,7 @@ public interface SendGridAPI { * Class makeCall makes the call to the SendGrid API, override this method for * testing. * - * @param request + * @param request the request * @return returns a response. * @throws IOException in case of network or marshal error. */ @@ -84,8 +84,8 @@ public interface SendGridAPI { /** * Class api sets up the request to the SendGrid API, this is main interface. * - * @param request - * @return + * @param request the request + * @return returns a response. * @throws IOException in case of network or marshal error. */ public Response api(Request request) throws IOException; From ccad505444c9da3df3c8dd8848c8d020242b684d Mon Sep 17 00:00:00 2001 From: "Julian J. Maurer" Date: Sat, 28 Oct 2017 16:37:46 +0200 Subject: [PATCH 023/288] Fix for issue #335 Created seperate files for each example --- examples/ips/README.md | 5 + examples/ips/RetrieveAllIPs.java | 34 +++ examples/ips/addiptowarmup.java | 33 +++ examples/ips/addtopool.java | 32 +++ examples/ips/createpool.java | 32 +++ examples/ips/deletepool.java | 31 +++ examples/ips/ips.java | 326 ------------------------- examples/ips/removefromwarmup.java | 32 +++ examples/ips/removeipfrompool.java | 31 +++ examples/ips/retrieveallpools.java | 30 +++ examples/ips/retrieveassignedips.java | 31 +++ examples/ips/retrieveipsinpool.java | 31 +++ examples/ips/retrieveipsinwarmup.java | 32 +++ examples/ips/retrievepoolsforip.java | 33 +++ examples/ips/retrievewarmupstatus.java | 32 +++ examples/ips/updatepoolname.java | 32 +++ 16 files changed, 451 insertions(+), 326 deletions(-) create mode 100644 examples/ips/README.md create mode 100644 examples/ips/RetrieveAllIPs.java create mode 100644 examples/ips/addiptowarmup.java create mode 100644 examples/ips/addtopool.java create mode 100644 examples/ips/createpool.java create mode 100644 examples/ips/deletepool.java delete mode 100644 examples/ips/ips.java create mode 100644 examples/ips/removefromwarmup.java create mode 100644 examples/ips/removeipfrompool.java create mode 100644 examples/ips/retrieveallpools.java create mode 100644 examples/ips/retrieveassignedips.java create mode 100644 examples/ips/retrieveipsinpool.java create mode 100644 examples/ips/retrieveipsinwarmup.java create mode 100644 examples/ips/retrievepoolsforip.java create mode 100644 examples/ips/retrievewarmupstatus.java create mode 100644 examples/ips/updatepoolname.java diff --git a/examples/ips/README.md b/examples/ips/README.md new file mode 100644 index 00000000..e4358848 --- /dev/null +++ b/examples/ips/README.md @@ -0,0 +1,5 @@ +![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png) + +This folder contains various examples on using the IPs endpoint of SendGrid with Java: + +* [Retrieve all IP addresses (GET /ips)](retrieveallips.java) \ No newline at end of file diff --git a/examples/ips/RetrieveAllIPs.java b/examples/ips/RetrieveAllIPs.java new file mode 100644 index 00000000..14845939 --- /dev/null +++ b/examples/ips/RetrieveAllIPs.java @@ -0,0 +1,34 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + + +////////////////////////////////////////////////////////////////// +// Retrieve all IP addresses +// GET /ips + + +public class RetrieveAllIPs { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips"); + request.addQueryParam("subuser", "test_string"); + request.addQueryParam("ip", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("exclude_whitelabels", "true"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/addiptowarmup.java b/examples/ips/addiptowarmup.java new file mode 100644 index 00000000..89ebaad1 --- /dev/null +++ b/examples/ips/addiptowarmup.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + + +////////////////////////////////////////////////////////////////// +// Add an IP to warmup +// POST /ips/warmup + + +public class AddIPToWarmup { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("ips/warmup"); + request.setBody("{\"ip\":\"0.0.0.0\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/addtopool.java b/examples/ips/addtopool.java new file mode 100644 index 00000000..01e6b16b --- /dev/null +++ b/examples/ips/addtopool.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Add an IP address to a pool +// POST /ips/pools/{pool_name}/ips + + +public class AddIPToPool { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("ips/pools/{pool_name}/ips"); + request.setBody("{\"ip\":\"0.0.0.0\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/createpool.java b/examples/ips/createpool.java new file mode 100644 index 00000000..c91d82f0 --- /dev/null +++ b/examples/ips/createpool.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Create an IP pool. +// POST /ips/pools + + +public class CreateIPPool { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("ips/pools"); + request.setBody("{\"name\":\"marketing\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/deletepool.java b/examples/ips/deletepool.java new file mode 100644 index 00000000..51c50249 --- /dev/null +++ b/examples/ips/deletepool.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Delete an IP pool. +// DELETE /ips/pools/{pool_name} + + +public class DeletePool { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("ips/pools/{pool_name}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/ips.java b/examples/ips/ips.java deleted file mode 100644 index 55c97644..00000000 --- a/examples/ips/ips.java +++ /dev/null @@ -1,326 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Retrieve all IP addresses -// GET /ips - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips"); - request.addQueryParam("subuser", "test_string"); - request.addQueryParam("ip", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("exclude_whitelabels", "true"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all assigned IPs -// GET /ips/assigned - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips/assigned"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Create an IP pool. -// POST /ips/pools - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("ips/pools"); - request.setBody("{\"name\":\"marketing\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all IP pools. -// GET /ips/pools - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips/pools"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update an IP pools name. -// PUT /ips/pools/{pool_name} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("ips/pools/{pool_name}"); - request.setBody("{\"name\":\"new_pool_name\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all IPs in a specified pool. -// GET /ips/pools/{pool_name} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips/pools/{pool_name}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete an IP pool. -// DELETE /ips/pools/{pool_name} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("ips/pools/{pool_name}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Add an IP address to a pool -// POST /ips/pools/{pool_name}/ips - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("ips/pools/{pool_name}/ips"); - request.setBody("{\"ip\":\"0.0.0.0\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Remove an IP address from a pool. -// DELETE /ips/pools/{pool_name}/ips/{ip} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("ips/pools/{pool_name}/ips/{ip}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Add an IP to warmup -// POST /ips/warmup - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("ips/warmup"); - request.setBody("{\"ip\":\"0.0.0.0\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all IPs currently in warmup -// GET /ips/warmup - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips/warmup"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve warmup status for a specific IP address -// GET /ips/warmup/{ip_address} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips/warmup/{ip_address}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Remove an IP from warmup -// DELETE /ips/warmup/{ip_address} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("ips/warmup/{ip_address}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all IP pools an IP address belongs to -// GET /ips/{ip_address} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("ips/{ip_address}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - diff --git a/examples/ips/removefromwarmup.java b/examples/ips/removefromwarmup.java new file mode 100644 index 00000000..b99229de --- /dev/null +++ b/examples/ips/removefromwarmup.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + + +////////////////////////////////////////////////////////////////// +// Remove an IP from warmup +// DELETE /ips/warmup/{ip_address} + + +public class RemoveFromWarmup { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("ips/warmup/{ip_address}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/removeipfrompool.java b/examples/ips/removeipfrompool.java new file mode 100644 index 00000000..ceb5f2be --- /dev/null +++ b/examples/ips/removeipfrompool.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + + + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Remove an IP address from a pool. +// DELETE /ips/pools/{pool_name}/ips/{ip} + + +public class RemoveIPFromPool { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("ips/pools/{pool_name}/ips/{ip}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/retrieveallpools.java b/examples/ips/retrieveallpools.java new file mode 100644 index 00000000..a4362ce0 --- /dev/null +++ b/examples/ips/retrieveallpools.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve all IP pools. +// GET /ips/pools + + +public class RetieveAllIPPools { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips/pools"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } \ No newline at end of file diff --git a/examples/ips/retrieveassignedips.java b/examples/ips/retrieveassignedips.java new file mode 100644 index 00000000..968834cc --- /dev/null +++ b/examples/ips/retrieveassignedips.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve all assigned IPs +// GET /ips/assigned + + +public class RetrieveAllAssignedIPs { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips/assigned"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/retrieveipsinpool.java b/examples/ips/retrieveipsinpool.java new file mode 100644 index 00000000..72330c3f --- /dev/null +++ b/examples/ips/retrieveipsinpool.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve all IPs in a specified pool. +// GET /ips/pools/{pool_name} + + +public class RetrieveIPsInPool { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips/pools/{pool_name}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/retrieveipsinwarmup.java b/examples/ips/retrieveipsinwarmup.java new file mode 100644 index 00000000..3767656b --- /dev/null +++ b/examples/ips/retrieveipsinwarmup.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + + +////////////////////////////////////////////////////////////////// +// Retrieve all IPs currently in warmup +// GET /ips/warmup + + +public class RetrieveIPsInWarmup { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips/warmup"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/retrievepoolsforip.java b/examples/ips/retrievepoolsforip.java new file mode 100644 index 00000000..8f19b7a7 --- /dev/null +++ b/examples/ips/retrievepoolsforip.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + + +////////////////////////////////////////////////////////////////// +// Retrieve all IP pools an IP address belongs to +// GET /ips/{ip_address} + + +public class RetrieveAllPoolsForIP { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips/{ip_address}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + diff --git a/examples/ips/retrievewarmupstatus.java b/examples/ips/retrievewarmupstatus.java new file mode 100644 index 00000000..5d315b8f --- /dev/null +++ b/examples/ips/retrievewarmupstatus.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + + +////////////////////////////////////////////////////////////////// +// Retrieve warmup status for a specific IP address +// GET /ips/warmup/{ip_address} + + +public class RetrieveIPsWarmupStatus { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("ips/warmup/{ip_address}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/ips/updatepoolname.java b/examples/ips/updatepoolname.java new file mode 100644 index 00000000..4e9c2a26 --- /dev/null +++ b/examples/ips/updatepoolname.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Update an IP pools name. +// PUT /ips/pools/{pool_name} + + +public class UpdateIPPoolName { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PUT); + request.setEndpoint("ips/pools/{pool_name}"); + request.setBody("{\"name\":\"new_pool_name\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file From b02c534f777854baf9ba57ca3f7fa8c2412dea13 Mon Sep 17 00:00:00 2001 From: "Julian J. Maurer" Date: Sat, 28 Oct 2017 16:54:13 +0200 Subject: [PATCH 024/288] Added README.md --- examples/ips/README.md | 15 ++++++++++++++- .../ips/{addiptowarmup.java => addtowarmup.java} | 0 ...{removeipfrompool.java => removefrompool.java} | 0 .../{RetrieveAllIPs.java => retrieveallips.java} | 0 4 files changed, 14 insertions(+), 1 deletion(-) rename examples/ips/{addiptowarmup.java => addtowarmup.java} (100%) rename examples/ips/{removeipfrompool.java => removefrompool.java} (100%) rename examples/ips/{RetrieveAllIPs.java => retrieveallips.java} (100%) diff --git a/examples/ips/README.md b/examples/ips/README.md index e4358848..f8a9780b 100644 --- a/examples/ips/README.md +++ b/examples/ips/README.md @@ -2,4 +2,17 @@ This folder contains various examples on using the IPs endpoint of SendGrid with Java: -* [Retrieve all IP addresses (GET /ips)](retrieveallips.java) \ No newline at end of file +* [Retrieve all IP addresses (GET /ips)](retrieveallips.java) +* [Retrieve all assigned IPs (GET /ips/assigned)](retrieveassignedips.java) +* [Create an IP pool (POST /ips/pools)](createpool.java) +* [Retrieve all IP pools (GET /ips/pools)](retrieveallpools.java) +* [Update an IP pools name (PUT /ips/pools/{pool_name})](updatepoolname.java) +* [Retrieve all IPs in a specified pool (GET /ips/pools/{pool_name})](retrieveipsinpool.java) +* [Delete an IP pool. (DELETE /ips/pools/{pool_name})](deletepool.java) +* [Add an IP address to a pool (POST /ips/pools/{pool_name}/ips)](addtopool.java) +* [Remove an IP address from a pool (DELETE /ips/pools/{pool_name}/ips/{ip}](removefrompool.java) +* [Add an IP to warmup (POST /ips/warmup)](addtowarmup.java) +* [Retrieve all IPs currently in warmup (GET /ips/warmup)](retrieveipsinwarmup.java) +* [Retrieve warmup status for a specific IP address (GET /ips/warmup/{ip_address})](retrievewarmupstatus.java) +* [Remove an IP from warmup (DELETE /ips/warmup/{ip_address})](removefromwarmup.java) +* [Retrieve all IP pools an IP address belongs to (GET /ips/{ip_address})](retrievepoolsforip.java) \ No newline at end of file diff --git a/examples/ips/addiptowarmup.java b/examples/ips/addtowarmup.java similarity index 100% rename from examples/ips/addiptowarmup.java rename to examples/ips/addtowarmup.java diff --git a/examples/ips/removeipfrompool.java b/examples/ips/removefrompool.java similarity index 100% rename from examples/ips/removeipfrompool.java rename to examples/ips/removefrompool.java diff --git a/examples/ips/RetrieveAllIPs.java b/examples/ips/retrieveallips.java similarity index 100% rename from examples/ips/RetrieveAllIPs.java rename to examples/ips/retrieveallips.java From 6a32211f480cd91ccd314c93fc0f32c91409a568 Mon Sep 17 00:00:00 2001 From: Julian Jacques Maurer Date: Sat, 28 Oct 2017 19:48:18 +0200 Subject: [PATCH 025/288] Changed file names Made the file names more readable --- .../ips/{addtopool.java => AddToPool.java} | 0 .../{addtowarmup.java => AddToWarmup.java} | 0 .../ips/{createpool.java => CreatePool.java} | 0 .../ips/{deletepool.java => DeletePool.java} | 0 examples/ips/README.md | 28 +++++++++---------- ...emovefrompool.java => RemoveFromPool.java} | 0 ...efromwarmup.java => RemoveFromWarmup.java} | 0 ...etrieveallips.java => RetrieveAllIPs.java} | 0 ...eveallpools.java => RetrieveAllPools.java} | 0 ...ignedips.java => RetrieveAssignedIPs.java} | 0 ...eipsinpool.java => RetrieveIPsInPool.java} | 0 ...inwarmup.java => RetrieveIPsInWarmup.java} | 0 ...oolsforip.java => RetrievePoolsForIP.java} | 0 ...pstatus.java => RetrieveWarmupStatus.java} | 0 ...pdatepoolname.java => UpdatePoolName.java} | 0 15 files changed, 14 insertions(+), 14 deletions(-) rename examples/ips/{addtopool.java => AddToPool.java} (100%) rename examples/ips/{addtowarmup.java => AddToWarmup.java} (100%) rename examples/ips/{createpool.java => CreatePool.java} (100%) rename examples/ips/{deletepool.java => DeletePool.java} (100%) rename examples/ips/{removefrompool.java => RemoveFromPool.java} (100%) rename examples/ips/{removefromwarmup.java => RemoveFromWarmup.java} (100%) rename examples/ips/{retrieveallips.java => RetrieveAllIPs.java} (100%) rename examples/ips/{retrieveallpools.java => RetrieveAllPools.java} (100%) rename examples/ips/{retrieveassignedips.java => RetrieveAssignedIPs.java} (100%) rename examples/ips/{retrieveipsinpool.java => RetrieveIPsInPool.java} (100%) rename examples/ips/{retrieveipsinwarmup.java => RetrieveIPsInWarmup.java} (100%) rename examples/ips/{retrievepoolsforip.java => RetrievePoolsForIP.java} (100%) rename examples/ips/{retrievewarmupstatus.java => RetrieveWarmupStatus.java} (100%) rename examples/ips/{updatepoolname.java => UpdatePoolName.java} (100%) diff --git a/examples/ips/addtopool.java b/examples/ips/AddToPool.java similarity index 100% rename from examples/ips/addtopool.java rename to examples/ips/AddToPool.java diff --git a/examples/ips/addtowarmup.java b/examples/ips/AddToWarmup.java similarity index 100% rename from examples/ips/addtowarmup.java rename to examples/ips/AddToWarmup.java diff --git a/examples/ips/createpool.java b/examples/ips/CreatePool.java similarity index 100% rename from examples/ips/createpool.java rename to examples/ips/CreatePool.java diff --git a/examples/ips/deletepool.java b/examples/ips/DeletePool.java similarity index 100% rename from examples/ips/deletepool.java rename to examples/ips/DeletePool.java diff --git a/examples/ips/README.md b/examples/ips/README.md index f8a9780b..6b558ce2 100644 --- a/examples/ips/README.md +++ b/examples/ips/README.md @@ -2,17 +2,17 @@ This folder contains various examples on using the IPs endpoint of SendGrid with Java: -* [Retrieve all IP addresses (GET /ips)](retrieveallips.java) -* [Retrieve all assigned IPs (GET /ips/assigned)](retrieveassignedips.java) -* [Create an IP pool (POST /ips/pools)](createpool.java) -* [Retrieve all IP pools (GET /ips/pools)](retrieveallpools.java) -* [Update an IP pools name (PUT /ips/pools/{pool_name})](updatepoolname.java) -* [Retrieve all IPs in a specified pool (GET /ips/pools/{pool_name})](retrieveipsinpool.java) -* [Delete an IP pool. (DELETE /ips/pools/{pool_name})](deletepool.java) -* [Add an IP address to a pool (POST /ips/pools/{pool_name}/ips)](addtopool.java) -* [Remove an IP address from a pool (DELETE /ips/pools/{pool_name}/ips/{ip}](removefrompool.java) -* [Add an IP to warmup (POST /ips/warmup)](addtowarmup.java) -* [Retrieve all IPs currently in warmup (GET /ips/warmup)](retrieveipsinwarmup.java) -* [Retrieve warmup status for a specific IP address (GET /ips/warmup/{ip_address})](retrievewarmupstatus.java) -* [Remove an IP from warmup (DELETE /ips/warmup/{ip_address})](removefromwarmup.java) -* [Retrieve all IP pools an IP address belongs to (GET /ips/{ip_address})](retrievepoolsforip.java) \ No newline at end of file +* [Retrieve all IP addresses (GET /ips)](RetrieveAllIPs.java) +* [Retrieve all assigned IPs (GET /ips/assigned)](RetrieveAssignedIPs.java) +* [Create an IP pool (POST /ips/pools)](CreatePool.java) +* [Retrieve all IP pools (GET /ips/pools)](RetrieveAllPools.java) +* [Update an IP pools name (PUT /ips/pools/{pool_name})](UpdatePoolName.java) +* [Retrieve all IPs in a specified pool (GET /ips/pools/{pool_name})](RetrieveIPsInPool.java) +* [Delete an IP pool. (DELETE /ips/pools/{pool_name})](DeletePool.java) +* [Add an IP address to a pool (POST /ips/pools/{pool_name}/ips)](AddToPool.java) +* [Remove an IP address from a pool (DELETE /ips/pools/{pool_name}/ips/{ip}](RemoveFromPool.java) +* [Add an IP to warmup (POST /ips/warmup)](AddToWarmup.java) +* [Retrieve all IPs currently in warmup (GET /ips/warmup)](RetrieveIPsInWarmup.java) +* [Retrieve warmup status for a specific IP address (GET /ips/warmup/{ip_address})](RetrieveWarmupStatus.java) +* [Remove an IP from warmup (DELETE /ips/warmup/{ip_address})](RemoveFromwarmup.java) +* [Retrieve all IP pools an IP address belongs to (GET /ips/{ip_address})](RetrievePoolsForIP.java) \ No newline at end of file diff --git a/examples/ips/removefrompool.java b/examples/ips/RemoveFromPool.java similarity index 100% rename from examples/ips/removefrompool.java rename to examples/ips/RemoveFromPool.java diff --git a/examples/ips/removefromwarmup.java b/examples/ips/RemoveFromWarmup.java similarity index 100% rename from examples/ips/removefromwarmup.java rename to examples/ips/RemoveFromWarmup.java diff --git a/examples/ips/retrieveallips.java b/examples/ips/RetrieveAllIPs.java similarity index 100% rename from examples/ips/retrieveallips.java rename to examples/ips/RetrieveAllIPs.java diff --git a/examples/ips/retrieveallpools.java b/examples/ips/RetrieveAllPools.java similarity index 100% rename from examples/ips/retrieveallpools.java rename to examples/ips/RetrieveAllPools.java diff --git a/examples/ips/retrieveassignedips.java b/examples/ips/RetrieveAssignedIPs.java similarity index 100% rename from examples/ips/retrieveassignedips.java rename to examples/ips/RetrieveAssignedIPs.java diff --git a/examples/ips/retrieveipsinpool.java b/examples/ips/RetrieveIPsInPool.java similarity index 100% rename from examples/ips/retrieveipsinpool.java rename to examples/ips/RetrieveIPsInPool.java diff --git a/examples/ips/retrieveipsinwarmup.java b/examples/ips/RetrieveIPsInWarmup.java similarity index 100% rename from examples/ips/retrieveipsinwarmup.java rename to examples/ips/RetrieveIPsInWarmup.java diff --git a/examples/ips/retrievepoolsforip.java b/examples/ips/RetrievePoolsForIP.java similarity index 100% rename from examples/ips/retrievepoolsforip.java rename to examples/ips/RetrievePoolsForIP.java diff --git a/examples/ips/retrievewarmupstatus.java b/examples/ips/RetrieveWarmupStatus.java similarity index 100% rename from examples/ips/retrievewarmupstatus.java rename to examples/ips/RetrieveWarmupStatus.java diff --git a/examples/ips/updatepoolname.java b/examples/ips/UpdatePoolName.java similarity index 100% rename from examples/ips/updatepoolname.java rename to examples/ips/UpdatePoolName.java From f638e77d117bcd8f09d907835c4834fc6ccc084d Mon Sep 17 00:00:00 2001 From: Julian Jacques Maurer Date: Sat, 28 Oct 2017 19:50:39 +0200 Subject: [PATCH 026/288] Fixed Typo in README.md --- examples/ips/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ips/README.md b/examples/ips/README.md index 6b558ce2..7ded4310 100644 --- a/examples/ips/README.md +++ b/examples/ips/README.md @@ -14,5 +14,5 @@ This folder contains various examples on using the IPs endpoint of SendGrid with * [Add an IP to warmup (POST /ips/warmup)](AddToWarmup.java) * [Retrieve all IPs currently in warmup (GET /ips/warmup)](RetrieveIPsInWarmup.java) * [Retrieve warmup status for a specific IP address (GET /ips/warmup/{ip_address})](RetrieveWarmupStatus.java) -* [Remove an IP from warmup (DELETE /ips/warmup/{ip_address})](RemoveFromwarmup.java) +* [Remove an IP from warmup (DELETE /ips/warmup/{ip_address})](RemoveFromWarmup.java) * [Retrieve all IP pools an IP address belongs to (GET /ips/{ip_address})](RetrievePoolsForIP.java) \ No newline at end of file From c81edde5517910007403d7154f3ee0ab859f2ae6 Mon Sep 17 00:00:00 2001 From: mptap Date: Sat, 28 Oct 2017 13:27:46 -0700 Subject: [PATCH 027/288] Added unittest to check for specific repo files --- .../com/sendgrid/TestRequiredFilesExist.java | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/test/java/com/sendgrid/TestRequiredFilesExist.java diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java new file mode 100644 index 00000000..eb044941 --- /dev/null +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -0,0 +1,92 @@ +import org.junit.Test; + +import java.io.File; + +import static org.junit.Assert.assertTrue; + +public class TestRequiredFilesExist { + + // ./Docker or docker/Docker + @Test public void checkDockerExists() { + boolean dockerExists = new File("./Docker").exists() || + new File("./docker/Docker").exists(); + assertTrue(dockerExists); + } + + // ./docker-compose.yml or ./docker/docker-compose.yml + @Test public void checkDockerComposeExists() { + boolean dockerComposeExists = new File("./docker-compose.yml").exists() || + new File("./docker/docker-compose.yml").exists(); + assertTrue(dockerComposeExists); + } + + // ./.env_sample + @Test public void checkEnvSampleExists() { + assertTrue(new File("./.env_sample").exists()); + } + + // ./.gitignore + @Test public void checkGitIgnoreExists() { + assertTrue(new File("./.gitignore").exists()); + } + + // ./.travis.yml + @Test public void checkTravisExists() { + assertTrue(new File("./.travis.yml").exists()); + } + + // ./.codeclimate.yml + @Test public void checkCodeClimateExists() { + assertTrue(new File("./.codeclimate.yml").exists()); + } + + // ./CHANGELOG.md + @Test public void checkChangelogExists() { + assertTrue(new File("./CHANGELOG.md").exists()); + } + + // ./CODE_OF_CONDUCT.md + @Test public void checkCodeOfConductExists() { + assertTrue(new File("./CODE_OF_CONDUCT.md").exists()); + } + + // ./CONTRIBUTING.md + @Test public void checkContributingGuideExists() { + assertTrue(new File("./CONTRIBUTING.md").exists()); + } + + // ./.github/ISSUE_TEMPLATE + @Test public void checkIssuesTemplateExists() { + assertTrue(new File("./.github/ISSUE_TEMPLATE").exists()); + } + + // ./LICENSE.md + @Test public void checkLicenseExists() { + assertTrue(new File("./LICENSE.md").exists()); + } + + // ./.github/PULL_REQUEST_TEMPLATE + @Test public void checkPullRequestExists() { + assertTrue(new File("./.github/PULL_REQUEST_TEMPLATE").exists()); + } + + // ./README.md + @Test public void checkReadMeExists() { + assertTrue(new File("./README.md").exists()); + } + + // ./TROUBLESHOOTING.md + @Test public void checkTroubleShootingGuideExists() { + assertTrue(new File("./TROUBLESHOOTING.md").exists()); + } + + // ./USAGE.md + @Test public void checkUsageGuideExists() { + assertTrue(new File("./USAGE.md").exists()); + } + + // ./USE_CASES.md + @Test public void checkUseCases() { + assertTrue(new File("./USE_CASES.md").exists()); + } +} From 06b381efb4a7ea5eef79775e3f3a4650728d109a Mon Sep 17 00:00:00 2001 From: Bhargodev Arya Date: Sun, 29 Oct 2017 00:30:42 +0530 Subject: [PATCH 028/288] Fix similar-code issue in examples/accesssettings/accesssettings.java --- .../accesssettings/CreateAccessSettings.java | 30 ++++ .../accesssettings/DeleteAccessSettings.java | 30 ++++ .../DeleteIPFromAccessSettings.java | 29 ++++ examples/accesssettings/Example.java | 31 ++++ .../accesssettings/GetAccessSettings.java | 30 ++++ .../GetAccessSettingsActivity.java | 33 ++++ .../GetIPFromAccessSettings.java | 30 ++++ examples/accesssettings/README.md | 10 ++ examples/accesssettings/accesssettings.java | 142 ------------------ 9 files changed, 223 insertions(+), 142 deletions(-) create mode 100644 examples/accesssettings/CreateAccessSettings.java create mode 100644 examples/accesssettings/DeleteAccessSettings.java create mode 100644 examples/accesssettings/DeleteIPFromAccessSettings.java create mode 100644 examples/accesssettings/Example.java create mode 100644 examples/accesssettings/GetAccessSettings.java create mode 100644 examples/accesssettings/GetAccessSettingsActivity.java create mode 100644 examples/accesssettings/GetIPFromAccessSettings.java create mode 100644 examples/accesssettings/README.md delete mode 100644 examples/accesssettings/accesssettings.java diff --git a/examples/accesssettings/CreateAccessSettings.java b/examples/accesssettings/CreateAccessSettings.java new file mode 100644 index 00000000..6c98df1b --- /dev/null +++ b/examples/accesssettings/CreateAccessSettings.java @@ -0,0 +1,30 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +/*Add one or more IPs to the whitelist +POST /access_settings/whitelist +*/ + +public class CreateAccessSettings extends Example { + + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ips\":[{\"ip\":\"192.168.1.1\"},{\"ip\":\"192.*.*.*\"},{\"ip\":\"192.168.1.3/32\"}]}"; + Request request = createRequest(Method.POST, endPoint, body); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; + } + } + + public static void main(String[] args) throws IOException { + CreateAccessSettings createAccessSettings = new CreateAccessSettings(); + createAccessSettings.run(); + } +} diff --git a/examples/accesssettings/DeleteAccessSettings.java b/examples/accesssettings/DeleteAccessSettings.java new file mode 100644 index 00000000..a1abc860 --- /dev/null +++ b/examples/accesssettings/DeleteAccessSettings.java @@ -0,0 +1,30 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +/* Remove one or more IPs from the whitelist + DELETE /access_settings/whitelist + */ + +public class DeleteAccessSettings extends Example { + + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ids\":[1,2,3]}"; + Request request = createRequest(Method.DELETE, endPoint, body); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; + } + } + + public static void main(String[] args) throws IOException { + DeleteAccessSettings deleteAccessSettings = new DeleteAccessSettings(); + deleteAccessSettings.run(); + } +} \ No newline at end of file diff --git a/examples/accesssettings/DeleteIPFromAccessSettings.java b/examples/accesssettings/DeleteIPFromAccessSettings.java new file mode 100644 index 00000000..d084c99c --- /dev/null +++ b/examples/accesssettings/DeleteIPFromAccessSettings.java @@ -0,0 +1,29 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +/*Remove a specific IP from the whitelist +DELETE /access_settings/whitelist/{rule_id} +*/ + +public class DeleteIPFromAccessSettings extends Example { + + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ids\":[1,2,3]}"; + Request request = createRequest(Method.DELETE, endPoint, body); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; + } + } + + public static void main(String[] args) throws IOException { + DeleteIPFromAccessSettings deleteIPFromAccessSettings = new DeleteIPFromAccessSettings(); + deleteIPFromAccessSettings.run(); +} \ No newline at end of file diff --git a/examples/accesssettings/Example.java b/examples/accesssettings/Example.java new file mode 100644 index 00000000..6fd33a36 --- /dev/null +++ b/examples/accesssettings/Example.java @@ -0,0 +1,31 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +public class Example { + + protected Request createRequest(Method method, String endPoint, String requestBody) { + Request request = new Request(); + request.setMethod(method); + request.setEndpoint(endPoint); + if (requestBody != null) { + request.setBody(requestBody); + } + return request; + } + + protected Response execute(Request request) throws IOException { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Response response = sg.api(request); + return response; + } + + protected void printResonseInfo(Response response) { + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } +} \ No newline at end of file diff --git a/examples/accesssettings/GetAccessSettings.java b/examples/accesssettings/GetAccessSettings.java new file mode 100644 index 00000000..24beee95 --- /dev/null +++ b/examples/accesssettings/GetAccessSettings.java @@ -0,0 +1,30 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +/*Retrieve a list of currently whitelisted IPs +GET /access_settings/whitelist +*/ + +public class GetAccessSettings extends Example{ + + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ids\":[1,2,3]}"; + Request request = createRequest(Method.DELETE, endPoint, body); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; + } + } + + public static void main(String[] args) throws IOException { + GetAccessSettings getAccessSettings = new GetAccessSettings(); + getAccessSettings.run(); + } +} \ No newline at end of file diff --git a/examples/accesssettings/GetAccessSettingsActivity.java b/examples/accesssettings/GetAccessSettingsActivity.java new file mode 100644 index 00000000..5ca02258 --- /dev/null +++ b/examples/accesssettings/GetAccessSettingsActivity.java @@ -0,0 +1,33 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +/*Retrieve all recent access attempts +GET /access_settings/activity +*/ + +public class GetAccessSettingsActivity extends Example { + + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ids\":[1,2,3]}"; + Request request = createRequest(Method.DELETE, endPoint, body); + request.addQueryParam("limit", "1"); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; + } + } + + public static void main(String[] args) throws IOException { + GetAccessSettingsActivity getAccessSettingsActivity = new GetAccessSettingsActivity(); + getAccessSettingsActivity.run(); + } +} + + diff --git a/examples/accesssettings/GetIPFromAccessSettings.java b/examples/accesssettings/GetIPFromAccessSettings.java new file mode 100644 index 00000000..456b141c --- /dev/null +++ b/examples/accesssettings/GetIPFromAccessSettings.java @@ -0,0 +1,30 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +/* Retrieve a specific whitelisted IP +GET /access_settings/whitelist/{rule_id} +*/ + +public class GetIPFromAccessSettings extends Example { + + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ids\":[1,2,3]}"; + Request request = createRequest(Method.DELETE, endPoint, body); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; + } + } + + public static void main(String[] args) throws IOException { + GetIPFromAccessSettings getIPFromAccessSettings = new GetIPFromAccessSettings(); + getIPFromAccessSettings.run(); + } +} \ No newline at end of file diff --git a/examples/accesssettings/README.md b/examples/accesssettings/README.md new file mode 100644 index 00000000..05d64211 --- /dev/null +++ b/examples/accesssettings/README.md @@ -0,0 +1,10 @@ +![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png) + + + +This folder contains various examples on using the ACCESS_SETTINGS endpoint of SendGrid with Java: + + + +* [Retrieve a list of currently whitelisted IPs (GET /access_settings/whitelist)](GetAccessSettings.java) + +* [Retrieve a specific whitelisted IP (GET /access_settings/whitelist/{rule_id})](GetIPFromAccessSettings.java) + +* [Retrieve a list of currently whitelisted IPs (GET /access_settings/whitelist)](GetAccessSettingsActivity.java) + +* [Remove a specific IP from the whitelist (DELETE /access_settings/whitelist/{rule_id}](DeleteIPFromAccessSettings.java) + +* [Remove one or more IPs from the whitelist (DELETE /access_settings/whitelist)](DeleteAccessSettings.java) + +* [Add one or more IPs to the whitelist (POST /access_settings/whitelist)](CreateAccessSettings.java) \ No newline at end of file diff --git a/examples/accesssettings/accesssettings.java b/examples/accesssettings/accesssettings.java deleted file mode 100644 index 5008bafd..00000000 --- a/examples/accesssettings/accesssettings.java +++ /dev/null @@ -1,142 +0,0 @@ -import com.sendgrid.Method; -import com.sendgrid.Request; -import com.sendgrid.Response; -import com.sendgrid.SendGrid; - -import java.io.IOException; - -////////////////////////////////////////////////////////////////// -// Retrieve all recent access attempts -// GET /access_settings/activity - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("access_settings/activity"); - request.addQueryParam("limit", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Add one or more IPs to the whitelist -// POST /access_settings/whitelist - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("access_settings/whitelist"); - request.setBody("{\"ips\":[{\"ip\":\"192.168.1.1\"},{\"ip\":\"192.*.*.*\"},{\"ip\":\"192.168.1.3/32\"}]}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a list of currently whitelisted IPs -// GET /access_settings/whitelist - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("access_settings/whitelist"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Remove one or more IPs from the whitelist -// DELETE /access_settings/whitelist - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("access_settings/whitelist"); - request.setBody("{\"ids\":[1,2,3]}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a specific whitelisted IP -// GET /access_settings/whitelist/{rule_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("access_settings/whitelist/{rule_id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Remove a specific IP from the whitelist -// DELETE /access_settings/whitelist/{rule_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("access_settings/whitelist/{rule_id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From c9e948a8ad1e792721f5f456278042dc255d3a0e Mon Sep 17 00:00:00 2001 From: Mithun Sasidharan Date: Sun, 29 Oct 2017 19:52:56 +0530 Subject: [PATCH 029/288] Fix file_lines issue in examples/mailsettings/mailsettings.java --- .../GetAddressWhitelistMailSettings.java | 28 ++ examples/mailsettings/GetAllMailSettings.java | 30 ++ examples/mailsettings/GetBCCMailSettings.java | 28 ++ .../GetBouncePurgeMailSettings.java | 28 ++ .../mailsettings/GetFooterMailSettings.java | 31 ++ .../GetForwardBounceMailSettings.java | 31 ++ .../GetForwardSpamMailSettings.java | 28 ++ .../GetPlainContentMailSettings.java | 28 ++ .../GetSpamCheckMailSettings.java | 28 ++ .../mailsettings/GetTemplateMailSettings.java | 28 ++ examples/mailsettings/README.md | 23 + .../mailsettings/UpdateAddressWhitelist.java | 29 ++ .../mailsettings/UpdateBCCMailSettings.java | 29 ++ .../UpdateBouncePurgeMailSettings.java | 29 ++ .../UpdateFooterMailSettings.java | 29 ++ .../UpdateForwardBounceMailSettings.java | 29 ++ .../UpdateForwardSpamMailSettings.java | 29 ++ .../UpdatePlainContentMailSettings.java | 29 ++ .../UpdateSpamCheckMailSettings.java | 29 ++ .../UpdateTemplateMailSettings.java | 29 ++ examples/mailsettings/mailsettings.java | 438 ------------------ 21 files changed, 572 insertions(+), 438 deletions(-) create mode 100644 examples/mailsettings/GetAddressWhitelistMailSettings.java create mode 100644 examples/mailsettings/GetAllMailSettings.java create mode 100644 examples/mailsettings/GetBCCMailSettings.java create mode 100644 examples/mailsettings/GetBouncePurgeMailSettings.java create mode 100644 examples/mailsettings/GetFooterMailSettings.java create mode 100644 examples/mailsettings/GetForwardBounceMailSettings.java create mode 100644 examples/mailsettings/GetForwardSpamMailSettings.java create mode 100644 examples/mailsettings/GetPlainContentMailSettings.java create mode 100644 examples/mailsettings/GetSpamCheckMailSettings.java create mode 100644 examples/mailsettings/GetTemplateMailSettings.java create mode 100644 examples/mailsettings/README.md create mode 100644 examples/mailsettings/UpdateAddressWhitelist.java create mode 100644 examples/mailsettings/UpdateBCCMailSettings.java create mode 100644 examples/mailsettings/UpdateBouncePurgeMailSettings.java create mode 100644 examples/mailsettings/UpdateFooterMailSettings.java create mode 100644 examples/mailsettings/UpdateForwardBounceMailSettings.java create mode 100644 examples/mailsettings/UpdateForwardSpamMailSettings.java create mode 100644 examples/mailsettings/UpdatePlainContentMailSettings.java create mode 100644 examples/mailsettings/UpdateSpamCheckMailSettings.java create mode 100644 examples/mailsettings/UpdateTemplateMailSettings.java delete mode 100644 examples/mailsettings/mailsettings.java diff --git a/examples/mailsettings/GetAddressWhitelistMailSettings.java b/examples/mailsettings/GetAddressWhitelistMailSettings.java new file mode 100644 index 00000000..fdc81c1b --- /dev/null +++ b/examples/mailsettings/GetAddressWhitelistMailSettings.java @@ -0,0 +1,28 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +////////////////////////////////////////////////////////////////// +// Retrieve address whitelist mail settings +// GET /mail_settings/address_whitelist + + +public class GetAddressWhitelistMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/address_whitelist"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetAllMailSettings.java b/examples/mailsettings/GetAllMailSettings.java new file mode 100644 index 00000000..e85b6e48 --- /dev/null +++ b/examples/mailsettings/GetAllMailSettings.java @@ -0,0 +1,30 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Retrieve all mail settings +// GET /mail_settings + + +public class GetAllMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/mailsettings/GetBCCMailSettings.java b/examples/mailsettings/GetBCCMailSettings.java new file mode 100644 index 00000000..90ab31d9 --- /dev/null +++ b/examples/mailsettings/GetBCCMailSettings.java @@ -0,0 +1,28 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Retrieve all BCC mail settings +// GET /mail_settings/bcc + + +public class GetBCCMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/bcc"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetBouncePurgeMailSettings.java b/examples/mailsettings/GetBouncePurgeMailSettings.java new file mode 100644 index 00000000..2f390764 --- /dev/null +++ b/examples/mailsettings/GetBouncePurgeMailSettings.java @@ -0,0 +1,28 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +////////////////////////////////////////////////////////////////// +// Retrieve bounce purge mail settings +// GET /mail_settings/bounce_purge + + +public class GetBouncePurgeMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/bounce_purge"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetFooterMailSettings.java b/examples/mailsettings/GetFooterMailSettings.java new file mode 100644 index 00000000..bea04d0b --- /dev/null +++ b/examples/mailsettings/GetFooterMailSettings.java @@ -0,0 +1,31 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +////////////////////////////////////////////////////////////////// +// Retrieve footer mail settings +// GET /mail_settings/footer + + +public class GetFooterMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/footer"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetForwardBounceMailSettings.java b/examples/mailsettings/GetForwardBounceMailSettings.java new file mode 100644 index 00000000..33331585 --- /dev/null +++ b/examples/mailsettings/GetForwardBounceMailSettings.java @@ -0,0 +1,31 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +////////////////////////////////////////////////////////////////// +// Retrieve forward bounce mail settings +// GET /mail_settings/forward_bounce + + +public class GetForwardBounceMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/forward_bounce"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetForwardSpamMailSettings.java b/examples/mailsettings/GetForwardSpamMailSettings.java new file mode 100644 index 00000000..0b890294 --- /dev/null +++ b/examples/mailsettings/GetForwardSpamMailSettings.java @@ -0,0 +1,28 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +import java.io.IOException; + +////////////////////////////////////////////////////////////////// +// Retrieve forward spam mail settings +// GET /mail_settings/forward_spam + + +public class GetForwardSpamMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/forward_spam"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetPlainContentMailSettings.java b/examples/mailsettings/GetPlainContentMailSettings.java new file mode 100644 index 00000000..38f7cfe4 --- /dev/null +++ b/examples/mailsettings/GetPlainContentMailSettings.java @@ -0,0 +1,28 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Retrieve plain content mail settings +// GET /mail_settings/plain_content + + +public class GetPlainContentMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/plain_content"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetSpamCheckMailSettings.java b/examples/mailsettings/GetSpamCheckMailSettings.java new file mode 100644 index 00000000..9460cac0 --- /dev/null +++ b/examples/mailsettings/GetSpamCheckMailSettings.java @@ -0,0 +1,28 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Retrieve spam check mail settings +// GET /mail_settings/spam_check + + +public class GetSpamCheckMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/spam_check"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/GetTemplateMailSettings.java b/examples/mailsettings/GetTemplateMailSettings.java new file mode 100644 index 00000000..8b648be4 --- /dev/null +++ b/examples/mailsettings/GetTemplateMailSettings.java @@ -0,0 +1,28 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Retrieve legacy template mail settings +// GET /mail_settings/template + + +public class GetTemplateMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("mail_settings/template"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/README.md b/examples/mailsettings/README.md new file mode 100644 index 00000000..34e83317 --- /dev/null +++ b/examples/mailsettings/README.md @@ -0,0 +1,23 @@ +![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png) + +This folder contains various examples on using the Mail Settings endpoint of SendGrid with Java: + +* [Retrieve all mail settings (GET /mail_settings)](GetAllMailSettings.java) +* [Retrieve address whitelist mail settings (GET /mail_settings/address_whitelist)](GetAddressWhitelistMailSettings.java) +* [Retrieve all BCC mail settings (GET /mail_settings/bcc)](GetBCCMailSettings.java) +* [Retrieve bounce purge mail settings (GET /mail_settings/bounce_purge)](GetBouncePurgeMailSettings.java) +* [Retrieve footer mail settings (GET /mail_settings/footer)](GetFooterMailSettings.java) +* [Retrieve forward bounce mail settings (GET /mail_settings/forward_bounce)](GetForwardBounceMailSettings.java) +* [Retrieve forward spam mail settings (GET /mail_settings/forward_spam)](GetForwardSpamMailSettings.java) +* [Retrieve plain content mail settings (GET /mail_settings/plain_content)](GetPlainContentMailSettings.java) +* [Retrieve spam check mail settings (GET /mail_settings/spam_check)](GetSpamCheckMailSettings.java) +* [Retrieve legacy template mail settings (GET /mail_settings/template)](GetTemplateMailSettings.java) +* [Update address whitelist mail settings (PATCH /mail_settings/address_whitelist)](UpdateAddressWhitelist.java) +* [Update BCC mail settings (PATCH /mail_settings/bcc)](UpdateBCCMailSettings.java) +* [Update bounce purge mail settings (PATCH /mail_settings/bounce_purge)](UpdateBouncePurgeMailSettings.java) +* [Update footer mail settings (PATCH /mail_settings/footer)](UpdateFooterMailSettings.java) +* [Update forward bounce mail settings (PATCH /mail_settings/forward_bounce)](UpdateForwardBounceMailSettings.java) +* [Update forward spam mail settings (PATCH /mail_settings/forward_spam)](UpdateForwardSpamMailSettings.java) +* [Update plain content mail settings (PATCH /mail_settings/plain_content)](UpdatePlainContentMailSettings.java) +* [Update spam check mail settings (PATCH /mail_settings/spam_check)](UpdateSpamCheckMailSettings.java) +* [Update template mail settings (PATCH /mail_settings/template)](UpdateTemplateMailSettings.java) diff --git a/examples/mailsettings/UpdateAddressWhitelist.java b/examples/mailsettings/UpdateAddressWhitelist.java new file mode 100644 index 00000000..db58c282 --- /dev/null +++ b/examples/mailsettings/UpdateAddressWhitelist.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update address whitelist mail settings +// PATCH /mail_settings/address_whitelist + + +public class UpdateAddressWhitelist { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/address_whitelist"); + request.setBody("{\"list\":[\"email1@example.com\",\"example.com\"],\"enabled\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateBCCMailSettings.java b/examples/mailsettings/UpdateBCCMailSettings.java new file mode 100644 index 00000000..33faba1a --- /dev/null +++ b/examples/mailsettings/UpdateBCCMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update BCC mail settings +// PATCH /mail_settings/bcc + + +public class UpdateBCCMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/bcc"); + request.setBody("{\"enabled\":false,\"email\":\"email@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateBouncePurgeMailSettings.java b/examples/mailsettings/UpdateBouncePurgeMailSettings.java new file mode 100644 index 00000000..83a53e10 --- /dev/null +++ b/examples/mailsettings/UpdateBouncePurgeMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update bounce purge mail settings +// PATCH /mail_settings/bounce_purge + + +public class UpdateBouncePurgeMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/bounce_purge"); + request.setBody("{\"hard_bounces\":5,\"soft_bounces\":5,\"enabled\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateFooterMailSettings.java b/examples/mailsettings/UpdateFooterMailSettings.java new file mode 100644 index 00000000..fedf35b0 --- /dev/null +++ b/examples/mailsettings/UpdateFooterMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update footer mail settings +// PATCH /mail_settings/footer + + +public class UpdateFooterMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/footer"); + request.setBody("{\"html_content\":\"...\",\"enabled\":true,\"plain_content\":\"...\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateForwardBounceMailSettings.java b/examples/mailsettings/UpdateForwardBounceMailSettings.java new file mode 100644 index 00000000..677b94e9 --- /dev/null +++ b/examples/mailsettings/UpdateForwardBounceMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update forward bounce mail settings +// PATCH /mail_settings/forward_bounce + + +public class UpdateForwardBounceMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/forward_bounce"); + request.setBody("{\"enabled\":true,\"email\":\"example@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateForwardSpamMailSettings.java b/examples/mailsettings/UpdateForwardSpamMailSettings.java new file mode 100644 index 00000000..3b27f353 --- /dev/null +++ b/examples/mailsettings/UpdateForwardSpamMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update forward spam mail settings +// PATCH /mail_settings/forward_spam + + +public class UpdateForwardSpamMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/forward_spam"); + request.setBody("{\"enabled\":false,\"email\":\"\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdatePlainContentMailSettings.java b/examples/mailsettings/UpdatePlainContentMailSettings.java new file mode 100644 index 00000000..4cb680f5 --- /dev/null +++ b/examples/mailsettings/UpdatePlainContentMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update plain content mail settings +// PATCH /mail_settings/plain_content + + +public class UpdatePlainContentMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/plain_content"); + request.setBody("{\"enabled\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateSpamCheckMailSettings.java b/examples/mailsettings/UpdateSpamCheckMailSettings.java new file mode 100644 index 00000000..e7cf8dc2 --- /dev/null +++ b/examples/mailsettings/UpdateSpamCheckMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update spam check mail settings +// PATCH /mail_settings/spam_check + + +public class UpdateSpamCheckMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/spam_check"); + request.setBody("{\"url\":\"url\",\"max_score\":5,\"enabled\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/UpdateTemplateMailSettings.java b/examples/mailsettings/UpdateTemplateMailSettings.java new file mode 100644 index 00000000..57e1b22a --- /dev/null +++ b/examples/mailsettings/UpdateTemplateMailSettings.java @@ -0,0 +1,29 @@ +import java.io.IOException; + +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; + +////////////////////////////////////////////////////////////////// +// Update template mail settings +// PATCH /mail_settings/template + + +public class UpdateTemplateMailSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("mail_settings/template"); + request.setBody("{\"html_content\":\"<% body %>\",\"enabled\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/mailsettings/mailsettings.java b/examples/mailsettings/mailsettings.java deleted file mode 100644 index d42ffd2a..00000000 --- a/examples/mailsettings/mailsettings.java +++ /dev/null @@ -1,438 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Retrieve all mail settings -// GET /mail_settings - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update address whitelist mail settings -// PATCH /mail_settings/address_whitelist - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/address_whitelist"); - request.setBody("{\"list\":[\"email1@example.com\",\"example.com\"],\"enabled\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve address whitelist mail settings -// GET /mail_settings/address_whitelist - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/address_whitelist"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update BCC mail settings -// PATCH /mail_settings/bcc - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/bcc"); - request.setBody("{\"enabled\":false,\"email\":\"email@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all BCC mail settings -// GET /mail_settings/bcc - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/bcc"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update bounce purge mail settings -// PATCH /mail_settings/bounce_purge - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/bounce_purge"); - request.setBody("{\"hard_bounces\":5,\"soft_bounces\":5,\"enabled\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve bounce purge mail settings -// GET /mail_settings/bounce_purge - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/bounce_purge"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update footer mail settings -// PATCH /mail_settings/footer - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/footer"); - request.setBody("{\"html_content\":\"...\",\"enabled\":true,\"plain_content\":\"...\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve footer mail settings -// GET /mail_settings/footer - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/footer"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update forward bounce mail settings -// PATCH /mail_settings/forward_bounce - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/forward_bounce"); - request.setBody("{\"enabled\":true,\"email\":\"example@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve forward bounce mail settings -// GET /mail_settings/forward_bounce - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/forward_bounce"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update forward spam mail settings -// PATCH /mail_settings/forward_spam - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/forward_spam"); - request.setBody("{\"enabled\":false,\"email\":\"\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve forward spam mail settings -// GET /mail_settings/forward_spam - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/forward_spam"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update plain content mail settings -// PATCH /mail_settings/plain_content - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/plain_content"); - request.setBody("{\"enabled\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve plain content mail settings -// GET /mail_settings/plain_content - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/plain_content"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update spam check mail settings -// PATCH /mail_settings/spam_check - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/spam_check"); - request.setBody("{\"url\":\"url\",\"max_score\":5,\"enabled\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve spam check mail settings -// GET /mail_settings/spam_check - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/spam_check"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update template mail settings -// PATCH /mail_settings/template - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("mail_settings/template"); - request.setBody("{\"html_content\":\"<% body %>\",\"enabled\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve legacy template mail settings -// GET /mail_settings/template - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("mail_settings/template"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From 141848eeb10686efd58f2071048f0dab8918809f Mon Sep 17 00:00:00 2001 From: huy tran Date: Mon, 30 Oct 2017 18:48:32 +0900 Subject: [PATCH 030/288] Break up the examples in examples/subusers/subusers.java to their own files --- examples/subusers/CreateMonitorSettings.java | 31 ++ examples/subusers/CreateSubUser.java | 31 ++ examples/subusers/DeleteMonitorSettings.java | 31 ++ examples/subusers/DeleteSubUser.java | 30 ++ examples/subusers/EnableOrDisableUser.java | 31 ++ examples/subusers/ListAllSubUsers.java | 32 ++ .../subusers/RetrieveEmailStatistics.java | 37 ++ .../subusers/RetrieveMonitorSettings.java | 31 ++ .../RetrieveMonthlyEmailStatistics.java | 36 ++ examples/subusers/RetrieveMonthlyStats.java | 36 ++ .../subusers/RetrieveSubUserReputation.java | 32 ++ .../subusers/RetrieveTotalsForEachEmail.java | 37 ++ examples/subusers/UpdateAssignedIPs.java | 31 ++ examples/subusers/UpdateMonitorSettings.java | 31 ++ examples/subusers/subusers.java | 350 ------------------ 15 files changed, 457 insertions(+), 350 deletions(-) create mode 100644 examples/subusers/CreateMonitorSettings.java create mode 100644 examples/subusers/CreateSubUser.java create mode 100644 examples/subusers/DeleteMonitorSettings.java create mode 100644 examples/subusers/DeleteSubUser.java create mode 100644 examples/subusers/EnableOrDisableUser.java create mode 100644 examples/subusers/ListAllSubUsers.java create mode 100644 examples/subusers/RetrieveEmailStatistics.java create mode 100644 examples/subusers/RetrieveMonitorSettings.java create mode 100644 examples/subusers/RetrieveMonthlyEmailStatistics.java create mode 100644 examples/subusers/RetrieveMonthlyStats.java create mode 100644 examples/subusers/RetrieveSubUserReputation.java create mode 100644 examples/subusers/RetrieveTotalsForEachEmail.java create mode 100644 examples/subusers/UpdateAssignedIPs.java create mode 100644 examples/subusers/UpdateMonitorSettings.java delete mode 100644 examples/subusers/subusers.java diff --git a/examples/subusers/CreateMonitorSettings.java b/examples/subusers/CreateMonitorSettings.java new file mode 100644 index 00000000..6fecfaff --- /dev/null +++ b/examples/subusers/CreateMonitorSettings.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Create monitor settings +// POST /subusers/{subuser_name}/monitor + + +public class CreateMonitorSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("subusers/{subuser_name}/monitor"); + request.setBody("{\"frequency\":50000,\"email\":\"example@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/CreateSubUser.java b/examples/subusers/CreateSubUser.java new file mode 100644 index 00000000..9cb283c8 --- /dev/null +++ b/examples/subusers/CreateSubUser.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Create Subuser +// POST /subusers + + +public class CreateSubUser { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("subusers"); + request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\":\"John@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/DeleteMonitorSettings.java b/examples/subusers/DeleteMonitorSettings.java new file mode 100644 index 00000000..ffcc25c8 --- /dev/null +++ b/examples/subusers/DeleteMonitorSettings.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Delete monitor settings +// DELETE /subusers/{subuser_name}/monitor + + +public class DeleteMonitorSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("subusers/{subuser_name}/monitor"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/DeleteSubUser.java b/examples/subusers/DeleteSubUser.java new file mode 100644 index 00000000..68207edf --- /dev/null +++ b/examples/subusers/DeleteSubUser.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete a subuser +// DELETE /subusers/{subuser_name} + + +public class DeleteSubUser { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("subusers/{subuser_name}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/EnableOrDisableUser.java b/examples/subusers/EnableOrDisableUser.java new file mode 100644 index 00000000..107b7def --- /dev/null +++ b/examples/subusers/EnableOrDisableUser.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Enable/disable a subuser +// PATCH /subusers/{subuser_name} + + +public class EnableOrDisableUser { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("subusers/{subuser_name}"); + request.setBody("{\"disabled\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/ListAllSubUsers.java b/examples/subusers/ListAllSubUsers.java new file mode 100644 index 00000000..ebc408f3 --- /dev/null +++ b/examples/subusers/ListAllSubUsers.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// List all Subusers +// GET /subusers + +public class ListAllSubUsers { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers"); + request.addQueryParam("username", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/RetrieveEmailStatistics.java b/examples/subusers/RetrieveEmailStatistics.java new file mode 100644 index 00000000..479f4f2e --- /dev/null +++ b/examples/subusers/RetrieveEmailStatistics.java @@ -0,0 +1,37 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve email statistics for your subusers. +// GET /subusers/stats + + +public class RetrieveEmailStatistics { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers/stats"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("subusers", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/subusers/RetrieveMonitorSettings.java b/examples/subusers/RetrieveMonitorSettings.java new file mode 100644 index 00000000..6d219e2f --- /dev/null +++ b/examples/subusers/RetrieveMonitorSettings.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve monitor settings for a subuser +// GET /subusers/{subuser_name}/monitor + + +public class RetrieveMonitorSettings { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers/{subuser_name}/monitor"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/RetrieveMonthlyEmailStatistics.java b/examples/subusers/RetrieveMonthlyEmailStatistics.java new file mode 100644 index 00000000..b7d1c9b2 --- /dev/null +++ b/examples/subusers/RetrieveMonthlyEmailStatistics.java @@ -0,0 +1,36 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve the monthly email statistics for a single subuser +// GET /subusers/{subuser_name}/stats/monthly + + +public class RetrieveMonthlyEmailStatistics { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers/{subuser_name}/stats/monthly"); + request.addQueryParam("date", "test_string"); + request.addQueryParam("sort_by_direction", "asc"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/RetrieveMonthlyStats.java b/examples/subusers/RetrieveMonthlyStats.java new file mode 100644 index 00000000..7310c072 --- /dev/null +++ b/examples/subusers/RetrieveMonthlyStats.java @@ -0,0 +1,36 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve monthly stats for all subusers +// GET /subusers/stats/monthly + + +public class RetrieveMonthlyStats { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers/stats/monthly"); + request.addQueryParam("subuser", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); + request.addQueryParam("date", "test_string"); + request.addQueryParam("sort_by_direction", "asc"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/subusers/RetrieveSubUserReputation.java b/examples/subusers/RetrieveSubUserReputation.java new file mode 100644 index 00000000..18664ed2 --- /dev/null +++ b/examples/subusers/RetrieveSubUserReputation.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + +////////////////////////////////////////////////////////////////// +// Retrieve Subuser Reputations +// GET /subusers/reputations + + +public class RetrieveSubUserReputation { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers/reputations"); + request.addQueryParam("usernames", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/subusers/RetrieveTotalsForEachEmail.java b/examples/subusers/RetrieveTotalsForEachEmail.java new file mode 100644 index 00000000..de741967 --- /dev/null +++ b/examples/subusers/RetrieveTotalsForEachEmail.java @@ -0,0 +1,37 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve the totals for each email statistic metric for all subusers. +// GET /subusers/stats/sums + + +public class RetrieveTotalsForEachEmail { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("subusers/stats/sums"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("sort_by_direction", "asc"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/UpdateAssignedIPs.java b/examples/subusers/UpdateAssignedIPs.java new file mode 100644 index 00000000..60479769 --- /dev/null +++ b/examples/subusers/UpdateAssignedIPs.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Update IPs assigned to a subuser +// PUT /subusers/{subuser_name}/ips + + +public class UpdateAssignedIps { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PUT); + request.setEndpoint("subusers/{subuser_name}/ips"); + request.setBody("[\"127.0.0.1\"]"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/UpdateMonitorSettings.java b/examples/subusers/UpdateMonitorSettings.java new file mode 100644 index 00000000..81567982 --- /dev/null +++ b/examples/subusers/UpdateMonitorSettings.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Update Monitor Settings for a subuser +// PUT /subusers/{subuser_name}/monitor + + +public class UpdateMonitorSetting { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PUT); + request.setEndpoint("subusers/{subuser_name}/monitor"); + request.setBody("{\"frequency\":500,\"email\":\"example@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/subusers/subusers.java b/examples/subusers/subusers.java deleted file mode 100644 index 6959ac8d..00000000 --- a/examples/subusers/subusers.java +++ /dev/null @@ -1,350 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Create Subuser -// POST /subusers - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("subusers"); - request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\":\"John@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// List all Subusers -// GET /subusers - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers"); - request.addQueryParam("username", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve Subuser Reputations -// GET /subusers/reputations - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/reputations"); - request.addQueryParam("usernames", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve email statistics for your subusers. -// GET /subusers/stats - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/stats"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("subusers", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve monthly stats for all subusers -// GET /subusers/stats/monthly - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/stats/monthly"); - request.addQueryParam("subuser", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); - request.addQueryParam("date", "test_string"); - request.addQueryParam("sort_by_direction", "asc"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve the totals for each email statistic metric for all subusers. -// GET /subusers/stats/sums - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/stats/sums"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("sort_by_direction", "asc"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Enable/disable a subuser -// PATCH /subusers/{subuser_name} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("subusers/{subuser_name}"); - request.setBody("{\"disabled\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a subuser -// DELETE /subusers/{subuser_name} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("subusers/{subuser_name}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update IPs assigned to a subuser -// PUT /subusers/{subuser_name}/ips - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("subusers/{subuser_name}/ips"); - request.setBody("[\"127.0.0.1\"]"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update Monitor Settings for a subuser -// PUT /subusers/{subuser_name}/monitor - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("subusers/{subuser_name}/monitor"); - request.setBody("{\"frequency\":500,\"email\":\"example@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Create monitor settings -// POST /subusers/{subuser_name}/monitor - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("subusers/{subuser_name}/monitor"); - request.setBody("{\"frequency\":50000,\"email\":\"example@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve monitor settings for a subuser -// GET /subusers/{subuser_name}/monitor - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/{subuser_name}/monitor"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete monitor settings -// DELETE /subusers/{subuser_name}/monitor - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("subusers/{subuser_name}/monitor"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve the monthly email statistics for a single subuser -// GET /subusers/{subuser_name}/stats/monthly - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/{subuser_name}/stats/monthly"); - request.addQueryParam("date", "test_string"); - request.addQueryParam("sort_by_direction", "asc"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From 909216982216aa6eaa4ffcf62e50c47b01f8675f Mon Sep 17 00:00:00 2001 From: huy tran Date: Mon, 30 Oct 2017 19:04:40 +0900 Subject: [PATCH 031/288] Fix "similar-code" issue in examples/whitelabel/ips.java --- examples/whitelabel/ips.java | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/examples/whitelabel/ips.java b/examples/whitelabel/ips.java index 54cb2af3..22836d99 100644 --- a/examples/whitelabel/ips.java +++ b/examples/whitelabel/ips.java @@ -7,16 +7,25 @@ import java.util.HashMap; import java.util.Map; +public class CommonExample { + protected SendGrid sg; + protected Request request; + + protected static void init() { + this.sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + this.request = new Request(); + } +} + ////////////////////////////////////////////////////////////////// // Create an IP whitelabel // POST /whitelabel/ips -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.POST); request.setEndpoint("whitelabel/ips"); request.setBody("{\"ip\":\"192.168.1.1\",\"domain\":\"example.com\",\"subdomain\":\"email\"}"); @@ -35,11 +44,10 @@ public static void main(String[] args) throws IOException { // GET /whitelabel/ips -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.GET); request.setEndpoint("whitelabel/ips"); request.addQueryParam("ip", "test_string"); @@ -60,11 +68,10 @@ public static void main(String[] args) throws IOException { // GET /whitelabel/ips/{id} -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.GET); request.setEndpoint("whitelabel/ips/{id}"); Response response = sg.api(request); @@ -82,11 +89,10 @@ public static void main(String[] args) throws IOException { // DELETE /whitelabel/ips/{id} -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.DELETE); request.setEndpoint("whitelabel/ips/{id}"); Response response = sg.api(request); @@ -104,11 +110,10 @@ public static void main(String[] args) throws IOException { // POST /whitelabel/ips/{id}/validate -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.POST); request.setEndpoint("whitelabel/ips/{id}/validate"); Response response = sg.api(request); From fdc7deae55d66e6f2f1027d1591b2bd639bcd66d Mon Sep 17 00:00:00 2001 From: huy tran Date: Mon, 30 Oct 2017 19:07:02 +0900 Subject: [PATCH 032/288] Fix "similar-code" issue in examples/whitelabel/ips.java --- examples/whitelabel/ips.java | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/examples/whitelabel/ips.java b/examples/whitelabel/ips.java index 54cb2af3..22836d99 100644 --- a/examples/whitelabel/ips.java +++ b/examples/whitelabel/ips.java @@ -7,16 +7,25 @@ import java.util.HashMap; import java.util.Map; +public class CommonExample { + protected SendGrid sg; + protected Request request; + + protected static void init() { + this.sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + this.request = new Request(); + } +} + ////////////////////////////////////////////////////////////////// // Create an IP whitelabel // POST /whitelabel/ips -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.POST); request.setEndpoint("whitelabel/ips"); request.setBody("{\"ip\":\"192.168.1.1\",\"domain\":\"example.com\",\"subdomain\":\"email\"}"); @@ -35,11 +44,10 @@ public static void main(String[] args) throws IOException { // GET /whitelabel/ips -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.GET); request.setEndpoint("whitelabel/ips"); request.addQueryParam("ip", "test_string"); @@ -60,11 +68,10 @@ public static void main(String[] args) throws IOException { // GET /whitelabel/ips/{id} -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.GET); request.setEndpoint("whitelabel/ips/{id}"); Response response = sg.api(request); @@ -82,11 +89,10 @@ public static void main(String[] args) throws IOException { // DELETE /whitelabel/ips/{id} -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.DELETE); request.setEndpoint("whitelabel/ips/{id}"); Response response = sg.api(request); @@ -104,11 +110,10 @@ public static void main(String[] args) throws IOException { // POST /whitelabel/ips/{id}/validate -public class Example { +public class Example extends CommonExample { public static void main(String[] args) throws IOException { try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); + init(); request.setMethod(Method.POST); request.setEndpoint("whitelabel/ips/{id}/validate"); Response response = sg.api(request); From 442362733e3c759932d2efc4eab6ce004e490a0e Mon Sep 17 00:00:00 2001 From: pushkyn Date: Mon, 30 Oct 2017 16:50:50 +0300 Subject: [PATCH 033/288] update github PR template --- .github/PULL_REQUEST_TEMPLATE | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE index e4059635..ba377ae7 100644 --- a/.github/PULL_REQUEST_TEMPLATE +++ b/.github/PULL_REQUEST_TEMPLATE @@ -1,19 +1,24 @@ - -Closes: #[Issue number] +# Fixes # -**Description of the change**: +### Checklist +- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) +- [ ] I have read the [Contribution Guide] and my PR follows them. +- [ ] I updated my branch with the master branch. +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] I have added necessary documentation about the functionality in the appropriate .md file +- [ ] I have added in line documentation to the code I modified -If you have questions, please send an email [Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository. +### Short description of what this PR does: +- +- +If you have questions, please send an email to [Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository. \ No newline at end of file From 91725bfaf495464bc59602aac6ddb3c8f0595e8c Mon Sep 17 00:00:00 2001 From: pushkyn Date: Sat, 28 Oct 2017 20:59:06 +0300 Subject: [PATCH 034/288] Refactoring suppression examples --- examples/suppression/DeleteBlocks.java | 30 ++ examples/suppression/DeleteBounce.java | 30 ++ examples/suppression/DeleteBounces.java | 30 ++ examples/suppression/DeleteInvalidEmails.java | 30 ++ examples/suppression/DeleteSpamReports.java | 30 ++ examples/suppression/DeleteSpecificBlock.java | 29 ++ .../DeleteSpecificInvalidEmail.java | 29 ++ .../suppression/DeleteSpecificSpamReport.java | 29 ++ examples/suppression/GetAllBlocks.java | 33 ++ examples/suppression/GetAllBounces.java | 31 ++ .../suppression/GetAllGlobalSuppressions.java | 33 ++ examples/suppression/GetAllInvalidEmails.java | 33 ++ examples/suppression/GetAllSpamReports.java | 33 ++ examples/suppression/GetBounce.java | 29 ++ examples/suppression/GetSpecificBlock.java | 29 ++ .../suppression/GetSpecificInvalidEmail.java | 29 ++ .../suppression/GetSpecificSpamReport.java | 29 ++ examples/suppression/README.md | 21 + examples/suppression/suppression.java | 406 ------------------ 19 files changed, 537 insertions(+), 406 deletions(-) create mode 100644 examples/suppression/DeleteBlocks.java create mode 100644 examples/suppression/DeleteBounce.java create mode 100644 examples/suppression/DeleteBounces.java create mode 100644 examples/suppression/DeleteInvalidEmails.java create mode 100644 examples/suppression/DeleteSpamReports.java create mode 100644 examples/suppression/DeleteSpecificBlock.java create mode 100644 examples/suppression/DeleteSpecificInvalidEmail.java create mode 100644 examples/suppression/DeleteSpecificSpamReport.java create mode 100644 examples/suppression/GetAllBlocks.java create mode 100644 examples/suppression/GetAllBounces.java create mode 100644 examples/suppression/GetAllGlobalSuppressions.java create mode 100644 examples/suppression/GetAllInvalidEmails.java create mode 100644 examples/suppression/GetAllSpamReports.java create mode 100644 examples/suppression/GetBounce.java create mode 100644 examples/suppression/GetSpecificBlock.java create mode 100644 examples/suppression/GetSpecificInvalidEmail.java create mode 100644 examples/suppression/GetSpecificSpamReport.java create mode 100644 examples/suppression/README.md delete mode 100644 examples/suppression/suppression.java diff --git a/examples/suppression/DeleteBlocks.java b/examples/suppression/DeleteBlocks.java new file mode 100644 index 00000000..484ddc67 --- /dev/null +++ b/examples/suppression/DeleteBlocks.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete blocks +// DELETE /suppression/blocks + +public class DeleteBlocks { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/blocks"); + request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteBounce.java b/examples/suppression/DeleteBounce.java new file mode 100644 index 00000000..a8a9270d --- /dev/null +++ b/examples/suppression/DeleteBounce.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete a bounce +// DELETE /suppression/bounces/{email} + +public class DeleteBounce { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/bounces/{email}"); + request.addQueryParam("email_address", "example@example.com"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteBounces.java b/examples/suppression/DeleteBounces.java new file mode 100644 index 00000000..ec286aec --- /dev/null +++ b/examples/suppression/DeleteBounces.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete bounces +// DELETE /suppression/bounces + +public class DeleteBounces { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/bounces"); + request.setBody("{\"emails\":[\"example@example.com\",\"example2@example.com\"],\"delete_all\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteInvalidEmails.java b/examples/suppression/DeleteInvalidEmails.java new file mode 100644 index 00000000..56e3e25e --- /dev/null +++ b/examples/suppression/DeleteInvalidEmails.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete invalid emails +// DELETE /suppression/invalid_emails + +public class DeleteInvalidEmails { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/invalid_emails"); + request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteSpamReports.java b/examples/suppression/DeleteSpamReports.java new file mode 100644 index 00000000..c4adb4b3 --- /dev/null +++ b/examples/suppression/DeleteSpamReports.java @@ -0,0 +1,30 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete spam reports +// DELETE /suppression/spam_reports + +public class DeleteSpamReports { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/spam_reports"); + request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteSpecificBlock.java b/examples/suppression/DeleteSpecificBlock.java new file mode 100644 index 00000000..4e252c3f --- /dev/null +++ b/examples/suppression/DeleteSpecificBlock.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete a specific block +// DELETE /suppression/blocks/{email} + +public class DeleteSpecificBlock { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/blocks/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteSpecificInvalidEmail.java b/examples/suppression/DeleteSpecificInvalidEmail.java new file mode 100644 index 00000000..03def455 --- /dev/null +++ b/examples/suppression/DeleteSpecificInvalidEmail.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete a specific invalid email +// DELETE /suppression/invalid_emails/{email} + +public class DeleteSpecificInvalidEmail { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/invalid_emails/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/DeleteSpecificSpamReport.java b/examples/suppression/DeleteSpecificSpamReport.java new file mode 100644 index 00000000..fcad75bf --- /dev/null +++ b/examples/suppression/DeleteSpecificSpamReport.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Delete a specific spam report +// DELETE /suppression/spam_report/{email} + +public class DeleteSpecificSpamReport { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/spam_report/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetAllBlocks.java b/examples/suppression/GetAllBlocks.java new file mode 100644 index 00000000..c653c9be --- /dev/null +++ b/examples/suppression/GetAllBlocks.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve all blocks +// GET /suppression/blocks + +public class GetAllBlocks { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/blocks"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetAllBounces.java b/examples/suppression/GetAllBounces.java new file mode 100644 index 00000000..6c98010d --- /dev/null +++ b/examples/suppression/GetAllBounces.java @@ -0,0 +1,31 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve all bounces +// GET /suppression/bounces + +public class GetAllBounces { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/bounces"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("end_time", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetAllGlobalSuppressions.java b/examples/suppression/GetAllGlobalSuppressions.java new file mode 100644 index 00000000..f714b2c9 --- /dev/null +++ b/examples/suppression/GetAllGlobalSuppressions.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve all global suppressions +// GET /suppression/unsubscribes + +public class GetAllGlobalSuppressions { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/unsubscribes"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetAllInvalidEmails.java b/examples/suppression/GetAllInvalidEmails.java new file mode 100644 index 00000000..d2b2028b --- /dev/null +++ b/examples/suppression/GetAllInvalidEmails.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve all invalid emails +// GET /suppression/invalid_emails + +public class GetAllInvalidEmails { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/invalid_emails"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetAllSpamReports.java b/examples/suppression/GetAllSpamReports.java new file mode 100644 index 00000000..03795c45 --- /dev/null +++ b/examples/suppression/GetAllSpamReports.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve all spam reports +// GET /suppression/spam_reports + +public class GetAllSpamReports { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/spam_reports"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetBounce.java b/examples/suppression/GetBounce.java new file mode 100644 index 00000000..fe3259f5 --- /dev/null +++ b/examples/suppression/GetBounce.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve a Bounce +// GET /suppression/bounces/{email} + +public class GetBounce { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/bounces/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetSpecificBlock.java b/examples/suppression/GetSpecificBlock.java new file mode 100644 index 00000000..1c9b8dee --- /dev/null +++ b/examples/suppression/GetSpecificBlock.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve a specific block +// GET /suppression/blocks/{email} + +public class GetSpecificBlock { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/blocks/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetSpecificInvalidEmail.java b/examples/suppression/GetSpecificInvalidEmail.java new file mode 100644 index 00000000..54f8f8a4 --- /dev/null +++ b/examples/suppression/GetSpecificInvalidEmail.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve a specific invalid email +// GET /suppression/invalid_emails/{email} + +public class GetSpecificInvalidEmail { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/invalid_emails/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/GetSpecificSpamReport.java b/examples/suppression/GetSpecificSpamReport.java new file mode 100644 index 00000000..bd5d3826 --- /dev/null +++ b/examples/suppression/GetSpecificSpamReport.java @@ -0,0 +1,29 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve a specific spam report +// GET /suppression/spam_report/{email} + +public class GetSpecificSpamReport { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("suppression/spam_report/{email}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/suppression/README.md b/examples/suppression/README.md new file mode 100644 index 00000000..ca686a4b --- /dev/null +++ b/examples/suppression/README.md @@ -0,0 +1,21 @@ +![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png) + +This folder contains various examples on using the SUPPRESSION endpoint of SendGrid with Java: + +* [Retrieve all blocks (GET /suppression/blocks)](GetAllBlocks.java) +* [Delete blocks (DELETE /suppression/blocks)](DeleteBlocks.java) +* [Retrieve a specific block (GET /suppression/blocks/{email})](GetSpecificBlock.java) +* [Delete a specific block (DELETE /suppression/blocks/{email})](DeleteSpecificBlock.java) +* [Retrieve all bounces (GET /suppression/bounces)](GetAllBounces.java) +* [Delete bounces (DELETE /suppression/bounces)](DeleteBounces.java) +* [Retrieve a Bounce (GET /suppression/bounces/{email})](GetBounce.java) +* [Delete a bounce (DELETE /suppression/bounces/{email})](DeleteBounce.java) +* [Retrieve all invalid emails (GET /suppression/invalid_emails)](GetAllInvalidEmails.java) +* [Delete invalid emails (DELETE /suppression/invalid_emails)](DeleteInvalidEmails.java) +* [Retrieve a specific invalid email (GET /suppression/invalid_emails/{email})](GetSpecificInvalidEmail.java) +* [Delete a specific invalid email (DELETE /suppression/invalid_emails/{email})](DeleteSpecificInvalidEmail.java) +* [Retrieve a specific spam report (GET /suppression/spam_report/{email})](GetSpecificSpamReport.java) +* [Delete a specific spam report (DELETE /suppression/spam_report/{email})](DeleteSpecificSpamReport.java) +* [Retrieve all spam reports (GET /suppression/spam_reports)](GetAllSpamReports.java) +* [Delete spam reports (DELETE /suppression/spam_reports)](DeleteSpamReports.java) +* [Retrieve all global suppressions (GET /suppression/unsubscribes)](GetAllGlobalSuppressions.java) \ No newline at end of file diff --git a/examples/suppression/suppression.java b/examples/suppression/suppression.java deleted file mode 100644 index 049581a8..00000000 --- a/examples/suppression/suppression.java +++ /dev/null @@ -1,406 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Retrieve all blocks -// GET /suppression/blocks - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/blocks"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete blocks -// DELETE /suppression/blocks - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/blocks"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a specific block -// GET /suppression/blocks/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/blocks/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a specific block -// DELETE /suppression/blocks/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/blocks/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all bounces -// GET /suppression/bounces - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/bounces"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("end_time", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete bounces -// DELETE /suppression/bounces - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/bounces"); - request.setBody("{\"emails\":[\"example@example.com\",\"example2@example.com\"],\"delete_all\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a Bounce -// GET /suppression/bounces/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/bounces/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a bounce -// DELETE /suppression/bounces/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/bounces/{email}"); - request.addQueryParam("email_address", "example@example.com"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all invalid emails -// GET /suppression/invalid_emails - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/invalid_emails"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete invalid emails -// DELETE /suppression/invalid_emails - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/invalid_emails"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a specific invalid email -// GET /suppression/invalid_emails/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/invalid_emails/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a specific invalid email -// DELETE /suppression/invalid_emails/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/invalid_emails/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a specific spam report -// GET /suppression/spam_report/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/spam_report/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a specific spam report -// DELETE /suppression/spam_report/{email} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/spam_report/{email}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all spam reports -// GET /suppression/spam_reports - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/spam_reports"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete spam reports -// DELETE /suppression/spam_reports - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/spam_reports"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all global suppressions -// GET /suppression/unsubscribes - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/unsubscribes"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From e6a54591020cbe7be29f055b0c29736421caec8a Mon Sep 17 00:00:00 2001 From: Manjiri Tapaswi Date: Mon, 30 Oct 2017 10:25:42 -0700 Subject: [PATCH 035/288] Addressed comments --- src/test/java/com/sendgrid/TestRequiredFilesExist.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index eb044941..b1bb5375 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -8,8 +8,8 @@ public class TestRequiredFilesExist { // ./Docker or docker/Docker @Test public void checkDockerExists() { - boolean dockerExists = new File("./Docker").exists() || - new File("./docker/Docker").exists(); + boolean dockerExists = new File("./Dockerfile").exists() || + new File("./docker/Dockerfile").exists(); assertTrue(dockerExists); } From 056dd671c6eb818c51f12e81e37e3f1192889a5e Mon Sep 17 00:00:00 2001 From: Matt Bernier Date: Mon, 30 Oct 2017 21:21:57 -0600 Subject: [PATCH 036/288] Changed license file path to .md from .txt --- LICENSE.txt => LICENSE.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE.txt => LICENSE.md (100%) diff --git a/LICENSE.txt b/LICENSE.md similarity index 100% rename from LICENSE.txt rename to LICENSE.md From 82b2867bcea5ae37302d3e56aa3a283ff9fdf284 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Mon, 30 Oct 2017 21:13:14 -0700 Subject: [PATCH 037/288] Version Bump v4.1.2: PR #220 Alway serialize click-tracking parameters --- CHANGELOG.md | 5 +++++ CONTRIBUTING.md | 2 +- README.md | 2 +- build.gradle | 2 +- pom.xml | 2 +- .../sendgrid/helpers/mail/objects/ClickTrackingSetting.java | 1 - 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 818020a4..a42d9086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log All notable changes to this project will be documented in this file. +## [4.1.2] - 2017-10-30 +### Added +- PR #220 Alway serialize click-tracking parameters. +- BIG thanks to [Mattia Barbon](https://github.com/mbarbon) + ## [4.1.1] - 2017-10-10 ### Added - PR #247 Added Javadocs. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8c70abe1..cc48269d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -102,7 +102,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.1.1/sendgrid-4.1.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.1.0/sendgrid-4.1.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.1.2/sendgrid-4.1.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.1.2/sendgrid-4.1.2-jar.jar:. Example ``` diff --git a/README.md b/README.md index 9155acd6..ed0ce3d9 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - compile 'com.sendgrid:sendgrid-java:4.1.1' + compile 'com.sendgrid:sendgrid-java:4.1.2' } repositories { diff --git a/build.gradle b/build.gradle index 8db48489..9a010d2a 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'maven' apply plugin: 'signing' group = 'com.sendgrid' -version = '4.1.1' +version = '4.1.2' ext.packaging = 'jar' allprojects { diff --git a/pom.xml b/pom.xml index 249d79d4..e5811e71 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java SendGrid Java helper library - 4.1.1 + 4.1.2 This Java module allows you to quickly and easily send emails through SendGrid using Java. https://github.com/sendgrid/sendgrid-java diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java index 0644ffc1..2c139cda 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java @@ -9,7 +9,6 @@ * Settings to determine how you would like to track the * metrics of how your recipients interact with your email. */ -@JsonInclude(Include.NON_DEFAULT) public class ClickTrackingSetting { @JsonProperty("enable") private boolean enable; @JsonProperty("enable_text") private boolean enableText; From fabd726fba31e9fa1d32e95eb299fa5ebf74cec8 Mon Sep 17 00:00:00 2001 From: Rostyslav Zatserkovnyi Date: Sat, 28 Oct 2017 11:27:06 +0300 Subject: [PATCH 038/288] Add .codeclimate.yml file --- .codeclimate.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 00000000..5b82009c --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,8 @@ +--- +plugins: + checkstyle: + enabled: true + fixme: + enabled: true + pmd: + enabled: true From f9b4ac43a70e94765ad6c9bbe2a00aea8590d980 Mon Sep 17 00:00:00 2001 From: Matt Bernier Date: Tue, 31 Oct 2017 14:16:01 -0600 Subject: [PATCH 039/288] added source command --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 009eeb0b..4eba81e4 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ cp .env_sample .env ``` 2. Edit the new `.env` to add your API key 3. Source the `.env` file to set rhe variable in the current session +```bash +source .env +``` ## Install Package @@ -231,4 +234,4 @@ sendgrid-java is guided and supported by the SendGrid [Developer Experience Team sendgrid-java is maintained and funded by SendGrid, Inc. The names and logos for sendgrid-java are trademarks of SendGrid, Inc. # License -[The MIT License (MIT)](LICENSE.txt) \ No newline at end of file +[The MIT License (MIT)](LICENSE.txt) From 9722ac1d4c375fccd7258c3819ee6df9b843427b Mon Sep 17 00:00:00 2001 From: dmitraver Date: Tue, 14 Nov 2017 17:47:28 +0100 Subject: [PATCH 040/288] Updates jackson dependencies to the latest version. --- build.gradle | 6 +++--- pom.xml | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 881a496e..97d66950 100644 --- a/build.gradle +++ b/build.gradle @@ -46,9 +46,9 @@ buildscript { dependencies { compile 'com.sendgrid:java-http-client:4.1.0' - compile 'com.fasterxml.jackson.core:jackson-core:2.5.3' - compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.3' - compile 'com.fasterxml.jackson.core:jackson-databind:2.5.3' + compile 'com.fasterxml.jackson.core:jackson-core:2.9.2' + compile 'com.fasterxml.jackson.core:jackson-annotations:2.9.2' + compile 'com.fasterxml.jackson.core:jackson-databind:2.9.2' testCompile group: 'junit', name: 'junit', version: '4.12' } diff --git a/pom.xml b/pom.xml index 07545420..3683507f 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,9 @@ repo + + 2.9.2 + https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git @@ -94,17 +97,17 @@ com.fasterxml.jackson.core jackson-core - 2.5.3 + ${jackson.version} com.fasterxml.jackson.core jackson-annotations - 2.5.3 + ${jackson.version} com.fasterxml.jackson.core jackson-databind - 2.5.3 + ${jackson.version} junit From e3a9cdfd5aabbebe6f4eb21ee8a60d7099119cde Mon Sep 17 00:00:00 2001 From: pushkyn Date: Sun, 29 Oct 2017 01:49:22 +0300 Subject: [PATCH 041/288] Test to check year in license file --- LICENSE.md | 2 +- src/test/java/com/sendgrid/LicenseTest.java | 27 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/test/java/com/sendgrid/LicenseTest.java diff --git a/LICENSE.md b/LICENSE.md index 84a49643..1e1037a5 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2017 SendGrid +Copyright (c) 2013-2017 SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/test/java/com/sendgrid/LicenseTest.java b/src/test/java/com/sendgrid/LicenseTest.java new file mode 100644 index 00000000..1e06bf71 --- /dev/null +++ b/src/test/java/com/sendgrid/LicenseTest.java @@ -0,0 +1,27 @@ +package com.sendgrid; + +import org.junit.Assert; +import org.junit.Test; + +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; +import java.util.Calendar; + +public class LicenseTest { + + @Test + public void testLicenseShouldHaveCorrectYear() throws IOException { + String copyrightText = null; + try (BufferedReader br = new BufferedReader(new FileReader("./LICENSE.md"))) { + for (String line; (line = br.readLine()) != null; ) { + if (line.startsWith("Copyright")) { + copyrightText = line; + break; + } + } + } + String expectedCopyright = String.format("Copyright (c) 2013-%d SendGrid, Inc.", Calendar.getInstance().get(Calendar.YEAR)); + Assert.assertEquals("License has incorrect year", copyrightText, expectedCopyright); + } +} From 258f80b8ec4f2023ae98d6d6b74969a2aa50258e Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Fri, 4 May 2018 14:27:44 -0700 Subject: [PATCH 042/288] Version Bump v4.2.0: Hacktoberfest rollup release --- .gitignore | 1 + CHANGELOG.md | 20 +++++++++++++ CONTRIBUTING.md | 2 +- LICENSE.md | 2 +- README.md | 4 +-- bin/com/sendgrid/helpers/README.md | 2 +- build.gradle | 2 +- pom.xml | 2 +- src/main/java/com/sendgrid/SendGridAPI.java | 1 - .../helpers/mail/objects/Content.java | 29 +++++++++---------- .../com/sendgrid/TestRequiredFilesExist.java | 12 ++++---- .../java/com/sendgrid/helpers/MailTest.java | 2 ++ 12 files changed, 50 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index 2c5dd118..551957d8 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ examples/Example.java .classpath .project .env +.vscode \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a42d9086..6f207e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,26 @@ # Change Log All notable changes to this project will be documented in this file. +## [4.2.0] - 2018-05-04 +### Added +- [PR #275](https://github.com/sendgrid/sendgrid-java/pull/275/files): Add a way to verify that the content doesn't contain sensitive information -- BIG thanks to [Diego Camargo](https://github.com/belfazt) +- [PR #249](https://github.com/sendgrid/sendgrid-java/pull/249): Add optional rate limit support -- BIG thanks to [Andy Trimble](https://github.com/andy-trimble) +- [PR #379](https://github.com/sendgrid/sendgrid-java/pull/379): Break up the examples in examples/subusers/subusers.java to their own files -- BIG thanks to [huytranrjc](https://github.com/huytranrjc) +- [PR #365](https://github.com/sendgrid/sendgrid-java/pull/365): Test to check year in license file -- BIG thanks to [Alex](https://github.com/pushkyn) +- [PR #345](https://github.com/sendgrid/sendgrid-java/pull/345): Add .codeclimate.yml file -- BIG thanks to [Rostyslav Zatserkovnyi](https://github.com/rzats) +- [PR #319](https://github.com/sendgrid/sendgrid-java/pull/319): Add .env_sample file -- BIG thanks to [Thiago Barbato](https://github.com/thiagobbt) +- [PR #223](https://github.com/sendgrid/sendgrid-java/pull/223): The license file is now in the release jar -- BIG thanks to [sccalabr](https://github.com/sccalabr) +- [PR #224](https://github.com/sendgrid/sendgrid-java/pull/224): Adding SendGridApi interface -- BIG thanks to [sccalabr](https://github.com/sccalabr) + +### Fix +- [PR #410](https://github.com/sendgrid/sendgrid-java/pull/410): Update Jackson dependencies to the latest version -- BIG thanks to [Dmitry Avershin](https://github.com/dmitraver) +- [PR #380](https://github.com/sendgrid/sendgrid-java/pull/380): Fix "similar-code" issue in examples/whitelabel/ips.java -- BIG thanks to [huytranrjc](https://github.com/huytranrjc) +- [PR #255](https://github.com/sendgrid/sendgrid-java/pull/225): Fix Mail deserialization issue -- BIG thanks to [sccalabr](https://github.com/sccalabr) +- [PR #359](https://github.com/sendgrid/sendgrid-java/pull/359): Fix code issue in examples/suppression/suppression.java -- BIG thanks to [Alex](https://github.com/pushkyn) +- [PR #228](https://github.com/sendgrid/sendgrid-java/pull/228): Changes serialization type from default to non-empty -- BIG thanks to [Dmitry Avershin](https://github.com/dmitraver) +- [PR #373](https://github.com/sendgrid/sendgrid-java/pull/373): Fix file_lines issue in examples/mailsettings/mailsettings.java -- BIG thanks to [Mithun Sasidharan](https://github.com/mithunsasidharan) + + ## [4.1.2] - 2017-10-30 ### Added - PR #220 Alway serialize click-tracking parameters. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cc48269d..54f88f96 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -102,7 +102,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.1.2/sendgrid-4.1.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.1.2/sendgrid-4.1.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.2.0/sendgrid-4.2.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.2.0/sendgrid-4.2.0-jar.jar:. Example ``` diff --git a/LICENSE.md b/LICENSE.md index 1e1037a5..7756fd61 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2017 SendGrid, Inc. +Copyright (c) 2013-2018 SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 5d582daf..ee22606f 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - compile 'com.sendgrid:sendgrid-java:4.1.2' + compile 'com.sendgrid:sendgrid-java:4.2.0' } repositories { @@ -85,7 +85,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java-latest.jar](http://dx.sendgrid.com/downloads/sendgrid-java/sendgrid-java-latest.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.2.0/sendgrid-java.jar) ## Dependencies diff --git a/bin/com/sendgrid/helpers/README.md b/bin/com/sendgrid/helpers/README.md index b676e6f9..1bec4955 100644 --- a/bin/com/sendgrid/helpers/README.md +++ b/bin/com/sendgrid/helpers/README.md @@ -10,7 +10,7 @@ Run the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples ```bash cd examples/mail -javac -classpath ../../build/libs/sendgrid-4.1.0-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.7.3.jar:../../build/libs/sendgrid-4.1.0-jar.jar:. Example +javac -classpath ../../build/libs/sendgrid-4.2.0-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.9.2.jar:../../build/libs/sendgrid-4.2.0-jar.jar:. Example ``` ## Usage diff --git a/build.gradle b/build.gradle index 3c2794f3..686bb182 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'maven' apply plugin: 'signing' group = 'com.sendgrid' -version = '4.1.2' +version = '4.2.0' ext.packaging = 'jar' allprojects { diff --git a/pom.xml b/pom.xml index 1e640183..0255d4cf 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java SendGrid Java helper library - 4.1.2 + 4.2.0 This Java module allows you to quickly and easily send emails through SendGrid using Java. https://github.com/sendgrid/sendgrid-java diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index 32998459..34599a7d 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -15,7 +15,6 @@ public interface SendGridAPI { /** * Returns the library version * - * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys * @return the library version. */ public String getLibraryVersion(); diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java index 787d2d4d..0d6c73b2 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java @@ -47,21 +47,6 @@ public void setValue(String value) { ContentVerifier.verifyContent(value); this.value = value; } -} - -class ContentVerifier { - private static final List FORBIDDEN_PATTERNS = Collections.singletonList( - Pattern.compile(".*SG\\.[a-zA-Z0-9(-|_)]*\\.[a-zA-Z0-9(-|_)]*.*") - ); - - static void verifyContent(String content) { - for (Pattern pattern: FORBIDDEN_PATTERNS) { - if (pattern.matcher(content).matches()) { - throw new IllegalArgumentException("Found a Forbidden Pattern in the content of the email"); - } - } - } -} @Override public int hashCode() { @@ -94,3 +79,17 @@ public boolean equals(Object obj) { return true; } } + +class ContentVerifier { + private static final List FORBIDDEN_PATTERNS = Collections.singletonList( + Pattern.compile(".*SG\\.[a-zA-Z0-9(-|_)]*\\.[a-zA-Z0-9(-|_)]*.*") + ); + + static void verifyContent(String content) { + for (Pattern pattern: FORBIDDEN_PATTERNS) { + if (pattern.matcher(content).matches()) { + throw new IllegalArgumentException("Found a Forbidden Pattern in the content of the email"); + } + } + } +} \ No newline at end of file diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index b1bb5375..f503c424 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -13,12 +13,12 @@ public class TestRequiredFilesExist { assertTrue(dockerExists); } - // ./docker-compose.yml or ./docker/docker-compose.yml - @Test public void checkDockerComposeExists() { - boolean dockerComposeExists = new File("./docker-compose.yml").exists() || - new File("./docker/docker-compose.yml").exists(); - assertTrue(dockerComposeExists); - } + // // ./docker-compose.yml or ./docker/docker-compose.yml + // @Test public void checkDockerComposeExists() { + // boolean dockerComposeExists = new File("./docker-compose.yml").exists() || + // new File("./docker/docker-compose.yml").exists(); + // assertTrue(dockerComposeExists); + // } // ./.env_sample @Test public void checkEnvSampleExists() { diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index 73336ef9..67d893a4 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -1,5 +1,7 @@ package com.sendgrid; +import com.fasterxml.jackson.databind.ObjectMapper; + import org.junit.Assert; import org.junit.Before; import org.junit.Test; From 816451fd1ad6334e9235f11437a1b10d03f9b3ff Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Tue, 8 May 2018 11:06:38 -0700 Subject: [PATCH 043/288] Version Bump v4.2.1: Update to latest Jackson recommended dependency --- CHANGELOG.md | 4 ++++ CONTRIBUTING.md | 2 +- README.md | 4 ++-- bin/com/sendgrid/helpers/README.md | 2 +- build.gradle | 8 ++++---- pom.xml | 4 ++-- src/main/java/com/sendgrid/helpers/README.md | 2 +- 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f207e92..8694111a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## [4.2.1] - 2018-05-08 +### Security Fix +- Update to latest Jackson recommended dependency, based on [this article](https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062). + ## [4.2.0] - 2018-05-04 ### Added - [PR #275](https://github.com/sendgrid/sendgrid-java/pull/275/files): Add a way to verify that the content doesn't contain sensitive information -- BIG thanks to [Diego Camargo](https://github.com/belfazt) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 54f88f96..985d0371 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -102,7 +102,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.2.0/sendgrid-4.2.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.2.0/sendgrid-4.2.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.2.1/sendgrid-4.2.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.2.1/sendgrid-4.2.1-jar.jar:. Example ``` diff --git a/README.md b/README.md index ee22606f..995f7beb 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - compile 'com.sendgrid:sendgrid-java:4.2.0' + compile 'com.sendgrid:sendgrid-java:4.2.1' } repositories { @@ -85,7 +85,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.2.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.2.1/sendgrid-java.jar) ## Dependencies diff --git a/bin/com/sendgrid/helpers/README.md b/bin/com/sendgrid/helpers/README.md index 1bec4955..8a2b905d 100644 --- a/bin/com/sendgrid/helpers/README.md +++ b/bin/com/sendgrid/helpers/README.md @@ -10,7 +10,7 @@ Run the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples ```bash cd examples/mail -javac -classpath ../../build/libs/sendgrid-4.2.0-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.9.2.jar:../../build/libs/sendgrid-4.2.0-jar.jar:. Example +javac -classpath ../../build/libs/sendgrid-4.2.1-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.9.5.jar:../../build/libs/sendgrid-4.1.0-jar.jar:. Example ``` ## Usage diff --git a/build.gradle b/build.gradle index 686bb182..5a8ba959 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'maven' apply plugin: 'signing' group = 'com.sendgrid' -version = '4.2.0' +version = '4.2.1' ext.packaging = 'jar' allprojects { @@ -46,9 +46,9 @@ buildscript { dependencies { compile 'com.sendgrid:java-http-client:4.1.0' - compile 'com.fasterxml.jackson.core:jackson-core:2.9.2' - compile 'com.fasterxml.jackson.core:jackson-annotations:2.9.2' - compile 'com.fasterxml.jackson.core:jackson-databind:2.9.2' + compile 'com.fasterxml.jackson.core:jackson-core:2.9.5' + compile 'com.fasterxml.jackson.core:jackson-annotations:2.9.5' + compile 'com.fasterxml.jackson.core:jackson-databind:2.9.5' testCompile group: 'junit', name: 'junit', version: '4.12' } diff --git a/pom.xml b/pom.xml index 0255d4cf..e6f0541c 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java SendGrid Java helper library - 4.2.0 + 4.2.1 This Java module allows you to quickly and easily send emails through SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -20,7 +20,7 @@ - 2.9.2 + 2.9.5 https://github.com/sendgrid/sendgrid-java diff --git a/src/main/java/com/sendgrid/helpers/README.md b/src/main/java/com/sendgrid/helpers/README.md index 4c829e4a..8a2b905d 100644 --- a/src/main/java/com/sendgrid/helpers/README.md +++ b/src/main/java/com/sendgrid/helpers/README.md @@ -10,7 +10,7 @@ Run the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples ```bash cd examples/mail -javac -classpath ../../build/libs/sendgrid-3.2.0-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.7.3.jar:../../build/libs/sendgrid-3.2.0-jar.jar:. Example +javac -classpath ../../build/libs/sendgrid-4.2.1-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.9.5.jar:../../build/libs/sendgrid-4.1.0-jar.jar:. Example ``` ## Usage From 5437db45144010bcf11cc092c3155109f1f15d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Mon, 30 Jul 2018 10:36:06 -0300 Subject: [PATCH 044/288] Added dynamic_template_data property --- .../helpers/mail/objects/Personalization.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index e3646451..48aafea2 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -19,8 +19,9 @@ public class Personalization { @JsonProperty("headers") private Map headers; @JsonProperty("substitutions") private Map substitutions; @JsonProperty("custom_args") private Map customArgs; + @JsonProperty("dynamic_template_data") private Map dynamicTemplateData; @JsonProperty("send_at") private long sendAt; - + @JsonProperty("to") public List getTos() { if(tos == null) @@ -144,6 +145,22 @@ public void setSendAt(long sendAt) { this.sendAt = sendAt; } + @JsonProperty("dynamic_template_data") + public Map getDynamicTemplateData() { + if(dynamicTemplateData == null) + return Collections.emptyMap(); + return dynamicTemplateData; + } + + public void addDynamicTemplateData(String key, String value) { + if (dynamicTemplateData == null) { + dynamicTemplateData = new HashMap(); + dynamicTemplateData.put(key, value); + } else { + dynamicTemplateData.put(key, value); + } + } + @Override public int hashCode() { final int prime = 31; From 27206d02de5796498c59b9a8af6e5248f7bf9e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Mon, 30 Jul 2018 10:38:00 -0300 Subject: [PATCH 045/288] Included generation of dynamic_template_data in testKitchenSink --- .../java/com/sendgrid/helpers/MailTest.java | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index 67d893a4..fbae6b39 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -96,6 +96,38 @@ public void testKitchenSink() throws IOException { personalization2.setSendAt(1443636843); mail.addPersonalization(personalization2); + Personalization personalization3 = new Personalization(); + Email to3 = new Email(); + to3.setName("Example User"); + to3.setEmail("test@example.com"); + personalization3.addTo(to3); + to3.setName("Example User"); + to3.setEmail("test@example.com"); + personalization3.addTo(to3); + Email cc3 = new Email(); + cc3.setName("Example User"); + cc3.setEmail("test@example.com"); + personalization3.addCc(cc3); + cc3.setName("Example User"); + cc3.setEmail("test@example.com"); + personalization3.addCc(cc3); + Email bcc3 = new Email(); + bcc3.setName("Example User"); + bcc3.setEmail("test@example.com"); + personalization3.addBcc(bcc3); + bcc3.setName("Example User"); + bcc3.setEmail("test@example.com"); + personalization3.addBcc(bcc3); + personalization3.setSubject("Hello World from the Personalized SendGrid Java Library"); + personalization3.addHeader("X-Test", "test"); + personalization3.addHeader("X-Mock", "true"); + personalization3.addDynamicTemplateData("name", "Example User"); + personalization3.addDynamicTemplateData("city", "Denver"); + personalization3.addCustomArg("user_id", "343"); + personalization3.addCustomArg("type", "marketing"); + personalization3.setSendAt(1443636843); + mail.addPersonalization(personalization3); + Content content = new Content(); content.setType("text/plain"); content.setValue("some text here"); @@ -199,7 +231,7 @@ public void testKitchenSink() throws IOException { replyTo.setEmail("test@example.com"); mail.setReplyTo(replyTo); - Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); + Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); } @Test @@ -210,7 +242,7 @@ public void fromShouldReturnCorrectFrom() { Assert.assertSame(from, mail.getFrom()); } - + @Test public void mailDeserialization() throws IOException { Email to = new Email("foo@bar.com"); From 56c293ff0d70103d1d6ecd0f8fd11885ed150bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Mon, 30 Jul 2018 10:39:31 -0300 Subject: [PATCH 046/288] Updated to demonstrate new Dynamic Templates using helper and renamed the current example to Legacy Templates --- USE_CASES.md | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 88 insertions(+), 1 deletion(-) diff --git a/USE_CASES.md b/USE_CASES.md index 5ec48991..7eb4b1b1 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -7,12 +7,99 @@ This documentation provides examples for specific use cases. Please [open an iss * [How to View Email Statistics](#email_stats) -# Transactional Templates +# Dynamic Templates For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. Template ID (replace with your own): +```text +d-2c214ac919e84170b21855cc129b4a5f +``` + +Template Body: + +```html + + + + + +Hello {{name}}, +

+I'm glad you are trying out the template feature! +

+I hope you are having a great day in {{city}} :) +

+ + +``` + +## With Mail Helper Class + +```java +import com.sendgrid.*; +import java.io.IOException; + +public class Example { + public static void main(String[] args) throws IOException { + Mail mail = new Mail(); + mail.setFrom(new Email("teste@example.com")); + mail.setTemplateId("d-2c214ac919e84170b21855cc129b4a5f"); + mail.personalization.get(0).addDynamicTemplateData("name", "Example User"); + mail.personalization.get(0).addDynamicTemplateData("city", "Denver"); + mail.personalization.get(0).addTo(new Email("test@example.com")); + mail.addPersonalization(personalization); + + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + try { + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` + +## Without Mail Helper Class + +```java +import com.sendgrid.*; +import java.io.IOException; + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody("{\"from\":{\"email\":\"test@example.com\"},\"personalizations\":[{\"to\":[{\"email\":\"test@example.com\"}],\"dynamic_template_data\":{\"name\":\"Example User\",\"city\":\"Denver\"}}],\"template_id\":\"d-2c214ac919e84170b21855cc129b4a5f\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` + + +# Legacy Templates + +For this example, we assume you have created a [legacy template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. + +Template ID (replace with your own): + ```text 13b8f94f-bcae-4ec6-b752-70d6cb59f932 ``` From c2713449e0f2cceaade7dcb9e25380d934e3baff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Tue, 31 Jul 2018 19:47:42 -0300 Subject: [PATCH 047/288] Changed type parameter of dynamicTemplateData --- .../sendgrid/helpers/mail/objects/Personalization.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index 48aafea2..c26057ce 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -19,7 +19,7 @@ public class Personalization { @JsonProperty("headers") private Map headers; @JsonProperty("substitutions") private Map substitutions; @JsonProperty("custom_args") private Map customArgs; - @JsonProperty("dynamic_template_data") private Map dynamicTemplateData; + @JsonProperty("dynamic_template_data") private Map dynamicTemplateData; @JsonProperty("send_at") private long sendAt; @JsonProperty("to") @@ -146,15 +146,15 @@ public void setSendAt(long sendAt) { } @JsonProperty("dynamic_template_data") - public Map getDynamicTemplateData() { + public Map getDynamicTemplateData() { if(dynamicTemplateData == null) - return Collections.emptyMap(); + return Collections.emptyMap(); return dynamicTemplateData; } - public void addDynamicTemplateData(String key, String value) { + public void addDynamicTemplateData(String key, Object value) { if (dynamicTemplateData == null) { - dynamicTemplateData = new HashMap(); + dynamicTemplateData = new HashMap(); dynamicTemplateData.put(key, value); } else { dynamicTemplateData.put(key, value); From b8710435fcbe891f8faadcf2fa776fefa478cc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Tue, 31 Jul 2018 19:49:12 -0300 Subject: [PATCH 048/288] Included generation of more complex dynamic template data to testKitchenSink --- .../java/com/sendgrid/helpers/MailTest.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index fbae6b39..40ac75ce 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -6,6 +6,11 @@ import org.junit.Before; import org.junit.Test; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + import java.io.IOException; public class MailTest { @@ -121,8 +126,18 @@ public void testKitchenSink() throws IOException { personalization3.setSubject("Hello World from the Personalized SendGrid Java Library"); personalization3.addHeader("X-Test", "test"); personalization3.addHeader("X-Mock", "true"); + List> items = new ArrayList<>(); + Map item1 = new HashMap<>(); + item1.put("text", "New Line Sneakers"); + item1.put("price", "$ 79.95"); + items.add(item1); + Map item2 = new HashMap<>(); + item2.put("text", "Old Line Sneakers"); + item1.put("price", "$ 59.95"); + items.add(item2); personalization3.addDynamicTemplateData("name", "Example User"); personalization3.addDynamicTemplateData("city", "Denver"); + personalization3.addDynamicTemplateData("items", items); personalization3.addCustomArg("user_id", "343"); personalization3.addCustomArg("type", "marketing"); personalization3.setSendAt(1443636843); @@ -231,7 +246,7 @@ public void testKitchenSink() throws IOException { replyTo.setEmail("test@example.com"); mail.setReplyTo(replyTo); - Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); + Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"items\":[{\"price\":\"$ 59.95\",\"text\":\"New Line Sneakers\"},{\"text\":\"Old Line Sneakers\"}],\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); } @Test From 74962e5d9fbbad18c9fb5a75d98b41bd4f4b2e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Wed, 1 Aug 2018 22:46:07 -0300 Subject: [PATCH 049/288] Refactor in getDynamicemplateData --- .../com/sendgrid/helpers/mail/objects/Personalization.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index c26057ce..816d1241 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -147,9 +147,8 @@ public void setSendAt(long sendAt) { @JsonProperty("dynamic_template_data") public Map getDynamicTemplateData() { - if(dynamicTemplateData == null) - return Collections.emptyMap(); - return dynamicTemplateData; + return dynamicTemplateData == null + ? Collections.emptyMap() : dynamicTemplateData; } public void addDynamicTemplateData(String key, Object value) { From 07b0be29e495a19c3bcfb8699e81e2e4af27da67 Mon Sep 17 00:00:00 2001 From: Anshul Singhal Date: Tue, 7 Aug 2018 09:56:12 -0700 Subject: [PATCH 050/288] Added coders tag --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 995f7beb..48bcc302 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Email Notifications Badge](https://dx.sendgrid.com/badge/java)](https://dx.sendgrid.com/newsletter/java) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-java.svg)](https://github.com/sendgrid/sendgrid-java/graphs/contributors) +[![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-java/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-java) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt) **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. From cced93c069eb97f8b04e8b74f03d8b032e779d67 Mon Sep 17 00:00:00 2001 From: Anshul Singhal <1997anshul@gmail.com> Date: Fri, 10 Aug 2018 16:19:49 -0700 Subject: [PATCH 051/288] Readability update --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 985d0371..ff9c0222 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -168,8 +168,10 @@ Please run your code through: ```bash # Clone your fork of the repo into the current directory git clone https://github.com/sendgrid/sendgrid-java + # Navigate to the newly cloned directory cd sendgrid-java + # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/sendgrid/sendgrid-java ``` From 96655f39e1a4f45c9406736d8f22013e6a712996 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Mon, 20 Aug 2018 18:14:18 -0700 Subject: [PATCH 052/288] Update USE_CASES.md --- USE_CASES.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/USE_CASES.md b/USE_CASES.md index 5ec48991..65310908 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -7,7 +7,9 @@ This documentation provides examples for specific use cases. Please [open an iss * [How to View Email Statistics](#email_stats) -# Transactional Templates +# (LEGACY) Transactional Templates + +IF YOU ARE USING OUR NEW TEMPLATES, PLEASE SEE [THIS ISSUE](https://github.com/sendgrid/sendgrid-java/issues/447). For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. From ff0dc1bcd4baccab1f3e82fe6006e530470d882a Mon Sep 17 00:00:00 2001 From: af4ro <1997anshul@gmail.com> Date: Tue, 21 Aug 2018 11:53:39 -0700 Subject: [PATCH 053/288] Fixed import errors --- .../java/com/sendgrid/TestRequiredFilesExist.java | 2 ++ .../java/com/sendgrid/helpers/ContentTest.java | 3 ++- .../mail/objects/SettingsSerializationTest.java | 14 +++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index f503c424..928758b9 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -1,3 +1,5 @@ +package com.sendgrid; + import org.junit.Test; import java.io.File; diff --git a/src/test/java/com/sendgrid/helpers/ContentTest.java b/src/test/java/com/sendgrid/helpers/ContentTest.java index 05e2328c..c83b0d2e 100644 --- a/src/test/java/com/sendgrid/helpers/ContentTest.java +++ b/src/test/java/com/sendgrid/helpers/ContentTest.java @@ -1,9 +1,10 @@ -package com.sendgrid; +package com.sendgrid.helpers; import org.junit.Assert; import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import com.sendgrid.helpers.mail.objects.Content; import org.junit.rules.ExpectedException; import java.util.ArrayList; diff --git a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java index 74e6c8b5..27878162 100644 --- a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java +++ b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java @@ -1,13 +1,13 @@ package com.sendgrid.helpers.mail.objects; import com.fasterxml.jackson.databind.ObjectMapper; -import com.sendgrid.BccSettings; -import com.sendgrid.ClickTrackingSetting; -import com.sendgrid.FooterSetting; -import com.sendgrid.GoogleAnalyticsSetting; -import com.sendgrid.OpenTrackingSetting; -import com.sendgrid.SpamCheckSetting; -import com.sendgrid.SubscriptionTrackingSetting; +import com.sendgrid.helpers.mail.objects.BccSettings; +import com.sendgrid.helpers.mail.objects.ClickTrackingSetting; +import com.sendgrid.helpers.mail.objects.FooterSetting; +import com.sendgrid.helpers.mail.objects.GoogleAnalyticsSetting; +import com.sendgrid.helpers.mail.objects.OpenTrackingSetting; +import com.sendgrid.helpers.mail.objects.SpamCheckSetting; +import com.sendgrid.helpers.mail.objects.SubscriptionTrackingSetting; import org.junit.Assert; import org.junit.Test; From 994fdba5dcb849983b667c3bc926db953009c048 Mon Sep 17 00:00:00 2001 From: af4ro <1997anshul@gmail.com> Date: Tue, 21 Aug 2018 13:52:36 -0700 Subject: [PATCH 054/288] examples and minor code changes --- USE_CASES.md | 93 ++++++++++++------- docker/Dockerfile | 2 +- docker/USAGE.md | 5 +- examples/helpers/mail/Example.java | 44 ++++++++- .../helpers/mail/objects/Personalization.java | 4 +- 5 files changed, 106 insertions(+), 42 deletions(-) diff --git a/USE_CASES.md b/USE_CASES.md index 7eb4b1b1..204f74ce 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -2,12 +2,13 @@ This documentation provides examples for specific use cases. Please [open an iss # Table of Contents -* [Transactional Templates](#transactional_templates) -* [How to Setup a Domain Whitelabel](#domain_whitelabel) -* [How to View Email Statistics](#email_stats) +* [Transactional Templates](#transactional-templates) +* [Legacy Templates](#legacy-templates) +* [How to Setup a Domain Whitelabel](#domain-whitelabel) +* [How to View Email Statistics](#email-stats) -# Dynamic Templates +# Transactional Templates For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. @@ -21,17 +22,17 @@ Template Body: ```html - - - - -Hello {{name}}, -

-I'm glad you are trying out the template feature! -

-I hope you are having a great day in {{city}} :) -

- + + + + + Hello {{name}}, +

+ I'm glad you are trying out the template feature! +

+ I hope you are having a great day in {{city}} :) +

+ ``` @@ -46,9 +47,11 @@ public class Example { Mail mail = new Mail(); mail.setFrom(new Email("teste@example.com")); mail.setTemplateId("d-2c214ac919e84170b21855cc129b4a5f"); - mail.personalization.get(0).addDynamicTemplateData("name", "Example User"); - mail.personalization.get(0).addDynamicTemplateData("city", "Denver"); - mail.personalization.get(0).addTo(new Email("test@example.com")); + + Personalization personalization = new Personalization(); + personalization.addDynamicTemplateData("name", "Example User"); + personalization.addDynamicTemplateData("city", "Denver"); + personalization.addTo(new Email("test@example.com")); mail.addPersonalization(personalization); SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); @@ -81,7 +84,14 @@ public class Example { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("mail/send"); - request.setBody("{\"from\":{\"email\":\"test@example.com\"},\"personalizations\":[{\"to\":[{\"email\":\"test@example.com\"}],\"dynamic_template_data\":{\"name\":\"Example User\",\"city\":\"Denver\"}}],\"template_id\":\"d-2c214ac919e84170b21855cc129b4a5f\"}"); + request.setBody("{ + \"from\": {\"email\": \"test@example.com\"}, + \"personalizations\": + [{ + \"to\": [{\"email\": \"test@example.com\"}], + \"dynamic_template_data\": {\"name\": \"Example User\", \"city\": \"Denver\"} + }], + \"template_id\": \"d-2c214ac919e84170b21855cc129b4a5f\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -114,19 +124,19 @@ Template Body: ```html - - - - -Hello -name-, -

-I'm glad you are trying out the template feature! -

-<%body%> -

-I hope you are having a great day in -city- :) -

- + + + + + Hello -name-, +

+ I'm glad you are trying out the template feature! +

+ <%body%> +

+ I hope you are having a great day in -city- :) +

+ ``` @@ -177,7 +187,20 @@ public class Example { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("mail/send"); - request.setBody("{\"personalizations\":[{\"to\":[{\"email\":\"test@example.com\"}],\"substitutions\":{\"-name-\":\"Example User\",\"-city-\":\"Denver\"},\"subject\":\"Hello World from the SendGrid Java Library!\"}],\"from\":{\"email\":\"test@example.com\"},\"content\":[{\"type\":\"text/html\",\"value\": \"I'm replacing the body tag\"}],\"template_id\": \"13b8f94f-bcae-4ec6-b752-70d6cb59f932\"}"); + request.setBody("{ + \"personalizations\": + [{ + \"to\": [{\"email\": \"test@example.com\"}], + \"substitutions\": {\"-name-\": \"Example User\", \"-city-\": \"Denver\"}, + \"subject\": \"Hello World from the SendGrid Java Library!\" + }], + \"from\": {\"email\": \"test@example.com\"}, + \"content\": + [{ + \"type\": \"text/html\", + \"value\": \"I'm replacing the body tag\" + }] + ,\"template_id\": \"13b8f94f-bcae-4ec6-b752-70d6cb59f932\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -189,14 +212,14 @@ public class Example { } ``` - + # How to Setup a Domain Whitelabel You can find documentation for how to setup a domain whitelabel via the UI [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/setup_domain_whitelabel.html) and via API [here](https://github.com/sendgrid/sendgrid-java/blob/master/USAGE.md#whitelabel). Find more information about all of SendGrid's whitelabeling related documentation [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/index.html). - + # How to View Email Statistics You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](https://github.com/sendgrid/sendgrid-java/blob/master/USAGE.md#stats). diff --git a/docker/Dockerfile b/docker/Dockerfile index 943b2b50..66599a60 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,7 +16,7 @@ RUN chmod +x ./install.sh && \ WORKDIR /root/sources RUN git clone https://github.com/sendgrid/sendgrid-java.git WORKDIR /root -RUN ln -s /root/sources/sendgrid-java/sendgrid +RUN ln -s /root/sources/sendgrid-java COPY entrypoint.sh entrypoint.sh RUN chmod +x entrypoint.sh diff --git a/docker/USAGE.md b/docker/USAGE.md index 125b90fe..0cb27fee 100644 --- a/docker/USAGE.md +++ b/docker/USAGE.md @@ -23,7 +23,10 @@ You can mount repositories in the `/mnt/sendgrid-java` and `/mnt/java-http-clien # Testing -Testing is easy! Run the container, `cd sendgrid`, and run `./gradlew test`. +Testing is easy! +1. Run the container: `docker run -it sendgrid/sendgrid-java` +2. `cd sendgrid-java` +3. run `./gradlew test` # About diff --git a/examples/helpers/mail/Example.java b/examples/helpers/mail/Example.java index d595d0d3..77c73eb2 100644 --- a/examples/helpers/mail/Example.java +++ b/examples/helpers/mail/Example.java @@ -207,6 +207,26 @@ public static Mail buildKitchenSink() throws IOException { return mail; } + // API V3 Dynamic Template implementation + public static Mail buildDynamicTemplate() throws IOException { + Mail mail = new Mail(); + + Email fromEmail = new Email(); + fromEmail.setName("Example User"); + fromEmail.setEmail("test@example.com"); + mail.setFrom(fromEmail); + + mail.setTemplateId("d-c6dcf1f72bdd4beeb15a9aa6c72fcd2c"); + + Personalization personalization = new Personalization(); + personalization.addDynamicTemplateData("name", "Example User"); + personalization.addDynamicTemplateData("city", "Denver"); + personalization.addTo(new Email("test@example.com")); + mail.addPersonalization(personalization); + + return mail; + } + // Minimum required to send an email public static Mail buildHelloEmail() throws IOException { Email from = new Email("test@example.com"); @@ -261,8 +281,28 @@ public static void kitchenSinkExample() throws IOException { } } + public static void dynamicTemplateExample() throws IOException { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + sg.addRequestHeader("X-Mock", "true"); + + Request request = new Request(); + Mail dynamicTemplate = buildDynamicTemplate(); + try { + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(dynamicTemplate.build()); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } + public static void main(String[] args) throws IOException { - baselineExample(); - kitchenSinkExample(); + // baselineExample(); + // kitchenSinkExample(); + dynamicTemplateExample(); } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index 816d1241..3ace82ff 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -154,10 +154,8 @@ public Map getDynamicTemplateData() { public void addDynamicTemplateData(String key, Object value) { if (dynamicTemplateData == null) { dynamicTemplateData = new HashMap(); - dynamicTemplateData.put(key, value); - } else { - dynamicTemplateData.put(key, value); } + dynamicTemplateData.put(key, value); } @Override From 83c449a857137b6c420c3c2156f95ad0543594ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ros=C3=A1rio=20Pereira=20Fernandes?= Date: Mon, 1 Oct 2018 01:46:04 +0200 Subject: [PATCH 055/288] Update README.md Replace compile with implementation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48bcc302..a2154351 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - compile 'com.sendgrid:sendgrid-java:4.2.1' + implementation 'com.sendgrid:sendgrid-java:4.2.1' } repositories { From 18d1dcece1f5e0a0e09efa9057367a85dd847d1a Mon Sep 17 00:00:00 2001 From: Bharat Raghunathan Date: Mon, 1 Oct 2018 10:17:44 +0530 Subject: [PATCH 056/288] Link to the online version of CLA in README.md Link to signable online version of CLA instead of a copy of the CLA for convenience --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48bcc302..4c183b9c 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ Quick links: - [Feature Request](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#feature-request) - [Bug Reports](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#submit-a-bug-report) -- [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#cla) +- [Sign the CLA to Create a Pull Request](https://cla.sendgrid.com/sendgrid/sendgrid-java) - [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#improvements-to-the-codebase) From 62851d5c8892af06b65fd412b0fa3466b6a659f0 Mon Sep 17 00:00:00 2001 From: Bharat123Rox Date: Wed, 3 Oct 2018 17:20:11 +0530 Subject: [PATCH 057/288] Fix alphabetical order --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c183b9c..6dda22b2 100644 --- a/README.md +++ b/README.md @@ -219,8 +219,8 @@ Quick links: - [Feature Request](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#feature-request) - [Bug Reports](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#submit-a-bug-report) -- [Sign the CLA to Create a Pull Request](https://cla.sendgrid.com/sendgrid/sendgrid-java) - [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#improvements-to-the-codebase) +- [Sign the CLA to Create a Pull Request](https://cla.sendgrid.com/sendgrid/sendgrid-java) # Troubleshooting From a448f483bfb063a863b39e7877283e0747ea1449 Mon Sep 17 00:00:00 2001 From: Bharat123Rox Date: Wed, 3 Oct 2018 17:23:56 +0530 Subject: [PATCH 058/288] Fix email mention --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6dda22b2..86add9f2 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,9 @@ Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-java # About -sendgrid-java is guided and supported by the SendGrid [Developer Experience Team](mailto:dx@sendgrid.com). +sendgrid-java is guided and supported by the SendGrid Developer Experience Team. + +Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in case of any queries. sendgrid-java is maintained and funded by SendGrid, Inc. The names and logos for sendgrid-java are trademarks of SendGrid, Inc. From ca9be79665a52f611e2039348dcdb1ebd32355a9 Mon Sep 17 00:00:00 2001 From: Nathan Seebarran Date: Thu, 4 Oct 2018 20:40:44 -0400 Subject: [PATCH 059/288] Fix formatting of README in examples/accesssettings --- examples/accesssettings/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/accesssettings/README.md b/examples/accesssettings/README.md index 05d64211..f68dc86f 100644 --- a/examples/accesssettings/README.md +++ b/examples/accesssettings/README.md @@ -1,10 +1,10 @@ ![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png) - + - +This folder contains various examples on using the ACCESS_SETTINGS endpoint of SendGrid with Java: - + - +* [Retrieve a list of currently whitelisted IPs (GET /access_settings/whitelist)](GetAccessSettings.java) - +* [Retrieve a specific whitelisted IP (GET /access_settings/whitelist/{rule_id})](GetIPFromAccessSettings.java) - +* [Retrieve a list of currently whitelisted IPs (GET /access_settings/whitelist)](GetAccessSettingsActivity.java) - +* [Remove a specific IP from the whitelist (DELETE /access_settings/whitelist/{rule_id}](DeleteIPFromAccessSettings.java) - +* [Remove one or more IPs from the whitelist (DELETE /access_settings/whitelist)](DeleteAccessSettings.java) - +* [Add one or more IPs to the whitelist (POST /access_settings/whitelist)](CreateAccessSettings.java) \ No newline at end of file + +This folder contains various examples on using the ACCESS_SETTINGS endpoint of SendGrid with Java: + +* [Retrieve a list of currently whitelisted IPs (GET /access_settings/whitelist)](GetAccessSettings.java) +* [Retrieve a specific whitelisted IP (GET /access_settings/whitelist/{rule_id})](GetIPFromAccessSettings.java) +* [Retrieve a list of currently whitelisted IPs (GET /access_settings/whitelist)](GetAccessSettingsActivity.java) +* [Remove a specific IP from the whitelist (DELETE /access_settings/whitelist/{rule_id}](DeleteIPFromAccessSettings.java) +* [Remove one or more IPs from the whitelist (DELETE /access_settings/whitelist)](DeleteAccessSettings.java) +* [Add one or more IPs to the whitelist (POST /access_settings/whitelist)](CreateAccessSettings.java) From c23507d014dfa70b69486b286e3a6c5820ec5173 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Thu, 11 Oct 2018 16:07:15 -0700 Subject: [PATCH 060/288] Update Docker run path --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 943b2b50..66599a60 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,7 +16,7 @@ RUN chmod +x ./install.sh && \ WORKDIR /root/sources RUN git clone https://github.com/sendgrid/sendgrid-java.git WORKDIR /root -RUN ln -s /root/sources/sendgrid-java/sendgrid +RUN ln -s /root/sources/sendgrid-java COPY entrypoint.sh entrypoint.sh RUN chmod +x entrypoint.sh From 7591ceb445de396cf5b366605bf88859f5965d09 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Thu, 11 Oct 2018 16:28:14 -0700 Subject: [PATCH 061/288] Version Bump v4.3.0: Dynamic Template support --- CHANGELOG.md | 12 ++++++++++++ CONTRIBUTING.md | 16 +++++++++++----- README.md | 4 ++-- build.gradle | 2 +- pom.xml | 2 +- 5 files changed, 27 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8694111a..27e2adc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Change Log All notable changes to this project will be documented in this file. +## [4.3.0] - 2018-10-11 +### Added +- [PR #449](https://github.com/sendgrid/sendgrid-java/pull/449/files): Dynamic Templates support -- BIG thanks to [Marcus Vinícius](https://github.com/Markuus13) +- [PR #451](https://github.com/sendgrid/sendgrid-java/pull/451/files): Added CodeTriage tag -- BIG thanks to [Anshul Singhal](https://github.com/af4ro) +- [PR #453](https://github.com/sendgrid/sendgrid-java/pull/453/files): Documentation readability update -- BIG thanks to [Anshul Singhal](https://github.com/af4ro) +- [PR #461](https://github.com/sendgrid/sendgrid-java/pull/461/files): Update README to use implementation instead of compile -- BIG thanks to [Rosário Pereira Fernandes](https://github.com/rosariopfernandes) +- [PR #463](https://github.com/sendgrid/sendgrid-java/pull/463/files): Link to the online version of CLA in README.md -- BIG thanks to [Bharat Raghunathan](https://github.com/Bharat123rox) + +### Fix +- [PR #358](https://github.com/sendgrid/sendgrid-java/pull/358): Fixing similar code issue in examples/ips/ips.java -- BIG thanks to [Julian Jacques Maurer](https://github.com/derjayjay) +- [PR #475](https://github.com/sendgrid/sendgrid-java/pull/475): Fix formatting of README in examples/accesssettings -- BIG thanks to [Nathan Seebarran](https://github.com/nathan78906) + ## [4.2.1] - 2018-05-08 ### Security Fix - Update to latest Jackson recommended dependency, based on [this article](https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ff9c0222..91668795 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,13 +1,19 @@ Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies. -- [CLAs and CCLAs](#cla) -- [Roadmap & Milestones](#roadmap) +- [CLAs and CCLAs](#clas-and-cclas) - [Feature Request](#feature-request) - [Submit a Bug Report](#submit-a-bug-report) + - [Please use our Bug Report Template](#please-use-our-bug-report-template) - [Improvements to the Codebase](#improvements-to-the-codebase) -- [Understanding the Code Base](#understanding-the-codebase) + - [Development Environment](#development-environment) + - [Install and Run Locally](#install-and-run-locally) + - [Prerequisites](#prerequisites) + - [Initial setup:](#initial-setup) +- [Environment Variables](#environment-variables) + - [Execute:](#execute) +- [Understanding the Code Base](#understanding-the-code-base) - [Testing](#testing) -- [Style Guidelines & Naming Conventions](#style-guidelines-and-naming-conventions) +- [Style Guidelines & Naming Conventions](#style-guidelines--naming-conventions) - [Creating a Pull Request](#creating-a-pull-request) @@ -102,7 +108,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.2.1/sendgrid-4.2.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.2.1/sendgrid-4.2.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.3.0/sendgrid-4.3.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.3.0/sendgrid-4.3.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index 6a08285b..b4e1566f 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.2.1' + implementation 'com.sendgrid:sendgrid-java:4.3.0' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.2.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.3.0/sendgrid-java.jar) ## Dependencies diff --git a/build.gradle b/build.gradle index 5a8ba959..149f8a6b 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'maven' apply plugin: 'signing' group = 'com.sendgrid' -version = '4.2.1' +version = '4.3.0' ext.packaging = 'jar' allprojects { diff --git a/pom.xml b/pom.xml index e6f0541c..6a6619fa 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java SendGrid Java helper library - 4.2.1 + 4.3.0 This Java module allows you to quickly and easily send emails through SendGrid using Java. https://github.com/sendgrid/sendgrid-java From ba77a01526cc1d10ea719ed7a5f0561110e9bede Mon Sep 17 00:00:00 2001 From: Rohit-T Date: Thu, 11 Oct 2018 22:38:24 -0400 Subject: [PATCH 062/288] Add ability to impersonate subusers SendGrid API has a feature that allows a parent account to impersonate subusers by including an HTTP header "on-behalf-of" in the API request. This commit enables users to use impersonation. --- src/main/java/com/sendgrid/SendGrid.java | 28 +++++++++++++++++++ src/test/java/com/sendgrid/SendGridTest.java | 29 ++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 4bcdadc5..f1686516 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -41,6 +41,9 @@ public class SendGrid implements SendGridAPI { /** The number of milliseconds to sleep between retries. */ private int rateLimitSleep; + /** The subuser to be impersonated. */ + private String subuser; + /** * Construct a new SendGrid API wrapper. * @param apiKey is your SendGrid API Key: https://app.sendgrid.com/settings/api_keys @@ -193,6 +196,31 @@ public void setRateLimitSleep(int rateLimitSleep) { this.rateLimitSleep = rateLimitSleep; } + /** + * Impersonate subuser for subsequent requests + * @param subuser the subuser to be impersonated + */ + public void addImpersonateSubuser(String subuser) { + this.subuser = subuser; + this.addRequestHeader("on-behalf-of", subuser); + } + + /** + * Stop Impersonating the subuser + */ + public void removeImpersonateSubuser() { + this.subuser = null; + this.removeRequestHeader("on-behalf-of"); + } + + /** + * Get the impersonated subuser or null if empty + * @return the impersonated subuser + */ + public String getImpersonateSubuser() { + return this.subuser; + } + /** * Makes the call to the SendGrid API, override this method for testing. * @param request the request to make. diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 7a3e9b22..1873be71 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -3406,4 +3406,33 @@ public void test_whitelabel_links__link_id__subuser_post() throws IOException { Assert.assertEquals(200, response.getStatusCode()); } + @Test + public void test_add_impersonate_subuser() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + + sg.addImpersonateSubuser("subusername"); + Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), "subusername"); + } + + @Test + public void test_remove_impersonate_subuser() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + + sg.addImpersonateSubuser("subusername"); + Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), "subusername"); + + sg.removeImpersonateSubuser(); + Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), null); + } + + @Test + public void test_get_impersonate_subuser() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + + sg.addImpersonateSubuser("subusername"); + Assert.assertEquals(sg.getImpersonateSubuser(), "subusername"); + + sg.removeImpersonateSubuser(); + Assert.assertEquals(sg.getImpersonateSubuser(), null); + } } From 8a97abe696e845f781e849e7c23abe2fd99af23a Mon Sep 17 00:00:00 2001 From: Kyle Roberts Date: Fri, 12 Oct 2018 08:01:23 -0600 Subject: [PATCH 063/288] Update USE_CASES.md Removed some parts that would be confusing about new dynamic templates. --- USE_CASES.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/USE_CASES.md b/USE_CASES.md index 5816669e..204f74ce 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -8,9 +8,7 @@ This documentation provides examples for specific use cases. Please [open an iss * [How to View Email Statistics](#email-stats) -# (LEGACY) Transactional Templates - -IF YOU ARE USING OUR NEW TEMPLATES, PLEASE SEE [THIS ISSUE](https://github.com/sendgrid/sendgrid-java/issues/447). +# Transactional Templates For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. From 58ae93a52e5ae512caf0f49ec4da16ad49bb362a Mon Sep 17 00:00:00 2001 From: Kyle Roberts Date: Fri, 12 Oct 2018 15:26:46 -0600 Subject: [PATCH 064/288] Update USE_CASES.md Was missing the subject in the template and the dynamic data for the subject. --- USE_CASES.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/USE_CASES.md b/USE_CASES.md index 204f74ce..0ba2aeb1 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -17,7 +17,11 @@ Template ID (replace with your own): ```text d-2c214ac919e84170b21855cc129b4a5f ``` +Email Subject: +```text +{{subject}} +``` Template Body: ```html @@ -49,6 +53,7 @@ public class Example { mail.setTemplateId("d-2c214ac919e84170b21855cc129b4a5f"); Personalization personalization = new Personalization(); + personalization.addDynamicTemplateData("subject", "Testing Templates"); personalization.addDynamicTemplateData("name", "Example User"); personalization.addDynamicTemplateData("city", "Denver"); personalization.addTo(new Email("test@example.com")); @@ -89,7 +94,7 @@ public class Example { \"personalizations\": [{ \"to\": [{\"email\": \"test@example.com\"}], - \"dynamic_template_data\": {\"name\": \"Example User\", \"city\": \"Denver\"} + \"dynamic_template_data\": {\"subject\": \"Testing Templates\",\"name\": \"Example User\", \"city\": \"Denver\"} }], \"template_id\": \"d-2c214ac919e84170b21855cc129b4a5f\"}"); Response response = sg.api(request); From e160d8f9bd982dcc4c8695cdab484fc86858badd Mon Sep 17 00:00:00 2001 From: pushkyn Date: Sat, 13 Oct 2018 18:03:03 +0300 Subject: [PATCH 065/288] Update CONTRIBUTING - using gitflow workflow, development branch instead master --- .github/PULL_REQUEST_TEMPLATE | 2 +- CONTRIBUTING.md | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE index ba377ae7..bd65d2ff 100644 --- a/.github/PULL_REQUEST_TEMPLATE +++ b/.github/PULL_REQUEST_TEMPLATE @@ -12,7 +12,7 @@ Closes #2 ### Checklist - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) - [ ] I have read the [Contribution Guide] and my PR follows them. -- [ ] I updated my branch with the master branch. +- [ ] I updated my branch with the development branch. - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added necessary documentation about the functionality in the appropriate .md file - [ ] I have added in line documentation to the code I modified diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 91668795..230fab0b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies. +Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies. - [CLAs and CCLAs](#clas-and-cclas) - [Feature Request](#feature-request) @@ -64,6 +64,8 @@ In order to make the process easier, we've included a [sample bug report templat We welcome direct contributions to the sendgrid-java code base. Thank you! +Please note that we utilize the [Gitflow Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) for Git to help keep project development organized and consistent. + ### Development Environment ### #### Install and Run Locally #### @@ -193,7 +195,7 @@ Please run your code through: contain your feature, change, or fix: ```bash - git checkout -b + git checkout -b development ``` 4. Commit your changes in logical chunks. Please adhere to these [git commit @@ -206,10 +208,10 @@ Please run your code through: 4b. Create or update the example code that demonstrates the functionality of this change to the code. -5. Locally merge (or rebase) the upstream development branch into your topic branch: +5. Locally merge (or rebase) the upstream `development` branch into your topic branch: ```bash - git pull [--rebase] upstream master + git pull [--rebase] upstream development ``` 6. Push your topic branch up to your fork: @@ -219,6 +221,6 @@ Please run your code through: ``` 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) - with a clear title and description against the `master` branch. All tests must be passing before we will review the PR. + with a clear title and description against the `development` branch. All tests must be passing before we will review the PR. If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo. From 4b1d7a3933c64f749881e0ccded518e147bb549b Mon Sep 17 00:00:00 2001 From: Andrew Joshua Loria Date: Wed, 17 Oct 2018 14:30:31 -0700 Subject: [PATCH 066/288] Update TROUBLESHOOTING.md Fixed broken link. --- TROUBLESHOOTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index e510304b..cc899ebc 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -50,7 +50,7 @@ You can just drop the jar file in. It's a fat jar - it has all the dependencies ## Testing v3 /mail/send Calls Directly -[Here](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/curl_examples.html) are some cURL examples for common use cases. +[Here](https://sendgrid.com/docs/for-developers/sending-email/curl-examples/) are some cURL examples for common use cases. ## Versions @@ -108,4 +108,4 @@ You can do this right before you call `request.setBody(mail.build())` like so: ```java System.out.println(mail.build()); -``` \ No newline at end of file +``` From 0865590f1df2ecf604d0b0354ad67032cea92c4e Mon Sep 17 00:00:00 2001 From: Chandler Weiner Date: Thu, 25 Oct 2018 17:04:23 -0400 Subject: [PATCH 067/288] Fix link to LICENSE.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b4e1566f..ef4b904c 100644 --- a/README.md +++ b/README.md @@ -237,4 +237,4 @@ Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in cas sendgrid-java is maintained and funded by SendGrid, Inc. The names and logos for sendgrid-java are trademarks of SendGrid, Inc. # License -[The MIT License (MIT)](LICENSE.txt) +[The MIT License (MIT)](LICENSE.md) From 1e4e11d11cc93b76eae97331df330e3345f5b086 Mon Sep 17 00:00:00 2001 From: Chandler Weiner Date: Fri, 26 Oct 2018 11:41:43 -0400 Subject: [PATCH 068/288] Fix MIT LICENSE Badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef4b904c..c6b4ba10 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-java.svg)](https://github.com/sendgrid/sendgrid-java/graphs/contributors) [![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-java/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-java) -[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt) +[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.md) **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. From bf0e731bfa5c1858077dc30071d8a2eb1843abba Mon Sep 17 00:00:00 2001 From: Rishabh Chaudhary Date: Tue, 30 Oct 2018 00:42:07 +0530 Subject: [PATCH 069/288] Updating the prerequisites --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b4e1566f..938d48a9 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) +- The SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 40,000 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables From 3eb85a4a92516f454184f085c9069697fbe3f995 Mon Sep 17 00:00:00 2001 From: chandler Date: Wed, 31 Oct 2018 15:48:58 -0400 Subject: [PATCH 070/288] Remove references to 'whitelabel' Signed-off-by: chandler --- USAGE.md | 1971 ++++++++--------- USE_CASES.md | 10 +- .../domains.java | 24 +- .../ips.java | 10 +- .../links.java | 20 +- 5 files changed, 1017 insertions(+), 1018 deletions(-) rename examples/{whitelabel => senderauthentication}/domains.java (94%) rename examples/{whitelabel => senderauthentication}/ips.java (95%) rename examples/{whitelabel => senderauthentication}/links.java (95%) diff --git a/USAGE.md b/USAGE.md index cf25b2c6..f31ea17d 100644 --- a/USAGE.md +++ b/USAGE.md @@ -40,13 +40,13 @@ public class Example { * [PARTNER SETTINGS](#partner-settings) * [SCOPES](#scopes) * [SENDERS](#senders) +* [SENDER AUTHENTICATION](#sender-authentication) * [STATS](#stats) * [SUBUSERS](#subusers) * [SUPPRESSION](#suppression) * [TEMPLATES](#templates) * [TRACKING SETTINGS](#tracking-settings) * [USER](#user) -* [WHITELABEL](#whitelabel) @@ -2258,7 +2258,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act **This endpoint allows you to retrieve a list of all assigned and unassigned IPs.** -Response includes warm up status, pools, assigned subusers, and whitelabel info. The start_date field corresponds to when warmup started for that IP. +Response includes warm up status, pools, assigned subusers, and authorization info. The start_date field corresponds to when warmup started for that IP. A single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it. @@ -3349,7 +3349,7 @@ API Keys can be used to authenticate the use of [SendGrids v3 Web API](https://s *You may create up to 100 unique sender identities.* -Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. ### POST /senders @@ -3373,7 +3373,7 @@ Sender Identities are required to be verified before use. If your domain has bee **This endpoint allows you to retrieve a list of all sender identities that have been created for your account.** -Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. ### GET /senders @@ -3396,7 +3396,7 @@ Sender Identities are required to be verified before use. If your domain has bee **This endpoint allows you to update a sender identity.** -Updates to `from.email` require re-verification. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Updates to `from.email` require re-verification. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. Partial updates are allowed, but fields that are marked as "required" in the POST (create) endpoint must not be nil if that field is included in the PATCH request. @@ -3422,7 +3422,7 @@ Partial updates are allowed, but fields that are marked as "required" in the POS **This endpoint allows you to retrieve a specific sender identity.** -Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. ### GET /senders/{sender_id} @@ -3445,7 +3445,7 @@ Sender Identities are required to be verified before use. If your domain has bee **This endpoint allows you to delete one of your sender identities.** -Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. ### DELETE /senders/{sender_id} @@ -3468,7 +3468,7 @@ Sender Identities are required to be verified before use. If your domain has bee **This endpoint allows you to resend a sender identity verification email.** -Sender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. ### POST /senders/{sender_id}/resend_verification @@ -3487,29 +3487,31 @@ Sender Identities are required to be verified before use. If your domain has bee throw ex; } ``` - -# STATS + +# SENDER AUTHENTICATION -## Retrieve global email statistics +## Create an authenticated domain. -**This endpoint allows you to retrieve all of your global email statistics between a given date range.** +**This endpoint allows you to create a domain authentication for one of your domains.** -Parent accounts will see aggregated stats for their account and all subuser accounts. Subuser accounts will only see their own stats. +If you are creating a domain authentication that you would like a subuser to use, you have two options: +1. Use the "username" parameter. This allows you to create am authenticated subuser. This means the subuser is able to see and modify the created authentication. +2. Use the Association workflow (see Associate Domain section). This allows you to assign a domain authentication created by the parent to a subuser. This means the subuser will default to the assigned domain authentication, but will not be able to see or modify that authentication. However, if the subuser creates their own domain authentication it will overwrite the assigned domain authentication. -### GET /stats +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. + +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) + +### POST /whitelabel/domains ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("stats"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("offset", "1"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains"); + request.setBody("{\"automatic)_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3518,28 +3520,28 @@ Parent accounts will see aggregated stats for their account and all subuser acco throw ex; } ``` - -# SUBUSERS - -## Create Subuser +## List all domain authentications. -This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API. +**This endpoint allows you to retrieve a list of all domain authentications you have created.** -For more information about Subusers: +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) -* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -### POST /subusers +### GET /whitelabel/domains ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("subusers"); - request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\)":\"John@example.com\"}"; + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/domains"); + request.addQueryParam("username", "test_string"); + request.addQueryParam("domain", "test_string"); + request.addQueryParam("exclude_subusers", "true"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3548,16 +3550,20 @@ For more information about Subusers: throw ex; } ``` -## List all Subusers +## Get the default domain authentication. -This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API. +**This endpoint allows you to retrieve the default authentication for a domain.** -For more information about Subusers: +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) -* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -### GET /subusers +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| domain | string |The domain to find a default domain whitelabel for. | + +### GET /whitelabel/domains/default ```java @@ -3565,10 +3571,7 @@ For more information about Subusers: SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("subusers"); - request.addQueryParam("username", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); + request.setEndpoint("whitelabel/domains/default"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3577,13 +3580,22 @@ For more information about Subusers: throw ex; } ``` -## Retrieve Subuser Reputations +## List the domain authentication associated with the given user. -Subuser sender reputations give a good idea how well a sender is doing with regards to how recipients and recipient servers react to the mail that is being received. When a bounce, spam report, or other negative action happens on a sent email, it will effect your sender rating. +**This endpoint allows you to retrieve all of the domain authentications that have been assigned to a specific subuser.** -This endpoint allows you to request the reputations for your subusers. +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -### GET /subusers/reputations +Domain authentications can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's authenticated domains. To associate a domain authentication with a subuser, the parent account must first create the domain authentication and validate it. The parent may then associate the domain authentication via the subuser management tools. + +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) + +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| username | string | Username of the subuser to find associated whitelabels for. | + +### GET /whitelabel/domains/subuser ```java @@ -3591,8 +3603,7 @@ This endpoint allows you to request the reputations for your subusers. SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("subusers/reputations"); - request.addQueryParam("usernames", "test_string"); + request.setEndpoint("whitelabel/domains/subuser"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3601,31 +3612,30 @@ This endpoint allows you to request the reputations for your subusers. throw ex; } ``` -## Retrieve email statistics for your subusers. +## Disassociate a domain authentication from a given user. -**This endpoint allows you to retrieve the email statistics for the given subusers.** +**This endpoint allows you to disassociate a specific domain authentication from a subuser.** -You may retrieve statistics for up to 10 different subusers by including an additional _subusers_ parameter for each additional subuser. +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. +Domain authentications can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's authenticated domains. To associate a domain authentication with a subuser, the parent account must first create the domain authentication and validate it. The parent may then associate the domain authentication via the subuser management tools. -For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -### GET /subusers/stats +## URI Parameters +| URI Parameter | Type | Required? | Description | +|---|---|---|---| +| username | string | required | Username for the subuser to find associated whitelabels for. | + +### DELETE /whitelabel/domains/subuser ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/stats"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("subusers", "test_string"); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/domains/subuser"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3634,32 +3644,24 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ throw ex; } ``` -## Retrieve monthly stats for all subusers - -**This endpoint allows you to retrieve the monthly email statistics for all subusers over the given date range.** +## Update a domain authentication. -While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats for your subusers. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. +**This endpoint allows you to update the settings for a domain authentication.** -When using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics: -`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`. +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -### GET /subusers/stats/monthly +### PATCH /whitelabel/domains/{domain_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/stats/monthly"); - request.addQueryParam("subuser", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); - request.addQueryParam("date", "test_string"); - request.addQueryParam("sort_by_direction", "asc"); + request.setMethod(Method.PATCH); + request.setEndpoint("whitelabel/domains/{domain_id}"); + request.setBody("{\"default\":false,\"custom_spf\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3668,16 +3670,16 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ throw ex; } ``` -## Retrieve the totals for each email statistic metric for all subusers. +## Retrieve a domain authentication. -**This endpoint allows you to retrieve the total sums of each email statistic metric for all subusers over the given date range.** +**This endpoint allows you to retrieve a specific domain authentication.** +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). -### GET /subusers/stats/sums +### GET /whitelabel/domains/{domain_id} ```java @@ -3685,14 +3687,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("subusers/stats/sums"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("sort_by_direction", "asc"); + request.setEndpoint("whitelabel/domains/{domain_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3701,25 +3696,23 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ throw ex; } ``` -## Enable/disable a subuser +## Delete a domain authentication. -This endpoint allows you to enable or disable a subuser. +**This endpoint allows you to delete a domain authentication.** -For more information about Subusers: +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) -* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -### PATCH /subusers/{subuser_name} +### DELETE /whitelabel/domains/{domain_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("subusers/{subuser_name}"); - request.setBody("{\"disabled\":false}"); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/domains/{domain_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3728,24 +3721,31 @@ For more information about Subusers: throw ex; } ``` -## Delete a subuser +## Associate a domain authentication with a given user. -This endpoint allows you to delete a subuser. This is a permanent action, once deleted a subuser cannot be retrieved. +**This endpoint allows you to associate a specific domain authentication with a subuser.** -For more information about Subusers: +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) -* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) +Domain authentications can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's authenticated domains. To associate a domain authentication with a subuser, the parent account must first create the domain authentication and validate it. The parent may then associate the domain authentication via the subuser management tools. -### DELETE /subusers/{subuser_name} +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) + +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| domain_id | integer | ID of the domain whitelabel to associate with the subuser. | + +### POST /whitelabel/domains/{domain_id}/subuser ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("subusers/{subuser_name}"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains/{domain_id}/subuser"); + request.setBody("{\"username\":\"jane@example.com\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3754,25 +3754,29 @@ For more information about Subusers: throw ex; } ``` -## Update IPs assigned to a subuser +## Add an IP to a domain authentication. -Each subuser should be assigned to an IP address, from which all of this subuser's mail will be sent. Often, this is the same IP as the parent account, but each subuser can have their own, or multiple, IP addresses as well. +**This endpoint allows you to add an IP address to a domain authentication.** -More information: +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -* [How to request more IPs](https://sendgrid.com/docs/Classroom/Basics/Account/adding_an_additional_dedicated_ip_to_your_account.html) -* [IPs can be whitelabeled](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/ips.html) +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) -### PUT /subusers/{subuser_name}/ips +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| id | integer | ID of the domain to which you are adding an IP | + +### POST /whitelabel/domains/{id}/ips ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("subusers/{subuser_name}/ips"); - request.setBody("[\"127.0.0.1\"]"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/domains/{id}/ips"); + request.setBody("{\"ip\":\"192.168.0.1\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3781,20 +3785,29 @@ More information: throw ex; } ``` -## Update Monitor Settings for a subuser +## Remove an IP from a domain authenticaiton. -Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. +**This endpoint allows you to remove a domain's IP address from that domain's authentication.** -### PUT /subusers/{subuser_name}/monitor +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. + +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) + +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| id | integer | ID of the domain whitelabel to delete the IP from. | +| ip | string | IP to remove from the domain whitelabel. | + +### DELETE /whitelabel/domains/{id}/ips/{ip} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("subusers/{subuser_name}/monitor"); - request.setBody("{\"frequency\":500,\"email\":\"example@example.com\"}"); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/domains/{id}/ips/{ip}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3803,11 +3816,20 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by throw ex; } ``` -## Create monitor settings +## Validate a domain authentication. -Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. +**This endpoint allows you to validate a domain authentication. If it fails, it will return an error message describing why the domain could not be validated.** -### POST /subusers/{subuser_name}/monitor +A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. + +For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) + +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| id | integer |ID of the domain whitelabel to validate. | + +### POST /whitelabel/domains/{id}/validate ```java @@ -3815,8 +3837,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.POST); - request.setEndpoint("subusers/{subuser_name}/monitor"); - request.setBody("{\"frequency\":50000,\"email\":\"example@example.com\"}"); + request.setEndpoint("whitelabel/domains/{id}/validate"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3825,19 +3846,26 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by throw ex; } ``` -## Retrieve monitor settings for a subuser +## Create reverse DNS -Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. +**This endpoint allows you to create a reverse DNS record.** -### GET /subusers/{subuser_name}/monitor +When creating a reverse DNS record, you should use the same subdomain that you used when you created a domain authentication. + +Reverse DNS consists of a subdomain and domain that will be used to generate a record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. + +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/). + +### POST /whitelabel/ips ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("subusers/{subuser_name}/monitor"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/ips"); + request.setBody("{\"ip\":\"192.168.1.1\",\"domain\":\"example.com\",\"subdomain\":\"email\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3846,19 +3874,28 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by throw ex; } ``` -## Delete monitor settings +## Retrieve all reverse DNS records -Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. +**This endpoint allows you to retrieve all of the reverse DNS records that have been created by this account.** -### DELETE /subusers/{subuser_name}/monitor +You may include a search key by using the "ip" parameter. This enables you to perform a prefix search for a given IP segment (e.g. "192."). + +Reverse DNS consists of a subdomain and domain that will be used to generate a record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. + +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/). + +### GET /whitelabel/ips ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("subusers/{subuser_name}/monitor"); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/ips"); + request.addQueryParam("ip", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3867,18 +3904,15 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by throw ex; } ``` -## Retrieve the monthly email statistics for a single subuser - -**This endpoint allows you to retrieve the monthly email statistics for a specific subuser.** +## Retrieve an reverse DNS record -While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats for your subusers. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. +**This endpoint allows you to retrieve a reverse DNS record.** -When using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics: -`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`. +Reverse DNS consists of a subdomain and domain that will be used to generate a record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. -For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/). -### GET /subusers/{subuser_name}/stats/monthly +### GET /whitelabel/ips/{id} ```java @@ -3886,12 +3920,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("subusers/{subuser_name}/stats/monthly"); - request.addQueryParam("date", "test_string"); - request.addQueryParam("sort_by_direction", "asc"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); + request.setEndpoint("whitelabel/ips/{id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3900,30 +3929,23 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ throw ex; } ``` - -# SUPPRESSION +## Delete an reverse DNS record -## Retrieve all blocks +**This endpoint allows you to delete a reverse DNS record.** -**This endpoint allows you to retrieve a list of all email addresses that are currently on your blocks list.** +Reverse DNS consists of a subdomain and domain that will be used to generate a record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. -[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/). -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). - -### GET /suppression/blocks +### DELETE /whitelabel/ips/{id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/blocks"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); - request.addQueryParam("offset", "1"); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/ips/{id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3932,29 +3954,23 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Delete blocks - -**This endpoint allows you to delete all email addresses on your blocks list.** - -There are two options for deleting blocked emails: +## Validate a reverse DNS record -1. You can delete all blocked emails by setting `delete_all` to true in the request body. -2. You can delete some blocked emails by specifying the email addresses in an array in the request body. +**This endpoint allows you to validate a reverse DNS record.** -[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. +Reverse DNS consists of a subdomain and domain that will be used to generate a record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/). -### DELETE /suppression/blocks +### POST /whitelabel/ips/{id}/validate ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/blocks"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/ips/{id}/validate"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3963,23 +3979,26 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Retrieve a specific block +## Create a Branded Link -**This endpoint allows you to retrieve a specific email address from your blocks list.** +**This endpoint allows you to create a new link branding.** -[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### GET /suppression/blocks/{email} +### POST /whitelabel/links ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/blocks/{email}"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/links"); + request.setBody("{\"default\":true,\"domain\":\"example.com\",\"subdomain\":\"mail\"}"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3988,23 +4007,24 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Delete a specific block +## Retrieve all link brandings -**This endpoint allows you to delete a specific email address from your blocks list.** +**This endpoint allows you to retrieve all link brandings.** -[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### DELETE /suppression/blocks/{email} +### GET /whitelabel/links ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/blocks/{email}"); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/links"); + request.addQueryParam("limit", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4013,18 +4033,22 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Retrieve all bounces +## Retrieve a Default Link Branding -**This endpoint allows you to retrieve all of your bounces.** +**This endpoint allows you to retrieve the default link branding.** -Bounces are messages that are returned to the server that sent it. +Default link branding is the actual link branding to be used when sending messages. If there are multiple link brandings, the default is determined by the following order: +
    +
  • Validated link branding marked as "default"
  • +
  • Legacy link brands (migrated from the whitelabel wizard)
  • +
  • Default SendGrid link whitelabel (i.e. 100.ct.sendgrid.net)
  • +
-For more information see: +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information -* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### GET /suppression/bounces +### GET /whitelabel/links/default ```java @@ -4032,9 +4056,8 @@ For more information see: SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("suppression/bounces"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("end_time", "1"); + request.setEndpoint("whitelabel/links/default"); + request.addQueryParam("domain", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4043,30 +4066,28 @@ For more information see: throw ex; } ``` -## Delete bounces +## Retrieve Associated Link Branding -**This endpoint allows you to delete all of your bounces. You can also use this endpoint to remove a specific email address from your bounce list.** - -Bounces are messages that are returned to the server that sent it. +**This endpoint allows you to retrieve the associated link branding for a subuser.** -For more information see: +Link branding can be associated with subusers from the parent account. This functionality allows +subusers to send mail using their parent's link brands. To associate a link branding, the parent account +must first create a branded link and validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page in the user interface. -* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information -* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) -* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html) +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -Note: the `delete_all` and `emails` parameters should be used independently of each other as they have different purposes. +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### DELETE /suppression/bounces +### GET /whitelabel/links/subuser ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/bounces"); - request.setBody("{\"emails\":[\"example@example.com\",\"example2@example.com\"],\"delete_all\":true}"); + request.setMethod(Method.GET); + request.setEndpoint("whitelabel/links/subuser"); + request.addQueryParam("username", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4075,27 +4096,28 @@ Note: the `delete_all` and `emails` parameters should be used independently of e throw ex; } ``` -## Retrieve a Bounce +## Disassociate a Link Branding -**This endpoint allows you to retrieve a specific bounce for a given email address.** +**This endpoint allows you to disassociate a link branding from a subuser.** -Bounces are messages that are returned to the server that sent it. +Link branding can be associated with subusers from the parent account. This functionality allows +subusers to send mail using their parent's link brands. To associate a link branding, the parent account +must first create a branded link and validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page in the user interface. -For more information see: +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information -* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) -* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### GET /suppression/bounces/{email} +### DELETE /whitelabel/links/subuser ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/bounces/{email}"); + request.setMethod(Method.DELETE); + request.setEndpoint("whitelabel/links/subuser"); + request.addQueryParam("username", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4104,28 +4126,24 @@ For more information see: throw ex; } ``` -## Delete a bounce - -**This endpoint allows you to remove an email address from your bounce list.** +## Update a Link Branding -Bounces are messages that are returned to the server that sent it. This endpoint allows you to delete a single email addresses from your bounce list. +**This endpoint allows you to update a specific link branding. You can use this endpoint to change a branded link's default status.** -For more information see: +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information -* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) -* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### DELETE /suppression/bounces/{email} +### PATCH /whitelabel/links/{id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/bounces/{email}"); - request.addQueryParam("email_address", "example@example.com"); + request.setMethod(Method.PATCH); + request.setEndpoint("whitelabel/links/{id}"); + request.setBody("{\"default\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4134,17 +4152,15 @@ For more information see: throw ex; } ``` -## Retrieve all invalid emails - -**This endpoint allows you to retrieve a list of all invalid email addresses.** +## Retrieve a Link Branding -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +**This endpoint allows you to retrieve a specific link branding.** -Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### GET /suppression/invalid_emails +### GET /whitelabel/links/{id} ```java @@ -4152,11 +4168,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("suppression/invalid_emails"); - request.addQueryParam("start_time", "1"); - request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); - request.addQueryParam("offset", "1"); + request.setEndpoint("whitelabel/links/{id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4165,22 +4177,15 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Delete invalid emails - -**This endpoint allows you to remove email addresses from your invalid email address list.** - -There are two options for deleting invalid email addresses: - -1) You can delete all invalid email addresses by setting `delete_all` to true in the request body. -2) You can delete some invalid email addresses by specifying certain addresses in an array in the request body. +## Delete a Link Branding -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +**This endpoint allows you to delete a link branding.** -Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### DELETE /suppression/invalid_emails +### DELETE /whitelabel/links/{id} ```java @@ -4188,8 +4193,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.DELETE); - request.setEndpoint("suppression/invalid_emails"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + request.setEndpoint("whitelabel/links/{id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4198,25 +4202,23 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Retrieve a specific invalid email - -**This endpoint allows you to retrieve a specific invalid email addresses.** +## Validate a Link Branding -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +**This endpoint allows you to validate a link branding.** -Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### GET /suppression/invalid_emails/{email} +### POST /whitelabel/links/{id}/validate ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("suppression/invalid_emails/{email}"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/links/{id}/validate"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4225,25 +4227,28 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Delete a specific invalid email +## Associate a Link Branding -**This endpoint allows you to remove a specific email address from the invalid email address list.** +**This endpoint allows you to associate a link whitelabel with a subuser account.** -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +Link branding can be associated with subusers from the parent account. This functionality allows +subusers to send mail using their parent's link brands. To associate a link branding, the parent account +must first create a branded link and validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page in the user interface. -Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. +Email link branding allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/). -### DELETE /suppression/invalid_emails/{email} +### POST /whitelabel/links/{link_id}/subuser ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/invalid_emails/{email}"); + request.setMethod(Method.POST); + request.setEndpoint("whitelabel/links/{link_id}/subuser"); + request.setBody("{\"username\":\"jane@example.com\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4252,15 +4257,17 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Retrieve a specific spam report + + +# STATS -**This endpoint allows you to retrieve a specific spam report.** +## Retrieve global email statistics -[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. +**This endpoint allows you to retrieve all of your global email statistics between a given date range.** -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). +Parent accounts will see aggregated stats for their account and all subuser accounts. Subuser accounts will only see their own stats. -### GET /suppression/spam_report/{email} +### GET /stats ```java @@ -4268,7 +4275,12 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("suppression/spam_report/{email}"); + request.setEndpoint("stats"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4277,23 +4289,28 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Delete a specific spam report + +# SUBUSERS -**This endpoint allows you to delete a specific spam report.** +## Create Subuser -[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. +This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). +For more information about Subusers: -### DELETE /suppression/spam_report/{email} +* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) +* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) + +### POST /subusers ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/spam_report/{email}"); + request.setMethod(Method.POST); + request.setEndpoint("subusers"); + request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\)":\"John@example.com\"}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4302,15 +4319,16 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Retrieve all spam reports +## List all Subusers -**This endpoint allows you to retrieve all spam reports.** +This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API. -[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. +For more information about Subusers: -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). +* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) +* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) -### GET /suppression/spam_reports +### GET /subusers ```java @@ -4318,10 +4336,9 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("suppression/spam_reports"); - request.addQueryParam("start_time", "1"); + request.setEndpoint("subusers"); + request.addQueryParam("username", "test_string"); request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); @@ -4331,29 +4348,22 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Delete spam reports - -**This endpoint allows you to delete your spam reports.** - -There are two options for deleting spam reports: - -1) You can delete all spam reports by setting "delete_all" to true in the request body. -2) You can delete some spam reports by specifying the email addresses in an array in the request body. +## Retrieve Subuser Reputations -[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. +Subuser sender reputations give a good idea how well a sender is doing with regards to how recipients and recipient servers react to the mail that is being received. When a bounce, spam report, or other negative action happens on a sent email, it will effect your sender rating. -For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). +This endpoint allows you to request the reputations for your subusers. -### DELETE /suppression/spam_reports +### GET /subusers/reputations ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("suppression/spam_reports"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + request.setMethod(Method.GET); + request.setEndpoint("subusers/reputations"); + request.addQueryParam("usernames", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4362,13 +4372,17 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User throw ex; } ``` -## Retrieve all global suppressions +## Retrieve email statistics for your subusers. -**This endpoint allows you to retrieve a list of all email address that are globally suppressed.** +**This endpoint allows you to retrieve the email statistics for the given subusers.** -A global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html). +You may retrieve statistics for up to 10 different subusers by including an additional _subusers_ parameter for each additional subuser. -### GET /suppression/unsubscribes +While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. + +For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). + +### GET /subusers/stats ```java @@ -4376,11 +4390,13 @@ A global suppression (or global unsubscribe) is an email address of a recipient SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("suppression/unsubscribes"); - request.addQueryParam("start_time", "1"); + request.setEndpoint("subusers/stats"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("aggregated_by", "day"); request.addQueryParam("limit", "1"); - request.addQueryParam("end_time", "1"); request.addQueryParam("offset", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("subusers", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4389,27 +4405,32 @@ A global suppression (or global unsubscribe) is an email address of a recipient throw ex; } ``` - -# TEMPLATES +## Retrieve monthly stats for all subusers -## Create a transactional template. +**This endpoint allows you to retrieve the monthly email statistics for all subusers over the given date range.** -**This endpoint allows you to create a transactional template.** +While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats for your subusers. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. -Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. +When using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics: +`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`. -Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). -### POST /templates +### GET /subusers/stats/monthly ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("templates"); - request.setBody("{\"name\":\"example_name\"}"); + request.setMethod(Method.GET); + request.setEndpoint("subusers/stats/monthly"); + request.addQueryParam("subuser", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); + request.addQueryParam("date", "test_string"); + request.addQueryParam("sort_by_direction", "asc"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4418,15 +4439,16 @@ Transactional templates are templates created specifically for transactional ema throw ex; } ``` -## Retrieve all transactional templates. +## Retrieve the totals for each email statistic metric for all subusers. -**This endpoint allows you to retrieve all transactional templates.** +**This endpoint allows you to retrieve the total sums of each email statistic metric for all subusers over the given date range.** -Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. -Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. -### GET /templates +For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). + +### GET /subusers/stats/sums ```java @@ -4434,7 +4456,14 @@ Transactional templates are templates created specifically for transactional ema SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("templates"); + request.setEndpoint("subusers/stats/sums"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("sort_by_direction", "asc"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4443,16 +4472,16 @@ Transactional templates are templates created specifically for transactional ema throw ex; } ``` -## Edit a transactional template. - -**This endpoint allows you to edit a transactional template.** +## Enable/disable a subuser -Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. +This endpoint allows you to enable or disable a subuser. -Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +For more information about Subusers: +* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) +* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) -### PATCH /templates/{template_id} +### PATCH /subusers/{subuser_name} ```java @@ -4460,8 +4489,8 @@ Transactional templates are templates created specifically for transactional ema SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.PATCH); - request.setEndpoint("templates/{template_id}"); - request.setBody("{\"name\":\"new_example_name\"}"); + request.setEndpoint("subusers/{subuser_name}"); + request.setBody("{\"disabled\":false}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4470,24 +4499,24 @@ Transactional templates are templates created specifically for transactional ema throw ex; } ``` -## Retrieve a single transactional template. - -**This endpoint allows you to retrieve a single transactional template.** +## Delete a subuser -Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. +This endpoint allows you to delete a subuser. This is a permanent action, once deleted a subuser cannot be retrieved. -Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +For more information about Subusers: +* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html) +* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html) -### GET /templates/{template_id} +### DELETE /subusers/{subuser_name} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("templates/{template_id}"); + request.setMethod(Method.DELETE); + request.setEndpoint("subusers/{subuser_name}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4496,24 +4525,25 @@ Transactional templates are templates created specifically for transactional ema throw ex; } ``` -## Delete a template. - -**This endpoint allows you to delete a transactional template.** +## Update IPs assigned to a subuser -Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. +Each subuser should be assigned to an IP address, from which all of this subuser's mail will be sent. Often, this is the same IP as the parent account, but each subuser can have their own, or multiple, IP addresses as well. -Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +More information: +* [How to request more IPs](https://sendgrid.com/docs/Classroom/Basics/Account/adding_an_additional_dedicated_ip_to_your_account.html) +* [IPs can be whitelabeled](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/ips.html) -### DELETE /templates/{template_id} +### PUT /subusers/{subuser_name}/ips ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("templates/{template_id}"); + request.setMethod(Method.PUT); + request.setEndpoint("subusers/{subuser_name}/ips"); + request.setBody("[\"127.0.0.1\"]"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4522,25 +4552,20 @@ Transactional templates are templates created specifically for transactional ema throw ex; } ``` -## Create a new transactional template version. - -**This endpoint allows you to create a new version of a template.** - -Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. - -For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +## Update Monitor Settings for a subuser +Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. -### POST /templates/{template_id}/versions +### PUT /subusers/{subuser_name}/monitor ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("templates/{template_id}/versions"); - request.setBody("{\"name\":\"example_version_name\",\"html_content\":\"<%body%>\",\"plain_content\":\")<%body%>\",\"active\":1,\"template_id\":\"ddb96bbc-9b92-425e-8979-99464621b543\",\"subject\":\"<%subject%>\"}"; + request.setMethod(Method.PUT); + request.setEndpoint("subusers/{subuser_name}/monitor"); + request.setBody("{\"frequency\":500,\"email\":\"example@example.com\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4549,30 +4574,20 @@ For more information about transactional templates, please see our [User Guide]( throw ex; } ``` -## Edit a transactional template version. - -**This endpoint allows you to edit a version of one of your transactional templates.** - -Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. - -For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +## Create monitor settings -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| template_id | string | The ID of the original template | -| version_id | string | The ID of the template version | +Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. -### PATCH /templates/{template_id}/versions/{version_id} +### POST /subusers/{subuser_name}/monitor ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("templates/{template_id}/versions/{version_id}"); - request.setBody("{\"active\":1,\"html_content\":\"<%body%>\",\"subject\":\"<%subject%>\",\"name\":\"updated_example)_name\",\"plain_content\":\"<%body%>\"}"; + request.setMethod(Method.POST); + request.setEndpoint("subusers/{subuser_name}/monitor"); + request.setBody("{\"frequency\":50000,\"email\":\"example@example.com\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4581,21 +4596,11 @@ For more information about transactional templates, please see our [User Guide]( throw ex; } ``` -## Retrieve a specific transactional template version. - -**This endpoint allows you to retrieve a specific version of a template.** - -Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. - -For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +## Retrieve monitor settings for a subuser -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| template_id | string | The ID of the original template | -| version_id | string | The ID of the template version | +Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. -### GET /templates/{template_id}/versions/{version_id} +### GET /subusers/{subuser_name}/monitor ```java @@ -4603,7 +4608,7 @@ For more information about transactional templates, please see our [User Guide]( SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("templates/{template_id}/versions/{version_id}"); + request.setEndpoint("subusers/{subuser_name}/monitor"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4612,21 +4617,11 @@ For more information about transactional templates, please see our [User Guide]( throw ex; } ``` -## Delete a transactional template version. - -**This endpoint allows you to delete one of your transactional template versions.** - -Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. - -For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +## Delete monitor settings -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| template_id | string | The ID of the original template | -| version_id | string | The ID of the template version | +Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. -### DELETE /templates/{template_id}/versions/{version_id} +### DELETE /subusers/{subuser_name}/monitor ```java @@ -4634,7 +4629,7 @@ For more information about transactional templates, please see our [User Guide]( SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.DELETE); - request.setEndpoint("templates/{template_id}/versions/{version_id}"); + request.setEndpoint("subusers/{subuser_name}/monitor"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4643,30 +4638,31 @@ For more information about transactional templates, please see our [User Guide]( throw ex; } ``` -## Activate a transactional template version. - -**This endpoint allows you to activate a version of one of your templates.** +## Retrieve the monthly email statistics for a single subuser -Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates. +**This endpoint allows you to retrieve the monthly email statistics for a specific subuser.** +While you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats for your subusers. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings. -For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). +When using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics: +`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`. -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| template_id | string | The ID of the original template | -| version_id | string | The ID of the template version | +For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html). -### POST /templates/{template_id}/versions/{version_id}/activate +### GET /subusers/{subuser_name}/stats/monthly ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("templates/{template_id}/versions/{version_id}/activate"); + request.setMethod(Method.GET); + request.setEndpoint("subusers/{subuser_name}/stats/monthly"); + request.addQueryParam("date", "test_string"); + request.addQueryParam("sort_by_direction", "asc"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4675,18 +4671,18 @@ For more information about transactional templates, please see our [User Guide]( throw ex; } ``` - -# TRACKING SETTINGS + +# SUPPRESSION -## Retrieve Tracking Settings +## Retrieve all blocks -**This endpoint allows you to retrieve a list of all tracking settings that you can enable on your account.** +**This endpoint allows you to retrieve a list of all email addresses that are currently on your blocks list.** -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). -### GET /tracking_settings +### GET /suppression/blocks ```java @@ -4694,8 +4690,10 @@ For more information about tracking, please see our [User Guide](https://sendgri SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("tracking_settings"); - request.addQueryParam("limit", "1"); + request.setEndpoint("suppression/blocks"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); @@ -4705,24 +4703,29 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Update Click Tracking Settings +## Delete blocks -**This endpoint allows you to change your current click tracking setting. You can enable, or disable, click tracking using this endpoint.** +**This endpoint allows you to delete all email addresses on your blocks list.** -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +There are two options for deleting blocked emails: -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +1. You can delete all blocked emails by setting `delete_all` to true in the request body. +2. You can delete some blocked emails by specifying the email addresses in an array in the request body. -### PATCH /tracking_settings/click +[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. + +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). + +### DELETE /suppression/blocks ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("tracking_settings/click"); - request.setBody("{\"enabled\":true}"); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/blocks"); + request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4731,15 +4734,15 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Retrieve Click Track Settings +## Retrieve a specific block -**This endpoint allows you to retrieve your current click tracking setting.** +**This endpoint allows you to retrieve a specific email address from your blocks list.** -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). -### GET /tracking_settings/click +### GET /suppression/blocks/{email} ```java @@ -4747,7 +4750,7 @@ For more information about tracking, please see our [User Guide](https://sendgri SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("tracking_settings/click"); + request.setEndpoint("suppression/blocks/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4756,28 +4759,23 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Update Google Analytics Settings - -**This endpoint allows you to update your current setting for Google Analytics.** - -For more information about using Google Analytics, please refer to [Googles URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on ["Best Practices for Campaign Building"](https://support.google.com/analytics/answer/1037445). +## Delete a specific block -We default the settings to Googles recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/google_analytics_demystified_ga_statistics_vs_sg_statistics.html). +**This endpoint allows you to delete a specific email address from your blocks list.** -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server. -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html). -### PATCH /tracking_settings/google_analytics +### DELETE /suppression/blocks/{email} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("tracking_settings/google_analytics"); - request.setBody("{\"utm_campaign\":\"website\",\"utm_term\":\"\",\"utm_content\":\"\",\"enabled\":true,\"utm)_source\":\"sendgrid.com\",\"utm_medium\":\"email\"}"; + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/blocks/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4786,19 +4784,18 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Retrieve Google Analytics Settings - -**This endpoint allows you to retrieve your current setting for Google Analytics.** +## Retrieve all bounces -For more information about using Google Analytics, please refer to [Googles URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on ["Best Practices for Campaign Building"](https://support.google.com/analytics/answer/1037445). +**This endpoint allows you to retrieve all of your bounces.** -We default the settings to Googles recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/google_analytics_demystified_ga_statistics_vs_sg_statistics.html). +Bounces are messages that are returned to the server that sent it. -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +For more information see: -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information +* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) -### GET /tracking_settings/google_analytics +### GET /suppression/bounces ```java @@ -4806,7 +4803,9 @@ For more information about tracking, please see our [User Guide](https://sendgri SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("tracking_settings/google_analytics"); + request.setEndpoint("suppression/bounces"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("end_time", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4815,26 +4814,30 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Update Open Tracking Settings +## Delete bounces -**This endpoint allows you to update your current settings for open tracking.** +**This endpoint allows you to delete all of your bounces. You can also use this endpoint to remove a specific email address from your bounce list.** -Open Tracking adds an invisible image at the end of the email which can track email opens. If the email recipient has images enabled on their email client, a request to SendGrids server for the invisible image is executed and an open event is logged. These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook. +Bounces are messages that are returned to the server that sent it. -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +For more information see: -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information +* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) +* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html) -### PATCH /tracking_settings/open +Note: the `delete_all` and `emails` parameters should be used independently of each other as they have different purposes. + +### DELETE /suppression/bounces ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("tracking_settings/open"); - request.setBody("{\"enabled\":true}"); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/bounces"); + request.setBody("{\"emails\":[\"example@example.com\",\"example2@example.com\"],\"delete_all\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4843,17 +4846,19 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Get Open Tracking Settings +## Retrieve a Bounce -**This endpoint allows you to retrieve your current settings for open tracking.** +**This endpoint allows you to retrieve a specific bounce for a given email address.** -Open Tracking adds an invisible image at the end of the email which can track email opens. If the email recipient has images enabled on their email client, a request to SendGrids server for the invisible image is executed and an open event is logged. These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook. +Bounces are messages that are returned to the server that sent it. -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +For more information see: -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information +* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) +* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html) -### GET /tracking_settings/open +### GET /suppression/bounces/{email} ```java @@ -4861,7 +4866,7 @@ For more information about tracking, please see our [User Guide](https://sendgri SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("tracking_settings/open"); + request.setEndpoint("suppression/bounces/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4870,26 +4875,28 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Update Subscription Tracking Settings +## Delete a bounce -**This endpoint allows you to update your current settings for subscription tracking.** +**This endpoint allows you to remove an email address from your bounce list.** -Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails. +Bounces are messages that are returned to the server that sent it. This endpoint allows you to delete a single email addresses from your bounce list. -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +For more information see: -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information +* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html) +* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html) -### PATCH /tracking_settings/subscription +### DELETE /suppression/bounces/{email} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("tracking_settings/subscription"); - request.setBody("{\"url\":\"url\",\"html_content\":\"html content\",\"enabled\":true,\"landing\":\"landing page) html\",\"replace\":\"replacement tag\",\"plain_content\":\"text content\"}"; + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/bounces/{email}"); + request.addQueryParam("email_address", "example@example.com"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4898,17 +4905,17 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` -## Retrieve Subscription Tracking Settings +## Retrieve all invalid emails -**This endpoint allows you to retrieve your current settings for subscription tracking.** +**This endpoint allows you to retrieve a list of all invalid email addresses.** -Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. -You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. -For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). -### GET /tracking_settings/subscription +### GET /suppression/invalid_emails ```java @@ -4916,7 +4923,11 @@ For more information about tracking, please see our [User Guide](https://sendgri SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("tracking_settings/subscription"); + request.setEndpoint("suppression/invalid_emails"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4925,30 +4936,31 @@ For more information about tracking, please see our [User Guide](https://sendgri throw ex; } ``` - -# USER +## Delete invalid emails -## Get a user's account information. +**This endpoint allows you to remove email addresses from your invalid email address list.** -**This endpoint allows you to retrieve your user account details.** +There are two options for deleting invalid email addresses: -Your user's account information includes the user's account type and reputation. +1) You can delete all invalid email addresses by setting `delete_all` to true in the request body. +2) You can delete some invalid email addresses by specifying certain addresses in an array in the request body. -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. -For more information about your user profile: +Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). -### GET /user/account +### DELETE /suppression/invalid_emails ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/account"); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/invalid_emails"); + request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4957,13 +4969,17 @@ For more information about your user profile: throw ex; } ``` -## Retrieve your credit balance +## Retrieve a specific invalid email -**This endpoint allows you to retrieve the current credit balance for your account.** +**This endpoint allows you to retrieve a specific invalid email addresses.** -Your monthly credit allotment limits the number of emails you may send before incurring overage charges. For more information about credits and billing, please visit our [Classroom](https://sendgrid.com/docs/Classroom/Basics/Billing/billing_info_and_faqs.html). +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. -### GET /user/credits +Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. + +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). + +### GET /suppression/invalid_emails/{email} ```java @@ -4971,7 +4987,7 @@ Your monthly credit allotment limits the number of emails you may send before in SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("user/credits"); + request.setEndpoint("suppression/invalid_emails/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -4980,26 +4996,25 @@ Your monthly credit allotment limits the number of emails you may send before in throw ex; } ``` -## Update your account email address +## Delete a specific invalid email -**This endpoint allows you to update the email address currently on file for your account.** +**This endpoint allows you to remove a specific email address from the invalid email address list.** -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. -For more information about your user profile: +Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html). -### PUT /user/email +### DELETE /suppression/invalid_emails/{email} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("user/email"); - request.setBody("{\"email\":\"example@example.com\"}"); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/invalid_emails/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5008,17 +5023,15 @@ For more information about your user profile: throw ex; } ``` -## Retrieve your account email address - -**This endpoint allows you to retrieve the email address currently on file for your account.** +## Retrieve a specific spam report -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +**This endpoint allows you to retrieve a specific spam report.** -For more information about your user profile: +[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). -### GET /user/email +### GET /suppression/spam_report/{email} ```java @@ -5026,7 +5039,7 @@ For more information about your user profile: SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("user/email"); + request.setEndpoint("suppression/spam_report/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5035,26 +5048,23 @@ For more information about your user profile: throw ex; } ``` -## Update your password - -**This endpoint allows you to update your password.** +## Delete a specific spam report -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +**This endpoint allows you to delete a specific spam report.** -For more information about your user profile: +[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). -### PUT /user/password +### DELETE /suppression/spam_report/{email} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("user/password"); - request.setBody("{\"new_password\":\"new_password\",\"old_password\":\"old_password\"}"); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/spam_report/{email}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5063,28 +5073,27 @@ For more information about your user profile: throw ex; } ``` -## Update a user's profile - -**This endpoint allows you to update your current profile details.** - -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +## Retrieve all spam reports -For more information about your user profile: +**This endpoint allows you to retrieve all spam reports.** -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. -It should be noted that any one or more of the parameters can be updated via the PATCH /user/profile endpoint. The only requirement is that you include at least one when you PATCH. +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). -### PATCH /user/profile +### GET /suppression/spam_reports ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/profile"); - request.setBody("{\"city\":\"Orange\",\"first_name\":\"Example\",\"last_name\":\"User\"}"); + request.setMethod(Method.GET); + request.setEndpoint("suppression/spam_reports"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5093,23 +5102,29 @@ It should be noted that any one or more of the parameters can be updated via the throw ex; } ``` -## Get a user's profile +## Delete spam reports -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +**This endpoint allows you to delete your spam reports.** -For more information about your user profile: +There are two options for deleting spam reports: -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +1) You can delete all spam reports by setting "delete_all" to true in the request body. +2) You can delete some spam reports by specifying the email addresses in an array in the request body. -### GET /user/profile +[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid. + +For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html). + +### DELETE /suppression/spam_reports ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/profile"); + request.setMethod(Method.DELETE); + request.setEndpoint("suppression/spam_reports"); + request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5118,25 +5133,25 @@ For more information about your user profile: throw ex; } ``` -## Cancel or pause a scheduled send - -**This endpoint allows you to cancel or pause an email that has been scheduled to be sent.** +## Retrieve all global suppressions -If the maximum number of cancellations/pauses are added, HTTP 400 will -be returned. +**This endpoint allows you to retrieve a list of all email address that are globally suppressed.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +A global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html). -### POST /user/scheduled_sends +### GET /suppression/unsubscribes ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("user/scheduled_sends"); - request.setBody("{\"batch_id\":\"YOUR_BATCH_ID\",\"status\":\"pause\"}"); + request.setMethod(Method.GET); + request.setEndpoint("suppression/unsubscribes"); + request.addQueryParam("start_time", "1"); + request.addQueryParam("limit", "1"); + request.addQueryParam("end_time", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5145,21 +5160,27 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen throw ex; } ``` -## Retrieve all scheduled sends + +# TEMPLATES -**This endpoint allows you to retrieve all cancel/paused scheduled send information.** +## Create a transactional template. -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +**This endpoint allows you to create a transactional template.** -### GET /user/scheduled_sends +Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. + +Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). + +### POST /templates ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/scheduled_sends"); + request.setMethod(Method.POST); + request.setEndpoint("templates"); + request.setBody("{\"name\":\"example_name\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5168,22 +5189,23 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen throw ex; } ``` -## Update user scheduled send information +## Retrieve all transactional templates. -**This endpoint allows you to update the status of a scheduled send for the given `batch_id`.** +**This endpoint allows you to retrieve all transactional templates.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. -### PATCH /user/scheduled_sends/{batch_id} +Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). + +### GET /templates ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/scheduled_sends/{batch_id}"); - request.setBody("{\"status\":\"pause\"}"); + request.setMethod(Method.GET); + request.setEndpoint("templates"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5192,21 +5214,25 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen throw ex; } ``` -## Retrieve scheduled send +## Edit a transactional template. -**This endpoint allows you to retrieve the cancel/paused scheduled send information for a specific `batch_id`.** +**This endpoint allows you to edit a transactional template.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. -### GET /user/scheduled_sends/{batch_id} +Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). + + +### PATCH /templates/{template_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/scheduled_sends/{batch_id}"); + request.setMethod(Method.PATCH); + request.setEndpoint("templates/{template_id}"); + request.setBody("{\"name\":\"new_example_name\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5215,21 +5241,24 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen throw ex; } ``` -## Delete a cancellation or pause of a scheduled send +## Retrieve a single transactional template. -**This endpoint allows you to delete the cancellation/pause of a scheduled send.** +**This endpoint allows you to retrieve a single transactional template.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. -### DELETE /user/scheduled_sends/{batch_id} +Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). + + +### GET /templates/{template_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("user/scheduled_sends/{batch_id}"); + request.setMethod(Method.GET); + request.setEndpoint("templates/{template_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5238,24 +5267,24 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen throw ex; } ``` -## Update Enforced TLS settings +## Delete a template. -**This endpoint allows you to update your current Enforced TLS settings.** +**This endpoint allows you to delete a transactional template.** -The Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. See the [SMTP Ports User Guide](https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/smtp_ports.html) for more information on opportunistic TLS. +Each user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts. -**Note:** If either setting is enabled and the recipient does not support TLS or have a valid certificate, we drop the message and send a block event with TLS required but not supported as the description. +Transactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). -### PATCH /user/settings/enforced_tls + +### DELETE /templates/{template_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/settings/enforced_tls"); - request.setBody("{\"require_tls\":true,\"require_valid_cert\":false}"); + request.setMethod(Method.DELETE); + request.setEndpoint("templates/{template_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5264,23 +5293,25 @@ The Enforced TLS settings specify whether or not the recipient is required to su throw ex; } ``` -## Retrieve current Enforced TLS settings. +## Create a new transactional template version. -**This endpoint allows you to retrieve your current Enforced TLS settings.** +**This endpoint allows you to create a new version of a template.** -The Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. See the [SMTP Ports User Guide](https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/smtp_ports.html) for more information on opportunistic TLS. +Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. -**Note:** If either setting is enabled and the recipient does not support TLS or have a valid certificate, we drop the message and send a block event with TLS required but not supported as the description. +For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). -### GET /user/settings/enforced_tls + +### POST /templates/{template_id}/versions ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/settings/enforced_tls"); + request.setMethod(Method.POST); + request.setEndpoint("templates/{template_id}/versions"); + request.setBody("{\"name\":\"example_version_name\",\"html_content\":\"<%body%>\",\"plain_content\":\")<%body%>\",\"active\":1,\"template_id\":\"ddb96bbc-9b92-425e-8979-99464621b543\",\"subject\":\"<%subject%>\"}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5289,26 +5320,30 @@ The Enforced TLS settings specify whether or not the recipient is required to su throw ex; } ``` -## Update your username +## Edit a transactional template version. -**This endpoint allows you to update the username for your account.** +**This endpoint allows you to edit a version of one of your transactional templates.** -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. -For more information about your user profile: +For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| template_id | string | The ID of the original template | +| version_id | string | The ID of the template version | -### PUT /user/username +### PATCH /templates/{template_id}/versions/{version_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("user/username"); - request.setBody("{\"username\":\"test_username\"}"); + request.setMethod(Method.PATCH); + request.setEndpoint("templates/{template_id}/versions/{version_id}"); + request.setBody("{\"active\":1,\"html_content\":\"<%body%>\",\"subject\":\"<%subject%>\",\"name\":\"updated_example)_name\",\"plain_content\":\"<%body%>\"}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5317,17 +5352,21 @@ For more information about your user profile: throw ex; } ``` -## Retrieve your username +## Retrieve a specific transactional template version. -**This endpoint allows you to retrieve your current account username.** +**This endpoint allows you to retrieve a specific version of a template.** -Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. +Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. -For more information about your user profile: +For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). -* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| template_id | string | The ID of the original template | +| version_id | string | The ID of the template version | -### GET /user/username +### GET /templates/{template_id}/versions/{version_id} ```java @@ -5335,7 +5374,7 @@ For more information about your user profile: SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("user/username"); + request.setEndpoint("templates/{template_id}/versions/{version_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5344,26 +5383,29 @@ For more information about your user profile: throw ex; } ``` -## Update Event Notification Settings +## Delete a transactional template version. -**This endpoint allows you to update your current event webhook settings.** +**This endpoint allows you to delete one of your transactional template versions.** -If an event type is marked as `true`, then the event webhook will include information about that event. +Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across all templates. -SendGrids Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email. +For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). -Common uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program. +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| template_id | string | The ID of the original template | +| version_id | string | The ID of the template version | -### PATCH /user/webhooks/event/settings +### DELETE /templates/{template_id}/versions/{version_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/webhooks/event/settings"); - request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\)",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"; + request.setMethod(Method.DELETE); + request.setEndpoint("templates/{template_id}/versions/{version_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5372,25 +5414,30 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete throw ex; } ``` -## Retrieve Event Webhook settings +## Activate a transactional template version. -**This endpoint allows you to retrieve your current event webhook settings.** +**This endpoint allows you to activate a version of one of your templates.** -If an event type is marked as `true`, then the event webhook will include information about that event. +Each transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates. -SendGrids Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email. -Common uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program. +For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). -### GET /user/webhooks/event/settings +## URI Parameters +| URI Parameter | Type | Description | +|---|---|---| +| template_id | string | The ID of the original template | +| version_id | string | The ID of the template version | + +### POST /templates/{template_id}/versions/{version_id}/activate ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/event/settings"); + request.setMethod(Method.POST); + request.setEndpoint("templates/{template_id}/versions/{version_id}/activate"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5399,24 +5446,28 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete throw ex; } ``` -## Test Event Notification Settings + +# TRACKING SETTINGS -**This endpoint allows you to test your event webhook by sending a fake event notification post to the provided URL.** +## Retrieve Tracking Settings -SendGrids Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email. +**This endpoint allows you to retrieve a list of all tracking settings that you can enable on your account.** -Common uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program. +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. -### POST /user/webhooks/event/test +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### GET /tracking_settings ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("user/webhooks/event/test"); - request.setBody("{\"url\":\"url\"}"); + request.setMethod(Method.GET); + request.setEndpoint("tracking_settings"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5425,22 +5476,24 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete throw ex; } ``` -## Create a parse setting +## Update Click Tracking Settings -**This endpoint allows you to create a new inbound parse setting.** +**This endpoint allows you to change your current click tracking setting. You can enable, or disable, click tracking using this endpoint.** -The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. -### POST /user/webhooks/parse/settings +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### PATCH /tracking_settings/click ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("user/webhooks/parse/settings"); - request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam)_check\":true}"; + request.setMethod(Method.PATCH); + request.setEndpoint("tracking_settings/click"); + request.setBody("{\"enabled\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5449,13 +5502,15 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting throw ex; } ``` -## Retrieve all parse settings +## Retrieve Click Track Settings -**This endpoint allows you to retrieve all of your current inbound parse settings.** +**This endpoint allows you to retrieve your current click tracking setting.** -The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. -### GET /user/webhooks/parse/settings +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### GET /tracking_settings/click ```java @@ -5463,7 +5518,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/parse/settings"); + request.setEndpoint("tracking_settings/click"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5472,13 +5527,19 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting throw ex; } ``` -## Update a parse setting +## Update Google Analytics Settings -**This endpoint allows you to update a specific inbound parse setting.** +**This endpoint allows you to update your current setting for Google Analytics.** -The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). +For more information about using Google Analytics, please refer to [Googles URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on ["Best Practices for Campaign Building"](https://support.google.com/analytics/answer/1037445). -### PATCH /user/webhooks/parse/settings/{hostname} +We default the settings to Googles recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/google_analytics_demystified_ga_statistics_vs_sg_statistics.html). + +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. + +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### PATCH /tracking_settings/google_analytics ```java @@ -5486,8 +5547,8 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.PATCH); - request.setEndpoint("user/webhooks/parse/settings/{hostname}"); - request.setBody("{\"url\":\"http://newdomain.com/parse\",\"send_raw\":true,\"spam_check\":false}"); + request.setEndpoint("tracking_settings/google_analytics"); + request.setBody("{\"utm_campaign\":\"website\",\"utm_term\":\"\",\"utm_content\":\"\",\"enabled\":true,\"utm)_source\":\"sendgrid.com\",\"utm_medium\":\"email\"}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5496,13 +5557,19 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting throw ex; } ``` -## Retrieve a specific parse setting +## Retrieve Google Analytics Settings -**This endpoint allows you to retrieve a specific inbound parse setting.** +**This endpoint allows you to retrieve your current setting for Google Analytics.** -The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). +For more information about using Google Analytics, please refer to [Googles URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on ["Best Practices for Campaign Building"](https://support.google.com/analytics/answer/1037445). -### GET /user/webhooks/parse/settings/{hostname} +We default the settings to Googles recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/google_analytics_demystified_ga_statistics_vs_sg_statistics.html). + +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. + +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### GET /tracking_settings/google_analytics ```java @@ -5510,7 +5577,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/parse/settings/{hostname}"); + request.setEndpoint("tracking_settings/google_analytics"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5519,21 +5586,26 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting throw ex; } ``` -## Delete a parse setting +## Update Open Tracking Settings -**This endpoint allows you to delete a specific inbound parse setting.** +**This endpoint allows you to update your current settings for open tracking.** -The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). +Open Tracking adds an invisible image at the end of the email which can track email opens. If the email recipient has images enabled on their email client, a request to SendGrids server for the invisible image is executed and an open event is logged. These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook. -### DELETE /user/webhooks/parse/settings/{hostname} +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. + +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### PATCH /tracking_settings/open ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("user/webhooks/parse/settings/{hostname}"); + request.setMethod(Method.PATCH); + request.setEndpoint("tracking_settings/open"); + request.setBody("{\"enabled\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5542,15 +5614,17 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting throw ex; } ``` -## Retrieves Inbound Parse Webhook statistics. +## Get Open Tracking Settings -**This endpoint allows you to retrieve the statistics for your Parse Webhook usage.** +**This endpoint allows you to retrieve your current settings for open tracking.** -SendGrid's Inbound Parse Webhook allows you to parse the contents and attachments of incoming emails. The Parse API can then POST the parsed emails to a URL that you specify. The Inbound Parse Webhook cannot parse messages greater than 20MB in size, including all attachments. +Open Tracking adds an invisible image at the end of the email which can track email opens. If the email recipient has images enabled on their email client, a request to SendGrids server for the invisible image is executed and an open event is logged. These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook. -There are a number of pre-made integrations for the SendGrid Parse Webhook which make processing events easy. You can find these integrations in the [Library Index](https://sendgrid.com/docs/Integrate/libraries.html#-Webhook-Libraries). +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. -### GET /user/webhooks/parse/stats +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). + +### GET /tracking_settings/open ```java @@ -5558,12 +5632,7 @@ There are a number of pre-made integrations for the SendGrid Parse Webhook which SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/parse/stats"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "test_string"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("offset", "test_string"); + request.setEndpoint("tracking_settings/open"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5572,31 +5641,26 @@ There are a number of pre-made integrations for the SendGrid Parse Webhook which throw ex; } ``` - -# WHITELABEL - -## Create a domain whitelabel. +## Update Subscription Tracking Settings -**This endpoint allows you to create a whitelabel for one of your domains.** +**This endpoint allows you to update your current settings for subscription tracking.** -If you are creating a domain whitelabel that you would like a subuser to use, you have two options: -1. Use the "username" parameter. This allows you to create a whitelabel on behalf of your subuser. This means the subuser is able to see and modify the created whitelabel. -2. Use the Association workflow (see Associate Domain section). This allows you to assign a whitelabel created by the parent to a subuser. This means the subuser will default to the assigned whitelabel, but will not be able to see or modify that whitelabel. However, if the subuser creates their own whitelabel it will overwrite the assigned whitelabel. +Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails. -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). -### POST /whitelabel/domains +### PATCH /tracking_settings/subscription ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains"); - request.setBody("{\"automatic)_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"; + request.setMethod(Method.PATCH); + request.setEndpoint("tracking_settings/subscription"); + request.setBody("{\"url\":\"url\",\"html_content\":\"html content\",\"enabled\":true,\"landing\":\"landing page) html\",\"replace\":\"replacement tag\",\"plain_content\":\"text content\"}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5605,16 +5669,17 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## List all domain whitelabels. +## Retrieve Subscription Tracking Settings -**This endpoint allows you to retrieve a list of all domain whitelabels you have created.** +**This endpoint allows you to retrieve your current settings for subscription tracking.** -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails. -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +You can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails. +For more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html). -### GET /whitelabel/domains +### GET /tracking_settings/subscription ```java @@ -5622,12 +5687,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains"); - request.addQueryParam("username", "test_string"); - request.addQueryParam("domain", "test_string"); - request.addQueryParam("exclude_subusers", "true"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); + request.setEndpoint("tracking_settings/subscription"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5636,20 +5696,22 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Get the default domain whitelabel. + +# USER -**This endpoint allows you to retrieve the default whitelabel for a domain.** +## Get a user's account information. -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +**This endpoint allows you to retrieve your user account details.** -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +Your user's account information includes the user's account type and reputation. -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| domain | string |The domain to find a default domain whitelabel for. | +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -### GET /whitelabel/domains/default +For more information about your user profile: + +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) + +### GET /user/account ```java @@ -5657,7 +5719,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains/default"); + request.setEndpoint("user/account"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5666,22 +5728,13 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## List the domain whitelabel associated with the given user. - -**This endpoint allows you to retrieve all of the whitelabels that have been assigned to a specific subuser.** - -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. - -Domain whitelabels can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's whitelabels. To associate a whitelabel with a subuser, the parent account must first create the whitelabel and validate it. The parent may then associate the whitelabel via the subuser management tools. +## Retrieve your credit balance -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +**This endpoint allows you to retrieve the current credit balance for your account.** -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| username | string | Username of the subuser to find associated whitelabels for. | +Your monthly credit allotment limits the number of emails you may send before incurring overage charges. For more information about credits and billing, please visit our [Classroom](https://sendgrid.com/docs/Classroom/Basics/Billing/billing_info_and_faqs.html). -### GET /whitelabel/domains/subuser +### GET /user/credits ```java @@ -5689,7 +5742,7 @@ For more information on whitelabeling, please see our [User Guide](https://sendg SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains/subuser"); + request.setEndpoint("user/credits"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5698,30 +5751,26 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Disassociate a domain whitelabel from a given user. - -**This endpoint allows you to disassociate a specific whitelabel from a subuser.** +## Update your account email address -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +**This endpoint allows you to update the email address currently on file for your account.** -Domain whitelabels can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's whitelabels. To associate a whitelabel with a subuser, the parent account must first create the whitelabel and validate it. The parent may then associate the whitelabel via the subuser management tools. +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +For more information about your user profile: -## URI Parameters -| URI Parameter | Type | Required? | Description | -|---|---|---|---| -| username | string | required | Username for the subuser to find associated whitelabels for. | +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) -### DELETE /whitelabel/domains/subuser +### PUT /user/email ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/domains/subuser"); + request.setMethod(Method.PUT); + request.setEndpoint("user/email"); + request.setBody("{\"email\":\"example@example.com\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5730,24 +5779,25 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Update a domain whitelabel. +## Retrieve your account email address + +**This endpoint allows you to retrieve the email address currently on file for your account.** -**This endpoint allows you to update the settings for a domain whitelabel.** +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +For more information about your user profile: -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) -### PATCH /whitelabel/domains/{domain_id} +### GET /user/email ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("whitelabel/domains/{domain_id}"); - request.setBody("{\"default\":false,\"custom_spf\":true}"); + request.setMethod(Method.GET); + request.setEndpoint("user/email"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5756,24 +5806,26 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Retrieve a domain whitelabel. +## Update your password -**This endpoint allows you to retrieve a specific domain whitelabel.** +**This endpoint allows you to update your password.** -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +For more information about your user profile: +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) -### GET /whitelabel/domains/{domain_id} +### PUT /user/password ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/domains/{domain_id}"); + request.setMethod(Method.PUT); + request.setEndpoint("user/password"); + request.setBody("{\"new_password\":\"new_password\",\"old_password\":\"old_password\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5782,23 +5834,28 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Delete a domain whitelabel. +## Update a user's profile -**This endpoint allows you to delete a domain whitelabel.** +**This endpoint allows you to update your current profile details.** -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +For more information about your user profile: -### DELETE /whitelabel/domains/{domain_id} +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) + +It should be noted that any one or more of the parameters can be updated via the PATCH /user/profile endpoint. The only requirement is that you include at least one when you PATCH. + +### PATCH /user/profile ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/domains/{domain_id}"); + request.setMethod(Method.PATCH); + request.setEndpoint("user/profile"); + request.setBody("{\"city\":\"Orange\",\"first_name\":\"Example\",\"last_name\":\"User\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5807,31 +5864,23 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Associate a domain whitelabel with a given user. - -**This endpoint allows you to associate a specific domain whitelabel with a subuser.** - -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +## Get a user's profile -Domain whitelabels can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's whitelabels. To associate a whitelabel with a subuser, the parent account must first create the whitelabel and validate it. The parent may then associate the whitelabel via the subuser management tools. +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +For more information about your user profile: -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| domain_id | integer | ID of the domain whitelabel to associate with the subuser. | +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) -### POST /whitelabel/domains/{domain_id}/subuser +### GET /user/profile ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains/{domain_id}/subuser"); - request.setBody("{\"username\":\"jane@example.com\"}"); + request.setMethod(Method.GET); + request.setEndpoint("user/profile"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5840,20 +5889,16 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Add an IP to a domain whitelabel. - -**This endpoint allows you to add an IP address to a domain whitelabel.** +## Cancel or pause a scheduled send -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +**This endpoint allows you to cancel or pause an email that has been scheduled to be sent.** -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +If the maximum number of cancellations/pauses are added, HTTP 400 will +be returned. -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| id | integer | ID of the domain to which you are adding an IP | +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. -### POST /whitelabel/domains/{id}/ips +### POST /user/scheduled_sends ```java @@ -5861,8 +5906,8 @@ For more information on whitelabeling, please see our [User Guide](https://sendg SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains/{id}/ips"); - request.setBody("{\"ip\":\"192.168.0.1\"}"); + request.setEndpoint("user/scheduled_sends"); + request.setBody("{\"batch_id\":\"YOUR_BATCH_ID\",\"status\":\"pause\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5871,29 +5916,21 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Remove an IP from a domain whitelabel. - -**This endpoint allows you to remove a domain's IP address from that domain's whitelabel.** - -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +## Retrieve all scheduled sends -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +**This endpoint allows you to retrieve all cancel/paused scheduled send information.** -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| id | integer | ID of the domain whitelabel to delete the IP from. | -| ip | string | IP to remove from the domain whitelabel. | +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. -### DELETE /whitelabel/domains/{id}/ips/{ip} +### GET /user/scheduled_sends ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/domains/{id}/ips/{ip}"); + request.setMethod(Method.GET); + request.setEndpoint("user/scheduled_sends"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5902,28 +5939,22 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Validate a domain whitelabel. - -**This endpoint allows you to validate a domain whitelabel. If it fails, it will return an error message describing why the whitelabel could not be validated.** - -A domain whitelabel allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. +## Update user scheduled send information -For more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html) +**This endpoint allows you to update the status of a scheduled send for the given `batch_id`.** -## URI Parameters -| URI Parameter | Type | Description | -|---|---|---| -| id | integer |ID of the domain whitelabel to validate. | +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. -### POST /whitelabel/domains/{id}/validate +### PATCH /user/scheduled_sends/{batch_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/domains/{id}/validate"); + request.setMethod(Method.PATCH); + request.setEndpoint("user/scheduled_sends/{batch_id}"); + request.setBody("{\"status\":\"pause\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5932,26 +5963,21 @@ For more information on whitelabeling, please see our [User Guide](https://sendg throw ex; } ``` -## Create an IP whitelabel - -**This endpoint allows you to create an IP whitelabel.** - -When creating an IP whitelable, you should use the same subdomain that you used when you created a domain whitelabel. +## Retrieve scheduled send -A IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. +**This endpoint allows you to retrieve the cancel/paused scheduled send information for a specific `batch_id`.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html). +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. -### POST /whitelabel/ips +### GET /user/scheduled_sends/{batch_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/ips"); - request.setBody("{\"ip\":\"192.168.1.1\",\"domain\":\"example.com\",\"subdomain\":\"email\"}"); + request.setMethod(Method.GET); + request.setEndpoint("user/scheduled_sends/{batch_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5960,28 +5986,21 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Retrieve all IP whitelabels - -**This endpoint allows you to retrieve all of the IP whitelabels that have been created by this account.** - -You may include a search key by using the "ip" parameter. This enables you to perform a prefix search for a given IP segment (e.g. "192."). +## Delete a cancellation or pause of a scheduled send -A IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. +**This endpoint allows you to delete the cancellation/pause of a scheduled send.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html). +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. -### GET /whitelabel/ips +### DELETE /user/scheduled_sends/{batch_id} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/ips"); - request.addQueryParam("ip", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); + request.setMethod(Method.DELETE); + request.setEndpoint("user/scheduled_sends/{batch_id}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5990,23 +6009,24 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Retrieve an IP whitelabel +## Update Enforced TLS settings -**This endpoint allows you to retrieve an IP whitelabel.** +**This endpoint allows you to update your current Enforced TLS settings.** -A IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. +The Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. See the [SMTP Ports User Guide](https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/smtp_ports.html) for more information on opportunistic TLS. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html). +**Note:** If either setting is enabled and the recipient does not support TLS or have a valid certificate, we drop the message and send a block event with TLS required but not supported as the description. -### GET /whitelabel/ips/{id} +### PATCH /user/settings/enforced_tls ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/ips/{id}"); + request.setMethod(Method.PATCH); + request.setEndpoint("user/settings/enforced_tls"); + request.setBody("{\"require_tls\":true,\"require_valid_cert\":false}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6015,23 +6035,23 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Delete an IP whitelabel +## Retrieve current Enforced TLS settings. -**This endpoint allows you to delete an IP whitelabel.** +**This endpoint allows you to retrieve your current Enforced TLS settings.** -A IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. +The Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. See the [SMTP Ports User Guide](https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/smtp_ports.html) for more information on opportunistic TLS. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html). +**Note:** If either setting is enabled and the recipient does not support TLS or have a valid certificate, we drop the message and send a block event with TLS required but not supported as the description. -### DELETE /whitelabel/ips/{id} +### GET /user/settings/enforced_tls ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/ips/{id}"); + request.setMethod(Method.GET); + request.setEndpoint("user/settings/enforced_tls"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6040,23 +6060,26 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Validate an IP whitelabel +## Update your username -**This endpoint allows you to validate an IP whitelabel.** +**This endpoint allows you to update the username for your account.** -A IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated. +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html). +For more information about your user profile: -### POST /whitelabel/ips/{id}/validate +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) + +### PUT /user/username ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/ips/{id}/validate"); + request.setMethod(Method.PUT); + request.setEndpoint("user/username"); + request.setBody("{\"username\":\"test_username\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6065,26 +6088,25 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Create a Link Whitelabel +## Retrieve your username -**This endpoint allows you to create a new link whitelabel.** +**This endpoint allows you to retrieve your current account username.** -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +For more information about your user profile: -### POST /whitelabel/links +* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html) + +### GET /user/username ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/links"); - request.setBody("{\"default\":true,\"domain\":\"example.com\",\"subdomain\":\"mail\"}"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); + request.setMethod(Method.GET); + request.setEndpoint("user/username"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6093,24 +6115,26 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Retrieve all link whitelabels +## Update Event Notification Settings + +**This endpoint allows you to update your current event webhook settings.** -**This endpoint allows you to retrieve all link whitelabels.** +If an event type is marked as `true`, then the event webhook will include information about that event. -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +SendGrids Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +Common uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program. -### GET /whitelabel/links +### PATCH /user/webhooks/event/settings ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links"); - request.addQueryParam("limit", "1"); + request.setMethod(Method.PATCH); + request.setEndpoint("user/webhooks/event/settings"); + request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\)",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6119,22 +6143,17 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Retrieve a Default Link Whitelabel +## Retrieve Event Webhook settings -**This endpoint allows you to retrieve the default link whitelabel.** +**This endpoint allows you to retrieve your current event webhook settings.** -Default link whitelabel is the actual link whitelabel to be used when sending messages. If there are multiple link whitelabels, the default is determined by the following order: -
    -
  • Validated link whitelabels marked as "default"
  • -
  • Legacy link whitelabels (migrated from the whitelabel wizard)
  • -
  • Default SendGrid link whitelabel (i.e. 100.ct.sendgrid.net)
  • -
+If an event type is marked as `true`, then the event webhook will include information about that event. -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +SendGrids Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +Common uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program. -### GET /whitelabel/links/default +### GET /user/webhooks/event/settings ```java @@ -6142,8 +6161,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links/default"); - request.addQueryParam("domain", "test_string"); + request.setEndpoint("user/webhooks/event/settings"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6152,28 +6170,24 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Retrieve Associated Link Whitelabel - -**This endpoint allows you to retrieve the associated link whitelabel for a subuser.** +## Test Event Notification Settings -Link whitelables can be associated with subusers from the parent account. This functionality allows -subusers to send mail using their parent's link whitelabels. To associate a link whitelabel, the parent account -must first create a whitelabel and validate it. The parent may then associate that whitelabel with a subuser via the API or the Subuser Management page in the user interface. +**This endpoint allows you to test your event webhook by sending a fake event notification post to the provided URL.** -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +SendGrids Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +Common uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program. -### GET /whitelabel/links/subuser +### POST /user/webhooks/event/test ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links/subuser"); - request.addQueryParam("username", "test_string"); + request.setMethod(Method.POST); + request.setEndpoint("user/webhooks/event/test"); + request.setBody("{\"url\":\"url\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6182,28 +6196,22 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Disassociate a Link Whitelabel - -**This endpoint allows you to disassociate a link whitelabel from a subuser.** - -Link whitelables can be associated with subusers from the parent account. This functionality allows -subusers to send mail using their parent's link whitelabels. To associate a link whitelabel, the parent account -must first create a whitelabel and validate it. The parent may then associate that whitelabel with a subuser via the API or the Subuser Management page in the user interface. +## Create a parse setting -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +**This endpoint allows you to create a new inbound parse setting.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). -### DELETE /whitelabel/links/subuser +### POST /user/webhooks/parse/settings ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/links/subuser"); - request.addQueryParam("username", "test_string"); + request.setMethod(Method.POST); + request.setEndpoint("user/webhooks/parse/settings"); + request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam)_check\":true}"; Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6212,24 +6220,21 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Update a Link Whitelabel - -**This endpoint allows you to update a specific link whitelabel. You can use this endpoint to change a link whitelabel's default status.** +## Retrieve all parse settings -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +**This endpoint allows you to retrieve all of your current inbound parse settings.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). -### PATCH /whitelabel/links/{id} +### GET /user/webhooks/parse/settings ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("whitelabel/links/{id}"); - request.setBody("{\"default\":true}"); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/parse/settings"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6238,23 +6243,22 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Retrieve a Link Whitelabel - -**This endpoint allows you to retrieve a specific link whitelabel.** +## Update a parse setting -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +**This endpoint allows you to update a specific inbound parse setting.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). -### GET /whitelabel/links/{id} +### PATCH /user/webhooks/parse/settings/{hostname} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("whitelabel/links/{id}"); + request.setMethod(Method.PATCH); + request.setEndpoint("user/webhooks/parse/settings/{hostname}"); + request.setBody("{\"url\":\"http://newdomain.com/parse\",\"send_raw\":true,\"spam_check\":false}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6263,23 +6267,21 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Delete a Link Whitelabel - -**This endpoint allows you to delete a link whitelabel.** +## Retrieve a specific parse setting -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +**This endpoint allows you to retrieve a specific inbound parse setting.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). -### DELETE /whitelabel/links/{id} +### GET /user/webhooks/parse/settings/{hostname} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("whitelabel/links/{id}"); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/parse/settings/{hostname}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6288,23 +6290,21 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Validate a Link Whitelabel - -**This endpoint allows you to validate a link whitelabel.** +## Delete a parse setting -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +**This endpoint allows you to delete a specific inbound parse setting.** -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +The inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html). -### POST /whitelabel/links/{id}/validate +### DELETE /user/webhooks/parse/settings/{hostname} ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/links/{id}/validate"); + request.setMethod(Method.DELETE); + request.setEndpoint("user/webhooks/parse/settings/{hostname}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6313,28 +6313,28 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` -## Associate a Link Whitelabel - -**This endpoint allows you to associate a link whitelabel with a subuser account.** +## Retrieves Inbound Parse Webhook statistics. -Link whitelables can be associated with subusers from the parent account. This functionality allows -subusers to send mail using their parent's link whitelabels. To associate a link whitelabel, the parent account -must first create a whitelabel and validate it. The parent may then associate that whitelabel with a subuser via the API or the Subuser Management page in the user interface. +**This endpoint allows you to retrieve the statistics for your Parse Webhook usage.** -Email link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net. +SendGrid's Inbound Parse Webhook allows you to parse the contents and attachments of incoming emails. The Parse API can then POST the parsed emails to a URL that you specify. The Inbound Parse Webhook cannot parse messages greater than 20MB in size, including all attachments. -For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html). +There are a number of pre-made integrations for the SendGrid Parse Webhook which make processing events easy. You can find these integrations in the [Library Index](https://sendgrid.com/docs/Integrate/libraries.html#-Webhook-Libraries). -### POST /whitelabel/links/{link_id}/subuser +### GET /user/webhooks/parse/stats ```java try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("whitelabel/links/{link_id}/subuser"); - request.setBody("{\"username\":\"jane@example.com\"}"); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/parse/stats"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "test_string"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("offset", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6343,4 +6343,3 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/API_ throw ex; } ``` - diff --git a/USE_CASES.md b/USE_CASES.md index 0ba2aeb1..ea846b58 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -4,7 +4,7 @@ This documentation provides examples for specific use cases. Please [open an iss * [Transactional Templates](#transactional-templates) * [Legacy Templates](#legacy-templates) -* [How to Setup a Domain Whitelabel](#domain-whitelabel) +* [How to Setup a Domain Authentication](#domain-authentication) * [How to View Email Statistics](#email-stats) @@ -217,12 +217,12 @@ public class Example { } ``` - -# How to Setup a Domain Whitelabel + +# How to Setup a Domain Authentication -You can find documentation for how to setup a domain whitelabel via the UI [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/setup_domain_whitelabel.html) and via API [here](https://github.com/sendgrid/sendgrid-java/blob/master/USAGE.md#whitelabel). +You can find documentation for how to setup a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/client/USAGE.md#sender-authentication). -Find more information about all of SendGrid's whitelabeling related documentation [here](https://sendgrid.com/docs/Classroom/Basics/Whitelabel/index.html). +Find more information about all of SendGrid's authentication related documentation [here](https://sendgrid.com/docs/ui/account-and-settings/). # How to View Email Statistics diff --git a/examples/whitelabel/domains.java b/examples/senderauthentication/domains.java similarity index 94% rename from examples/whitelabel/domains.java rename to examples/senderauthentication/domains.java index 26a0d0a2..2ffe0a7e 100644 --- a/examples/whitelabel/domains.java +++ b/examples/senderauthentication/domains.java @@ -8,7 +8,7 @@ import java.util.Map; ////////////////////////////////////////////////////////////////// -// Create a domain whitelabel. +// Create a domain authorization. // POST /whitelabel/domains @@ -31,7 +31,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// List all domain whitelabels. +// List all domain authorization. // GET /whitelabel/domains @@ -58,7 +58,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Get the default domain whitelabel. +// Get the default domain authorization. // GET /whitelabel/domains/default @@ -80,7 +80,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// List the domain whitelabel associated with the given user. +// List the domain authorization associated with the given user. // GET /whitelabel/domains/subuser @@ -102,7 +102,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Disassociate a domain whitelabel from a given user. +// Disassociate a domain authorization from a given user. // DELETE /whitelabel/domains/subuser @@ -124,7 +124,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Update a domain whitelabel. +// Update a domain authorization. // PATCH /whitelabel/domains/{domain_id} @@ -147,7 +147,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve a domain whitelabel. +// Retrieve a domain authorization. // GET /whitelabel/domains/{domain_id} @@ -169,7 +169,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Delete a domain whitelabel. +// Delete a domain authorization. // DELETE /whitelabel/domains/{domain_id} @@ -191,7 +191,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Associate a domain whitelabel with a given user. +// Associate a domain authorization with a given user. // POST /whitelabel/domains/{domain_id}/subuser @@ -214,7 +214,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Add an IP to a domain whitelabel. +// Add an IP to a domain authorization. // POST /whitelabel/domains/{id}/ips @@ -237,7 +237,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Remove an IP from a domain whitelabel. +// Remove an IP from a domain authorization. // DELETE /whitelabel/domains/{id}/ips/{ip} @@ -259,7 +259,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Validate a domain whitelabel. +// Validate a domain authorization. // POST /whitelabel/domains/{id}/validate diff --git a/examples/whitelabel/ips.java b/examples/senderauthentication/ips.java similarity index 95% rename from examples/whitelabel/ips.java rename to examples/senderauthentication/ips.java index 22836d99..c1983608 100644 --- a/examples/whitelabel/ips.java +++ b/examples/senderauthentication/ips.java @@ -18,7 +18,7 @@ protected static void init() { } ////////////////////////////////////////////////////////////////// -// Create an IP whitelabel +// Create a reverse DNS record // POST /whitelabel/ips @@ -40,7 +40,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve all IP whitelabels +// Retrieve all reverse DNS records // GET /whitelabel/ips @@ -64,7 +64,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve an IP whitelabel +// Retrieve a reverse DNS record // GET /whitelabel/ips/{id} @@ -85,7 +85,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Delete an IP whitelabel +// Delete a reverse DNS record // DELETE /whitelabel/ips/{id} @@ -106,7 +106,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Validate an IP whitelabel +// Validate a reverse DNS record // POST /whitelabel/ips/{id}/validate diff --git a/examples/whitelabel/links.java b/examples/senderauthentication/links.java similarity index 95% rename from examples/whitelabel/links.java rename to examples/senderauthentication/links.java index ca7218ff..bf661339 100644 --- a/examples/whitelabel/links.java +++ b/examples/senderauthentication/links.java @@ -8,7 +8,7 @@ import java.util.Map; ////////////////////////////////////////////////////////////////// -// Create a Link Whitelabel +// Create a Branded Link // POST /whitelabel/links @@ -33,7 +33,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve all link whitelabels +// Retrieve all link Branding // GET /whitelabel/links @@ -56,7 +56,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve a Default Link Whitelabel +// Retrieve a Default Link Branding // GET /whitelabel/links/default @@ -79,7 +79,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve Associated Link Whitelabel +// Retrieve Associated Link Branding // GET /whitelabel/links/subuser @@ -102,7 +102,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Disassociate a Link Whitelabel +// Disassociate a Link Branding // DELETE /whitelabel/links/subuser @@ -125,7 +125,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Update a Link Whitelabel +// Update a Link Branding // PATCH /whitelabel/links/{id} @@ -148,7 +148,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Retrieve a Link Whitelabel +// Retrieve a Link Branding // GET /whitelabel/links/{id} @@ -170,7 +170,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Delete a Link Whitelabel +// Delete a Link Branding // DELETE /whitelabel/links/{id} @@ -192,7 +192,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Validate a Link Whitelabel +// Validate a Link Branding // POST /whitelabel/links/{id}/validate @@ -214,7 +214,7 @@ public static void main(String[] args) throws IOException { } ////////////////////////////////////////////////////////////////// -// Associate a Link Whitelabel +// Associate a Link Branding // POST /whitelabel/links/{link_id}/subuser From a1bac90ed40cabbfb67b414ae51123fd962860bd Mon Sep 17 00:00:00 2001 From: chandler Date: Thu, 1 Nov 2018 12:38:01 -0400 Subject: [PATCH 071/288] Fix typos Signed-off-by: chandler --- USAGE.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/USAGE.md b/USAGE.md index f31ea17d..1eb8d117 100644 --- a/USAGE.md +++ b/USAGE.md @@ -3588,7 +3588,7 @@ A domain authentication allows you to remove the via or sent on behalf of messag Domain authentications can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's authenticated domains. To associate a domain authentication with a subuser, the parent account must first create the domain authentication and validate it. The parent may then associate the domain authentication via the subuser management tools. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ## URI Parameters | URI Parameter | Type | Description | @@ -3620,7 +3620,7 @@ A domain authentication allows you to remove the via or sent on behalf of messag Domain authentications can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's authenticated domains. To associate a domain authentication with a subuser, the parent account must first create the domain authentication and validate it. The parent may then associate the domain authentication via the subuser management tools. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ## URI Parameters | URI Parameter | Type | Required? | Description | @@ -3650,7 +3650,7 @@ For more information on domain authentication, please see our [User Guide]((http A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ### PATCH /whitelabel/domains/{domain_id} @@ -3676,7 +3676,7 @@ For more information on domain authentication, please see our [User Guide]((http A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ### GET /whitelabel/domains/{domain_id} @@ -3702,7 +3702,7 @@ For more information on domain authentication, please see our [User Guide]((http A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ### DELETE /whitelabel/domains/{domain_id} @@ -3729,7 +3729,7 @@ A domain authentication allows you to remove the via or sent on behalf of messag Domain authentications can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's authenticated domains. To associate a domain authentication with a subuser, the parent account must first create the domain authentication and validate it. The parent may then associate the domain authentication via the subuser management tools. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ## URI Parameters | URI Parameter | Type | Description | @@ -3760,7 +3760,7 @@ For more information on domain authentication, please see our [User Guide]((http A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ## URI Parameters | URI Parameter | Type | Description | @@ -3791,7 +3791,7 @@ For more information on domain authentication, please see our [User Guide]((http A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ## URI Parameters | URI Parameter | Type | Description | @@ -3822,7 +3822,7 @@ For more information on domain authentication, please see our [User Guide]((http A domain authentication allows you to remove the via or sent on behalf of message that your recipients see when they read your emails. Authenticating a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record. -For more information on domain authentication, please see our [User Guide]((https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) +For more information on domain authentication, please see our [User Guide](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) ## URI Parameters | URI Parameter | Type | Description | From 29b78495c12853061edb25d29af0ac6e0eab0623 Mon Sep 17 00:00:00 2001 From: chandler Date: Sat, 3 Nov 2018 20:19:15 -0400 Subject: [PATCH 072/288] Remove more references to 'whitelabel' Signed-off-by: chandler --- USAGE.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/USAGE.md b/USAGE.md index 1eb8d117..df7dc6dc 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2315,7 +2315,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in IP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic. -IP pools can only be used with whitelabeled IP addresses. +IP pools can only be used with authenticated IP addresses. If an IP pool is NOT specified for an email, it will use any IP available, including ones in pools. @@ -2343,7 +2343,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu IP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic. -IP pools can only be used with whitelabeled IP addresses. +IP pools can only be used with authenticated IP addresses. If an IP pool is NOT specified for an email, it will use any IP available, including ones in pools. @@ -2370,7 +2370,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu IP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic. -IP pools can only be used with whitelabeled IP addresses. +IP pools can only be used with authenticated IP addresses. If an IP pool is NOT specified for an email, it will use any IP available, including ones in pools. @@ -2398,7 +2398,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu IP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic. -IP pools can only be used with whitelabeled IP addresses. +IP pools can only be used with authenticated IP addresses. If an IP pool is NOT specified for an email, it will use any IP available, including ones in pools. @@ -2425,7 +2425,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu IP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic. -IP pools can only be used with whitelabeled IP addresses. +IP pools can only be used with authenticated IP addresses. If an IP pool is NOT specified for an email, it will use any IP available, including ones in pools. @@ -4229,7 +4229,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/ui/a ``` ## Associate a Link Branding -**This endpoint allows you to associate a link whitelabel with a subuser account.** +**This endpoint allows you to associate a link branding with a subuser account.** Link branding can be associated with subusers from the parent account. This functionality allows subusers to send mail using their parent's link brands. To associate a link branding, the parent account @@ -4532,7 +4532,7 @@ Each subuser should be assigned to an IP address, from which all of this subuser More information: * [How to request more IPs](https://sendgrid.com/docs/Classroom/Basics/Account/adding_an_additional_dedicated_ip_to_your_account.html) -* [IPs can be whitelabeled](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/ips.html) +* [How to set up reverse DNS](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/) ### PUT /subusers/{subuser_name}/ips From 22292142bf243d1a838744ee43902b5050bb6e5b Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Thu, 4 Apr 2019 16:25:54 -0700 Subject: [PATCH 073/288] Useability update. --- USE_CASES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/USE_CASES.md b/USE_CASES.md index ea846b58..11e3f9fa 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -10,7 +10,7 @@ This documentation provides examples for specific use cases. Please [open an iss # Transactional Templates -For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. +For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html) in the UI or via the API. Following is the template content we used for testing. Template ID (replace with your own): From 055ac4f8cc14b5826795c68b1681f7823e655324 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Fri, 17 May 2019 09:17:56 -0700 Subject: [PATCH 074/288] SMS example --- USE_CASES.md | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/USE_CASES.md b/USE_CASES.md index 11e3f9fa..522a76f4 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -6,6 +6,7 @@ This documentation provides examples for specific use cases. Please [open an iss * [Legacy Templates](#legacy-templates) * [How to Setup a Domain Authentication](#domain-authentication) * [How to View Email Statistics](#email-stats) +* [Send a SMS Message](#sms) # Transactional Templates @@ -231,3 +232,87 @@ You can find documentation for how to view your email statistics via the UI [her Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as SendGrid processes your email. + +# Send a SMS Message + +Following are the steps to add Twilio SMS to your app: + +## 1. Obtain a Free Twilio Account + +Sign up for a free Twilio account [here](https://www.twilio.com/try-twilio?source=sendgrid-java). + +## 2. Update Your Environment Variables + +You can obtain your Account Sid and Auth Token from [twilio.com/console](https://twilio.com/console). + +### Mac + +```bash +echo "export TWILIO_ACCOUNT_SID='YOUR_TWILIO_ACCOUNT_SID'" > twilio.env +echo "export TWILIO_AUTH_TOKEN='YOUR_TWILIO_AUTH_TOKEN'" >> twilio.env +echo "twilio.env" >> .gitignore +source ./twilio.env +``` + +### Windows + +Temporarily set the environment variable (accessible only during the current CLI session): + +```bash +set TWILIO_ACCOUNT_SID=YOUR_TWILIO_ACCOUNT_SID +set TWILIO_AUTH_TOKEN=YOUR_TWILIO_AUTH_TOKEN +``` + +Permanently set the environment variable (accessible in all subsequent CLI sessions): + +```bash +setx TWILIO_ACCOUNT_SID "YOUR_TWILIO_ACCOUNT_SID" +setx TWILIO_AUTH_TOKEN "YOUR_TWILIO_AUTH_TOKEN" +``` + +## 3. Install the Twilio Helper Library + +`twilio-java` uses Maven. At present the jars *are* available from a public [maven](http://mvnrepository.com/artifact/com.twilio.sdk/twilio) repository. + +Use the following dependency in your project to grab via Maven: + +```xml + + com.twilio.sdk + twilio + 7.X.X + compile + +``` + +or Gradle: +```groovy +compile "com.twilio.sdk:twilio:7.X.X" +```` + +If you want to compile it yourself, here is how: + +```bash +$ git clone git@github.com:twilio/twilio-java +$ cd twilio-java +$ mvn install # Requires maven, download from http://maven.apache.org/download.html +``` + +Then, you can execute the following code. + +```java +String accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID"); +String authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN"); + +Twilio.init(accountSid, authToken); + +Message message = Message.creator( + new PhoneNumber("+15558881234"), // To number + new PhoneNumber("+15559994321"), // From number + "Hello world!" // SMS body +).create(); + +System.out.println(message.getSid()); +``` + +For more information, please visit the [Twilio SMS Java documentation](https://www.twilio.com/docs/sms/quickstart/java). \ No newline at end of file From c1038b2faf5f62311bdac290a4b8f4866b384159 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Fri, 17 May 2019 11:03:10 -0700 Subject: [PATCH 075/288] Twilio branding updates & CLA update --- .github/PULL_REQUEST_TEMPLATE | 2 + CODE_OF_CONDUCT.md | 20 +- CONTRIBUTING.md | 32 +-- LICENSE.md | 2 +- README.md | 20 +- TROUBLESHOOTING.md | 27 ++- USAGE.md | 206 +++++++++--------- USE_CASES.md | 6 +- bin/com/sendgrid/helpers/README.md | 2 +- build.gradle | 4 +- docker/Dockerfile | 4 +- docker/README.md | 10 +- docker/USAGE.md | 9 +- examples/helpers/mail/Example.java | 8 +- examples/mail/mail.java | 2 +- proposals/mail-helper-refactor.md | 12 +- src/main/java/com/sendgrid/SendGrid.java | 32 +-- src/main/java/com/sendgrid/SendGridAPI.java | 10 +- src/main/java/com/sendgrid/helpers/README.md | 2 +- .../java/com/sendgrid/helpers/mail/Mail.java | 2 +- 20 files changed, 204 insertions(+), 208 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE index bd65d2ff..4aa9c567 100644 --- a/.github/PULL_REQUEST_TEMPLATE +++ b/.github/PULL_REQUEST_TEMPLATE @@ -1,6 +1,7 @@ -# Fixes # +# Fixes ### Checklist - [ ] I acknowledge that all my contributions will be made under the project's license @@ -20,7 +20,7 @@ Closes #2 - [ ] I have added in line documentation to the code I modified ### Short description of what this PR does: -- -- +- +- -If you have questions, please send an email to [Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository. \ No newline at end of file +If you have questions, please send an email to [SendGrid](mailto:dx@sendgrid.com), or file a GitHub Issue in this repository. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index d2ca9db9..f0883c7d 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,42 +1,42 @@ - + # Twilio SendGrid Community Code of Conduct - - The Twilio SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community. - + + The Twilio SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community. + ### Be Open Members of the community are open to collaboration, whether it's on pull requests, code reviews, approvals, issues or otherwise. We're receptive to constructive comments and criticism, as the experiences and skill sets of all members contribute to the whole of our efforts. We're accepting of all who wish to take part in our activities, fostering an environment where anyone can participate, and everyone can make a difference. - + ### Be Considerate Members of the community are considerate of their peers, which include other contributors and users of Twilio SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views. - + ### Be Respectful Members of the community are respectful. We're respectful of others, their positions, their skills, their commitments and their efforts. We're respectful of the volunteer efforts that permeate the Twilio SendGrid community. We're respectful of the processes outlined in the community, and we work within them. When we disagree, we are courteous in raising our issues. Overall, we're good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, these guidelines will come naturally. - - ## Additional Guidance - + + ## Additional Guidance + ### Disclose Potential Conflicts of Interest Community discussions often involve interested parties. We expect participants to be aware when they are conflicted due to employment or other projects they are involved in and disclose those interests to other project members. When in doubt, over-disclose. Perceived conflicts of interest are important to address so that the community’s decisions are credible even when unpopular, difficult or favorable to the interests of one group over another. - + ### Interpretation - This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [Twilio SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest. - + This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [Twilio SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest. + ### Enforcement Most members of the Twilio SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors. - + ## If you have concerns about someone’s conduct **Initiate Direct Contact** - It is always appropriate to email a community member (if contact information is available), mention that you think their behavior was out of line, and (if necessary) point them to this Code. - + **Discuss Publicly** - Discussing publicly is always acceptable. Note, though, that approaching the person directly may be better, as it tends to make them less defensive, and it respects the time of other community members, so you probably want to try direct contact first. - + **Contact the Moderators** - You can reach the Twilio SendGrid moderators by emailing dx@sendgrid.com. - + ## Submission to Twilio SendGrid Repositories - Finally, just a reminder, changes to the Twilio SendGrid repositories will only be accepted upon completion of the [Twilio SendGrid Contributor Agreement](https://cla.sendgrid.com). - + Finally, just a reminder, changes to the Twilio SendGrid repositories will only be accepted upon completion of the [Twilio SendGrid Contributor Agreement](https://cla.sendgrid.com). + ## Attribution - + Twilio SendGrid thanks the following, on which it draws for content and inspiration: - - * [Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/) - * [Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct) - * [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html) + + * [Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/) + * [Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct) + * [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 531dcb88..998199f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,7 @@ A software bug is a demonstrable issue in the code base. In order for us to diag Before you decide to create a new issue, please try the following: -1. Check the Github issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post. +1. Check the GitHub issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post. 2. Update to the latest version of this code and check if issue has already been fixed 3. Copy and fill in the Bug Report Template we have provided below @@ -166,10 +166,10 @@ Please run your code through: ```bash # Clone your fork of the repo into the current directory git clone https://github.com/sendgrid/sendgrid-java - + # Navigate to the newly cloned directory cd sendgrid-java - + # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/sendgrid/sendgrid-java ``` diff --git a/README.md b/README.md index 3b941063..806ec008 100644 --- a/README.md +++ b/README.md @@ -232,9 +232,10 @@ Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-java sendgrid-java is guided and supported by the Twilio Developer Experience Team. -Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in case of any queries. +Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in case of any queries. sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of Twilio SendGrid, Inc. # License + [The MIT License (MIT)](LICENSE.md) From 6a5d0496ff30b313450d97ac5888d74530d35384 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Fri, 31 Jan 2020 11:13:28 -0800 Subject: [PATCH 085/288] chore: prep the repo for automated release (#599) * chore: prep repo for automated releasing Co-authored-by: Elmer Thomas --- .gitignore | 4 +- .maven.xml | 24 + .travis.yml | 57 +- CHANGELOG.md | 3 +- LICENSE.md | 2 +- Makefile | 17 + build.gradle | 173 -- examples/temp.txt | 1917 ++++++++++++++++++++++ examples/temp2.txt | 1917 ++++++++++++++++++++++ gradle.properties.example | 6 - gradle/wrapper/gradle-wrapper.jar | Bin 51348 -> 0 bytes gradle/wrapper/gradle-wrapper.properties | 6 - gradlew | 164 -- gradlew.bat | 90 - pom.xml | 53 +- scripts/upload.sh | 8 - 16 files changed, 3957 insertions(+), 484 deletions(-) create mode 100644 .maven.xml create mode 100644 Makefile delete mode 100644 build.gradle create mode 100644 examples/temp.txt create mode 100644 examples/temp2.txt delete mode 100644 gradle.properties.example delete mode 100644 gradle/wrapper/gradle-wrapper.jar delete mode 100644 gradle/wrapper/gradle-wrapper.properties delete mode 100755 gradlew delete mode 100644 gradlew.bat delete mode 100755 scripts/upload.sh diff --git a/.gitignore b/.gitignore index 551957d8..fa35c4dd 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,6 @@ examples/Example.java .classpath .project .env -.vscode \ No newline at end of file +.vscode +sendgrid-java.jar +dependency-reduced-pom.xml diff --git a/.maven.xml b/.maven.xml new file mode 100644 index 00000000..bef1ab68 --- /dev/null +++ b/.maven.xml @@ -0,0 +1,24 @@ + + + + + ossrh + ${env.SONATYPE_USERNAME} + ${env.SONATYPE_PASSWORD} + + + + + + ossrh + + true + + + ${env.GPG_EXECUTABLE} + ${env.GPG_PASSPHRASE} + + + + diff --git a/.travis.yml b/.travis.yml index 944f6df3..167344c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,31 @@ language: java matrix: include: - - jdk: openjdk8 - - jdk: oraclejdk8 + - name: 'OpenJDK 7' + jdk: openjdk7 + - name: 'OpenJDK 8' + jdk: openjdk8 + - name: 'Oracle JDK 7' + jdk: oraclejdk7 + - name: 'Oracle JDK 8' + jdk: oraclejdk8 + - name: 'OpenJDK 11' + jdk: openjdk11 + allow_failures: + - name: 'Oracle JDK 8' # See https://travis-ci.community/t/expected-feature-release-number-in-range-of-9-to-12-but-got-8-installing-oraclejdk8/1345/14 + - name: 'OpenJDK 7' + - name: 'Oracle JDK 7' + - name: 'OpenJDK 11' before_script: -- "./scripts/startPrism.sh &" -- sleep 20 -before_install: - - cat /etc/hosts # optionally check the content *before* - - sudo hostname "$(hostname | cut -c1-63)" - - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts - - sudo mv /tmp/hosts /etc/hosts - - cat /etc/hosts # optionally check the content *after* -after_script: - - lsof -i :4010 -S # adds some debugging statements - - "./gradlew build" - - "./scripts/upload.sh" -env: - global: - - S3_POLICY: ewogICJleHBpcmF0aW9uIjogIjIxMDAtMDEtMDFUMTI6MDA6MDAuMDAwWiIsCiAgImNvbmRpdGlvbnMiOiBbCiAgICB7ImFjbCI6ICJwdWJsaWMtcmVhZCIgfSwKICAgIHsiYnVja2V0IjogInNlbmRncmlkLW9wZW4tc291cmNlIiB9LAogICAgWyJzdGFydHMtd2l0aCIsICIka2V5IiwgInNlbmRncmlkLWphdmEvIl0sCiAgICBbImNvbnRlbnQtbGVuZ3RoLXJhbmdlIiwgMjA0OCwgMjY4NDM1NDU2XSwKICAgIFsiZXEiLCAiJENvbnRlbnQtVHlwZSIsICJhcHBsaWNhdGlvbi96aXAiXQogIF0KfQo= - - secure: Iki1btwhG1nlyjnEMu90Oh/hoatFpPiiKkqpj7siLnlLp2xbBQ2003jRsn30I3Vujes2ugvzdlHqBJ9lDwRvfGrKXcLlRvYuDQ24N2YKquEiKHUxs+iMOzTQj6Sf64KL5O0aSZd1l5rjWgsQ0qqjHW9u3l5bUjqxzrhAI2Js37U= - - secure: Khi6a4z1lfZmDEDV738MOiWznRcTv5ILZUM+igEw2txX7PGX+B5909WridpAijTGiurJ6eda7jvsUgci8DTPQCXB18LD6N870hnPcSQkuI6zDAhKTx+w/ZsfPLWh28sP2CVzbqGdxaitZDKxRWaVmKnBZpyi8XI9UKjmyK2sjwE= - - secure: wKXAjjBgCLM4h++nP1xDQQtYU10JbwwynY0XB920SoQjI2Uu82cMPtkEXFWTpzyIS2hE5B3qvu75VHNdLqDUtek3e3lBg5k3SpYgGin20dg3SDEJrvA4vlvcApdQ132pMEWdDOVwzbXhm9+JTjALYbc3fX+VAQX1u5daPyeDGC4= -notifications: - hipchat: - rooms: - secure: kJyc36IRkovqK3JuMXJuBBkDFkDfZ9iAE8ZziszzL9zNsfY2fAQWDk4bMrFO0yYW9OwRXl0gT97HVYWBZFDhjtstUJxit0lpUB+TNIDw2lqCkOIPxGKgcBB9mDS795QyLJzletObP/guPxbzSNOGLa6+k4GbTtTMXRhjzN6lF0o= - template: - - '%{repository} - Build %{build_number} on branch %{branch} by %{author}: %{message} - View on GitHub' - format: html - notify: true + - "./scripts/startPrism.sh &" + - sleep 20 +install: + - mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V +deploy: + - provider: script + script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease + edge: true + on: + tags: true + jdk: openjdk8 + branch: master diff --git a/CHANGELOG.md b/CHANGELOG.md index ddf44787..1294aa28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # Change Log All notable changes to this project will be documented in this file. -## [4.4.1] - 2019-05-20 +[2019-05-20] Version 4.4.1 +--------------------------- ### Fix - 4.4.0 release not deployed properly to Maven diff --git a/LICENSE.md b/LICENSE.md index e5441aa6..d55059a3 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2019 Twilio SendGrid, Inc. +Copyright (c) 2013-2020 Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..bc1a62ee --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +.PHONY: install test test-integration clean + +VERSION := $(shell mvn help:evaluate -Dexpression=project.version | grep -e '^[^\[]') +install: + @java -version || (echo "Java is not installed, please install Java >= 7"; exit 1); + mvn clean install -DskipTests=true -Dgpg.skip -B + cp target/sendgrid-java-$(VERSION).jar sendgrid-java.jar + +test: + mvn test + +test-integration: + ./scripts/startPrism.sh & + sleep 5 + +clean: + mvn clean diff --git a/build.gradle b/build.gradle deleted file mode 100644 index b414002c..00000000 --- a/build.gradle +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Commands: - * - gradle build - * - gradle test - * - gradle assemble - * - gradle uploadArchives - * - * To execute the 'uploadArchives' task, the following properties must be specified - * in an external 'gradle.properties' file: - * - sonatypeUsername - * - sonatypePassword - */ - -apply plugin: 'java' -apply plugin: 'fatjar' -apply plugin: 'maven' -apply plugin: 'signing' - -group = 'com.sendgrid' -version = '4.4.1' -ext.packaging = 'jar' - -allprojects { - apply plugin: 'java' - sourceCompatibility = 1.7 - targetCompatibility = 1.7 -} - -if (!hasProperty("sonatypeUsername")) { - ext.sonatypeUsername = null - ext.sonatypePassword = null -} - -task wrapper(type: Wrapper) { - gradleVersion = '1.8' -} - -buildscript { - dependencies { - classpath 'eu.appsatori:gradle-fatjar-plugin:0.1.2' // adds fatJar task - } - repositories { - mavenCentral() - } -} - -dependencies { - implementation 'com.sendgrid:java-http-client:4.1.0' - implementation 'com.fasterxml.jackson.core:jackson-core:2.9.9' - implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.9' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9' - testImplementation group: 'junit', name: 'junit', version: '4.12' -} - -repositories { - mavenCentral() -} - -allprojects { - gradle.projectsEvaluated { - tasks.withType(JavaCompile) { - options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" - } - } -} - -// adds 'with-dependencies' to the fatJar name -fatJar { - classifier 'jar' - baseName "sendgrid" - manifest { - attributes("Implementation-Title": "Twilio SendGrid", "Implementation-Version": version) - } -} - -// copy fatJar to base project directory so they will be in git (and on github for download) -build << { - copy { - println "Copying ${fatJar.archiveName} to $projectDir/repo/com/sendgrid" - from("$buildDir/libs/${fatJar.archiveName}") - into("$projectDir/repo/com/sendgrid") - } - tasks.renameSendGridVersionJarToSendGridJar.execute() -} - -task renameSendGridVersionJarToSendGridJar { - doLast { - file("$projectDir/repo/com/sendgrid/${fatJar.archiveName}").renameTo(file("$projectDir/repo/com/sendgrid/sendgrid-java-latest.jar")) - copy { - from("$buildDir/libs/${fatJar.archiveName}") - into("$projectDir/repo/com/sendgrid") - } - file("$projectDir/repo/com/sendgrid/${fatJar.archiveName}").renameTo(file("$projectDir/repo/com/sendgrid/sendgrid-java-${version}.jar")) - } -} - -task startPrism(type: Exec) { - workingDir 'scripts' - commandLine './startPrism.sh' -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from 'build/docs/javadoc' -} - -task sourcesJar(type: Jar) { - from sourceSets.main.allSource - classifier = 'sources' -} - -signing { - required { gradle.taskGraph.hasTask("uploadArchives") } - sign configurations.archives -} - -uploadArchives { - repositories { - mavenDeployer { - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication(userName: sonatypeUsername, password: sonatypePassword) - } - - pom.project { - name 'sendgrid-java' - packaging 'jar' - description 'Twilio SendGrid Java helper library' - url 'https://github.com/sendgrid/sendgrid-java' - - scm { - url 'scm:git@github.com:sendgrid/sendgrid-java.git' - connection 'scm:git@github.com:sendgrid/sendgrid-java.git' - developerConnection 'scm:git@github.com:sendgrid/sendgrid-java.git' - } - - licenses { - license { - name 'MIT License' - url 'http://opensource.org/licenses/MIT' - distribution 'repo' - } - } - - developers { - developer { - id 'thinkingserious' - name 'Elmer Thomas' - } - developer { - id 'scottmotte' - name 'Scott Motte' - } - developer { - id 'elbou8' - name 'Yamil Asusta' - } - developer { - id 'eddiezane' - name 'Eddie Zaneski' - } - } - } - } - } -} - -artifacts { - archives fatJar - archives jar - archives javadocJar - archives sourcesJar -} diff --git a/examples/temp.txt b/examples/temp.txt new file mode 100644 index 00000000..83556ad8 --- /dev/null +++ b/examples/temp.txt @@ -0,0 +1,1917 @@ +META-INF/ +META-INF/MANIFEST.MF +LICENSE.md +com/ +com/sendgrid/ +com/sendgrid/SendGridAPI.class +com/sendgrid/SendGrid$1.class +com/sendgrid/APICallback.class +com/sendgrid/SendGrid$2.class +com/sendgrid/SendGrid.class +com/sendgrid/SpamCheckSetting.class +com/sendgrid/Attachments$Builder.class +com/sendgrid/OpenTrackingSetting.class +com/sendgrid/Setting.class +com/sendgrid/GoogleAnalyticsSetting.class +com/sendgrid/ASM.class +com/sendgrid/FooterSetting.class +com/sendgrid/Personalization.class +com/sendgrid/Email.class +com/sendgrid/MailSettings.class +com/sendgrid/BccSettings.class +com/sendgrid/Content.class +com/sendgrid/TrackingSettings.class +com/sendgrid/ClickTrackingSetting.class +com/sendgrid/Attachments.class +com/sendgrid/ContentVerifier.class +com/sendgrid/SubscriptionTrackingSetting.class +com/sendgrid/Mail.class +com/sendgrid/RateLimitException.class +META-INF/maven/ +META-INF/maven/com.sendgrid/ +META-INF/maven/com.sendgrid/sendgrid-java/ +META-INF/maven/com.sendgrid/sendgrid-java/pom.xml +META-INF/maven/com.sendgrid/sendgrid-java/pom.properties +com/sendgrid/Client$1.class +com/sendgrid/Client.class +com/sendgrid/HttpDeleteWithBody.class +com/sendgrid/Method.class +com/sendgrid/Request.class +com/sendgrid/Response.class +com/sendgrid/SendGridResponseHandler.class +org/ +org/apache/ +org/apache/http/ +org/apache/http/message/ +org/apache/http/message/BasicHeaderElementIterator.class +org/apache/http/message/LineParser.class +org/apache/http/message/BasicHttpEntityEnclosingRequest.class +org/apache/http/message/HeaderValueFormatter.class +org/apache/http/message/BasicLineFormatter.class +org/apache/http/message/BasicLineParser.class +org/apache/http/message/HeaderGroup.class +org/apache/http/message/BasicNameValuePair.class +org/apache/http/message/BufferedHeader.class +org/apache/http/message/BasicListHeaderIterator.class +org/apache/http/message/BasicHeader.class +org/apache/http/message/LineFormatter.class +org/apache/http/message/BasicHttpResponse.class +org/apache/http/message/BasicTokenIterator.class +org/apache/http/message/BasicRequestLine.class +org/apache/http/message/ParserCursor.class +org/apache/http/message/BasicHeaderValueParser.class +org/apache/http/message/BasicHeaderValueFormatter.class +org/apache/http/message/BasicHttpRequest.class +org/apache/http/message/HeaderValueParser.class +org/apache/http/message/AbstractHttpMessage.class +org/apache/http/message/TokenParser.class +org/apache/http/message/BasicHeaderIterator.class +org/apache/http/message/BasicHeaderElement.class +org/apache/http/message/BasicStatusLine.class +org/apache/http/concurrent/ +org/apache/http/concurrent/BasicFuture.class +org/apache/http/concurrent/Cancellable.class +org/apache/http/concurrent/FutureCallback.class +org/apache/http/HeaderElement.class +org/apache/http/TruncatedChunkException.class +org/apache/http/ExceptionLogger$1.class +org/apache/http/version.properties +org/apache/http/HeaderElementIterator.class +org/apache/http/ProtocolVersion.class +org/apache/http/ExceptionLogger.class +org/apache/http/HttpRequestFactory.class +org/apache/http/HttpConnection.class +org/apache/http/HttpRequestInterceptor.class +org/apache/http/ContentTooLongException.class +org/apache/http/UnsupportedHttpVersionException.class +org/apache/http/HttpResponseInterceptor.class +org/apache/http/HttpInetConnection.class +org/apache/http/HttpEntity.class +org/apache/http/HttpException.class +org/apache/http/annotation/ +org/apache/http/annotation/Obsolete.class +org/apache/http/annotation/Experimental.class +org/apache/http/annotation/NotThreadSafe.class +org/apache/http/annotation/Immutable.class +org/apache/http/annotation/ThreadSafe.class +org/apache/http/annotation/GuardedBy.class +org/apache/http/Consts.class +org/apache/http/HttpConnectionMetrics.class +org/apache/http/HttpMessage.class +org/apache/http/MethodNotSupportedException.class +org/apache/http/ParseException.class +org/apache/http/params/ +org/apache/http/params/CoreProtocolPNames.class +org/apache/http/params/SyncBasicHttpParams.class +org/apache/http/params/DefaultedHttpParams.class +org/apache/http/params/HttpParams.class +org/apache/http/params/AbstractHttpParams.class +org/apache/http/params/HttpAbstractParamBean.class +org/apache/http/params/HttpConnectionParams.class +org/apache/http/params/BasicHttpParams.class +org/apache/http/params/HttpConnectionParamBean.class +org/apache/http/params/CoreConnectionPNames.class +org/apache/http/params/HttpParamConfig.class +org/apache/http/params/HttpProtocolParamBean.class +org/apache/http/params/HttpProtocolParams.class +org/apache/http/params/HttpParamsNames.class +org/apache/http/ReasonPhraseCatalog.class +org/apache/http/MalformedChunkCodingException.class +org/apache/http/FormattedHeader.class +org/apache/http/HttpResponse.class +org/apache/http/HeaderIterator.class +org/apache/http/HttpHeaders.class +org/apache/http/HttpClientConnection.class +org/apache/http/HttpHost.class +org/apache/http/protocol/ +org/apache/http/protocol/ResponseDate.class +org/apache/http/protocol/ChainBuilder.class +org/apache/http/protocol/HttpDateGenerator.class +org/apache/http/protocol/HttpRequestHandlerMapper.class +org/apache/http/protocol/HTTP.class +org/apache/http/protocol/SyncBasicHttpContext.class +org/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter.class +org/apache/http/protocol/ImmutableHttpProcessor.class +org/apache/http/protocol/BasicHttpContext.class +org/apache/http/protocol/HttpProcessorBuilder.class +org/apache/http/protocol/RequestTargetHost.class +org/apache/http/protocol/ResponseConnControl.class +org/apache/http/protocol/HttpRequestInterceptorList.class +org/apache/http/protocol/HttpRequestExecutor.class +org/apache/http/protocol/RequestUserAgent.class +org/apache/http/protocol/HttpRequestHandlerResolver.class +org/apache/http/protocol/BasicHttpProcessor.class +org/apache/http/protocol/ResponseServer.class +org/apache/http/protocol/ResponseContent.class +org/apache/http/protocol/RequestDate.class +org/apache/http/protocol/HttpService.class +org/apache/http/protocol/HttpContext.class +org/apache/http/protocol/RequestConnControl.class +org/apache/http/protocol/UriHttpRequestHandlerMapper.class +org/apache/http/protocol/UriPatternMatcher.class +org/apache/http/protocol/HttpCoreContext.class +org/apache/http/protocol/HttpProcessor.class +org/apache/http/protocol/RequestExpectContinue.class +org/apache/http/protocol/HttpExpectationVerifier.class +org/apache/http/protocol/HttpRequestHandlerRegistry.class +org/apache/http/protocol/HttpResponseInterceptorList.class +org/apache/http/protocol/HttpRequestHandler.class +org/apache/http/protocol/ExecutionContext.class +org/apache/http/protocol/RequestContent.class +org/apache/http/protocol/DefaultedHttpContext.class +org/apache/http/HttpStatus.class +org/apache/http/TokenIterator.class +org/apache/http/ssl/ +org/apache/http/ssl/SSLContextBuilder$TrustManagerDelegate.class +org/apache/http/ssl/TrustStrategy.class +org/apache/http/ssl/PrivateKeyStrategy.class +org/apache/http/ssl/SSLContextBuilder$KeyManagerDelegate.class +org/apache/http/ssl/SSLContexts.class +org/apache/http/ssl/SSLContextBuilder.class +org/apache/http/ssl/SSLInitializationException.class +org/apache/http/ssl/PrivateKeyDetails.class +org/apache/http/ConnectionReuseStrategy.class +org/apache/http/pool/ +org/apache/http/pool/AbstractConnPool$4.class +org/apache/http/pool/AbstractConnPool$2.class +org/apache/http/pool/PoolEntry.class +org/apache/http/pool/ConnFactory.class +org/apache/http/pool/RouteSpecificPool.class +org/apache/http/pool/AbstractConnPool$3.class +org/apache/http/pool/PoolEntryCallback.class +org/apache/http/pool/AbstractConnPool.class +org/apache/http/pool/ConnPoolControl.class +org/apache/http/pool/PoolStats.class +org/apache/http/pool/AbstractConnPool$1.class +org/apache/http/pool/ConnPool.class +org/apache/http/pool/PoolEntryFuture.class +org/apache/http/config/ +org/apache/http/config/MessageConstraints$Builder.class +org/apache/http/config/ConnectionConfig.class +org/apache/http/config/SocketConfig.class +org/apache/http/config/Registry.class +org/apache/http/config/ConnectionConfig$Builder.class +org/apache/http/config/RegistryBuilder.class +org/apache/http/config/SocketConfig$Builder.class +org/apache/http/config/MessageConstraints.class +org/apache/http/config/Lookup.class +org/apache/http/HttpResponseFactory.class +org/apache/http/HttpRequest.class +org/apache/http/RequestLine.class +org/apache/http/HttpServerConnection.class +org/apache/http/NameValuePair.class +org/apache/http/util/ +org/apache/http/util/LangUtils.class +org/apache/http/util/NetUtils.class +org/apache/http/util/EntityUtils.class +org/apache/http/util/EncodingUtils.class +org/apache/http/util/TextUtils.class +org/apache/http/util/CharsetUtils.class +org/apache/http/util/CharArrayBuffer.class +org/apache/http/util/ByteArrayBuffer.class +org/apache/http/util/Asserts.class +org/apache/http/util/ExceptionUtils.class +org/apache/http/util/Args.class +org/apache/http/util/VersionInfo.class +org/apache/http/HttpVersion.class +org/apache/http/HttpConnectionFactory.class +org/apache/http/impl/ +org/apache/http/impl/DefaultHttpRequestFactory.class +org/apache/http/impl/SocketHttpClientConnection.class +org/apache/http/impl/bootstrap/ +org/apache/http/impl/bootstrap/SSLServerSetupHandler.class +org/apache/http/impl/bootstrap/HttpServer$Status.class +org/apache/http/impl/bootstrap/ThreadFactoryImpl.class +org/apache/http/impl/bootstrap/Worker.class +org/apache/http/impl/bootstrap/RequestListener.class +org/apache/http/impl/bootstrap/ServerBootstrap.class +org/apache/http/impl/bootstrap/HttpServer.class +org/apache/http/impl/SocketHttpServerConnection.class +org/apache/http/impl/BHttpConnectionBase.class +org/apache/http/impl/DefaultConnectionReuseStrategy.class +org/apache/http/impl/DefaultHttpServerConnection.class +org/apache/http/impl/AbstractHttpClientConnection.class +org/apache/http/impl/EnglishReasonPhraseCatalog.class +org/apache/http/impl/DefaultBHttpServerConnection.class +org/apache/http/impl/DefaultHttpClientConnection.class +org/apache/http/impl/pool/ +org/apache/http/impl/pool/BasicConnPool.class +org/apache/http/impl/pool/BasicConnFactory.class +org/apache/http/impl/pool/BasicPoolEntry.class +org/apache/http/impl/DefaultBHttpClientConnectionFactory.class +org/apache/http/impl/DefaultBHttpClientConnection.class +org/apache/http/impl/AbstractHttpServerConnection.class +org/apache/http/impl/io/ +org/apache/http/impl/io/HttpResponseWriter.class +org/apache/http/impl/io/HttpTransportMetricsImpl.class +org/apache/http/impl/io/AbstractSessionInputBuffer.class +org/apache/http/impl/io/DefaultHttpRequestWriter.class +org/apache/http/impl/io/SessionInputBufferImpl.class +org/apache/http/impl/io/ContentLengthOutputStream.class +org/apache/http/impl/io/SocketInputBuffer.class +org/apache/http/impl/io/DefaultHttpResponseWriterFactory.class +org/apache/http/impl/io/DefaultHttpRequestWriterFactory.class +org/apache/http/impl/io/IdentityOutputStream.class +org/apache/http/impl/io/IdentityInputStream.class +org/apache/http/impl/io/SocketOutputBuffer.class +org/apache/http/impl/io/ChunkedOutputStream.class +org/apache/http/impl/io/DefaultHttpResponseParserFactory.class +org/apache/http/impl/io/ContentLengthInputStream.class +org/apache/http/impl/io/HttpRequestWriter.class +org/apache/http/impl/io/DefaultHttpResponseWriter.class +org/apache/http/impl/io/DefaultHttpRequestParserFactory.class +org/apache/http/impl/io/AbstractMessageParser.class +org/apache/http/impl/io/EmptyInputStream.class +org/apache/http/impl/io/DefaultHttpRequestParser.class +org/apache/http/impl/io/SessionOutputBufferImpl.class +org/apache/http/impl/io/HttpRequestParser.class +org/apache/http/impl/io/AbstractSessionOutputBuffer.class +org/apache/http/impl/io/DefaultHttpResponseParser.class +org/apache/http/impl/io/ChunkedInputStream.class +org/apache/http/impl/io/AbstractMessageWriter.class +org/apache/http/impl/io/HttpResponseParser.class +org/apache/http/impl/entity/ +org/apache/http/impl/entity/DisallowIdentityContentLengthStrategy.class +org/apache/http/impl/entity/LaxContentLengthStrategy.class +org/apache/http/impl/entity/StrictContentLengthStrategy.class +org/apache/http/impl/entity/EntityDeserializer.class +org/apache/http/impl/entity/EntitySerializer.class +org/apache/http/impl/DefaultHttpResponseFactory.class +org/apache/http/impl/DefaultBHttpServerConnectionFactory.class +org/apache/http/impl/HttpConnectionMetricsImpl.class +org/apache/http/impl/ConnSupport.class +org/apache/http/impl/NoConnectionReuseStrategy.class +org/apache/http/ConnectionClosedException.class +org/apache/http/StatusLine.class +org/apache/http/io/ +org/apache/http/io/HttpMessageWriterFactory.class +org/apache/http/io/BufferInfo.class +org/apache/http/io/HttpMessageParserFactory.class +org/apache/http/io/HttpTransportMetrics.class +org/apache/http/io/SessionOutputBuffer.class +org/apache/http/io/HttpMessageParser.class +org/apache/http/io/EofSensor.class +org/apache/http/io/HttpMessageWriter.class +org/apache/http/io/SessionInputBuffer.class +org/apache/http/NoHttpResponseException.class +org/apache/http/HttpEntityEnclosingRequest.class +org/apache/http/entity/ +org/apache/http/entity/ContentLengthStrategy.class +org/apache/http/entity/FileEntity.class +org/apache/http/entity/InputStreamEntity.class +org/apache/http/entity/SerializableEntity.class +org/apache/http/entity/StringEntity.class +org/apache/http/entity/HttpEntityWrapper.class +org/apache/http/entity/ContentProducer.class +org/apache/http/entity/BufferedHttpEntity.class +org/apache/http/entity/ByteArrayEntity.class +org/apache/http/entity/EntityTemplate.class +org/apache/http/entity/BasicHttpEntity.class +org/apache/http/entity/ContentType.class +org/apache/http/entity/AbstractHttpEntity.class +org/apache/http/ProtocolException.class +org/apache/http/MessageConstraintException.class +org/apache/http/ExceptionLogger$2.class +org/apache/http/Header.class +META-INF/DEPENDENCIES +META-INF/NOTICE +META-INF/LICENSE +META-INF/maven/org.apache.httpcomponents/ +META-INF/maven/org.apache.httpcomponents/httpcore/ +META-INF/maven/org.apache.httpcomponents/httpcore/pom.xml +META-INF/maven/org.apache.httpcomponents/httpcore/pom.properties +org/apache/http/auth/ +org/apache/http/auth/KerberosCredentials.class +org/apache/http/auth/AuthSchemeRegistry.class +org/apache/http/auth/ChallengeState.class +org/apache/http/auth/NTUserPrincipal.class +org/apache/http/auth/InvalidCredentialsException.class +org/apache/http/auth/AuthSchemeRegistry$1.class +org/apache/http/auth/NTCredentials.class +org/apache/http/auth/AuthScheme.class +org/apache/http/auth/AuthenticationException.class +org/apache/http/auth/params/ +org/apache/http/auth/params/AuthParams.class +org/apache/http/auth/params/AuthParamBean.class +org/apache/http/auth/params/AuthPNames.class +org/apache/http/auth/BasicUserPrincipal.class +org/apache/http/auth/AuthSchemeProvider.class +org/apache/http/auth/ContextAwareAuthScheme.class +org/apache/http/auth/AuthProtocolState.class +org/apache/http/auth/AuthScope.class +org/apache/http/auth/AuthSchemeFactory.class +org/apache/http/auth/AUTH.class +org/apache/http/auth/Credentials.class +org/apache/http/auth/UsernamePasswordCredentials.class +org/apache/http/auth/AuthOption.class +org/apache/http/auth/MalformedChallengeException.class +org/apache/http/auth/AuthState.class +org/apache/http/cookie/ +org/apache/http/cookie/CookieSpecRegistry.class +org/apache/http/cookie/CookieSpec.class +org/apache/http/cookie/CookieRestrictionViolationException.class +org/apache/http/cookie/CookieIdentityComparator.class +org/apache/http/cookie/SM.class +org/apache/http/cookie/CookieOrigin.class +org/apache/http/cookie/CookieAttributeHandler.class +org/apache/http/cookie/SetCookie2.class +org/apache/http/cookie/params/ +org/apache/http/cookie/params/CookieSpecParamBean.class +org/apache/http/cookie/params/CookieSpecPNames.class +org/apache/http/cookie/MalformedCookieException.class +org/apache/http/cookie/ClientCookie.class +org/apache/http/cookie/CommonCookieAttributeHandler.class +org/apache/http/cookie/CookieSpecRegistry$1.class +org/apache/http/cookie/CookiePathComparator.class +org/apache/http/cookie/SetCookie.class +org/apache/http/cookie/Cookie.class +org/apache/http/cookie/CookieSpecProvider.class +org/apache/http/cookie/CookiePriorityComparator.class +org/apache/http/cookie/CookieSpecFactory.class +org/apache/http/client/ +org/apache/http/client/RedirectStrategy.class +org/apache/http/client/ConnectionBackoffStrategy.class +org/apache/http/client/version.properties +org/apache/http/client/AuthenticationStrategy.class +org/apache/http/client/HttpClient.class +org/apache/http/client/methods/ +org/apache/http/client/methods/HttpOptions.class +org/apache/http/client/methods/AbortableHttpRequest.class +org/apache/http/client/methods/HttpRequestBase.class +org/apache/http/client/methods/AbstractExecutionAwareRequest$2.class +org/apache/http/client/methods/RequestBuilder.class +org/apache/http/client/methods/HttpGet.class +org/apache/http/client/methods/HttpPatch.class +org/apache/http/client/methods/HttpDelete.class +org/apache/http/client/methods/HttpUriRequest.class +org/apache/http/client/methods/CloseableHttpResponse.class +org/apache/http/client/methods/HttpRequestWrapper$1.class +org/apache/http/client/methods/RequestBuilder$InternalEntityEclosingRequest.class +org/apache/http/client/methods/HttpRequestWrapper$HttpEntityEnclosingRequestWrapper.class +org/apache/http/client/methods/RequestBuilder$InternalRequest.class +org/apache/http/client/methods/HttpRequestWrapper.class +org/apache/http/client/methods/HttpHead.class +org/apache/http/client/methods/HttpExecutionAware.class +org/apache/http/client/methods/AbstractExecutionAwareRequest.class +org/apache/http/client/methods/Configurable.class +org/apache/http/client/methods/AbstractExecutionAwareRequest$1.class +org/apache/http/client/methods/HttpPost.class +org/apache/http/client/methods/HttpEntityEnclosingRequestBase.class +org/apache/http/client/methods/HttpTrace.class +org/apache/http/client/methods/HttpPut.class +org/apache/http/client/CredentialsProvider.class +org/apache/http/client/UserTokenHandler.class +org/apache/http/client/CookieStore.class +org/apache/http/client/HttpResponseException.class +org/apache/http/client/ClientProtocolException.class +org/apache/http/client/AuthenticationHandler.class +org/apache/http/client/params/ +org/apache/http/client/params/HttpClientParams.class +org/apache/http/client/params/ClientPNames.class +org/apache/http/client/params/ClientParamBean.class +org/apache/http/client/params/CookiePolicy.class +org/apache/http/client/params/AuthPolicy.class +org/apache/http/client/params/HttpClientParamConfig.class +org/apache/http/client/params/AllClientPNames.class +org/apache/http/client/CircularRedirectException.class +org/apache/http/client/utils/ +org/apache/http/client/utils/Punycode.class +org/apache/http/client/utils/Idn.class +org/apache/http/client/utils/HttpClientUtils.class +org/apache/http/client/utils/URIBuilder.class +org/apache/http/client/utils/URIUtils.class +org/apache/http/client/utils/DateUtils$DateFormatHolder.class +org/apache/http/client/utils/URLEncodedUtils.class +org/apache/http/client/utils/JdkIdn.class +org/apache/http/client/utils/CloneUtils.class +org/apache/http/client/utils/DateUtils.class +org/apache/http/client/utils/Rfc3492Idn.class +org/apache/http/client/protocol/ +org/apache/http/client/protocol/RequestAcceptEncoding.class +org/apache/http/client/protocol/ResponseProcessCookies.class +org/apache/http/client/protocol/RequestDefaultHeaders.class +org/apache/http/client/protocol/ResponseContentEncoding$2.class +org/apache/http/client/protocol/ClientContext.class +org/apache/http/client/protocol/ResponseAuthCache.class +org/apache/http/client/protocol/RequestAuthenticationBase$1.class +org/apache/http/client/protocol/RequestTargetAuthentication.class +org/apache/http/client/protocol/RequestProxyAuthentication.class +org/apache/http/client/protocol/RequestClientConnControl.class +org/apache/http/client/protocol/ResponseAuthCache$1.class +org/apache/http/client/protocol/RequestAddCookies.class +org/apache/http/client/protocol/RequestAuthCache.class +org/apache/http/client/protocol/ClientContextConfigurer.class +org/apache/http/client/protocol/ResponseContentEncoding$1.class +org/apache/http/client/protocol/RequestExpectContinue.class +org/apache/http/client/protocol/ResponseContentEncoding.class +org/apache/http/client/protocol/RequestAuthenticationBase.class +org/apache/http/client/protocol/HttpClientContext.class +org/apache/http/client/BackoffManager.class +org/apache/http/client/config/ +org/apache/http/client/config/RequestConfig$Builder.class +org/apache/http/client/config/RequestConfig.class +org/apache/http/client/config/CookieSpecs.class +org/apache/http/client/config/AuthSchemes.class +org/apache/http/client/AuthCache.class +org/apache/http/client/ResponseHandler.class +org/apache/http/client/RedirectException.class +org/apache/http/client/RedirectHandler.class +org/apache/http/client/NonRepeatableRequestException.class +org/apache/http/client/entity/ +org/apache/http/client/entity/DeflateInputStream.class +org/apache/http/client/entity/InputStreamFactory.class +org/apache/http/client/entity/UrlEncodedFormEntity.class +org/apache/http/client/entity/DeflateInputStream$DeflateStream.class +org/apache/http/client/entity/GzipCompressingEntity.class +org/apache/http/client/entity/EntityBuilder.class +org/apache/http/client/entity/LazyDecompressingInputStream.class +org/apache/http/client/entity/DecompressingEntity.class +org/apache/http/client/entity/GzipDecompressingEntity$1.class +org/apache/http/client/entity/DeflateDecompressingEntity$1.class +org/apache/http/client/entity/GzipDecompressingEntity.class +org/apache/http/client/entity/DeflateDecompressingEntity.class +org/apache/http/client/HttpRequestRetryHandler.class +org/apache/http/client/RequestDirector.class +org/apache/http/client/ServiceUnavailableRetryStrategy.class +org/apache/http/conn/ +org/apache/http/conn/OperatedClientConnection.class +org/apache/http/conn/ManagedClientConnection.class +org/apache/http/conn/ConnectionRequest.class +org/apache/http/conn/EofSensorInputStream.class +org/apache/http/conn/ClientConnectionOperator.class +org/apache/http/conn/HttpClientConnectionOperator.class +org/apache/http/conn/BasicManagedEntity.class +org/apache/http/conn/ConnectionKeepAliveStrategy.class +org/apache/http/conn/ManagedHttpClientConnection.class +org/apache/http/conn/BasicEofSensorWatcher.class +org/apache/http/conn/HttpClientConnectionManager.class +org/apache/http/conn/HttpRoutedConnection.class +org/apache/http/conn/EofSensorWatcher.class +org/apache/http/conn/routing/ +org/apache/http/conn/routing/BasicRouteDirector.class +org/apache/http/conn/routing/RouteInfo$LayerType.class +org/apache/http/conn/routing/RouteInfo.class +org/apache/http/conn/routing/RouteTracker.class +org/apache/http/conn/routing/HttpRouteDirector.class +org/apache/http/conn/routing/HttpRoutePlanner.class +org/apache/http/conn/routing/RouteInfo$TunnelType.class +org/apache/http/conn/routing/HttpRoute.class +org/apache/http/conn/SchemePortResolver.class +org/apache/http/conn/ClientConnectionManager.class +org/apache/http/conn/params/ +org/apache/http/conn/params/ConnManagerParamBean.class +org/apache/http/conn/params/ConnRouteParamBean.class +org/apache/http/conn/params/ConnManagerParams$1.class +org/apache/http/conn/params/ConnManagerPNames.class +org/apache/http/conn/params/ConnConnectionParamBean.class +org/apache/http/conn/params/ConnManagerParams.class +org/apache/http/conn/params/ConnPerRouteBean.class +org/apache/http/conn/params/ConnConnectionPNames.class +org/apache/http/conn/params/ConnPerRoute.class +org/apache/http/conn/params/ConnRoutePNames.class +org/apache/http/conn/params/ConnRouteParams.class +org/apache/http/conn/socket/ +org/apache/http/conn/socket/PlainConnectionSocketFactory.class +org/apache/http/conn/socket/ConnectionSocketFactory.class +org/apache/http/conn/socket/LayeredConnectionSocketFactory.class +org/apache/http/conn/ClientConnectionRequest.class +org/apache/http/conn/ssl/ +org/apache/http/conn/ssl/TrustSelfSignedStrategy.class +org/apache/http/conn/ssl/SSLContextBuilder$TrustManagerDelegate.class +org/apache/http/conn/ssl/DefaultHostnameVerifier$1.class +org/apache/http/conn/ssl/DefaultHostnameVerifier$TYPE.class +org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.class +org/apache/http/conn/ssl/TrustStrategy.class +org/apache/http/conn/ssl/PrivateKeyStrategy.class +org/apache/http/conn/ssl/SSLContextBuilder$KeyManagerDelegate.class +org/apache/http/conn/ssl/X509HostnameVerifier.class +org/apache/http/conn/ssl/AbstractVerifier.class +org/apache/http/conn/ssl/SSLSocketFactory.class +org/apache/http/conn/ssl/SSLConnectionSocketFactory.class +org/apache/http/conn/ssl/SSLContexts.class +org/apache/http/conn/ssl/AllowAllHostnameVerifier.class +org/apache/http/conn/ssl/StrictHostnameVerifier.class +org/apache/http/conn/ssl/SSLContextBuilder.class +org/apache/http/conn/ssl/DefaultHostnameVerifier.class +org/apache/http/conn/ssl/SSLInitializationException.class +org/apache/http/conn/ssl/PrivateKeyDetails.class +org/apache/http/conn/ssl/NoopHostnameVerifier.class +org/apache/http/conn/ConnectionPoolTimeoutException.class +org/apache/http/conn/ConnectionReleaseTrigger.class +org/apache/http/conn/ClientConnectionManagerFactory.class +org/apache/http/conn/scheme/ +org/apache/http/conn/scheme/SchemeSocketFactoryAdaptor.class +org/apache/http/conn/scheme/SchemeLayeredSocketFactory.class +org/apache/http/conn/scheme/PlainSocketFactory.class +org/apache/http/conn/scheme/LayeredSocketFactoryAdaptor.class +org/apache/http/conn/scheme/Scheme.class +org/apache/http/conn/scheme/HostNameResolver.class +org/apache/http/conn/scheme/SchemeRegistry.class +org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor2.class +org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor.class +org/apache/http/conn/scheme/SocketFactory.class +org/apache/http/conn/scheme/SchemeSocketFactory.class +org/apache/http/conn/scheme/SocketFactoryAdaptor.class +org/apache/http/conn/scheme/LayeredSchemeSocketFactory.class +org/apache/http/conn/scheme/LayeredSocketFactory.class +org/apache/http/conn/ConnectTimeoutException.class +org/apache/http/conn/util/ +org/apache/http/conn/util/DomainType.class +org/apache/http/conn/util/InetAddressUtils.class +org/apache/http/conn/util/PublicSuffixList.class +org/apache/http/conn/util/PublicSuffixMatcher.class +org/apache/http/conn/util/PublicSuffixListParser.class +org/apache/http/conn/util/PublicSuffixMatcherLoader.class +org/apache/http/conn/HttpInetSocketAddress.class +org/apache/http/conn/HttpConnectionFactory.class +org/apache/http/conn/HttpHostConnectException.class +org/apache/http/conn/DnsResolver.class +org/apache/http/conn/MultihomePlainSocketFactory.class +org/apache/http/conn/UnsupportedSchemeException.class +org/apache/http/impl/auth/ +org/apache/http/impl/auth/NTLMEngineImpl$CipherGen.class +org/apache/http/impl/auth/NTLMScheme$State.class +org/apache/http/impl/auth/GGSSchemeBase$1.class +org/apache/http/impl/auth/NTLMEngineException.class +org/apache/http/impl/auth/KerberosSchemeFactory.class +org/apache/http/impl/auth/RFC2617Scheme.class +org/apache/http/impl/auth/NTLMScheme.class +org/apache/http/impl/auth/KerberosScheme.class +org/apache/http/impl/auth/HttpEntityDigester.class +org/apache/http/impl/auth/SPNegoScheme.class +org/apache/http/impl/auth/BasicSchemeFactory.class +org/apache/http/impl/auth/NegotiateScheme.class +org/apache/http/impl/auth/NTLMSchemeFactory.class +org/apache/http/impl/auth/NTLMEngineImpl$NTLMMessage.class +org/apache/http/impl/auth/GGSSchemeBase.class +org/apache/http/impl/auth/HttpAuthenticator$1.class +org/apache/http/impl/auth/NTLMEngine.class +org/apache/http/impl/auth/DigestScheme.class +org/apache/http/impl/auth/NTLMEngineImpl.class +org/apache/http/impl/auth/AuthSchemeBase.class +org/apache/http/impl/auth/NTLMEngineImpl$Type3Message.class +org/apache/http/impl/auth/NegotiateSchemeFactory.class +org/apache/http/impl/auth/SpnegoTokenGenerator.class +org/apache/http/impl/auth/NTLMEngineImpl$HMACMD5.class +org/apache/http/impl/auth/HttpAuthenticator.class +org/apache/http/impl/auth/GGSSchemeBase$State.class +org/apache/http/impl/auth/NTLMEngineImpl$MD4.class +org/apache/http/impl/auth/NTLMEngineImpl$Type2Message.class +org/apache/http/impl/auth/DigestSchemeFactory.class +org/apache/http/impl/auth/SPNegoSchemeFactory.class +org/apache/http/impl/auth/NTLMEngineImpl$Type1Message.class +org/apache/http/impl/auth/BasicScheme.class +org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.class +org/apache/http/impl/cookie/ +org/apache/http/impl/cookie/BestMatchSpec.class +org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.class +org/apache/http/impl/cookie/DefaultCookieSpecProvider$CompatibilityLevel.class +org/apache/http/impl/cookie/BasicClientCookie2.class +org/apache/http/impl/cookie/BasicSecureHandler.class +org/apache/http/impl/cookie/RFC2109Spec.class +org/apache/http/impl/cookie/RFC2965Spec.class +org/apache/http/impl/cookie/PublicSuffixFilter.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider$2.class +org/apache/http/impl/cookie/BasicDomainHandler.class +org/apache/http/impl/cookie/DefaultCookieSpecProvider.class +org/apache/http/impl/cookie/RFC2109VersionHandler.class +org/apache/http/impl/cookie/RFC2109DomainHandler.class +org/apache/http/impl/cookie/BasicMaxAgeHandler.class +org/apache/http/impl/cookie/NetscapeDraftSpec.class +org/apache/http/impl/cookie/LaxExpiresHandler.class +org/apache/http/impl/cookie/BasicExpiresHandler.class +org/apache/http/impl/cookie/BrowserCompatSpec.class +org/apache/http/impl/cookie/RFC2965SpecFactory.class +org/apache/http/impl/cookie/DefaultCookieSpec.class +org/apache/http/impl/cookie/BrowserCompatSpec$1.class +org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.class +org/apache/http/impl/cookie/IgnoreSpec.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider.class +org/apache/http/impl/cookie/BestMatchSpecFactory.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider$CompatibilityLevel.class +org/apache/http/impl/cookie/RFC6265StrictSpec.class +org/apache/http/impl/cookie/RFC2965PortAttributeHandler.class +org/apache/http/impl/cookie/IgnoreSpecProvider.class +org/apache/http/impl/cookie/BasicClientCookie.class +org/apache/http/impl/cookie/NetscapeDraftHeaderParser.class +org/apache/http/impl/cookie/DefaultCookieSpecProvider$1.class +org/apache/http/impl/cookie/BasicPathHandler.class +org/apache/http/impl/cookie/LaxMaxAgeHandler.class +org/apache/http/impl/cookie/RFC6265CookieSpecBase.class +org/apache/http/impl/cookie/RFC2965SpecProvider.class +org/apache/http/impl/cookie/NetscapeDomainHandler.class +org/apache/http/impl/cookie/RFC2965DomainAttributeHandler.class +org/apache/http/impl/cookie/PublicSuffixDomainFilter.class +org/apache/http/impl/cookie/IgnoreSpecFactory.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider$1.class +org/apache/http/impl/cookie/RFC2965VersionAttributeHandler.class +org/apache/http/impl/cookie/AbstractCookieAttributeHandler.class +org/apache/http/impl/cookie/BrowserCompatSpecFactory.class +org/apache/http/impl/cookie/RFC2109SpecProvider.class +org/apache/http/impl/cookie/BrowserCompatSpecFactory$SecurityLevel.class +org/apache/http/impl/cookie/NetscapeDraftSpecFactory.class +org/apache/http/impl/cookie/CookieSpecBase.class +org/apache/http/impl/cookie/RFC6265LaxSpec.class +org/apache/http/impl/cookie/DateParseException.class +org/apache/http/impl/cookie/RFC2109SpecFactory.class +org/apache/http/impl/cookie/RFC6265CookieSpec.class +org/apache/http/impl/cookie/PublicSuffixListParser.class +org/apache/http/impl/cookie/AbstractCookieSpec.class +org/apache/http/impl/cookie/BasicCommentHandler.class +org/apache/http/impl/cookie/DateUtils.class +org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.class +org/apache/http/impl/cookie/NetscapeDraftSpecProvider.class +org/apache/http/impl/client/ +org/apache/http/impl/client/TargetAuthenticationStrategy.class +org/apache/http/impl/client/LaxRedirectStrategy.class +org/apache/http/impl/client/NoopUserTokenHandler.class +org/apache/http/impl/client/RoutedRequest.class +org/apache/http/impl/client/AuthenticationStrategyImpl.class +org/apache/http/impl/client/MinimalHttpClient$1.class +org/apache/http/impl/client/CloseableHttpResponseProxy.class +org/apache/http/impl/client/DefaultProxyAuthenticationHandler.class +org/apache/http/impl/client/DefaultRedirectStrategy.class +org/apache/http/impl/client/FutureRequestExecutionService.class +org/apache/http/impl/client/FutureRequestExecutionMetrics$DurationCounter.class +org/apache/http/impl/client/HttpClientBuilder.class +org/apache/http/impl/client/AutoRetryHttpClient.class +org/apache/http/impl/client/BasicCredentialsProvider.class +org/apache/http/impl/client/AbstractResponseHandler.class +org/apache/http/impl/client/IdleConnectionEvictor$DefaultThreadFactory.class +org/apache/http/impl/client/RequestWrapper.class +org/apache/http/impl/client/HttpRequestFutureTask.class +org/apache/http/impl/client/ProxyClient.class +org/apache/http/impl/client/ContentEncodingHttpClient.class +org/apache/http/impl/client/RedirectLocations.class +org/apache/http/impl/client/DefaultHttpRequestRetryHandler.class +org/apache/http/impl/client/HttpRequestTaskCallable.class +org/apache/http/impl/client/StandardHttpRequestRetryHandler.class +org/apache/http/impl/client/AIMDBackoffManager.class +org/apache/http/impl/client/AbstractAuthenticationHandler.class +org/apache/http/impl/client/DecompressingHttpClient.class +org/apache/http/impl/client/SystemClock.class +org/apache/http/impl/client/DefaultRedirectStrategyAdaptor.class +org/apache/http/impl/client/EntityEnclosingRequestWrapper$EntityWrapper.class +org/apache/http/impl/client/AbstractHttpClient.class +org/apache/http/impl/client/Clock.class +org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.class +org/apache/http/impl/client/InternalHttpClient$1.class +org/apache/http/impl/client/SystemDefaultHttpClient.class +org/apache/http/impl/client/AuthenticationStrategyAdaptor.class +org/apache/http/impl/client/IdleConnectionEvictor.class +org/apache/http/impl/client/SystemDefaultCredentialsProvider.class +org/apache/http/impl/client/FutureRequestExecutionMetrics.class +org/apache/http/impl/client/InternalHttpClient.class +org/apache/http/impl/client/HttpClientBuilder$2.class +org/apache/http/impl/client/NullBackoffStrategy.class +org/apache/http/impl/client/DefaultBackoffStrategy.class +org/apache/http/impl/client/HttpAuthenticator.class +org/apache/http/impl/client/BasicCookieStore.class +org/apache/http/impl/client/EntityEnclosingRequestWrapper.class +org/apache/http/impl/client/CookieSpecRegistries.class +org/apache/http/impl/client/DefaultClientConnectionReuseStrategy.class +org/apache/http/impl/client/DefaultServiceUnavailableRetryStrategy.class +org/apache/http/impl/client/DefaultRedirectHandler.class +org/apache/http/impl/client/HttpClients.class +org/apache/http/impl/client/CloseableHttpClient.class +org/apache/http/impl/client/TunnelRefusedException.class +org/apache/http/impl/client/MinimalHttpClient.class +org/apache/http/impl/client/BasicAuthCache.class +org/apache/http/impl/client/BasicResponseHandler.class +org/apache/http/impl/client/DefaultUserTokenHandler.class +org/apache/http/impl/client/HttpClientBuilder$1.class +org/apache/http/impl/client/ClientParamsStack.class +org/apache/http/impl/client/DefaultRequestDirector.class +org/apache/http/impl/client/DefaultTargetAuthenticationHandler.class +org/apache/http/impl/client/IdleConnectionEvictor$1.class +org/apache/http/impl/client/DefaultHttpClient.class +org/apache/http/impl/client/ProxyAuthenticationStrategy.class +org/apache/http/impl/execchain/ +org/apache/http/impl/execchain/ServiceUnavailableRetryExec.class +org/apache/http/impl/execchain/RequestEntityProxy.class +org/apache/http/impl/execchain/ProtocolExec.class +org/apache/http/impl/execchain/MinimalClientExec.class +org/apache/http/impl/execchain/MainClientExec.class +org/apache/http/impl/execchain/RedirectExec.class +org/apache/http/impl/execchain/ClientExecChain.class +org/apache/http/impl/execchain/ConnectionHolder.class +org/apache/http/impl/execchain/HttpResponseProxy.class +org/apache/http/impl/execchain/RetryExec.class +org/apache/http/impl/execchain/TunnelRefusedException.class +org/apache/http/impl/execchain/RequestAbortedException.class +org/apache/http/impl/execchain/ResponseEntityProxy.class +org/apache/http/impl/execchain/BackoffStrategyExec.class +org/apache/http/impl/conn/ +org/apache/http/impl/conn/HttpPoolEntry.class +org/apache/http/impl/conn/DefaultClientConnection.class +org/apache/http/impl/conn/CPool.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager.class +org/apache/http/impl/conn/Wire.class +org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.class +org/apache/http/impl/conn/IdleConnectionHandler.class +org/apache/http/impl/conn/ManagedHttpClientConnectionFactory.class +org/apache/http/impl/conn/SystemDefaultRoutePlanner$1.class +org/apache/http/impl/conn/CPoolProxy.class +org/apache/http/impl/conn/DefaultHttpRoutePlanner.class +org/apache/http/impl/conn/PoolingClientConnectionManager.class +org/apache/http/impl/conn/DefaultManagedHttpClientConnection.class +org/apache/http/impl/conn/LoggingSessionInputBuffer.class +org/apache/http/impl/conn/ConnectionShutdownException.class +org/apache/http/impl/conn/LoggingOutputStream.class +org/apache/http/impl/conn/ManagedClientConnectionImpl.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager$ConfigData.class +org/apache/http/impl/conn/DefaultResponseParser.class +org/apache/http/impl/conn/LoggingInputStream.class +org/apache/http/impl/conn/AbstractClientConnAdapter.class +org/apache/http/impl/conn/SystemDefaultRoutePlanner.class +org/apache/http/impl/conn/tsccm/ +org/apache/http/impl/conn/tsccm/ConnPoolByRoute.class +org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager$1.class +org/apache/http/impl/conn/tsccm/RouteSpecificPool.class +org/apache/http/impl/conn/tsccm/ConnPoolByRoute$1.class +org/apache/http/impl/conn/tsccm/PoolEntryRequest.class +org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.class +org/apache/http/impl/conn/tsccm/WaitingThread.class +org/apache/http/impl/conn/tsccm/WaitingThreadAborter.class +org/apache/http/impl/conn/tsccm/RouteSpecificPool$1.class +org/apache/http/impl/conn/tsccm/AbstractConnPool.class +org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.class +org/apache/http/impl/conn/tsccm/BasicPooledConnAdapter.class +org/apache/http/impl/conn/tsccm/BasicPoolEntry.class +org/apache/http/impl/conn/SingleClientConnManager$ConnAdapter.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager$InternalConnectionFactory.class +org/apache/http/impl/conn/DefaultHttpResponseParserFactory.class +org/apache/http/impl/conn/AbstractPoolEntry.class +org/apache/http/impl/conn/ProxySelectorRoutePlanner$1.class +org/apache/http/impl/conn/AbstractPooledConnAdapter.class +org/apache/http/impl/conn/SingleClientConnManager$PoolEntry.class +org/apache/http/impl/conn/HttpConnPool$InternalConnFactory.class +org/apache/http/impl/conn/SchemeRegistryFactory.class +org/apache/http/impl/conn/DefaultClientConnectionOperator.class +org/apache/http/impl/conn/LoggingManagedHttpClientConnection.class +org/apache/http/impl/conn/LoggingSessionOutputBuffer.class +org/apache/http/impl/conn/BasicHttpClientConnectionManager$1.class +org/apache/http/impl/conn/DefaultProxyRoutePlanner.class +org/apache/http/impl/conn/BasicClientConnectionManager$1.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager$1.class +org/apache/http/impl/conn/BasicHttpClientConnectionManager.class +org/apache/http/impl/conn/PoolingClientConnectionManager$1.class +org/apache/http/impl/conn/IdleConnectionHandler$TimeValues.class +org/apache/http/impl/conn/CPoolEntry.class +org/apache/http/impl/conn/DefaultSchemePortResolver.class +org/apache/http/impl/conn/SingleClientConnManager.class +org/apache/http/impl/conn/DefaultRoutePlanner.class +org/apache/http/impl/conn/InMemoryDnsResolver.class +org/apache/http/impl/conn/DefaultHttpResponseParser.class +org/apache/http/impl/conn/HttpConnPool.class +org/apache/http/impl/conn/BasicClientConnectionManager.class +org/apache/http/impl/conn/SingleClientConnManager$1.class +org/apache/http/impl/conn/ProxySelectorRoutePlanner.class +org/apache/http/impl/conn/SystemDefaultDnsResolver.class +mozilla/ +mozilla/public-suffix-list.txt +META-INF/maven/org.apache.httpcomponents/httpclient/ +META-INF/maven/org.apache.httpcomponents/httpclient/pom.xml +META-INF/maven/org.apache.httpcomponents/httpclient/pom.properties +META-INF/NOTICE.txt +META-INF/LICENSE.txt +org/apache/commons/ +org/apache/commons/logging/ +org/apache/commons/logging/impl/ +org/apache/commons/logging/impl/AvalonLogger.class +org/apache/commons/logging/impl/SimpleLog.class +org/apache/commons/logging/impl/Log4JLogger.class +org/apache/commons/logging/impl/WeakHashtable.class +org/apache/commons/logging/impl/WeakHashtable$1.class +org/apache/commons/logging/impl/Jdk14Logger.class +org/apache/commons/logging/impl/ServletContextCleaner.class +org/apache/commons/logging/impl/WeakHashtable$WeakKey.class +org/apache/commons/logging/impl/NoOpLog.class +org/apache/commons/logging/impl/LogKitLogger.class +org/apache/commons/logging/impl/LogFactoryImpl$3.class +org/apache/commons/logging/impl/LogFactoryImpl$1.class +org/apache/commons/logging/impl/WeakHashtable$Referenced.class +org/apache/commons/logging/impl/SimpleLog$1.class +org/apache/commons/logging/impl/Jdk13LumberjackLogger.class +org/apache/commons/logging/impl/LogFactoryImpl.class +org/apache/commons/logging/impl/LogFactoryImpl$2.class +org/apache/commons/logging/impl/WeakHashtable$Entry.class +org/apache/commons/logging/LogSource.class +org/apache/commons/logging/LogFactory$4.class +org/apache/commons/logging/LogFactory$3.class +org/apache/commons/logging/LogFactory$6.class +org/apache/commons/logging/LogConfigurationException.class +org/apache/commons/logging/LogFactory.class +org/apache/commons/logging/LogFactory$5.class +org/apache/commons/logging/LogFactory$1.class +org/apache/commons/logging/LogFactory$2.class +org/apache/commons/logging/Log.class +META-INF/maven/commons-logging/ +META-INF/maven/commons-logging/commons-logging/ +META-INF/maven/commons-logging/commons-logging/pom.xml +META-INF/maven/commons-logging/commons-logging/pom.properties +org/apache/commons/codec/ +org/apache/commons/codec/binary/ +org/apache/commons/codec/binary/Base32.class +org/apache/commons/codec/binary/Base32InputStream.class +org/apache/commons/codec/binary/Base32OutputStream.class +org/apache/commons/codec/binary/Base64.class +org/apache/commons/codec/binary/Base64InputStream.class +org/apache/commons/codec/binary/Base64OutputStream.class +org/apache/commons/codec/binary/BaseNCodec$Context.class +org/apache/commons/codec/binary/BaseNCodec.class +org/apache/commons/codec/binary/BaseNCodecInputStream.class +org/apache/commons/codec/binary/BaseNCodecOutputStream.class +org/apache/commons/codec/binary/BinaryCodec.class +org/apache/commons/codec/binary/Hex.class +org/apache/commons/codec/binary/StringUtils.class +org/apache/commons/codec/BinaryDecoder.class +org/apache/commons/codec/BinaryEncoder.class +org/apache/commons/codec/CharEncoding.class +org/apache/commons/codec/Charsets.class +org/apache/commons/codec/Decoder.class +org/apache/commons/codec/DecoderException.class +org/apache/commons/codec/digest/ +org/apache/commons/codec/digest/B64.class +org/apache/commons/codec/digest/Crypt.class +org/apache/commons/codec/digest/DigestUtils.class +org/apache/commons/codec/digest/Md5Crypt.class +org/apache/commons/codec/digest/MessageDigestAlgorithms.class +org/apache/commons/codec/digest/Sha2Crypt.class +org/apache/commons/codec/digest/UnixCrypt.class +org/apache/commons/codec/Encoder.class +org/apache/commons/codec/EncoderException.class +org/apache/commons/codec/language/ +org/apache/commons/codec/language/AbstractCaverphone.class +org/apache/commons/codec/language/bm/ +org/apache/commons/codec/language/bm/ash_approx_any.txt +org/apache/commons/codec/language/bm/ash_approx_common.txt +org/apache/commons/codec/language/bm/ash_approx_cyrillic.txt +org/apache/commons/codec/language/bm/ash_approx_english.txt +org/apache/commons/codec/language/bm/ash_approx_french.txt +org/apache/commons/codec/language/bm/ash_approx_german.txt +org/apache/commons/codec/language/bm/ash_approx_hebrew.txt +org/apache/commons/codec/language/bm/ash_approx_hungarian.txt +org/apache/commons/codec/language/bm/ash_approx_polish.txt +org/apache/commons/codec/language/bm/ash_approx_romanian.txt +org/apache/commons/codec/language/bm/ash_approx_russian.txt +org/apache/commons/codec/language/bm/ash_approx_spanish.txt +org/apache/commons/codec/language/bm/ash_exact_any.txt +org/apache/commons/codec/language/bm/ash_exact_approx_common.txt +org/apache/commons/codec/language/bm/ash_exact_common.txt +org/apache/commons/codec/language/bm/ash_exact_cyrillic.txt +org/apache/commons/codec/language/bm/ash_exact_english.txt +org/apache/commons/codec/language/bm/ash_exact_french.txt +org/apache/commons/codec/language/bm/ash_exact_german.txt +org/apache/commons/codec/language/bm/ash_exact_hebrew.txt +org/apache/commons/codec/language/bm/ash_exact_hungarian.txt +org/apache/commons/codec/language/bm/ash_exact_polish.txt +org/apache/commons/codec/language/bm/ash_exact_romanian.txt +org/apache/commons/codec/language/bm/ash_exact_russian.txt +org/apache/commons/codec/language/bm/ash_exact_spanish.txt +org/apache/commons/codec/language/bm/ash_hebrew_common.txt +org/apache/commons/codec/language/bm/ash_languages.txt +org/apache/commons/codec/language/bm/ash_rules_any.txt +org/apache/commons/codec/language/bm/ash_rules_cyrillic.txt +org/apache/commons/codec/language/bm/ash_rules_english.txt +org/apache/commons/codec/language/bm/ash_rules_french.txt +org/apache/commons/codec/language/bm/ash_rules_german.txt +org/apache/commons/codec/language/bm/ash_rules_hebrew.txt +org/apache/commons/codec/language/bm/ash_rules_hungarian.txt +org/apache/commons/codec/language/bm/ash_rules_polish.txt +org/apache/commons/codec/language/bm/ash_rules_romanian.txt +org/apache/commons/codec/language/bm/ash_rules_russian.txt +org/apache/commons/codec/language/bm/ash_rules_spanish.txt +org/apache/commons/codec/language/bm/BeiderMorseEncoder.class +org/apache/commons/codec/language/bm/gen_approx_any.txt +org/apache/commons/codec/language/bm/gen_approx_arabic.txt +org/apache/commons/codec/language/bm/gen_approx_common.txt +org/apache/commons/codec/language/bm/gen_approx_cyrillic.txt +org/apache/commons/codec/language/bm/gen_approx_czech.txt +org/apache/commons/codec/language/bm/gen_approx_dutch.txt +org/apache/commons/codec/language/bm/gen_approx_english.txt +org/apache/commons/codec/language/bm/gen_approx_french.txt +org/apache/commons/codec/language/bm/gen_approx_german.txt +org/apache/commons/codec/language/bm/gen_approx_greek.txt +org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt +org/apache/commons/codec/language/bm/gen_approx_hebrew.txt +org/apache/commons/codec/language/bm/gen_approx_hungarian.txt +org/apache/commons/codec/language/bm/gen_approx_italian.txt +org/apache/commons/codec/language/bm/gen_approx_polish.txt +org/apache/commons/codec/language/bm/gen_approx_portuguese.txt +org/apache/commons/codec/language/bm/gen_approx_romanian.txt +org/apache/commons/codec/language/bm/gen_approx_russian.txt +org/apache/commons/codec/language/bm/gen_approx_spanish.txt +org/apache/commons/codec/language/bm/gen_approx_turkish.txt +org/apache/commons/codec/language/bm/gen_exact_any.txt +org/apache/commons/codec/language/bm/gen_exact_approx_common.txt +org/apache/commons/codec/language/bm/gen_exact_arabic.txt +org/apache/commons/codec/language/bm/gen_exact_common.txt +org/apache/commons/codec/language/bm/gen_exact_cyrillic.txt +org/apache/commons/codec/language/bm/gen_exact_czech.txt +org/apache/commons/codec/language/bm/gen_exact_dutch.txt +org/apache/commons/codec/language/bm/gen_exact_english.txt +org/apache/commons/codec/language/bm/gen_exact_french.txt +org/apache/commons/codec/language/bm/gen_exact_german.txt +org/apache/commons/codec/language/bm/gen_exact_greek.txt +org/apache/commons/codec/language/bm/gen_exact_greeklatin.txt +org/apache/commons/codec/language/bm/gen_exact_hebrew.txt +org/apache/commons/codec/language/bm/gen_exact_hungarian.txt +org/apache/commons/codec/language/bm/gen_exact_italian.txt +org/apache/commons/codec/language/bm/gen_exact_polish.txt +org/apache/commons/codec/language/bm/gen_exact_portuguese.txt +org/apache/commons/codec/language/bm/gen_exact_romanian.txt +org/apache/commons/codec/language/bm/gen_exact_russian.txt +org/apache/commons/codec/language/bm/gen_exact_spanish.txt +org/apache/commons/codec/language/bm/gen_exact_turkish.txt +org/apache/commons/codec/language/bm/gen_hebrew_common.txt +org/apache/commons/codec/language/bm/gen_languages.txt +org/apache/commons/codec/language/bm/gen_rules_any.txt +org/apache/commons/codec/language/bm/gen_rules_arabic.txt +org/apache/commons/codec/language/bm/gen_rules_cyrillic.txt +org/apache/commons/codec/language/bm/gen_rules_czech.txt +org/apache/commons/codec/language/bm/gen_rules_dutch.txt +org/apache/commons/codec/language/bm/gen_rules_english.txt +org/apache/commons/codec/language/bm/gen_rules_french.txt +org/apache/commons/codec/language/bm/gen_rules_german.txt +org/apache/commons/codec/language/bm/gen_rules_greek.txt +org/apache/commons/codec/language/bm/gen_rules_greeklatin.txt +org/apache/commons/codec/language/bm/gen_rules_hebrew.txt +org/apache/commons/codec/language/bm/gen_rules_hungarian.txt +org/apache/commons/codec/language/bm/gen_rules_italian.txt +org/apache/commons/codec/language/bm/gen_rules_polish.txt +org/apache/commons/codec/language/bm/gen_rules_portuguese.txt +org/apache/commons/codec/language/bm/gen_rules_romanian.txt +org/apache/commons/codec/language/bm/gen_rules_russian.txt +org/apache/commons/codec/language/bm/gen_rules_spanish.txt +org/apache/commons/codec/language/bm/gen_rules_turkish.txt +org/apache/commons/codec/language/bm/Lang$1.class +org/apache/commons/codec/language/bm/Lang$LangRule.class +org/apache/commons/codec/language/bm/Lang.class +org/apache/commons/codec/language/bm/lang.txt +org/apache/commons/codec/language/bm/Languages$1.class +org/apache/commons/codec/language/bm/Languages$2.class +org/apache/commons/codec/language/bm/Languages$LanguageSet.class +org/apache/commons/codec/language/bm/Languages$SomeLanguages.class +org/apache/commons/codec/language/bm/Languages.class +org/apache/commons/codec/language/bm/NameType.class +org/apache/commons/codec/language/bm/PhoneticEngine$1.class +org/apache/commons/codec/language/bm/PhoneticEngine$PhonemeBuilder.class +org/apache/commons/codec/language/bm/PhoneticEngine$RulesApplication.class +org/apache/commons/codec/language/bm/PhoneticEngine.class +org/apache/commons/codec/language/bm/ResourceConstants.class +org/apache/commons/codec/language/bm/Rule$1.class +org/apache/commons/codec/language/bm/Rule$10.class +org/apache/commons/codec/language/bm/Rule$2.class +org/apache/commons/codec/language/bm/Rule$3.class +org/apache/commons/codec/language/bm/Rule$4.class +org/apache/commons/codec/language/bm/Rule$5.class +org/apache/commons/codec/language/bm/Rule$6.class +org/apache/commons/codec/language/bm/Rule$7.class +org/apache/commons/codec/language/bm/Rule$8.class +org/apache/commons/codec/language/bm/Rule$9.class +org/apache/commons/codec/language/bm/Rule$Phoneme$1.class +org/apache/commons/codec/language/bm/Rule$Phoneme.class +org/apache/commons/codec/language/bm/Rule$PhonemeExpr.class +org/apache/commons/codec/language/bm/Rule$PhonemeList.class +org/apache/commons/codec/language/bm/Rule$RPattern.class +org/apache/commons/codec/language/bm/Rule.class +org/apache/commons/codec/language/bm/RuleType.class +org/apache/commons/codec/language/bm/sep_approx_any.txt +org/apache/commons/codec/language/bm/sep_approx_common.txt +org/apache/commons/codec/language/bm/sep_approx_french.txt +org/apache/commons/codec/language/bm/sep_approx_hebrew.txt +org/apache/commons/codec/language/bm/sep_approx_italian.txt +org/apache/commons/codec/language/bm/sep_approx_portuguese.txt +org/apache/commons/codec/language/bm/sep_approx_spanish.txt +org/apache/commons/codec/language/bm/sep_exact_any.txt +org/apache/commons/codec/language/bm/sep_exact_approx_common.txt +org/apache/commons/codec/language/bm/sep_exact_common.txt +org/apache/commons/codec/language/bm/sep_exact_french.txt +org/apache/commons/codec/language/bm/sep_exact_hebrew.txt +org/apache/commons/codec/language/bm/sep_exact_italian.txt +org/apache/commons/codec/language/bm/sep_exact_portuguese.txt +org/apache/commons/codec/language/bm/sep_exact_spanish.txt +org/apache/commons/codec/language/bm/sep_hebrew_common.txt +org/apache/commons/codec/language/bm/sep_languages.txt +org/apache/commons/codec/language/bm/sep_rules_any.txt +org/apache/commons/codec/language/bm/sep_rules_french.txt +org/apache/commons/codec/language/bm/sep_rules_hebrew.txt +org/apache/commons/codec/language/bm/sep_rules_italian.txt +org/apache/commons/codec/language/bm/sep_rules_portuguese.txt +org/apache/commons/codec/language/bm/sep_rules_spanish.txt +org/apache/commons/codec/language/Caverphone.class +org/apache/commons/codec/language/Caverphone1.class +org/apache/commons/codec/language/Caverphone2.class +org/apache/commons/codec/language/ColognePhonetic$CologneBuffer.class +org/apache/commons/codec/language/ColognePhonetic$CologneInputBuffer.class +org/apache/commons/codec/language/ColognePhonetic$CologneOutputBuffer.class +org/apache/commons/codec/language/ColognePhonetic.class +org/apache/commons/codec/language/DoubleMetaphone$DoubleMetaphoneResult.class +org/apache/commons/codec/language/DoubleMetaphone.class +org/apache/commons/codec/language/MatchRatingApproachEncoder.class +org/apache/commons/codec/language/Metaphone.class +org/apache/commons/codec/language/Nysiis.class +org/apache/commons/codec/language/RefinedSoundex.class +org/apache/commons/codec/language/Soundex.class +org/apache/commons/codec/language/SoundexUtils.class +org/apache/commons/codec/net/ +org/apache/commons/codec/net/BCodec.class +org/apache/commons/codec/net/QCodec.class +org/apache/commons/codec/net/QuotedPrintableCodec.class +org/apache/commons/codec/net/RFC1522Codec.class +org/apache/commons/codec/net/URLCodec.class +org/apache/commons/codec/net/Utils.class +org/apache/commons/codec/StringDecoder.class +org/apache/commons/codec/StringEncoder.class +org/apache/commons/codec/StringEncoderComparator.class +META-INF/maven/commons-codec/ +META-INF/maven/commons-codec/commons-codec/ +META-INF/maven/commons-codec/commons-codec/pom.xml +META-INF/maven/commons-codec/commons-codec/pom.properties +META-INF/maven/com.fasterxml.jackson.core/ +META-INF/maven/com.fasterxml.jackson.core/jackson-core/ +META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.properties +META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml +META-INF/services/ +META-INF/services/com.fasterxml.jackson.core.JsonFactory +com/fasterxml/ +com/fasterxml/jackson/ +com/fasterxml/jackson/core/ +com/fasterxml/jackson/core/Base64Variant.class +com/fasterxml/jackson/core/Base64Variants.class +com/fasterxml/jackson/core/FormatFeature.class +com/fasterxml/jackson/core/FormatSchema.class +com/fasterxml/jackson/core/JsonEncoding.class +com/fasterxml/jackson/core/JsonFactory$Feature.class +com/fasterxml/jackson/core/JsonFactory.class +com/fasterxml/jackson/core/JsonGenerationException.class +com/fasterxml/jackson/core/JsonGenerator$1.class +com/fasterxml/jackson/core/JsonGenerator$Feature.class +com/fasterxml/jackson/core/JsonGenerator.class +com/fasterxml/jackson/core/JsonLocation.class +com/fasterxml/jackson/core/JsonParseException.class +com/fasterxml/jackson/core/JsonParser$Feature.class +com/fasterxml/jackson/core/JsonParser$NumberType.class +com/fasterxml/jackson/core/JsonParser.class +com/fasterxml/jackson/core/JsonPointer.class +com/fasterxml/jackson/core/JsonProcessingException.class +com/fasterxml/jackson/core/JsonStreamContext.class +com/fasterxml/jackson/core/JsonToken.class +com/fasterxml/jackson/core/JsonTokenId.class +com/fasterxml/jackson/core/JsonpCharacterEscapes.class +com/fasterxml/jackson/core/ObjectCodec.class +com/fasterxml/jackson/core/PrettyPrinter.class +com/fasterxml/jackson/core/SerializableString.class +com/fasterxml/jackson/core/TreeCodec.class +com/fasterxml/jackson/core/TreeNode.class +com/fasterxml/jackson/core/Version.class +com/fasterxml/jackson/core/Versioned.class +com/fasterxml/jackson/core/async/ +com/fasterxml/jackson/core/async/ByteArrayFeeder.class +com/fasterxml/jackson/core/async/ByteBufferFeeder.class +com/fasterxml/jackson/core/async/NonBlockingInputFeeder.class +com/fasterxml/jackson/core/base/ +com/fasterxml/jackson/core/base/GeneratorBase.class +com/fasterxml/jackson/core/base/ParserBase.class +com/fasterxml/jackson/core/base/ParserMinimalBase.class +com/fasterxml/jackson/core/filter/ +com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.class +com/fasterxml/jackson/core/filter/FilteringParserDelegate.class +com/fasterxml/jackson/core/filter/JsonPointerBasedFilter.class +com/fasterxml/jackson/core/filter/TokenFilter.class +com/fasterxml/jackson/core/filter/TokenFilterContext.class +com/fasterxml/jackson/core/format/ +com/fasterxml/jackson/core/format/DataFormatDetector.class +com/fasterxml/jackson/core/format/DataFormatMatcher.class +com/fasterxml/jackson/core/format/InputAccessor$Std.class +com/fasterxml/jackson/core/format/InputAccessor.class +com/fasterxml/jackson/core/format/MatchStrength.class +com/fasterxml/jackson/core/io/ +com/fasterxml/jackson/core/io/CharTypes.class +com/fasterxml/jackson/core/io/CharacterEscapes.class +com/fasterxml/jackson/core/io/DataOutputAsStream.class +com/fasterxml/jackson/core/io/IOContext.class +com/fasterxml/jackson/core/io/InputDecorator.class +com/fasterxml/jackson/core/io/JsonEOFException.class +com/fasterxml/jackson/core/io/JsonStringEncoder.class +com/fasterxml/jackson/core/io/MergedStream.class +com/fasterxml/jackson/core/io/NumberInput.class +com/fasterxml/jackson/core/io/NumberOutput.class +com/fasterxml/jackson/core/io/OutputDecorator.class +com/fasterxml/jackson/core/io/SegmentedStringWriter.class +com/fasterxml/jackson/core/io/SerializedString.class +com/fasterxml/jackson/core/io/UTF32Reader.class +com/fasterxml/jackson/core/io/UTF8Writer.class +com/fasterxml/jackson/core/json/ +com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.class +com/fasterxml/jackson/core/json/DupDetector.class +com/fasterxml/jackson/core/json/JsonGeneratorImpl.class +com/fasterxml/jackson/core/json/JsonReadContext.class +com/fasterxml/jackson/core/json/JsonWriteContext.class +com/fasterxml/jackson/core/json/PackageVersion.class +com/fasterxml/jackson/core/json/ReaderBasedJsonParser.class +com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.class +com/fasterxml/jackson/core/json/UTF8JsonGenerator.class +com/fasterxml/jackson/core/json/UTF8StreamJsonParser.class +com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.class +com/fasterxml/jackson/core/json/async/ +com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.class +com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.class +com/fasterxml/jackson/core/sym/ +com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer$TableInfo.class +com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.class +com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$Bucket.class +com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$TableInfo.class +com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer.class +com/fasterxml/jackson/core/sym/Name.class +com/fasterxml/jackson/core/sym/Name1.class +com/fasterxml/jackson/core/sym/Name2.class +com/fasterxml/jackson/core/sym/Name3.class +com/fasterxml/jackson/core/sym/NameN.class +com/fasterxml/jackson/core/type/ +com/fasterxml/jackson/core/type/ResolvedType.class +com/fasterxml/jackson/core/type/TypeReference.class +com/fasterxml/jackson/core/type/WritableTypeId$Inclusion.class +com/fasterxml/jackson/core/type/WritableTypeId.class +com/fasterxml/jackson/core/util/ +com/fasterxml/jackson/core/util/BufferRecycler.class +com/fasterxml/jackson/core/util/BufferRecyclers.class +com/fasterxml/jackson/core/util/ByteArrayBuilder.class +com/fasterxml/jackson/core/util/DefaultIndenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter$FixedSpaceIndenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter$Indenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter$NopIndenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter.class +com/fasterxml/jackson/core/util/Instantiatable.class +com/fasterxml/jackson/core/util/InternCache.class +com/fasterxml/jackson/core/util/JsonGeneratorDelegate.class +com/fasterxml/jackson/core/util/JsonParserDelegate.class +com/fasterxml/jackson/core/util/JsonParserSequence.class +com/fasterxml/jackson/core/util/MinimalPrettyPrinter.class +com/fasterxml/jackson/core/util/RequestPayload.class +com/fasterxml/jackson/core/util/Separators.class +com/fasterxml/jackson/core/util/TextBuffer.class +com/fasterxml/jackson/core/util/ThreadLocalBufferManager$ThreadLocalBufferManagerHolder.class +com/fasterxml/jackson/core/util/ThreadLocalBufferManager.class +com/fasterxml/jackson/core/util/VersionUtil.class +META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/ +META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.properties +META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml +com/fasterxml/jackson/annotation/ +com/fasterxml/jackson/annotation/JacksonAnnotation.class +com/fasterxml/jackson/annotation/JacksonAnnotationValue.class +com/fasterxml/jackson/annotation/JacksonAnnotationsInside.class +com/fasterxml/jackson/annotation/JacksonInject$Value.class +com/fasterxml/jackson/annotation/JacksonInject.class +com/fasterxml/jackson/annotation/JsonAlias.class +com/fasterxml/jackson/annotation/JsonAnyGetter.class +com/fasterxml/jackson/annotation/JsonAnySetter.class +com/fasterxml/jackson/annotation/JsonAutoDetect$1.class +com/fasterxml/jackson/annotation/JsonAutoDetect$Value.class +com/fasterxml/jackson/annotation/JsonAutoDetect$Visibility.class +com/fasterxml/jackson/annotation/JsonAutoDetect.class +com/fasterxml/jackson/annotation/JsonBackReference.class +com/fasterxml/jackson/annotation/JsonClassDescription.class +com/fasterxml/jackson/annotation/JsonCreator$Mode.class +com/fasterxml/jackson/annotation/JsonCreator.class +com/fasterxml/jackson/annotation/JsonEnumDefaultValue.class +com/fasterxml/jackson/annotation/JsonFilter.class +com/fasterxml/jackson/annotation/JsonFormat$Feature.class +com/fasterxml/jackson/annotation/JsonFormat$Features.class +com/fasterxml/jackson/annotation/JsonFormat$Shape.class +com/fasterxml/jackson/annotation/JsonFormat$Value.class +com/fasterxml/jackson/annotation/JsonFormat.class +com/fasterxml/jackson/annotation/JsonGetter.class +com/fasterxml/jackson/annotation/JsonIdentityInfo.class +com/fasterxml/jackson/annotation/JsonIdentityReference.class +com/fasterxml/jackson/annotation/JsonIgnore.class +com/fasterxml/jackson/annotation/JsonIgnoreProperties$Value.class +com/fasterxml/jackson/annotation/JsonIgnoreProperties.class +com/fasterxml/jackson/annotation/JsonIgnoreType.class +com/fasterxml/jackson/annotation/JsonInclude$Include.class +com/fasterxml/jackson/annotation/JsonInclude$Value.class +com/fasterxml/jackson/annotation/JsonInclude.class +com/fasterxml/jackson/annotation/JsonManagedReference.class +com/fasterxml/jackson/annotation/JsonMerge.class +com/fasterxml/jackson/annotation/JsonProperty$Access.class +com/fasterxml/jackson/annotation/JsonProperty.class +com/fasterxml/jackson/annotation/JsonPropertyDescription.class +com/fasterxml/jackson/annotation/JsonPropertyOrder.class +com/fasterxml/jackson/annotation/JsonRawValue.class +com/fasterxml/jackson/annotation/JsonRootName.class +com/fasterxml/jackson/annotation/JsonSetter$Value.class +com/fasterxml/jackson/annotation/JsonSetter.class +com/fasterxml/jackson/annotation/JsonSubTypes$Type.class +com/fasterxml/jackson/annotation/JsonSubTypes.class +com/fasterxml/jackson/annotation/JsonTypeId.class +com/fasterxml/jackson/annotation/JsonTypeInfo$As.class +com/fasterxml/jackson/annotation/JsonTypeInfo$Id.class +com/fasterxml/jackson/annotation/JsonTypeInfo$None.class +com/fasterxml/jackson/annotation/JsonTypeInfo.class +com/fasterxml/jackson/annotation/JsonTypeName.class +com/fasterxml/jackson/annotation/JsonUnwrapped.class +com/fasterxml/jackson/annotation/JsonValue.class +com/fasterxml/jackson/annotation/JsonView.class +com/fasterxml/jackson/annotation/Nulls.class +com/fasterxml/jackson/annotation/ObjectIdGenerator$IdKey.class +com/fasterxml/jackson/annotation/ObjectIdGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$Base.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$IntSequenceGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$None.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$PropertyGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$StringIdGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$UUIDGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators.class +com/fasterxml/jackson/annotation/ObjectIdResolver.class +com/fasterxml/jackson/annotation/OptBoolean.class +com/fasterxml/jackson/annotation/PropertyAccessor.class +com/fasterxml/jackson/annotation/SimpleObjectIdResolver.class +META-INF/maven/com.fasterxml.jackson.core/jackson-databind/ +META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.properties +META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml +META-INF/services/com.fasterxml.jackson.core.ObjectCodec +com/fasterxml/jackson/databind/ +com/fasterxml/jackson/databind/AbstractTypeResolver.class +com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty$Type.class +com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty.class +com/fasterxml/jackson/databind/AnnotationIntrospector.class +com/fasterxml/jackson/databind/BeanDescription.class +com/fasterxml/jackson/databind/BeanProperty$Bogus.class +com/fasterxml/jackson/databind/BeanProperty$Std.class +com/fasterxml/jackson/databind/BeanProperty.class +com/fasterxml/jackson/databind/DatabindContext.class +com/fasterxml/jackson/databind/DeserializationConfig.class +com/fasterxml/jackson/databind/DeserializationContext.class +com/fasterxml/jackson/databind/DeserializationFeature.class +com/fasterxml/jackson/databind/InjectableValues$Std.class +com/fasterxml/jackson/databind/InjectableValues.class +com/fasterxml/jackson/databind/JavaType.class +com/fasterxml/jackson/databind/JsonDeserializer$None.class +com/fasterxml/jackson/databind/JsonDeserializer.class +com/fasterxml/jackson/databind/JsonMappingException$Reference.class +com/fasterxml/jackson/databind/JsonMappingException.class +com/fasterxml/jackson/databind/JsonNode$1.class +com/fasterxml/jackson/databind/JsonNode.class +com/fasterxml/jackson/databind/JsonSerializable$Base.class +com/fasterxml/jackson/databind/JsonSerializable.class +com/fasterxml/jackson/databind/JsonSerializer$None.class +com/fasterxml/jackson/databind/JsonSerializer.class +com/fasterxml/jackson/databind/KeyDeserializer$None.class +com/fasterxml/jackson/databind/KeyDeserializer.class +com/fasterxml/jackson/databind/MapperFeature.class +com/fasterxml/jackson/databind/MappingIterator.class +com/fasterxml/jackson/databind/MappingJsonFactory.class +com/fasterxml/jackson/databind/Module$SetupContext.class +com/fasterxml/jackson/databind/Module.class +com/fasterxml/jackson/databind/ObjectMapper$1.class +com/fasterxml/jackson/databind/ObjectMapper$2.class +com/fasterxml/jackson/databind/ObjectMapper$3.class +com/fasterxml/jackson/databind/ObjectMapper$DefaultTypeResolverBuilder.class +com/fasterxml/jackson/databind/ObjectMapper$DefaultTyping.class +com/fasterxml/jackson/databind/ObjectMapper.class +com/fasterxml/jackson/databind/ObjectReader.class +com/fasterxml/jackson/databind/ObjectWriter$GeneratorSettings.class +com/fasterxml/jackson/databind/ObjectWriter$Prefetch.class +com/fasterxml/jackson/databind/ObjectWriter.class +com/fasterxml/jackson/databind/PropertyMetadata$MergeInfo.class +com/fasterxml/jackson/databind/PropertyMetadata.class +com/fasterxml/jackson/databind/PropertyName.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$KebabCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseWithUnderscoresStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$PascalCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$PropertyNamingStrategyBase.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$SnakeCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$UpperCamelCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy.class +com/fasterxml/jackson/databind/RuntimeJsonMappingException.class +com/fasterxml/jackson/databind/SequenceWriter.class +com/fasterxml/jackson/databind/SerializationConfig.class +com/fasterxml/jackson/databind/SerializationFeature.class +com/fasterxml/jackson/databind/SerializerProvider.class +com/fasterxml/jackson/databind/annotation/ +com/fasterxml/jackson/databind/annotation/JacksonStdImpl.class +com/fasterxml/jackson/databind/annotation/JsonAppend$Attr.class +com/fasterxml/jackson/databind/annotation/JsonAppend$Prop.class +com/fasterxml/jackson/databind/annotation/JsonAppend.class +com/fasterxml/jackson/databind/annotation/JsonDeserialize.class +com/fasterxml/jackson/databind/annotation/JsonNaming.class +com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder$Value.class +com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.class +com/fasterxml/jackson/databind/annotation/JsonSerialize$Inclusion.class +com/fasterxml/jackson/databind/annotation/JsonSerialize$Typing.class +com/fasterxml/jackson/databind/annotation/JsonSerialize.class +com/fasterxml/jackson/databind/annotation/JsonTypeIdResolver.class +com/fasterxml/jackson/databind/annotation/JsonTypeResolver.class +com/fasterxml/jackson/databind/annotation/JsonValueInstantiator.class +com/fasterxml/jackson/databind/annotation/NoClass.class +com/fasterxml/jackson/databind/cfg/ +com/fasterxml/jackson/databind/cfg/BaseSettings.class +com/fasterxml/jackson/databind/cfg/ConfigFeature.class +com/fasterxml/jackson/databind/cfg/ConfigOverride$Empty.class +com/fasterxml/jackson/databind/cfg/ConfigOverride.class +com/fasterxml/jackson/databind/cfg/ConfigOverrides.class +com/fasterxml/jackson/databind/cfg/ContextAttributes$Impl.class +com/fasterxml/jackson/databind/cfg/ContextAttributes.class +com/fasterxml/jackson/databind/cfg/DeserializerFactoryConfig.class +com/fasterxml/jackson/databind/cfg/HandlerInstantiator.class +com/fasterxml/jackson/databind/cfg/MapperConfig.class +com/fasterxml/jackson/databind/cfg/MapperConfigBase.class +com/fasterxml/jackson/databind/cfg/MutableConfigOverride.class +com/fasterxml/jackson/databind/cfg/PackageVersion.class +com/fasterxml/jackson/databind/cfg/SerializerFactoryConfig.class +com/fasterxml/jackson/databind/deser/ +com/fasterxml/jackson/databind/deser/AbstractDeserializer.class +com/fasterxml/jackson/databind/deser/BasicDeserializerFactory$1.class +com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.class +com/fasterxml/jackson/databind/deser/BeanDeserializer$1.class +com/fasterxml/jackson/databind/deser/BeanDeserializer$BeanReferring.class +com/fasterxml/jackson/databind/deser/BeanDeserializer.class +com/fasterxml/jackson/databind/deser/BeanDeserializerBase.class +com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.class +com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.class +com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.class +com/fasterxml/jackson/databind/deser/BuilderBasedDeserializer.class +com/fasterxml/jackson/databind/deser/ContextualDeserializer.class +com/fasterxml/jackson/databind/deser/ContextualKeyDeserializer.class +com/fasterxml/jackson/databind/deser/CreatorProperty.class +com/fasterxml/jackson/databind/deser/DataFormatReaders$AccessorForReader.class +com/fasterxml/jackson/databind/deser/DataFormatReaders$Match.class +com/fasterxml/jackson/databind/deser/DataFormatReaders.class +com/fasterxml/jackson/databind/deser/DefaultDeserializationContext$Impl.class +com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.class +com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.class +com/fasterxml/jackson/databind/deser/DeserializerCache.class +com/fasterxml/jackson/databind/deser/DeserializerFactory.class +com/fasterxml/jackson/databind/deser/Deserializers$Base.class +com/fasterxml/jackson/databind/deser/Deserializers.class +com/fasterxml/jackson/databind/deser/KeyDeserializers.class +com/fasterxml/jackson/databind/deser/NullValueProvider.class +com/fasterxml/jackson/databind/deser/ResolvableDeserializer.class +com/fasterxml/jackson/databind/deser/SettableAnyProperty$AnySetterReferring.class +com/fasterxml/jackson/databind/deser/SettableAnyProperty.class +com/fasterxml/jackson/databind/deser/SettableBeanProperty$Delegating.class +com/fasterxml/jackson/databind/deser/SettableBeanProperty.class +com/fasterxml/jackson/databind/deser/UnresolvedForwardReference.class +com/fasterxml/jackson/databind/deser/UnresolvedId.class +com/fasterxml/jackson/databind/deser/ValueInstantiator$Base.class +com/fasterxml/jackson/databind/deser/ValueInstantiator$Gettable.class +com/fasterxml/jackson/databind/deser/ValueInstantiator.class +com/fasterxml/jackson/databind/deser/ValueInstantiators$Base.class +com/fasterxml/jackson/databind/deser/ValueInstantiators.class +com/fasterxml/jackson/databind/deser/impl/ +com/fasterxml/jackson/databind/deser/impl/BeanAsArrayBuilderDeserializer.class +com/fasterxml/jackson/databind/deser/impl/BeanAsArrayDeserializer.class +com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.class +com/fasterxml/jackson/databind/deser/impl/CreatorCandidate$Param.class +com/fasterxml/jackson/databind/deser/impl/CreatorCandidate.class +com/fasterxml/jackson/databind/deser/impl/CreatorCollector$StdTypeConstructor.class +com/fasterxml/jackson/databind/deser/impl/CreatorCollector.class +com/fasterxml/jackson/databind/deser/impl/ErrorThrowingDeserializer.class +com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$Builder.class +com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$ExtTypedProperty.class +com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler.class +com/fasterxml/jackson/databind/deser/impl/FailingDeserializer.class +com/fasterxml/jackson/databind/deser/impl/FieldProperty.class +com/fasterxml/jackson/databind/deser/impl/InnerClassProperty.class +com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$1.class +com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$JavaUtilCollectionsConverter.class +com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers.class +com/fasterxml/jackson/databind/deser/impl/ManagedReferenceProperty.class +com/fasterxml/jackson/databind/deser/impl/MergingSettableBeanProperty.class +com/fasterxml/jackson/databind/deser/impl/MethodProperty.class +com/fasterxml/jackson/databind/deser/impl/NullsAsEmptyProvider.class +com/fasterxml/jackson/databind/deser/impl/NullsConstantProvider.class +com/fasterxml/jackson/databind/deser/impl/NullsFailProvider.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdReader.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty$PropertyReferring.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdValueProperty.class +com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator$CaseInsensitiveMap.class +com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator.class +com/fasterxml/jackson/databind/deser/impl/PropertyBasedObjectIdGenerator.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue$Any.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue$Map.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue$Regular.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue.class +com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.class +com/fasterxml/jackson/databind/deser/impl/ReadableObjectId$Referring.class +com/fasterxml/jackson/databind/deser/impl/ReadableObjectId.class +com/fasterxml/jackson/databind/deser/impl/SetterlessProperty.class +com/fasterxml/jackson/databind/deser/impl/TypeWrappedDeserializer.class +com/fasterxml/jackson/databind/deser/impl/UnwrappedPropertyHandler.class +com/fasterxml/jackson/databind/deser/impl/ValueInjector.class +com/fasterxml/jackson/databind/deser/std/ +com/fasterxml/jackson/databind/deser/std/ArrayBlockingQueueDeserializer.class +com/fasterxml/jackson/databind/deser/std/AtomicBooleanDeserializer.class +com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.class +com/fasterxml/jackson/databind/deser/std/BaseNodeDeserializer.class +com/fasterxml/jackson/databind/deser/std/ByteBufferDeserializer.class +com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferring.class +com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferringAccumulator.class +com/fasterxml/jackson/databind/deser/std/CollectionDeserializer.class +com/fasterxml/jackson/databind/deser/std/ContainerDeserializerBase.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$CalendarDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateBasedDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$SqlDateDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$TimestampDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers.class +com/fasterxml/jackson/databind/deser/std/DelegatingDeserializer.class +com/fasterxml/jackson/databind/deser/std/EnumDeserializer.class +com/fasterxml/jackson/databind/deser/std/EnumMapDeserializer.class +com/fasterxml/jackson/databind/deser/std/EnumSetDeserializer.class +com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.class +com/fasterxml/jackson/databind/deser/std/FromStringDeserializer$Std.class +com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.class +com/fasterxml/jackson/databind/deser/std/JdkDeserializers.class +com/fasterxml/jackson/databind/deser/std/JsonLocationInstantiator.class +com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ArrayDeserializer.class +com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ObjectDeserializer.class +com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer.class +com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferring.class +com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferringAccumulator.class +com/fasterxml/jackson/databind/deser/std/MapDeserializer.class +com/fasterxml/jackson/databind/deser/std/MapEntryDeserializer.class +com/fasterxml/jackson/databind/deser/std/NullifyingDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$1.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigDecimalDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigIntegerDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BooleanDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ByteDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$CharacterDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$DoubleDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$FloatDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$IntegerDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$LongDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$NumberDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$PrimitiveOrWrapperDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ShortDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers.class +com/fasterxml/jackson/databind/deser/std/ObjectArrayDeserializer.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$BooleanDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ByteDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$CharDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$DoubleDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$FloatDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$IntDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$LongDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ShortDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers.class +com/fasterxml/jackson/databind/deser/std/ReferenceTypeDeserializer.class +com/fasterxml/jackson/databind/deser/std/StackTraceElementDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$DelegatingKD.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$EnumKD.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringCtorKeyDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringFactoryKeyDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringKD.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializers.class +com/fasterxml/jackson/databind/deser/std/StdNodeBasedDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdScalarDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.class +com/fasterxml/jackson/databind/deser/std/StringArrayDeserializer.class +com/fasterxml/jackson/databind/deser/std/StringCollectionDeserializer.class +com/fasterxml/jackson/databind/deser/std/StringDeserializer.class +com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.class +com/fasterxml/jackson/databind/deser/std/TokenBufferDeserializer.class +com/fasterxml/jackson/databind/deser/std/UUIDDeserializer.class +com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer$Vanilla.class +com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.class +com/fasterxml/jackson/databind/exc/ +com/fasterxml/jackson/databind/exc/IgnoredPropertyException.class +com/fasterxml/jackson/databind/exc/InvalidDefinitionException.class +com/fasterxml/jackson/databind/exc/InvalidFormatException.class +com/fasterxml/jackson/databind/exc/InvalidNullException.class +com/fasterxml/jackson/databind/exc/InvalidTypeIdException.class +com/fasterxml/jackson/databind/exc/MismatchedInputException.class +com/fasterxml/jackson/databind/exc/PropertyBindingException.class +com/fasterxml/jackson/databind/exc/UnrecognizedPropertyException.class +com/fasterxml/jackson/databind/ext/ +com/fasterxml/jackson/databind/ext/CoreXMLDeserializers$Std.class +com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.class +com/fasterxml/jackson/databind/ext/CoreXMLSerializers$XMLGregorianCalendarSerializer.class +com/fasterxml/jackson/databind/ext/CoreXMLSerializers.class +com/fasterxml/jackson/databind/ext/DOMDeserializer$DocumentDeserializer.class +com/fasterxml/jackson/databind/ext/DOMDeserializer$NodeDeserializer.class +com/fasterxml/jackson/databind/ext/DOMDeserializer.class +com/fasterxml/jackson/databind/ext/DOMSerializer.class +com/fasterxml/jackson/databind/ext/Java7Support.class +com/fasterxml/jackson/databind/ext/Java7SupportImpl.class +com/fasterxml/jackson/databind/ext/NioPathDeserializer.class +com/fasterxml/jackson/databind/ext/NioPathSerializer.class +com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.class +com/fasterxml/jackson/databind/introspect/ +com/fasterxml/jackson/databind/introspect/Annotated.class +com/fasterxml/jackson/databind/introspect/AnnotatedClass$Creators.class +com/fasterxml/jackson/databind/introspect/AnnotatedClass.class +com/fasterxml/jackson/databind/introspect/AnnotatedClassResolver.class +com/fasterxml/jackson/databind/introspect/AnnotatedConstructor$Serialization.class +com/fasterxml/jackson/databind/introspect/AnnotatedConstructor.class +com/fasterxml/jackson/databind/introspect/AnnotatedCreatorCollector.class +com/fasterxml/jackson/databind/introspect/AnnotatedField$Serialization.class +com/fasterxml/jackson/databind/introspect/AnnotatedField.class +com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector$FieldBuilder.class +com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector.class +com/fasterxml/jackson/databind/introspect/AnnotatedMember.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethod$Serialization.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethod.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector$MethodBuilder.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethodMap.class +com/fasterxml/jackson/databind/introspect/AnnotatedParameter.class +com/fasterxml/jackson/databind/introspect/AnnotatedWithParams.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$EmptyCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$NCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$NoAnnotations.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneAnnotation.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$TwoAnnotations.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationIntrospectorPair.class +com/fasterxml/jackson/databind/introspect/AnnotationMap.class +com/fasterxml/jackson/databind/introspect/BasicBeanDescription.class +com/fasterxml/jackson/databind/introspect/BasicClassIntrospector.class +com/fasterxml/jackson/databind/introspect/BeanPropertyDefinition.class +com/fasterxml/jackson/databind/introspect/ClassIntrospector$MixInResolver.class +com/fasterxml/jackson/databind/introspect/ClassIntrospector.class +com/fasterxml/jackson/databind/introspect/CollectorBase.class +com/fasterxml/jackson/databind/introspect/ConcreteBeanPropertyBase.class +com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector$1.class +com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector.class +com/fasterxml/jackson/databind/introspect/MemberKey.class +com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector$1.class +com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector.class +com/fasterxml/jackson/databind/introspect/ObjectIdInfo.class +com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$1.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$10.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$2.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$3.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$4.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$5.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$6.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$7.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$8.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$9.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$Linked.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$MemberIterator.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$WithMember.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.class +com/fasterxml/jackson/databind/introspect/SimpleMixInResolver.class +com/fasterxml/jackson/databind/introspect/TypeResolutionContext$Basic.class +com/fasterxml/jackson/databind/introspect/TypeResolutionContext.class +com/fasterxml/jackson/databind/introspect/VirtualAnnotatedMember.class +com/fasterxml/jackson/databind/introspect/VisibilityChecker$1.class +com/fasterxml/jackson/databind/introspect/VisibilityChecker$Std.class +com/fasterxml/jackson/databind/introspect/VisibilityChecker.class +com/fasterxml/jackson/databind/introspect/WithMember.class +com/fasterxml/jackson/databind/jsonFormatVisitors/ +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatTypes.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitable.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWithSerializerProvider.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormat.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor.class +com/fasterxml/jackson/databind/jsonschema/ +com/fasterxml/jackson/databind/jsonschema/JsonSchema.class +com/fasterxml/jackson/databind/jsonschema/JsonSerializableSchema.class +com/fasterxml/jackson/databind/jsonschema/SchemaAware.class +com/fasterxml/jackson/databind/jsontype/ +com/fasterxml/jackson/databind/jsontype/NamedType.class +com/fasterxml/jackson/databind/jsontype/SubtypeResolver.class +com/fasterxml/jackson/databind/jsontype/TypeDeserializer$1.class +com/fasterxml/jackson/databind/jsontype/TypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/TypeIdResolver.class +com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.class +com/fasterxml/jackson/databind/jsontype/TypeSerializer$1.class +com/fasterxml/jackson/databind/jsontype/TypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/ +com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsExistingPropertyTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/ClassNameIdResolver.class +com/fasterxml/jackson/databind/jsontype/impl/MinimalClassNameIdResolver.class +com/fasterxml/jackson/databind/jsontype/impl/StdSubtypeResolver.class +com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder$1.class +com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder.class +com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.class +com/fasterxml/jackson/databind/jsontype/impl/TypeDeserializerBase.class +com/fasterxml/jackson/databind/jsontype/impl/TypeIdResolverBase.class +com/fasterxml/jackson/databind/jsontype/impl/TypeNameIdResolver.class +com/fasterxml/jackson/databind/jsontype/impl/TypeSerializerBase.class +com/fasterxml/jackson/databind/module/ +com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.class +com/fasterxml/jackson/databind/module/SimpleDeserializers.class +com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.class +com/fasterxml/jackson/databind/module/SimpleModule.class +com/fasterxml/jackson/databind/module/SimpleSerializers.class +com/fasterxml/jackson/databind/module/SimpleValueInstantiators.class +com/fasterxml/jackson/databind/node/ +com/fasterxml/jackson/databind/node/ArrayNode.class +com/fasterxml/jackson/databind/node/BaseJsonNode.class +com/fasterxml/jackson/databind/node/BigIntegerNode.class +com/fasterxml/jackson/databind/node/BinaryNode.class +com/fasterxml/jackson/databind/node/BooleanNode.class +com/fasterxml/jackson/databind/node/ContainerNode.class +com/fasterxml/jackson/databind/node/DecimalNode.class +com/fasterxml/jackson/databind/node/DoubleNode.class +com/fasterxml/jackson/databind/node/FloatNode.class +com/fasterxml/jackson/databind/node/IntNode.class +com/fasterxml/jackson/databind/node/JsonNodeCreator.class +com/fasterxml/jackson/databind/node/JsonNodeFactory.class +com/fasterxml/jackson/databind/node/JsonNodeType.class +com/fasterxml/jackson/databind/node/LongNode.class +com/fasterxml/jackson/databind/node/MissingNode.class +com/fasterxml/jackson/databind/node/NodeCursor$ArrayCursor.class +com/fasterxml/jackson/databind/node/NodeCursor$ObjectCursor.class +com/fasterxml/jackson/databind/node/NodeCursor$RootCursor.class +com/fasterxml/jackson/databind/node/NodeCursor.class +com/fasterxml/jackson/databind/node/NullNode.class +com/fasterxml/jackson/databind/node/NumericNode.class +com/fasterxml/jackson/databind/node/ObjectNode.class +com/fasterxml/jackson/databind/node/POJONode.class +com/fasterxml/jackson/databind/node/ShortNode.class +com/fasterxml/jackson/databind/node/TextNode.class +com/fasterxml/jackson/databind/node/TreeTraversingParser$1.class +com/fasterxml/jackson/databind/node/TreeTraversingParser.class +com/fasterxml/jackson/databind/node/ValueNode.class +com/fasterxml/jackson/databind/ser/ +com/fasterxml/jackson/databind/ser/AnyGetterWriter.class +com/fasterxml/jackson/databind/ser/BasicSerializerFactory$1.class +com/fasterxml/jackson/databind/ser/BasicSerializerFactory.class +com/fasterxml/jackson/databind/ser/BeanPropertyFilter.class +com/fasterxml/jackson/databind/ser/BeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/BeanSerializer.class +com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.class +com/fasterxml/jackson/databind/ser/BeanSerializerFactory.class +com/fasterxml/jackson/databind/ser/BeanSerializerModifier.class +com/fasterxml/jackson/databind/ser/ContainerSerializer.class +com/fasterxml/jackson/databind/ser/ContextualSerializer.class +com/fasterxml/jackson/databind/ser/DefaultSerializerProvider$Impl.class +com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.class +com/fasterxml/jackson/databind/ser/FilterProvider.class +com/fasterxml/jackson/databind/ser/PropertyBuilder$1.class +com/fasterxml/jackson/databind/ser/PropertyBuilder.class +com/fasterxml/jackson/databind/ser/PropertyFilter.class +com/fasterxml/jackson/databind/ser/PropertyWriter.class +com/fasterxml/jackson/databind/ser/ResolvableSerializer.class +com/fasterxml/jackson/databind/ser/SerializerCache.class +com/fasterxml/jackson/databind/ser/SerializerFactory.class +com/fasterxml/jackson/databind/ser/Serializers$Base.class +com/fasterxml/jackson/databind/ser/Serializers.class +com/fasterxml/jackson/databind/ser/VirtualBeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/ +com/fasterxml/jackson/databind/ser/impl/AttributePropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/BeanAsArraySerializer.class +com/fasterxml/jackson/databind/ser/impl/FailingSerializer.class +com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$MultiView.class +com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$SingleView.class +com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/IndexedListSerializer.class +com/fasterxml/jackson/databind/ser/impl/IndexedStringListSerializer.class +com/fasterxml/jackson/databind/ser/impl/IteratorSerializer.class +com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer$1.class +com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer.class +com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.class +com/fasterxml/jackson/databind/ser/impl/PropertyBasedObjectIdGenerator.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Double.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Empty.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Multi.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$SerializerAndMapResult.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Single.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$TypeAndSerializer.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap.class +com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap$Bucket.class +com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$1.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$FilterExceptFilter.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$SerializeExceptFilter.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.class +com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.class +com/fasterxml/jackson/databind/ser/impl/StringArraySerializer.class +com/fasterxml/jackson/databind/ser/impl/StringCollectionSerializer.class +com/fasterxml/jackson/databind/ser/impl/TypeWrappedSerializer.class +com/fasterxml/jackson/databind/ser/impl/UnknownSerializer.class +com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter$1.class +com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanSerializer.class +com/fasterxml/jackson/databind/ser/impl/WritableObjectId.class +com/fasterxml/jackson/databind/ser/std/ +com/fasterxml/jackson/databind/ser/std/ArraySerializerBase.class +com/fasterxml/jackson/databind/ser/std/AsArraySerializerBase.class +com/fasterxml/jackson/databind/ser/std/AtomicReferenceSerializer.class +com/fasterxml/jackson/databind/ser/std/BeanSerializerBase$1.class +com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.class +com/fasterxml/jackson/databind/ser/std/BooleanSerializer$AsNumber.class +com/fasterxml/jackson/databind/ser/std/BooleanSerializer.class +com/fasterxml/jackson/databind/ser/std/ByteArraySerializer.class +com/fasterxml/jackson/databind/ser/std/ByteBufferSerializer.class +com/fasterxml/jackson/databind/ser/std/CalendarSerializer.class +com/fasterxml/jackson/databind/ser/std/ClassSerializer.class +com/fasterxml/jackson/databind/ser/std/CollectionSerializer.class +com/fasterxml/jackson/databind/ser/std/DateSerializer.class +com/fasterxml/jackson/databind/ser/std/DateTimeSerializerBase.class +com/fasterxml/jackson/databind/ser/std/EnumSerializer.class +com/fasterxml/jackson/databind/ser/std/EnumSetSerializer.class +com/fasterxml/jackson/databind/ser/std/FileSerializer.class +com/fasterxml/jackson/databind/ser/std/InetAddressSerializer.class +com/fasterxml/jackson/databind/ser/std/InetSocketAddressSerializer.class +com/fasterxml/jackson/databind/ser/std/IterableSerializer.class +com/fasterxml/jackson/databind/ser/std/JsonValueSerializer$TypeSerializerRerouter.class +com/fasterxml/jackson/databind/ser/std/JsonValueSerializer.class +com/fasterxml/jackson/databind/ser/std/MapProperty.class +com/fasterxml/jackson/databind/ser/std/MapSerializer$1.class +com/fasterxml/jackson/databind/ser/std/MapSerializer.class +com/fasterxml/jackson/databind/ser/std/NonTypedScalarSerializerBase.class +com/fasterxml/jackson/databind/ser/std/NullSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializer$1.class +com/fasterxml/jackson/databind/ser/std/NumberSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$1.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$Base.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$DoubleSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$FloatSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntLikeSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntegerSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$LongSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$ShortSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers.class +com/fasterxml/jackson/databind/ser/std/ObjectArraySerializer.class +com/fasterxml/jackson/databind/ser/std/RawSerializer.class +com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer$1.class +com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer.class +com/fasterxml/jackson/databind/ser/std/SerializableSerializer.class +com/fasterxml/jackson/databind/ser/std/SqlDateSerializer.class +com/fasterxml/jackson/databind/ser/std/SqlTimeSerializer.class +com/fasterxml/jackson/databind/ser/std/StaticListSerializerBase.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$BooleanArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$CharArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$DoubleArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$FloatArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$IntArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$LongArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$ShortArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$TypedPrimitiveArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers.class +com/fasterxml/jackson/databind/ser/std/StdDelegatingSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicBooleanSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicIntegerSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicLongSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializer.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Default.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Dynamic.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$EnumKeySerializer.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$StringKeySerializer.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers.class +com/fasterxml/jackson/databind/ser/std/StdScalarSerializer.class +com/fasterxml/jackson/databind/ser/std/StdSerializer.class +com/fasterxml/jackson/databind/ser/std/StringSerializer.class +com/fasterxml/jackson/databind/ser/std/TimeZoneSerializer.class +com/fasterxml/jackson/databind/ser/std/ToStringSerializer.class +com/fasterxml/jackson/databind/ser/std/TokenBufferSerializer.class +com/fasterxml/jackson/databind/ser/std/UUIDSerializer.class +com/fasterxml/jackson/databind/type/ +com/fasterxml/jackson/databind/type/ArrayType.class +com/fasterxml/jackson/databind/type/ClassKey.class +com/fasterxml/jackson/databind/type/ClassStack.class +com/fasterxml/jackson/databind/type/CollectionLikeType.class +com/fasterxml/jackson/databind/type/CollectionType.class +com/fasterxml/jackson/databind/type/MapLikeType.class +com/fasterxml/jackson/databind/type/MapType.class +com/fasterxml/jackson/databind/type/PlaceholderForType.class +com/fasterxml/jackson/databind/type/ReferenceType.class +com/fasterxml/jackson/databind/type/ResolvedRecursiveType.class +com/fasterxml/jackson/databind/type/SimpleType.class +com/fasterxml/jackson/databind/type/TypeBase.class +com/fasterxml/jackson/databind/type/TypeBindings$AsKey.class +com/fasterxml/jackson/databind/type/TypeBindings$TypeParamStash.class +com/fasterxml/jackson/databind/type/TypeBindings.class +com/fasterxml/jackson/databind/type/TypeFactory.class +com/fasterxml/jackson/databind/type/TypeModifier.class +com/fasterxml/jackson/databind/type/TypeParser$MyTokenizer.class +com/fasterxml/jackson/databind/type/TypeParser.class +com/fasterxml/jackson/databind/util/ +com/fasterxml/jackson/databind/util/AccessPattern.class +com/fasterxml/jackson/databind/util/Annotations.class +com/fasterxml/jackson/databind/util/ArrayBuilders$1.class +com/fasterxml/jackson/databind/util/ArrayBuilders$BooleanBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$ByteBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$DoubleBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$FloatBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$IntBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$LongBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$ShortBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders.class +com/fasterxml/jackson/databind/util/ArrayIterator.class +com/fasterxml/jackson/databind/util/BeanUtil.class +com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.class +com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.class +com/fasterxml/jackson/databind/util/ClassUtil$Ctor.class +com/fasterxml/jackson/databind/util/ClassUtil$EnumTypeLocator.class +com/fasterxml/jackson/databind/util/ClassUtil.class +com/fasterxml/jackson/databind/util/CompactStringObjectMap.class +com/fasterxml/jackson/databind/util/ConstantValueInstantiator.class +com/fasterxml/jackson/databind/util/Converter$None.class +com/fasterxml/jackson/databind/util/Converter.class +com/fasterxml/jackson/databind/util/EnumResolver.class +com/fasterxml/jackson/databind/util/EnumValues.class +com/fasterxml/jackson/databind/util/ISO8601DateFormat.class +com/fasterxml/jackson/databind/util/ISO8601Utils.class +com/fasterxml/jackson/databind/util/JSONPObject.class +com/fasterxml/jackson/databind/util/JSONWrappedObject.class +com/fasterxml/jackson/databind/util/LRUMap.class +com/fasterxml/jackson/databind/util/LinkedNode.class +com/fasterxml/jackson/databind/util/NameTransformer$1.class +com/fasterxml/jackson/databind/util/NameTransformer$2.class +com/fasterxml/jackson/databind/util/NameTransformer$3.class +com/fasterxml/jackson/databind/util/NameTransformer$Chained.class +com/fasterxml/jackson/databind/util/NameTransformer$NopTransformer.class +com/fasterxml/jackson/databind/util/NameTransformer.class +com/fasterxml/jackson/databind/util/Named.class +com/fasterxml/jackson/databind/util/ObjectBuffer.class +com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder$Node.class +com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.class +com/fasterxml/jackson/databind/util/RawValue.class +com/fasterxml/jackson/databind/util/RootNameLookup.class +com/fasterxml/jackson/databind/util/SimpleBeanPropertyDefinition.class +com/fasterxml/jackson/databind/util/StdConverter.class +com/fasterxml/jackson/databind/util/StdDateFormat.class +com/fasterxml/jackson/databind/util/TokenBuffer$1.class +com/fasterxml/jackson/databind/util/TokenBuffer$Parser.class +com/fasterxml/jackson/databind/util/TokenBuffer$Segment.class +com/fasterxml/jackson/databind/util/TokenBuffer.class +com/fasterxml/jackson/databind/util/TokenBufferReadContext.class +com/fasterxml/jackson/databind/util/TypeKey.class +com/fasterxml/jackson/databind/util/ViewMatcher$Multi.class +com/fasterxml/jackson/databind/util/ViewMatcher$Single.class +com/fasterxml/jackson/databind/util/ViewMatcher.class diff --git a/examples/temp2.txt b/examples/temp2.txt new file mode 100644 index 00000000..83556ad8 --- /dev/null +++ b/examples/temp2.txt @@ -0,0 +1,1917 @@ +META-INF/ +META-INF/MANIFEST.MF +LICENSE.md +com/ +com/sendgrid/ +com/sendgrid/SendGridAPI.class +com/sendgrid/SendGrid$1.class +com/sendgrid/APICallback.class +com/sendgrid/SendGrid$2.class +com/sendgrid/SendGrid.class +com/sendgrid/SpamCheckSetting.class +com/sendgrid/Attachments$Builder.class +com/sendgrid/OpenTrackingSetting.class +com/sendgrid/Setting.class +com/sendgrid/GoogleAnalyticsSetting.class +com/sendgrid/ASM.class +com/sendgrid/FooterSetting.class +com/sendgrid/Personalization.class +com/sendgrid/Email.class +com/sendgrid/MailSettings.class +com/sendgrid/BccSettings.class +com/sendgrid/Content.class +com/sendgrid/TrackingSettings.class +com/sendgrid/ClickTrackingSetting.class +com/sendgrid/Attachments.class +com/sendgrid/ContentVerifier.class +com/sendgrid/SubscriptionTrackingSetting.class +com/sendgrid/Mail.class +com/sendgrid/RateLimitException.class +META-INF/maven/ +META-INF/maven/com.sendgrid/ +META-INF/maven/com.sendgrid/sendgrid-java/ +META-INF/maven/com.sendgrid/sendgrid-java/pom.xml +META-INF/maven/com.sendgrid/sendgrid-java/pom.properties +com/sendgrid/Client$1.class +com/sendgrid/Client.class +com/sendgrid/HttpDeleteWithBody.class +com/sendgrid/Method.class +com/sendgrid/Request.class +com/sendgrid/Response.class +com/sendgrid/SendGridResponseHandler.class +org/ +org/apache/ +org/apache/http/ +org/apache/http/message/ +org/apache/http/message/BasicHeaderElementIterator.class +org/apache/http/message/LineParser.class +org/apache/http/message/BasicHttpEntityEnclosingRequest.class +org/apache/http/message/HeaderValueFormatter.class +org/apache/http/message/BasicLineFormatter.class +org/apache/http/message/BasicLineParser.class +org/apache/http/message/HeaderGroup.class +org/apache/http/message/BasicNameValuePair.class +org/apache/http/message/BufferedHeader.class +org/apache/http/message/BasicListHeaderIterator.class +org/apache/http/message/BasicHeader.class +org/apache/http/message/LineFormatter.class +org/apache/http/message/BasicHttpResponse.class +org/apache/http/message/BasicTokenIterator.class +org/apache/http/message/BasicRequestLine.class +org/apache/http/message/ParserCursor.class +org/apache/http/message/BasicHeaderValueParser.class +org/apache/http/message/BasicHeaderValueFormatter.class +org/apache/http/message/BasicHttpRequest.class +org/apache/http/message/HeaderValueParser.class +org/apache/http/message/AbstractHttpMessage.class +org/apache/http/message/TokenParser.class +org/apache/http/message/BasicHeaderIterator.class +org/apache/http/message/BasicHeaderElement.class +org/apache/http/message/BasicStatusLine.class +org/apache/http/concurrent/ +org/apache/http/concurrent/BasicFuture.class +org/apache/http/concurrent/Cancellable.class +org/apache/http/concurrent/FutureCallback.class +org/apache/http/HeaderElement.class +org/apache/http/TruncatedChunkException.class +org/apache/http/ExceptionLogger$1.class +org/apache/http/version.properties +org/apache/http/HeaderElementIterator.class +org/apache/http/ProtocolVersion.class +org/apache/http/ExceptionLogger.class +org/apache/http/HttpRequestFactory.class +org/apache/http/HttpConnection.class +org/apache/http/HttpRequestInterceptor.class +org/apache/http/ContentTooLongException.class +org/apache/http/UnsupportedHttpVersionException.class +org/apache/http/HttpResponseInterceptor.class +org/apache/http/HttpInetConnection.class +org/apache/http/HttpEntity.class +org/apache/http/HttpException.class +org/apache/http/annotation/ +org/apache/http/annotation/Obsolete.class +org/apache/http/annotation/Experimental.class +org/apache/http/annotation/NotThreadSafe.class +org/apache/http/annotation/Immutable.class +org/apache/http/annotation/ThreadSafe.class +org/apache/http/annotation/GuardedBy.class +org/apache/http/Consts.class +org/apache/http/HttpConnectionMetrics.class +org/apache/http/HttpMessage.class +org/apache/http/MethodNotSupportedException.class +org/apache/http/ParseException.class +org/apache/http/params/ +org/apache/http/params/CoreProtocolPNames.class +org/apache/http/params/SyncBasicHttpParams.class +org/apache/http/params/DefaultedHttpParams.class +org/apache/http/params/HttpParams.class +org/apache/http/params/AbstractHttpParams.class +org/apache/http/params/HttpAbstractParamBean.class +org/apache/http/params/HttpConnectionParams.class +org/apache/http/params/BasicHttpParams.class +org/apache/http/params/HttpConnectionParamBean.class +org/apache/http/params/CoreConnectionPNames.class +org/apache/http/params/HttpParamConfig.class +org/apache/http/params/HttpProtocolParamBean.class +org/apache/http/params/HttpProtocolParams.class +org/apache/http/params/HttpParamsNames.class +org/apache/http/ReasonPhraseCatalog.class +org/apache/http/MalformedChunkCodingException.class +org/apache/http/FormattedHeader.class +org/apache/http/HttpResponse.class +org/apache/http/HeaderIterator.class +org/apache/http/HttpHeaders.class +org/apache/http/HttpClientConnection.class +org/apache/http/HttpHost.class +org/apache/http/protocol/ +org/apache/http/protocol/ResponseDate.class +org/apache/http/protocol/ChainBuilder.class +org/apache/http/protocol/HttpDateGenerator.class +org/apache/http/protocol/HttpRequestHandlerMapper.class +org/apache/http/protocol/HTTP.class +org/apache/http/protocol/SyncBasicHttpContext.class +org/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter.class +org/apache/http/protocol/ImmutableHttpProcessor.class +org/apache/http/protocol/BasicHttpContext.class +org/apache/http/protocol/HttpProcessorBuilder.class +org/apache/http/protocol/RequestTargetHost.class +org/apache/http/protocol/ResponseConnControl.class +org/apache/http/protocol/HttpRequestInterceptorList.class +org/apache/http/protocol/HttpRequestExecutor.class +org/apache/http/protocol/RequestUserAgent.class +org/apache/http/protocol/HttpRequestHandlerResolver.class +org/apache/http/protocol/BasicHttpProcessor.class +org/apache/http/protocol/ResponseServer.class +org/apache/http/protocol/ResponseContent.class +org/apache/http/protocol/RequestDate.class +org/apache/http/protocol/HttpService.class +org/apache/http/protocol/HttpContext.class +org/apache/http/protocol/RequestConnControl.class +org/apache/http/protocol/UriHttpRequestHandlerMapper.class +org/apache/http/protocol/UriPatternMatcher.class +org/apache/http/protocol/HttpCoreContext.class +org/apache/http/protocol/HttpProcessor.class +org/apache/http/protocol/RequestExpectContinue.class +org/apache/http/protocol/HttpExpectationVerifier.class +org/apache/http/protocol/HttpRequestHandlerRegistry.class +org/apache/http/protocol/HttpResponseInterceptorList.class +org/apache/http/protocol/HttpRequestHandler.class +org/apache/http/protocol/ExecutionContext.class +org/apache/http/protocol/RequestContent.class +org/apache/http/protocol/DefaultedHttpContext.class +org/apache/http/HttpStatus.class +org/apache/http/TokenIterator.class +org/apache/http/ssl/ +org/apache/http/ssl/SSLContextBuilder$TrustManagerDelegate.class +org/apache/http/ssl/TrustStrategy.class +org/apache/http/ssl/PrivateKeyStrategy.class +org/apache/http/ssl/SSLContextBuilder$KeyManagerDelegate.class +org/apache/http/ssl/SSLContexts.class +org/apache/http/ssl/SSLContextBuilder.class +org/apache/http/ssl/SSLInitializationException.class +org/apache/http/ssl/PrivateKeyDetails.class +org/apache/http/ConnectionReuseStrategy.class +org/apache/http/pool/ +org/apache/http/pool/AbstractConnPool$4.class +org/apache/http/pool/AbstractConnPool$2.class +org/apache/http/pool/PoolEntry.class +org/apache/http/pool/ConnFactory.class +org/apache/http/pool/RouteSpecificPool.class +org/apache/http/pool/AbstractConnPool$3.class +org/apache/http/pool/PoolEntryCallback.class +org/apache/http/pool/AbstractConnPool.class +org/apache/http/pool/ConnPoolControl.class +org/apache/http/pool/PoolStats.class +org/apache/http/pool/AbstractConnPool$1.class +org/apache/http/pool/ConnPool.class +org/apache/http/pool/PoolEntryFuture.class +org/apache/http/config/ +org/apache/http/config/MessageConstraints$Builder.class +org/apache/http/config/ConnectionConfig.class +org/apache/http/config/SocketConfig.class +org/apache/http/config/Registry.class +org/apache/http/config/ConnectionConfig$Builder.class +org/apache/http/config/RegistryBuilder.class +org/apache/http/config/SocketConfig$Builder.class +org/apache/http/config/MessageConstraints.class +org/apache/http/config/Lookup.class +org/apache/http/HttpResponseFactory.class +org/apache/http/HttpRequest.class +org/apache/http/RequestLine.class +org/apache/http/HttpServerConnection.class +org/apache/http/NameValuePair.class +org/apache/http/util/ +org/apache/http/util/LangUtils.class +org/apache/http/util/NetUtils.class +org/apache/http/util/EntityUtils.class +org/apache/http/util/EncodingUtils.class +org/apache/http/util/TextUtils.class +org/apache/http/util/CharsetUtils.class +org/apache/http/util/CharArrayBuffer.class +org/apache/http/util/ByteArrayBuffer.class +org/apache/http/util/Asserts.class +org/apache/http/util/ExceptionUtils.class +org/apache/http/util/Args.class +org/apache/http/util/VersionInfo.class +org/apache/http/HttpVersion.class +org/apache/http/HttpConnectionFactory.class +org/apache/http/impl/ +org/apache/http/impl/DefaultHttpRequestFactory.class +org/apache/http/impl/SocketHttpClientConnection.class +org/apache/http/impl/bootstrap/ +org/apache/http/impl/bootstrap/SSLServerSetupHandler.class +org/apache/http/impl/bootstrap/HttpServer$Status.class +org/apache/http/impl/bootstrap/ThreadFactoryImpl.class +org/apache/http/impl/bootstrap/Worker.class +org/apache/http/impl/bootstrap/RequestListener.class +org/apache/http/impl/bootstrap/ServerBootstrap.class +org/apache/http/impl/bootstrap/HttpServer.class +org/apache/http/impl/SocketHttpServerConnection.class +org/apache/http/impl/BHttpConnectionBase.class +org/apache/http/impl/DefaultConnectionReuseStrategy.class +org/apache/http/impl/DefaultHttpServerConnection.class +org/apache/http/impl/AbstractHttpClientConnection.class +org/apache/http/impl/EnglishReasonPhraseCatalog.class +org/apache/http/impl/DefaultBHttpServerConnection.class +org/apache/http/impl/DefaultHttpClientConnection.class +org/apache/http/impl/pool/ +org/apache/http/impl/pool/BasicConnPool.class +org/apache/http/impl/pool/BasicConnFactory.class +org/apache/http/impl/pool/BasicPoolEntry.class +org/apache/http/impl/DefaultBHttpClientConnectionFactory.class +org/apache/http/impl/DefaultBHttpClientConnection.class +org/apache/http/impl/AbstractHttpServerConnection.class +org/apache/http/impl/io/ +org/apache/http/impl/io/HttpResponseWriter.class +org/apache/http/impl/io/HttpTransportMetricsImpl.class +org/apache/http/impl/io/AbstractSessionInputBuffer.class +org/apache/http/impl/io/DefaultHttpRequestWriter.class +org/apache/http/impl/io/SessionInputBufferImpl.class +org/apache/http/impl/io/ContentLengthOutputStream.class +org/apache/http/impl/io/SocketInputBuffer.class +org/apache/http/impl/io/DefaultHttpResponseWriterFactory.class +org/apache/http/impl/io/DefaultHttpRequestWriterFactory.class +org/apache/http/impl/io/IdentityOutputStream.class +org/apache/http/impl/io/IdentityInputStream.class +org/apache/http/impl/io/SocketOutputBuffer.class +org/apache/http/impl/io/ChunkedOutputStream.class +org/apache/http/impl/io/DefaultHttpResponseParserFactory.class +org/apache/http/impl/io/ContentLengthInputStream.class +org/apache/http/impl/io/HttpRequestWriter.class +org/apache/http/impl/io/DefaultHttpResponseWriter.class +org/apache/http/impl/io/DefaultHttpRequestParserFactory.class +org/apache/http/impl/io/AbstractMessageParser.class +org/apache/http/impl/io/EmptyInputStream.class +org/apache/http/impl/io/DefaultHttpRequestParser.class +org/apache/http/impl/io/SessionOutputBufferImpl.class +org/apache/http/impl/io/HttpRequestParser.class +org/apache/http/impl/io/AbstractSessionOutputBuffer.class +org/apache/http/impl/io/DefaultHttpResponseParser.class +org/apache/http/impl/io/ChunkedInputStream.class +org/apache/http/impl/io/AbstractMessageWriter.class +org/apache/http/impl/io/HttpResponseParser.class +org/apache/http/impl/entity/ +org/apache/http/impl/entity/DisallowIdentityContentLengthStrategy.class +org/apache/http/impl/entity/LaxContentLengthStrategy.class +org/apache/http/impl/entity/StrictContentLengthStrategy.class +org/apache/http/impl/entity/EntityDeserializer.class +org/apache/http/impl/entity/EntitySerializer.class +org/apache/http/impl/DefaultHttpResponseFactory.class +org/apache/http/impl/DefaultBHttpServerConnectionFactory.class +org/apache/http/impl/HttpConnectionMetricsImpl.class +org/apache/http/impl/ConnSupport.class +org/apache/http/impl/NoConnectionReuseStrategy.class +org/apache/http/ConnectionClosedException.class +org/apache/http/StatusLine.class +org/apache/http/io/ +org/apache/http/io/HttpMessageWriterFactory.class +org/apache/http/io/BufferInfo.class +org/apache/http/io/HttpMessageParserFactory.class +org/apache/http/io/HttpTransportMetrics.class +org/apache/http/io/SessionOutputBuffer.class +org/apache/http/io/HttpMessageParser.class +org/apache/http/io/EofSensor.class +org/apache/http/io/HttpMessageWriter.class +org/apache/http/io/SessionInputBuffer.class +org/apache/http/NoHttpResponseException.class +org/apache/http/HttpEntityEnclosingRequest.class +org/apache/http/entity/ +org/apache/http/entity/ContentLengthStrategy.class +org/apache/http/entity/FileEntity.class +org/apache/http/entity/InputStreamEntity.class +org/apache/http/entity/SerializableEntity.class +org/apache/http/entity/StringEntity.class +org/apache/http/entity/HttpEntityWrapper.class +org/apache/http/entity/ContentProducer.class +org/apache/http/entity/BufferedHttpEntity.class +org/apache/http/entity/ByteArrayEntity.class +org/apache/http/entity/EntityTemplate.class +org/apache/http/entity/BasicHttpEntity.class +org/apache/http/entity/ContentType.class +org/apache/http/entity/AbstractHttpEntity.class +org/apache/http/ProtocolException.class +org/apache/http/MessageConstraintException.class +org/apache/http/ExceptionLogger$2.class +org/apache/http/Header.class +META-INF/DEPENDENCIES +META-INF/NOTICE +META-INF/LICENSE +META-INF/maven/org.apache.httpcomponents/ +META-INF/maven/org.apache.httpcomponents/httpcore/ +META-INF/maven/org.apache.httpcomponents/httpcore/pom.xml +META-INF/maven/org.apache.httpcomponents/httpcore/pom.properties +org/apache/http/auth/ +org/apache/http/auth/KerberosCredentials.class +org/apache/http/auth/AuthSchemeRegistry.class +org/apache/http/auth/ChallengeState.class +org/apache/http/auth/NTUserPrincipal.class +org/apache/http/auth/InvalidCredentialsException.class +org/apache/http/auth/AuthSchemeRegistry$1.class +org/apache/http/auth/NTCredentials.class +org/apache/http/auth/AuthScheme.class +org/apache/http/auth/AuthenticationException.class +org/apache/http/auth/params/ +org/apache/http/auth/params/AuthParams.class +org/apache/http/auth/params/AuthParamBean.class +org/apache/http/auth/params/AuthPNames.class +org/apache/http/auth/BasicUserPrincipal.class +org/apache/http/auth/AuthSchemeProvider.class +org/apache/http/auth/ContextAwareAuthScheme.class +org/apache/http/auth/AuthProtocolState.class +org/apache/http/auth/AuthScope.class +org/apache/http/auth/AuthSchemeFactory.class +org/apache/http/auth/AUTH.class +org/apache/http/auth/Credentials.class +org/apache/http/auth/UsernamePasswordCredentials.class +org/apache/http/auth/AuthOption.class +org/apache/http/auth/MalformedChallengeException.class +org/apache/http/auth/AuthState.class +org/apache/http/cookie/ +org/apache/http/cookie/CookieSpecRegistry.class +org/apache/http/cookie/CookieSpec.class +org/apache/http/cookie/CookieRestrictionViolationException.class +org/apache/http/cookie/CookieIdentityComparator.class +org/apache/http/cookie/SM.class +org/apache/http/cookie/CookieOrigin.class +org/apache/http/cookie/CookieAttributeHandler.class +org/apache/http/cookie/SetCookie2.class +org/apache/http/cookie/params/ +org/apache/http/cookie/params/CookieSpecParamBean.class +org/apache/http/cookie/params/CookieSpecPNames.class +org/apache/http/cookie/MalformedCookieException.class +org/apache/http/cookie/ClientCookie.class +org/apache/http/cookie/CommonCookieAttributeHandler.class +org/apache/http/cookie/CookieSpecRegistry$1.class +org/apache/http/cookie/CookiePathComparator.class +org/apache/http/cookie/SetCookie.class +org/apache/http/cookie/Cookie.class +org/apache/http/cookie/CookieSpecProvider.class +org/apache/http/cookie/CookiePriorityComparator.class +org/apache/http/cookie/CookieSpecFactory.class +org/apache/http/client/ +org/apache/http/client/RedirectStrategy.class +org/apache/http/client/ConnectionBackoffStrategy.class +org/apache/http/client/version.properties +org/apache/http/client/AuthenticationStrategy.class +org/apache/http/client/HttpClient.class +org/apache/http/client/methods/ +org/apache/http/client/methods/HttpOptions.class +org/apache/http/client/methods/AbortableHttpRequest.class +org/apache/http/client/methods/HttpRequestBase.class +org/apache/http/client/methods/AbstractExecutionAwareRequest$2.class +org/apache/http/client/methods/RequestBuilder.class +org/apache/http/client/methods/HttpGet.class +org/apache/http/client/methods/HttpPatch.class +org/apache/http/client/methods/HttpDelete.class +org/apache/http/client/methods/HttpUriRequest.class +org/apache/http/client/methods/CloseableHttpResponse.class +org/apache/http/client/methods/HttpRequestWrapper$1.class +org/apache/http/client/methods/RequestBuilder$InternalEntityEclosingRequest.class +org/apache/http/client/methods/HttpRequestWrapper$HttpEntityEnclosingRequestWrapper.class +org/apache/http/client/methods/RequestBuilder$InternalRequest.class +org/apache/http/client/methods/HttpRequestWrapper.class +org/apache/http/client/methods/HttpHead.class +org/apache/http/client/methods/HttpExecutionAware.class +org/apache/http/client/methods/AbstractExecutionAwareRequest.class +org/apache/http/client/methods/Configurable.class +org/apache/http/client/methods/AbstractExecutionAwareRequest$1.class +org/apache/http/client/methods/HttpPost.class +org/apache/http/client/methods/HttpEntityEnclosingRequestBase.class +org/apache/http/client/methods/HttpTrace.class +org/apache/http/client/methods/HttpPut.class +org/apache/http/client/CredentialsProvider.class +org/apache/http/client/UserTokenHandler.class +org/apache/http/client/CookieStore.class +org/apache/http/client/HttpResponseException.class +org/apache/http/client/ClientProtocolException.class +org/apache/http/client/AuthenticationHandler.class +org/apache/http/client/params/ +org/apache/http/client/params/HttpClientParams.class +org/apache/http/client/params/ClientPNames.class +org/apache/http/client/params/ClientParamBean.class +org/apache/http/client/params/CookiePolicy.class +org/apache/http/client/params/AuthPolicy.class +org/apache/http/client/params/HttpClientParamConfig.class +org/apache/http/client/params/AllClientPNames.class +org/apache/http/client/CircularRedirectException.class +org/apache/http/client/utils/ +org/apache/http/client/utils/Punycode.class +org/apache/http/client/utils/Idn.class +org/apache/http/client/utils/HttpClientUtils.class +org/apache/http/client/utils/URIBuilder.class +org/apache/http/client/utils/URIUtils.class +org/apache/http/client/utils/DateUtils$DateFormatHolder.class +org/apache/http/client/utils/URLEncodedUtils.class +org/apache/http/client/utils/JdkIdn.class +org/apache/http/client/utils/CloneUtils.class +org/apache/http/client/utils/DateUtils.class +org/apache/http/client/utils/Rfc3492Idn.class +org/apache/http/client/protocol/ +org/apache/http/client/protocol/RequestAcceptEncoding.class +org/apache/http/client/protocol/ResponseProcessCookies.class +org/apache/http/client/protocol/RequestDefaultHeaders.class +org/apache/http/client/protocol/ResponseContentEncoding$2.class +org/apache/http/client/protocol/ClientContext.class +org/apache/http/client/protocol/ResponseAuthCache.class +org/apache/http/client/protocol/RequestAuthenticationBase$1.class +org/apache/http/client/protocol/RequestTargetAuthentication.class +org/apache/http/client/protocol/RequestProxyAuthentication.class +org/apache/http/client/protocol/RequestClientConnControl.class +org/apache/http/client/protocol/ResponseAuthCache$1.class +org/apache/http/client/protocol/RequestAddCookies.class +org/apache/http/client/protocol/RequestAuthCache.class +org/apache/http/client/protocol/ClientContextConfigurer.class +org/apache/http/client/protocol/ResponseContentEncoding$1.class +org/apache/http/client/protocol/RequestExpectContinue.class +org/apache/http/client/protocol/ResponseContentEncoding.class +org/apache/http/client/protocol/RequestAuthenticationBase.class +org/apache/http/client/protocol/HttpClientContext.class +org/apache/http/client/BackoffManager.class +org/apache/http/client/config/ +org/apache/http/client/config/RequestConfig$Builder.class +org/apache/http/client/config/RequestConfig.class +org/apache/http/client/config/CookieSpecs.class +org/apache/http/client/config/AuthSchemes.class +org/apache/http/client/AuthCache.class +org/apache/http/client/ResponseHandler.class +org/apache/http/client/RedirectException.class +org/apache/http/client/RedirectHandler.class +org/apache/http/client/NonRepeatableRequestException.class +org/apache/http/client/entity/ +org/apache/http/client/entity/DeflateInputStream.class +org/apache/http/client/entity/InputStreamFactory.class +org/apache/http/client/entity/UrlEncodedFormEntity.class +org/apache/http/client/entity/DeflateInputStream$DeflateStream.class +org/apache/http/client/entity/GzipCompressingEntity.class +org/apache/http/client/entity/EntityBuilder.class +org/apache/http/client/entity/LazyDecompressingInputStream.class +org/apache/http/client/entity/DecompressingEntity.class +org/apache/http/client/entity/GzipDecompressingEntity$1.class +org/apache/http/client/entity/DeflateDecompressingEntity$1.class +org/apache/http/client/entity/GzipDecompressingEntity.class +org/apache/http/client/entity/DeflateDecompressingEntity.class +org/apache/http/client/HttpRequestRetryHandler.class +org/apache/http/client/RequestDirector.class +org/apache/http/client/ServiceUnavailableRetryStrategy.class +org/apache/http/conn/ +org/apache/http/conn/OperatedClientConnection.class +org/apache/http/conn/ManagedClientConnection.class +org/apache/http/conn/ConnectionRequest.class +org/apache/http/conn/EofSensorInputStream.class +org/apache/http/conn/ClientConnectionOperator.class +org/apache/http/conn/HttpClientConnectionOperator.class +org/apache/http/conn/BasicManagedEntity.class +org/apache/http/conn/ConnectionKeepAliveStrategy.class +org/apache/http/conn/ManagedHttpClientConnection.class +org/apache/http/conn/BasicEofSensorWatcher.class +org/apache/http/conn/HttpClientConnectionManager.class +org/apache/http/conn/HttpRoutedConnection.class +org/apache/http/conn/EofSensorWatcher.class +org/apache/http/conn/routing/ +org/apache/http/conn/routing/BasicRouteDirector.class +org/apache/http/conn/routing/RouteInfo$LayerType.class +org/apache/http/conn/routing/RouteInfo.class +org/apache/http/conn/routing/RouteTracker.class +org/apache/http/conn/routing/HttpRouteDirector.class +org/apache/http/conn/routing/HttpRoutePlanner.class +org/apache/http/conn/routing/RouteInfo$TunnelType.class +org/apache/http/conn/routing/HttpRoute.class +org/apache/http/conn/SchemePortResolver.class +org/apache/http/conn/ClientConnectionManager.class +org/apache/http/conn/params/ +org/apache/http/conn/params/ConnManagerParamBean.class +org/apache/http/conn/params/ConnRouteParamBean.class +org/apache/http/conn/params/ConnManagerParams$1.class +org/apache/http/conn/params/ConnManagerPNames.class +org/apache/http/conn/params/ConnConnectionParamBean.class +org/apache/http/conn/params/ConnManagerParams.class +org/apache/http/conn/params/ConnPerRouteBean.class +org/apache/http/conn/params/ConnConnectionPNames.class +org/apache/http/conn/params/ConnPerRoute.class +org/apache/http/conn/params/ConnRoutePNames.class +org/apache/http/conn/params/ConnRouteParams.class +org/apache/http/conn/socket/ +org/apache/http/conn/socket/PlainConnectionSocketFactory.class +org/apache/http/conn/socket/ConnectionSocketFactory.class +org/apache/http/conn/socket/LayeredConnectionSocketFactory.class +org/apache/http/conn/ClientConnectionRequest.class +org/apache/http/conn/ssl/ +org/apache/http/conn/ssl/TrustSelfSignedStrategy.class +org/apache/http/conn/ssl/SSLContextBuilder$TrustManagerDelegate.class +org/apache/http/conn/ssl/DefaultHostnameVerifier$1.class +org/apache/http/conn/ssl/DefaultHostnameVerifier$TYPE.class +org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.class +org/apache/http/conn/ssl/TrustStrategy.class +org/apache/http/conn/ssl/PrivateKeyStrategy.class +org/apache/http/conn/ssl/SSLContextBuilder$KeyManagerDelegate.class +org/apache/http/conn/ssl/X509HostnameVerifier.class +org/apache/http/conn/ssl/AbstractVerifier.class +org/apache/http/conn/ssl/SSLSocketFactory.class +org/apache/http/conn/ssl/SSLConnectionSocketFactory.class +org/apache/http/conn/ssl/SSLContexts.class +org/apache/http/conn/ssl/AllowAllHostnameVerifier.class +org/apache/http/conn/ssl/StrictHostnameVerifier.class +org/apache/http/conn/ssl/SSLContextBuilder.class +org/apache/http/conn/ssl/DefaultHostnameVerifier.class +org/apache/http/conn/ssl/SSLInitializationException.class +org/apache/http/conn/ssl/PrivateKeyDetails.class +org/apache/http/conn/ssl/NoopHostnameVerifier.class +org/apache/http/conn/ConnectionPoolTimeoutException.class +org/apache/http/conn/ConnectionReleaseTrigger.class +org/apache/http/conn/ClientConnectionManagerFactory.class +org/apache/http/conn/scheme/ +org/apache/http/conn/scheme/SchemeSocketFactoryAdaptor.class +org/apache/http/conn/scheme/SchemeLayeredSocketFactory.class +org/apache/http/conn/scheme/PlainSocketFactory.class +org/apache/http/conn/scheme/LayeredSocketFactoryAdaptor.class +org/apache/http/conn/scheme/Scheme.class +org/apache/http/conn/scheme/HostNameResolver.class +org/apache/http/conn/scheme/SchemeRegistry.class +org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor2.class +org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor.class +org/apache/http/conn/scheme/SocketFactory.class +org/apache/http/conn/scheme/SchemeSocketFactory.class +org/apache/http/conn/scheme/SocketFactoryAdaptor.class +org/apache/http/conn/scheme/LayeredSchemeSocketFactory.class +org/apache/http/conn/scheme/LayeredSocketFactory.class +org/apache/http/conn/ConnectTimeoutException.class +org/apache/http/conn/util/ +org/apache/http/conn/util/DomainType.class +org/apache/http/conn/util/InetAddressUtils.class +org/apache/http/conn/util/PublicSuffixList.class +org/apache/http/conn/util/PublicSuffixMatcher.class +org/apache/http/conn/util/PublicSuffixListParser.class +org/apache/http/conn/util/PublicSuffixMatcherLoader.class +org/apache/http/conn/HttpInetSocketAddress.class +org/apache/http/conn/HttpConnectionFactory.class +org/apache/http/conn/HttpHostConnectException.class +org/apache/http/conn/DnsResolver.class +org/apache/http/conn/MultihomePlainSocketFactory.class +org/apache/http/conn/UnsupportedSchemeException.class +org/apache/http/impl/auth/ +org/apache/http/impl/auth/NTLMEngineImpl$CipherGen.class +org/apache/http/impl/auth/NTLMScheme$State.class +org/apache/http/impl/auth/GGSSchemeBase$1.class +org/apache/http/impl/auth/NTLMEngineException.class +org/apache/http/impl/auth/KerberosSchemeFactory.class +org/apache/http/impl/auth/RFC2617Scheme.class +org/apache/http/impl/auth/NTLMScheme.class +org/apache/http/impl/auth/KerberosScheme.class +org/apache/http/impl/auth/HttpEntityDigester.class +org/apache/http/impl/auth/SPNegoScheme.class +org/apache/http/impl/auth/BasicSchemeFactory.class +org/apache/http/impl/auth/NegotiateScheme.class +org/apache/http/impl/auth/NTLMSchemeFactory.class +org/apache/http/impl/auth/NTLMEngineImpl$NTLMMessage.class +org/apache/http/impl/auth/GGSSchemeBase.class +org/apache/http/impl/auth/HttpAuthenticator$1.class +org/apache/http/impl/auth/NTLMEngine.class +org/apache/http/impl/auth/DigestScheme.class +org/apache/http/impl/auth/NTLMEngineImpl.class +org/apache/http/impl/auth/AuthSchemeBase.class +org/apache/http/impl/auth/NTLMEngineImpl$Type3Message.class +org/apache/http/impl/auth/NegotiateSchemeFactory.class +org/apache/http/impl/auth/SpnegoTokenGenerator.class +org/apache/http/impl/auth/NTLMEngineImpl$HMACMD5.class +org/apache/http/impl/auth/HttpAuthenticator.class +org/apache/http/impl/auth/GGSSchemeBase$State.class +org/apache/http/impl/auth/NTLMEngineImpl$MD4.class +org/apache/http/impl/auth/NTLMEngineImpl$Type2Message.class +org/apache/http/impl/auth/DigestSchemeFactory.class +org/apache/http/impl/auth/SPNegoSchemeFactory.class +org/apache/http/impl/auth/NTLMEngineImpl$Type1Message.class +org/apache/http/impl/auth/BasicScheme.class +org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.class +org/apache/http/impl/cookie/ +org/apache/http/impl/cookie/BestMatchSpec.class +org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.class +org/apache/http/impl/cookie/DefaultCookieSpecProvider$CompatibilityLevel.class +org/apache/http/impl/cookie/BasicClientCookie2.class +org/apache/http/impl/cookie/BasicSecureHandler.class +org/apache/http/impl/cookie/RFC2109Spec.class +org/apache/http/impl/cookie/RFC2965Spec.class +org/apache/http/impl/cookie/PublicSuffixFilter.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider$2.class +org/apache/http/impl/cookie/BasicDomainHandler.class +org/apache/http/impl/cookie/DefaultCookieSpecProvider.class +org/apache/http/impl/cookie/RFC2109VersionHandler.class +org/apache/http/impl/cookie/RFC2109DomainHandler.class +org/apache/http/impl/cookie/BasicMaxAgeHandler.class +org/apache/http/impl/cookie/NetscapeDraftSpec.class +org/apache/http/impl/cookie/LaxExpiresHandler.class +org/apache/http/impl/cookie/BasicExpiresHandler.class +org/apache/http/impl/cookie/BrowserCompatSpec.class +org/apache/http/impl/cookie/RFC2965SpecFactory.class +org/apache/http/impl/cookie/DefaultCookieSpec.class +org/apache/http/impl/cookie/BrowserCompatSpec$1.class +org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.class +org/apache/http/impl/cookie/IgnoreSpec.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider.class +org/apache/http/impl/cookie/BestMatchSpecFactory.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider$CompatibilityLevel.class +org/apache/http/impl/cookie/RFC6265StrictSpec.class +org/apache/http/impl/cookie/RFC2965PortAttributeHandler.class +org/apache/http/impl/cookie/IgnoreSpecProvider.class +org/apache/http/impl/cookie/BasicClientCookie.class +org/apache/http/impl/cookie/NetscapeDraftHeaderParser.class +org/apache/http/impl/cookie/DefaultCookieSpecProvider$1.class +org/apache/http/impl/cookie/BasicPathHandler.class +org/apache/http/impl/cookie/LaxMaxAgeHandler.class +org/apache/http/impl/cookie/RFC6265CookieSpecBase.class +org/apache/http/impl/cookie/RFC2965SpecProvider.class +org/apache/http/impl/cookie/NetscapeDomainHandler.class +org/apache/http/impl/cookie/RFC2965DomainAttributeHandler.class +org/apache/http/impl/cookie/PublicSuffixDomainFilter.class +org/apache/http/impl/cookie/IgnoreSpecFactory.class +org/apache/http/impl/cookie/RFC6265CookieSpecProvider$1.class +org/apache/http/impl/cookie/RFC2965VersionAttributeHandler.class +org/apache/http/impl/cookie/AbstractCookieAttributeHandler.class +org/apache/http/impl/cookie/BrowserCompatSpecFactory.class +org/apache/http/impl/cookie/RFC2109SpecProvider.class +org/apache/http/impl/cookie/BrowserCompatSpecFactory$SecurityLevel.class +org/apache/http/impl/cookie/NetscapeDraftSpecFactory.class +org/apache/http/impl/cookie/CookieSpecBase.class +org/apache/http/impl/cookie/RFC6265LaxSpec.class +org/apache/http/impl/cookie/DateParseException.class +org/apache/http/impl/cookie/RFC2109SpecFactory.class +org/apache/http/impl/cookie/RFC6265CookieSpec.class +org/apache/http/impl/cookie/PublicSuffixListParser.class +org/apache/http/impl/cookie/AbstractCookieSpec.class +org/apache/http/impl/cookie/BasicCommentHandler.class +org/apache/http/impl/cookie/DateUtils.class +org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.class +org/apache/http/impl/cookie/NetscapeDraftSpecProvider.class +org/apache/http/impl/client/ +org/apache/http/impl/client/TargetAuthenticationStrategy.class +org/apache/http/impl/client/LaxRedirectStrategy.class +org/apache/http/impl/client/NoopUserTokenHandler.class +org/apache/http/impl/client/RoutedRequest.class +org/apache/http/impl/client/AuthenticationStrategyImpl.class +org/apache/http/impl/client/MinimalHttpClient$1.class +org/apache/http/impl/client/CloseableHttpResponseProxy.class +org/apache/http/impl/client/DefaultProxyAuthenticationHandler.class +org/apache/http/impl/client/DefaultRedirectStrategy.class +org/apache/http/impl/client/FutureRequestExecutionService.class +org/apache/http/impl/client/FutureRequestExecutionMetrics$DurationCounter.class +org/apache/http/impl/client/HttpClientBuilder.class +org/apache/http/impl/client/AutoRetryHttpClient.class +org/apache/http/impl/client/BasicCredentialsProvider.class +org/apache/http/impl/client/AbstractResponseHandler.class +org/apache/http/impl/client/IdleConnectionEvictor$DefaultThreadFactory.class +org/apache/http/impl/client/RequestWrapper.class +org/apache/http/impl/client/HttpRequestFutureTask.class +org/apache/http/impl/client/ProxyClient.class +org/apache/http/impl/client/ContentEncodingHttpClient.class +org/apache/http/impl/client/RedirectLocations.class +org/apache/http/impl/client/DefaultHttpRequestRetryHandler.class +org/apache/http/impl/client/HttpRequestTaskCallable.class +org/apache/http/impl/client/StandardHttpRequestRetryHandler.class +org/apache/http/impl/client/AIMDBackoffManager.class +org/apache/http/impl/client/AbstractAuthenticationHandler.class +org/apache/http/impl/client/DecompressingHttpClient.class +org/apache/http/impl/client/SystemClock.class +org/apache/http/impl/client/DefaultRedirectStrategyAdaptor.class +org/apache/http/impl/client/EntityEnclosingRequestWrapper$EntityWrapper.class +org/apache/http/impl/client/AbstractHttpClient.class +org/apache/http/impl/client/Clock.class +org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.class +org/apache/http/impl/client/InternalHttpClient$1.class +org/apache/http/impl/client/SystemDefaultHttpClient.class +org/apache/http/impl/client/AuthenticationStrategyAdaptor.class +org/apache/http/impl/client/IdleConnectionEvictor.class +org/apache/http/impl/client/SystemDefaultCredentialsProvider.class +org/apache/http/impl/client/FutureRequestExecutionMetrics.class +org/apache/http/impl/client/InternalHttpClient.class +org/apache/http/impl/client/HttpClientBuilder$2.class +org/apache/http/impl/client/NullBackoffStrategy.class +org/apache/http/impl/client/DefaultBackoffStrategy.class +org/apache/http/impl/client/HttpAuthenticator.class +org/apache/http/impl/client/BasicCookieStore.class +org/apache/http/impl/client/EntityEnclosingRequestWrapper.class +org/apache/http/impl/client/CookieSpecRegistries.class +org/apache/http/impl/client/DefaultClientConnectionReuseStrategy.class +org/apache/http/impl/client/DefaultServiceUnavailableRetryStrategy.class +org/apache/http/impl/client/DefaultRedirectHandler.class +org/apache/http/impl/client/HttpClients.class +org/apache/http/impl/client/CloseableHttpClient.class +org/apache/http/impl/client/TunnelRefusedException.class +org/apache/http/impl/client/MinimalHttpClient.class +org/apache/http/impl/client/BasicAuthCache.class +org/apache/http/impl/client/BasicResponseHandler.class +org/apache/http/impl/client/DefaultUserTokenHandler.class +org/apache/http/impl/client/HttpClientBuilder$1.class +org/apache/http/impl/client/ClientParamsStack.class +org/apache/http/impl/client/DefaultRequestDirector.class +org/apache/http/impl/client/DefaultTargetAuthenticationHandler.class +org/apache/http/impl/client/IdleConnectionEvictor$1.class +org/apache/http/impl/client/DefaultHttpClient.class +org/apache/http/impl/client/ProxyAuthenticationStrategy.class +org/apache/http/impl/execchain/ +org/apache/http/impl/execchain/ServiceUnavailableRetryExec.class +org/apache/http/impl/execchain/RequestEntityProxy.class +org/apache/http/impl/execchain/ProtocolExec.class +org/apache/http/impl/execchain/MinimalClientExec.class +org/apache/http/impl/execchain/MainClientExec.class +org/apache/http/impl/execchain/RedirectExec.class +org/apache/http/impl/execchain/ClientExecChain.class +org/apache/http/impl/execchain/ConnectionHolder.class +org/apache/http/impl/execchain/HttpResponseProxy.class +org/apache/http/impl/execchain/RetryExec.class +org/apache/http/impl/execchain/TunnelRefusedException.class +org/apache/http/impl/execchain/RequestAbortedException.class +org/apache/http/impl/execchain/ResponseEntityProxy.class +org/apache/http/impl/execchain/BackoffStrategyExec.class +org/apache/http/impl/conn/ +org/apache/http/impl/conn/HttpPoolEntry.class +org/apache/http/impl/conn/DefaultClientConnection.class +org/apache/http/impl/conn/CPool.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager.class +org/apache/http/impl/conn/Wire.class +org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.class +org/apache/http/impl/conn/IdleConnectionHandler.class +org/apache/http/impl/conn/ManagedHttpClientConnectionFactory.class +org/apache/http/impl/conn/SystemDefaultRoutePlanner$1.class +org/apache/http/impl/conn/CPoolProxy.class +org/apache/http/impl/conn/DefaultHttpRoutePlanner.class +org/apache/http/impl/conn/PoolingClientConnectionManager.class +org/apache/http/impl/conn/DefaultManagedHttpClientConnection.class +org/apache/http/impl/conn/LoggingSessionInputBuffer.class +org/apache/http/impl/conn/ConnectionShutdownException.class +org/apache/http/impl/conn/LoggingOutputStream.class +org/apache/http/impl/conn/ManagedClientConnectionImpl.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager$ConfigData.class +org/apache/http/impl/conn/DefaultResponseParser.class +org/apache/http/impl/conn/LoggingInputStream.class +org/apache/http/impl/conn/AbstractClientConnAdapter.class +org/apache/http/impl/conn/SystemDefaultRoutePlanner.class +org/apache/http/impl/conn/tsccm/ +org/apache/http/impl/conn/tsccm/ConnPoolByRoute.class +org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager$1.class +org/apache/http/impl/conn/tsccm/RouteSpecificPool.class +org/apache/http/impl/conn/tsccm/ConnPoolByRoute$1.class +org/apache/http/impl/conn/tsccm/PoolEntryRequest.class +org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.class +org/apache/http/impl/conn/tsccm/WaitingThread.class +org/apache/http/impl/conn/tsccm/WaitingThreadAborter.class +org/apache/http/impl/conn/tsccm/RouteSpecificPool$1.class +org/apache/http/impl/conn/tsccm/AbstractConnPool.class +org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.class +org/apache/http/impl/conn/tsccm/BasicPooledConnAdapter.class +org/apache/http/impl/conn/tsccm/BasicPoolEntry.class +org/apache/http/impl/conn/SingleClientConnManager$ConnAdapter.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager$InternalConnectionFactory.class +org/apache/http/impl/conn/DefaultHttpResponseParserFactory.class +org/apache/http/impl/conn/AbstractPoolEntry.class +org/apache/http/impl/conn/ProxySelectorRoutePlanner$1.class +org/apache/http/impl/conn/AbstractPooledConnAdapter.class +org/apache/http/impl/conn/SingleClientConnManager$PoolEntry.class +org/apache/http/impl/conn/HttpConnPool$InternalConnFactory.class +org/apache/http/impl/conn/SchemeRegistryFactory.class +org/apache/http/impl/conn/DefaultClientConnectionOperator.class +org/apache/http/impl/conn/LoggingManagedHttpClientConnection.class +org/apache/http/impl/conn/LoggingSessionOutputBuffer.class +org/apache/http/impl/conn/BasicHttpClientConnectionManager$1.class +org/apache/http/impl/conn/DefaultProxyRoutePlanner.class +org/apache/http/impl/conn/BasicClientConnectionManager$1.class +org/apache/http/impl/conn/PoolingHttpClientConnectionManager$1.class +org/apache/http/impl/conn/BasicHttpClientConnectionManager.class +org/apache/http/impl/conn/PoolingClientConnectionManager$1.class +org/apache/http/impl/conn/IdleConnectionHandler$TimeValues.class +org/apache/http/impl/conn/CPoolEntry.class +org/apache/http/impl/conn/DefaultSchemePortResolver.class +org/apache/http/impl/conn/SingleClientConnManager.class +org/apache/http/impl/conn/DefaultRoutePlanner.class +org/apache/http/impl/conn/InMemoryDnsResolver.class +org/apache/http/impl/conn/DefaultHttpResponseParser.class +org/apache/http/impl/conn/HttpConnPool.class +org/apache/http/impl/conn/BasicClientConnectionManager.class +org/apache/http/impl/conn/SingleClientConnManager$1.class +org/apache/http/impl/conn/ProxySelectorRoutePlanner.class +org/apache/http/impl/conn/SystemDefaultDnsResolver.class +mozilla/ +mozilla/public-suffix-list.txt +META-INF/maven/org.apache.httpcomponents/httpclient/ +META-INF/maven/org.apache.httpcomponents/httpclient/pom.xml +META-INF/maven/org.apache.httpcomponents/httpclient/pom.properties +META-INF/NOTICE.txt +META-INF/LICENSE.txt +org/apache/commons/ +org/apache/commons/logging/ +org/apache/commons/logging/impl/ +org/apache/commons/logging/impl/AvalonLogger.class +org/apache/commons/logging/impl/SimpleLog.class +org/apache/commons/logging/impl/Log4JLogger.class +org/apache/commons/logging/impl/WeakHashtable.class +org/apache/commons/logging/impl/WeakHashtable$1.class +org/apache/commons/logging/impl/Jdk14Logger.class +org/apache/commons/logging/impl/ServletContextCleaner.class +org/apache/commons/logging/impl/WeakHashtable$WeakKey.class +org/apache/commons/logging/impl/NoOpLog.class +org/apache/commons/logging/impl/LogKitLogger.class +org/apache/commons/logging/impl/LogFactoryImpl$3.class +org/apache/commons/logging/impl/LogFactoryImpl$1.class +org/apache/commons/logging/impl/WeakHashtable$Referenced.class +org/apache/commons/logging/impl/SimpleLog$1.class +org/apache/commons/logging/impl/Jdk13LumberjackLogger.class +org/apache/commons/logging/impl/LogFactoryImpl.class +org/apache/commons/logging/impl/LogFactoryImpl$2.class +org/apache/commons/logging/impl/WeakHashtable$Entry.class +org/apache/commons/logging/LogSource.class +org/apache/commons/logging/LogFactory$4.class +org/apache/commons/logging/LogFactory$3.class +org/apache/commons/logging/LogFactory$6.class +org/apache/commons/logging/LogConfigurationException.class +org/apache/commons/logging/LogFactory.class +org/apache/commons/logging/LogFactory$5.class +org/apache/commons/logging/LogFactory$1.class +org/apache/commons/logging/LogFactory$2.class +org/apache/commons/logging/Log.class +META-INF/maven/commons-logging/ +META-INF/maven/commons-logging/commons-logging/ +META-INF/maven/commons-logging/commons-logging/pom.xml +META-INF/maven/commons-logging/commons-logging/pom.properties +org/apache/commons/codec/ +org/apache/commons/codec/binary/ +org/apache/commons/codec/binary/Base32.class +org/apache/commons/codec/binary/Base32InputStream.class +org/apache/commons/codec/binary/Base32OutputStream.class +org/apache/commons/codec/binary/Base64.class +org/apache/commons/codec/binary/Base64InputStream.class +org/apache/commons/codec/binary/Base64OutputStream.class +org/apache/commons/codec/binary/BaseNCodec$Context.class +org/apache/commons/codec/binary/BaseNCodec.class +org/apache/commons/codec/binary/BaseNCodecInputStream.class +org/apache/commons/codec/binary/BaseNCodecOutputStream.class +org/apache/commons/codec/binary/BinaryCodec.class +org/apache/commons/codec/binary/Hex.class +org/apache/commons/codec/binary/StringUtils.class +org/apache/commons/codec/BinaryDecoder.class +org/apache/commons/codec/BinaryEncoder.class +org/apache/commons/codec/CharEncoding.class +org/apache/commons/codec/Charsets.class +org/apache/commons/codec/Decoder.class +org/apache/commons/codec/DecoderException.class +org/apache/commons/codec/digest/ +org/apache/commons/codec/digest/B64.class +org/apache/commons/codec/digest/Crypt.class +org/apache/commons/codec/digest/DigestUtils.class +org/apache/commons/codec/digest/Md5Crypt.class +org/apache/commons/codec/digest/MessageDigestAlgorithms.class +org/apache/commons/codec/digest/Sha2Crypt.class +org/apache/commons/codec/digest/UnixCrypt.class +org/apache/commons/codec/Encoder.class +org/apache/commons/codec/EncoderException.class +org/apache/commons/codec/language/ +org/apache/commons/codec/language/AbstractCaverphone.class +org/apache/commons/codec/language/bm/ +org/apache/commons/codec/language/bm/ash_approx_any.txt +org/apache/commons/codec/language/bm/ash_approx_common.txt +org/apache/commons/codec/language/bm/ash_approx_cyrillic.txt +org/apache/commons/codec/language/bm/ash_approx_english.txt +org/apache/commons/codec/language/bm/ash_approx_french.txt +org/apache/commons/codec/language/bm/ash_approx_german.txt +org/apache/commons/codec/language/bm/ash_approx_hebrew.txt +org/apache/commons/codec/language/bm/ash_approx_hungarian.txt +org/apache/commons/codec/language/bm/ash_approx_polish.txt +org/apache/commons/codec/language/bm/ash_approx_romanian.txt +org/apache/commons/codec/language/bm/ash_approx_russian.txt +org/apache/commons/codec/language/bm/ash_approx_spanish.txt +org/apache/commons/codec/language/bm/ash_exact_any.txt +org/apache/commons/codec/language/bm/ash_exact_approx_common.txt +org/apache/commons/codec/language/bm/ash_exact_common.txt +org/apache/commons/codec/language/bm/ash_exact_cyrillic.txt +org/apache/commons/codec/language/bm/ash_exact_english.txt +org/apache/commons/codec/language/bm/ash_exact_french.txt +org/apache/commons/codec/language/bm/ash_exact_german.txt +org/apache/commons/codec/language/bm/ash_exact_hebrew.txt +org/apache/commons/codec/language/bm/ash_exact_hungarian.txt +org/apache/commons/codec/language/bm/ash_exact_polish.txt +org/apache/commons/codec/language/bm/ash_exact_romanian.txt +org/apache/commons/codec/language/bm/ash_exact_russian.txt +org/apache/commons/codec/language/bm/ash_exact_spanish.txt +org/apache/commons/codec/language/bm/ash_hebrew_common.txt +org/apache/commons/codec/language/bm/ash_languages.txt +org/apache/commons/codec/language/bm/ash_rules_any.txt +org/apache/commons/codec/language/bm/ash_rules_cyrillic.txt +org/apache/commons/codec/language/bm/ash_rules_english.txt +org/apache/commons/codec/language/bm/ash_rules_french.txt +org/apache/commons/codec/language/bm/ash_rules_german.txt +org/apache/commons/codec/language/bm/ash_rules_hebrew.txt +org/apache/commons/codec/language/bm/ash_rules_hungarian.txt +org/apache/commons/codec/language/bm/ash_rules_polish.txt +org/apache/commons/codec/language/bm/ash_rules_romanian.txt +org/apache/commons/codec/language/bm/ash_rules_russian.txt +org/apache/commons/codec/language/bm/ash_rules_spanish.txt +org/apache/commons/codec/language/bm/BeiderMorseEncoder.class +org/apache/commons/codec/language/bm/gen_approx_any.txt +org/apache/commons/codec/language/bm/gen_approx_arabic.txt +org/apache/commons/codec/language/bm/gen_approx_common.txt +org/apache/commons/codec/language/bm/gen_approx_cyrillic.txt +org/apache/commons/codec/language/bm/gen_approx_czech.txt +org/apache/commons/codec/language/bm/gen_approx_dutch.txt +org/apache/commons/codec/language/bm/gen_approx_english.txt +org/apache/commons/codec/language/bm/gen_approx_french.txt +org/apache/commons/codec/language/bm/gen_approx_german.txt +org/apache/commons/codec/language/bm/gen_approx_greek.txt +org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt +org/apache/commons/codec/language/bm/gen_approx_hebrew.txt +org/apache/commons/codec/language/bm/gen_approx_hungarian.txt +org/apache/commons/codec/language/bm/gen_approx_italian.txt +org/apache/commons/codec/language/bm/gen_approx_polish.txt +org/apache/commons/codec/language/bm/gen_approx_portuguese.txt +org/apache/commons/codec/language/bm/gen_approx_romanian.txt +org/apache/commons/codec/language/bm/gen_approx_russian.txt +org/apache/commons/codec/language/bm/gen_approx_spanish.txt +org/apache/commons/codec/language/bm/gen_approx_turkish.txt +org/apache/commons/codec/language/bm/gen_exact_any.txt +org/apache/commons/codec/language/bm/gen_exact_approx_common.txt +org/apache/commons/codec/language/bm/gen_exact_arabic.txt +org/apache/commons/codec/language/bm/gen_exact_common.txt +org/apache/commons/codec/language/bm/gen_exact_cyrillic.txt +org/apache/commons/codec/language/bm/gen_exact_czech.txt +org/apache/commons/codec/language/bm/gen_exact_dutch.txt +org/apache/commons/codec/language/bm/gen_exact_english.txt +org/apache/commons/codec/language/bm/gen_exact_french.txt +org/apache/commons/codec/language/bm/gen_exact_german.txt +org/apache/commons/codec/language/bm/gen_exact_greek.txt +org/apache/commons/codec/language/bm/gen_exact_greeklatin.txt +org/apache/commons/codec/language/bm/gen_exact_hebrew.txt +org/apache/commons/codec/language/bm/gen_exact_hungarian.txt +org/apache/commons/codec/language/bm/gen_exact_italian.txt +org/apache/commons/codec/language/bm/gen_exact_polish.txt +org/apache/commons/codec/language/bm/gen_exact_portuguese.txt +org/apache/commons/codec/language/bm/gen_exact_romanian.txt +org/apache/commons/codec/language/bm/gen_exact_russian.txt +org/apache/commons/codec/language/bm/gen_exact_spanish.txt +org/apache/commons/codec/language/bm/gen_exact_turkish.txt +org/apache/commons/codec/language/bm/gen_hebrew_common.txt +org/apache/commons/codec/language/bm/gen_languages.txt +org/apache/commons/codec/language/bm/gen_rules_any.txt +org/apache/commons/codec/language/bm/gen_rules_arabic.txt +org/apache/commons/codec/language/bm/gen_rules_cyrillic.txt +org/apache/commons/codec/language/bm/gen_rules_czech.txt +org/apache/commons/codec/language/bm/gen_rules_dutch.txt +org/apache/commons/codec/language/bm/gen_rules_english.txt +org/apache/commons/codec/language/bm/gen_rules_french.txt +org/apache/commons/codec/language/bm/gen_rules_german.txt +org/apache/commons/codec/language/bm/gen_rules_greek.txt +org/apache/commons/codec/language/bm/gen_rules_greeklatin.txt +org/apache/commons/codec/language/bm/gen_rules_hebrew.txt +org/apache/commons/codec/language/bm/gen_rules_hungarian.txt +org/apache/commons/codec/language/bm/gen_rules_italian.txt +org/apache/commons/codec/language/bm/gen_rules_polish.txt +org/apache/commons/codec/language/bm/gen_rules_portuguese.txt +org/apache/commons/codec/language/bm/gen_rules_romanian.txt +org/apache/commons/codec/language/bm/gen_rules_russian.txt +org/apache/commons/codec/language/bm/gen_rules_spanish.txt +org/apache/commons/codec/language/bm/gen_rules_turkish.txt +org/apache/commons/codec/language/bm/Lang$1.class +org/apache/commons/codec/language/bm/Lang$LangRule.class +org/apache/commons/codec/language/bm/Lang.class +org/apache/commons/codec/language/bm/lang.txt +org/apache/commons/codec/language/bm/Languages$1.class +org/apache/commons/codec/language/bm/Languages$2.class +org/apache/commons/codec/language/bm/Languages$LanguageSet.class +org/apache/commons/codec/language/bm/Languages$SomeLanguages.class +org/apache/commons/codec/language/bm/Languages.class +org/apache/commons/codec/language/bm/NameType.class +org/apache/commons/codec/language/bm/PhoneticEngine$1.class +org/apache/commons/codec/language/bm/PhoneticEngine$PhonemeBuilder.class +org/apache/commons/codec/language/bm/PhoneticEngine$RulesApplication.class +org/apache/commons/codec/language/bm/PhoneticEngine.class +org/apache/commons/codec/language/bm/ResourceConstants.class +org/apache/commons/codec/language/bm/Rule$1.class +org/apache/commons/codec/language/bm/Rule$10.class +org/apache/commons/codec/language/bm/Rule$2.class +org/apache/commons/codec/language/bm/Rule$3.class +org/apache/commons/codec/language/bm/Rule$4.class +org/apache/commons/codec/language/bm/Rule$5.class +org/apache/commons/codec/language/bm/Rule$6.class +org/apache/commons/codec/language/bm/Rule$7.class +org/apache/commons/codec/language/bm/Rule$8.class +org/apache/commons/codec/language/bm/Rule$9.class +org/apache/commons/codec/language/bm/Rule$Phoneme$1.class +org/apache/commons/codec/language/bm/Rule$Phoneme.class +org/apache/commons/codec/language/bm/Rule$PhonemeExpr.class +org/apache/commons/codec/language/bm/Rule$PhonemeList.class +org/apache/commons/codec/language/bm/Rule$RPattern.class +org/apache/commons/codec/language/bm/Rule.class +org/apache/commons/codec/language/bm/RuleType.class +org/apache/commons/codec/language/bm/sep_approx_any.txt +org/apache/commons/codec/language/bm/sep_approx_common.txt +org/apache/commons/codec/language/bm/sep_approx_french.txt +org/apache/commons/codec/language/bm/sep_approx_hebrew.txt +org/apache/commons/codec/language/bm/sep_approx_italian.txt +org/apache/commons/codec/language/bm/sep_approx_portuguese.txt +org/apache/commons/codec/language/bm/sep_approx_spanish.txt +org/apache/commons/codec/language/bm/sep_exact_any.txt +org/apache/commons/codec/language/bm/sep_exact_approx_common.txt +org/apache/commons/codec/language/bm/sep_exact_common.txt +org/apache/commons/codec/language/bm/sep_exact_french.txt +org/apache/commons/codec/language/bm/sep_exact_hebrew.txt +org/apache/commons/codec/language/bm/sep_exact_italian.txt +org/apache/commons/codec/language/bm/sep_exact_portuguese.txt +org/apache/commons/codec/language/bm/sep_exact_spanish.txt +org/apache/commons/codec/language/bm/sep_hebrew_common.txt +org/apache/commons/codec/language/bm/sep_languages.txt +org/apache/commons/codec/language/bm/sep_rules_any.txt +org/apache/commons/codec/language/bm/sep_rules_french.txt +org/apache/commons/codec/language/bm/sep_rules_hebrew.txt +org/apache/commons/codec/language/bm/sep_rules_italian.txt +org/apache/commons/codec/language/bm/sep_rules_portuguese.txt +org/apache/commons/codec/language/bm/sep_rules_spanish.txt +org/apache/commons/codec/language/Caverphone.class +org/apache/commons/codec/language/Caverphone1.class +org/apache/commons/codec/language/Caverphone2.class +org/apache/commons/codec/language/ColognePhonetic$CologneBuffer.class +org/apache/commons/codec/language/ColognePhonetic$CologneInputBuffer.class +org/apache/commons/codec/language/ColognePhonetic$CologneOutputBuffer.class +org/apache/commons/codec/language/ColognePhonetic.class +org/apache/commons/codec/language/DoubleMetaphone$DoubleMetaphoneResult.class +org/apache/commons/codec/language/DoubleMetaphone.class +org/apache/commons/codec/language/MatchRatingApproachEncoder.class +org/apache/commons/codec/language/Metaphone.class +org/apache/commons/codec/language/Nysiis.class +org/apache/commons/codec/language/RefinedSoundex.class +org/apache/commons/codec/language/Soundex.class +org/apache/commons/codec/language/SoundexUtils.class +org/apache/commons/codec/net/ +org/apache/commons/codec/net/BCodec.class +org/apache/commons/codec/net/QCodec.class +org/apache/commons/codec/net/QuotedPrintableCodec.class +org/apache/commons/codec/net/RFC1522Codec.class +org/apache/commons/codec/net/URLCodec.class +org/apache/commons/codec/net/Utils.class +org/apache/commons/codec/StringDecoder.class +org/apache/commons/codec/StringEncoder.class +org/apache/commons/codec/StringEncoderComparator.class +META-INF/maven/commons-codec/ +META-INF/maven/commons-codec/commons-codec/ +META-INF/maven/commons-codec/commons-codec/pom.xml +META-INF/maven/commons-codec/commons-codec/pom.properties +META-INF/maven/com.fasterxml.jackson.core/ +META-INF/maven/com.fasterxml.jackson.core/jackson-core/ +META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.properties +META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml +META-INF/services/ +META-INF/services/com.fasterxml.jackson.core.JsonFactory +com/fasterxml/ +com/fasterxml/jackson/ +com/fasterxml/jackson/core/ +com/fasterxml/jackson/core/Base64Variant.class +com/fasterxml/jackson/core/Base64Variants.class +com/fasterxml/jackson/core/FormatFeature.class +com/fasterxml/jackson/core/FormatSchema.class +com/fasterxml/jackson/core/JsonEncoding.class +com/fasterxml/jackson/core/JsonFactory$Feature.class +com/fasterxml/jackson/core/JsonFactory.class +com/fasterxml/jackson/core/JsonGenerationException.class +com/fasterxml/jackson/core/JsonGenerator$1.class +com/fasterxml/jackson/core/JsonGenerator$Feature.class +com/fasterxml/jackson/core/JsonGenerator.class +com/fasterxml/jackson/core/JsonLocation.class +com/fasterxml/jackson/core/JsonParseException.class +com/fasterxml/jackson/core/JsonParser$Feature.class +com/fasterxml/jackson/core/JsonParser$NumberType.class +com/fasterxml/jackson/core/JsonParser.class +com/fasterxml/jackson/core/JsonPointer.class +com/fasterxml/jackson/core/JsonProcessingException.class +com/fasterxml/jackson/core/JsonStreamContext.class +com/fasterxml/jackson/core/JsonToken.class +com/fasterxml/jackson/core/JsonTokenId.class +com/fasterxml/jackson/core/JsonpCharacterEscapes.class +com/fasterxml/jackson/core/ObjectCodec.class +com/fasterxml/jackson/core/PrettyPrinter.class +com/fasterxml/jackson/core/SerializableString.class +com/fasterxml/jackson/core/TreeCodec.class +com/fasterxml/jackson/core/TreeNode.class +com/fasterxml/jackson/core/Version.class +com/fasterxml/jackson/core/Versioned.class +com/fasterxml/jackson/core/async/ +com/fasterxml/jackson/core/async/ByteArrayFeeder.class +com/fasterxml/jackson/core/async/ByteBufferFeeder.class +com/fasterxml/jackson/core/async/NonBlockingInputFeeder.class +com/fasterxml/jackson/core/base/ +com/fasterxml/jackson/core/base/GeneratorBase.class +com/fasterxml/jackson/core/base/ParserBase.class +com/fasterxml/jackson/core/base/ParserMinimalBase.class +com/fasterxml/jackson/core/filter/ +com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.class +com/fasterxml/jackson/core/filter/FilteringParserDelegate.class +com/fasterxml/jackson/core/filter/JsonPointerBasedFilter.class +com/fasterxml/jackson/core/filter/TokenFilter.class +com/fasterxml/jackson/core/filter/TokenFilterContext.class +com/fasterxml/jackson/core/format/ +com/fasterxml/jackson/core/format/DataFormatDetector.class +com/fasterxml/jackson/core/format/DataFormatMatcher.class +com/fasterxml/jackson/core/format/InputAccessor$Std.class +com/fasterxml/jackson/core/format/InputAccessor.class +com/fasterxml/jackson/core/format/MatchStrength.class +com/fasterxml/jackson/core/io/ +com/fasterxml/jackson/core/io/CharTypes.class +com/fasterxml/jackson/core/io/CharacterEscapes.class +com/fasterxml/jackson/core/io/DataOutputAsStream.class +com/fasterxml/jackson/core/io/IOContext.class +com/fasterxml/jackson/core/io/InputDecorator.class +com/fasterxml/jackson/core/io/JsonEOFException.class +com/fasterxml/jackson/core/io/JsonStringEncoder.class +com/fasterxml/jackson/core/io/MergedStream.class +com/fasterxml/jackson/core/io/NumberInput.class +com/fasterxml/jackson/core/io/NumberOutput.class +com/fasterxml/jackson/core/io/OutputDecorator.class +com/fasterxml/jackson/core/io/SegmentedStringWriter.class +com/fasterxml/jackson/core/io/SerializedString.class +com/fasterxml/jackson/core/io/UTF32Reader.class +com/fasterxml/jackson/core/io/UTF8Writer.class +com/fasterxml/jackson/core/json/ +com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.class +com/fasterxml/jackson/core/json/DupDetector.class +com/fasterxml/jackson/core/json/JsonGeneratorImpl.class +com/fasterxml/jackson/core/json/JsonReadContext.class +com/fasterxml/jackson/core/json/JsonWriteContext.class +com/fasterxml/jackson/core/json/PackageVersion.class +com/fasterxml/jackson/core/json/ReaderBasedJsonParser.class +com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.class +com/fasterxml/jackson/core/json/UTF8JsonGenerator.class +com/fasterxml/jackson/core/json/UTF8StreamJsonParser.class +com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.class +com/fasterxml/jackson/core/json/async/ +com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.class +com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.class +com/fasterxml/jackson/core/sym/ +com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer$TableInfo.class +com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.class +com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$Bucket.class +com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$TableInfo.class +com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer.class +com/fasterxml/jackson/core/sym/Name.class +com/fasterxml/jackson/core/sym/Name1.class +com/fasterxml/jackson/core/sym/Name2.class +com/fasterxml/jackson/core/sym/Name3.class +com/fasterxml/jackson/core/sym/NameN.class +com/fasterxml/jackson/core/type/ +com/fasterxml/jackson/core/type/ResolvedType.class +com/fasterxml/jackson/core/type/TypeReference.class +com/fasterxml/jackson/core/type/WritableTypeId$Inclusion.class +com/fasterxml/jackson/core/type/WritableTypeId.class +com/fasterxml/jackson/core/util/ +com/fasterxml/jackson/core/util/BufferRecycler.class +com/fasterxml/jackson/core/util/BufferRecyclers.class +com/fasterxml/jackson/core/util/ByteArrayBuilder.class +com/fasterxml/jackson/core/util/DefaultIndenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter$FixedSpaceIndenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter$Indenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter$NopIndenter.class +com/fasterxml/jackson/core/util/DefaultPrettyPrinter.class +com/fasterxml/jackson/core/util/Instantiatable.class +com/fasterxml/jackson/core/util/InternCache.class +com/fasterxml/jackson/core/util/JsonGeneratorDelegate.class +com/fasterxml/jackson/core/util/JsonParserDelegate.class +com/fasterxml/jackson/core/util/JsonParserSequence.class +com/fasterxml/jackson/core/util/MinimalPrettyPrinter.class +com/fasterxml/jackson/core/util/RequestPayload.class +com/fasterxml/jackson/core/util/Separators.class +com/fasterxml/jackson/core/util/TextBuffer.class +com/fasterxml/jackson/core/util/ThreadLocalBufferManager$ThreadLocalBufferManagerHolder.class +com/fasterxml/jackson/core/util/ThreadLocalBufferManager.class +com/fasterxml/jackson/core/util/VersionUtil.class +META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/ +META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.properties +META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml +com/fasterxml/jackson/annotation/ +com/fasterxml/jackson/annotation/JacksonAnnotation.class +com/fasterxml/jackson/annotation/JacksonAnnotationValue.class +com/fasterxml/jackson/annotation/JacksonAnnotationsInside.class +com/fasterxml/jackson/annotation/JacksonInject$Value.class +com/fasterxml/jackson/annotation/JacksonInject.class +com/fasterxml/jackson/annotation/JsonAlias.class +com/fasterxml/jackson/annotation/JsonAnyGetter.class +com/fasterxml/jackson/annotation/JsonAnySetter.class +com/fasterxml/jackson/annotation/JsonAutoDetect$1.class +com/fasterxml/jackson/annotation/JsonAutoDetect$Value.class +com/fasterxml/jackson/annotation/JsonAutoDetect$Visibility.class +com/fasterxml/jackson/annotation/JsonAutoDetect.class +com/fasterxml/jackson/annotation/JsonBackReference.class +com/fasterxml/jackson/annotation/JsonClassDescription.class +com/fasterxml/jackson/annotation/JsonCreator$Mode.class +com/fasterxml/jackson/annotation/JsonCreator.class +com/fasterxml/jackson/annotation/JsonEnumDefaultValue.class +com/fasterxml/jackson/annotation/JsonFilter.class +com/fasterxml/jackson/annotation/JsonFormat$Feature.class +com/fasterxml/jackson/annotation/JsonFormat$Features.class +com/fasterxml/jackson/annotation/JsonFormat$Shape.class +com/fasterxml/jackson/annotation/JsonFormat$Value.class +com/fasterxml/jackson/annotation/JsonFormat.class +com/fasterxml/jackson/annotation/JsonGetter.class +com/fasterxml/jackson/annotation/JsonIdentityInfo.class +com/fasterxml/jackson/annotation/JsonIdentityReference.class +com/fasterxml/jackson/annotation/JsonIgnore.class +com/fasterxml/jackson/annotation/JsonIgnoreProperties$Value.class +com/fasterxml/jackson/annotation/JsonIgnoreProperties.class +com/fasterxml/jackson/annotation/JsonIgnoreType.class +com/fasterxml/jackson/annotation/JsonInclude$Include.class +com/fasterxml/jackson/annotation/JsonInclude$Value.class +com/fasterxml/jackson/annotation/JsonInclude.class +com/fasterxml/jackson/annotation/JsonManagedReference.class +com/fasterxml/jackson/annotation/JsonMerge.class +com/fasterxml/jackson/annotation/JsonProperty$Access.class +com/fasterxml/jackson/annotation/JsonProperty.class +com/fasterxml/jackson/annotation/JsonPropertyDescription.class +com/fasterxml/jackson/annotation/JsonPropertyOrder.class +com/fasterxml/jackson/annotation/JsonRawValue.class +com/fasterxml/jackson/annotation/JsonRootName.class +com/fasterxml/jackson/annotation/JsonSetter$Value.class +com/fasterxml/jackson/annotation/JsonSetter.class +com/fasterxml/jackson/annotation/JsonSubTypes$Type.class +com/fasterxml/jackson/annotation/JsonSubTypes.class +com/fasterxml/jackson/annotation/JsonTypeId.class +com/fasterxml/jackson/annotation/JsonTypeInfo$As.class +com/fasterxml/jackson/annotation/JsonTypeInfo$Id.class +com/fasterxml/jackson/annotation/JsonTypeInfo$None.class +com/fasterxml/jackson/annotation/JsonTypeInfo.class +com/fasterxml/jackson/annotation/JsonTypeName.class +com/fasterxml/jackson/annotation/JsonUnwrapped.class +com/fasterxml/jackson/annotation/JsonValue.class +com/fasterxml/jackson/annotation/JsonView.class +com/fasterxml/jackson/annotation/Nulls.class +com/fasterxml/jackson/annotation/ObjectIdGenerator$IdKey.class +com/fasterxml/jackson/annotation/ObjectIdGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$Base.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$IntSequenceGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$None.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$PropertyGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$StringIdGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators$UUIDGenerator.class +com/fasterxml/jackson/annotation/ObjectIdGenerators.class +com/fasterxml/jackson/annotation/ObjectIdResolver.class +com/fasterxml/jackson/annotation/OptBoolean.class +com/fasterxml/jackson/annotation/PropertyAccessor.class +com/fasterxml/jackson/annotation/SimpleObjectIdResolver.class +META-INF/maven/com.fasterxml.jackson.core/jackson-databind/ +META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.properties +META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml +META-INF/services/com.fasterxml.jackson.core.ObjectCodec +com/fasterxml/jackson/databind/ +com/fasterxml/jackson/databind/AbstractTypeResolver.class +com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty$Type.class +com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty.class +com/fasterxml/jackson/databind/AnnotationIntrospector.class +com/fasterxml/jackson/databind/BeanDescription.class +com/fasterxml/jackson/databind/BeanProperty$Bogus.class +com/fasterxml/jackson/databind/BeanProperty$Std.class +com/fasterxml/jackson/databind/BeanProperty.class +com/fasterxml/jackson/databind/DatabindContext.class +com/fasterxml/jackson/databind/DeserializationConfig.class +com/fasterxml/jackson/databind/DeserializationContext.class +com/fasterxml/jackson/databind/DeserializationFeature.class +com/fasterxml/jackson/databind/InjectableValues$Std.class +com/fasterxml/jackson/databind/InjectableValues.class +com/fasterxml/jackson/databind/JavaType.class +com/fasterxml/jackson/databind/JsonDeserializer$None.class +com/fasterxml/jackson/databind/JsonDeserializer.class +com/fasterxml/jackson/databind/JsonMappingException$Reference.class +com/fasterxml/jackson/databind/JsonMappingException.class +com/fasterxml/jackson/databind/JsonNode$1.class +com/fasterxml/jackson/databind/JsonNode.class +com/fasterxml/jackson/databind/JsonSerializable$Base.class +com/fasterxml/jackson/databind/JsonSerializable.class +com/fasterxml/jackson/databind/JsonSerializer$None.class +com/fasterxml/jackson/databind/JsonSerializer.class +com/fasterxml/jackson/databind/KeyDeserializer$None.class +com/fasterxml/jackson/databind/KeyDeserializer.class +com/fasterxml/jackson/databind/MapperFeature.class +com/fasterxml/jackson/databind/MappingIterator.class +com/fasterxml/jackson/databind/MappingJsonFactory.class +com/fasterxml/jackson/databind/Module$SetupContext.class +com/fasterxml/jackson/databind/Module.class +com/fasterxml/jackson/databind/ObjectMapper$1.class +com/fasterxml/jackson/databind/ObjectMapper$2.class +com/fasterxml/jackson/databind/ObjectMapper$3.class +com/fasterxml/jackson/databind/ObjectMapper$DefaultTypeResolverBuilder.class +com/fasterxml/jackson/databind/ObjectMapper$DefaultTyping.class +com/fasterxml/jackson/databind/ObjectMapper.class +com/fasterxml/jackson/databind/ObjectReader.class +com/fasterxml/jackson/databind/ObjectWriter$GeneratorSettings.class +com/fasterxml/jackson/databind/ObjectWriter$Prefetch.class +com/fasterxml/jackson/databind/ObjectWriter.class +com/fasterxml/jackson/databind/PropertyMetadata$MergeInfo.class +com/fasterxml/jackson/databind/PropertyMetadata.class +com/fasterxml/jackson/databind/PropertyName.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$KebabCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseWithUnderscoresStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$PascalCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$PropertyNamingStrategyBase.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$SnakeCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy$UpperCamelCaseStrategy.class +com/fasterxml/jackson/databind/PropertyNamingStrategy.class +com/fasterxml/jackson/databind/RuntimeJsonMappingException.class +com/fasterxml/jackson/databind/SequenceWriter.class +com/fasterxml/jackson/databind/SerializationConfig.class +com/fasterxml/jackson/databind/SerializationFeature.class +com/fasterxml/jackson/databind/SerializerProvider.class +com/fasterxml/jackson/databind/annotation/ +com/fasterxml/jackson/databind/annotation/JacksonStdImpl.class +com/fasterxml/jackson/databind/annotation/JsonAppend$Attr.class +com/fasterxml/jackson/databind/annotation/JsonAppend$Prop.class +com/fasterxml/jackson/databind/annotation/JsonAppend.class +com/fasterxml/jackson/databind/annotation/JsonDeserialize.class +com/fasterxml/jackson/databind/annotation/JsonNaming.class +com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder$Value.class +com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.class +com/fasterxml/jackson/databind/annotation/JsonSerialize$Inclusion.class +com/fasterxml/jackson/databind/annotation/JsonSerialize$Typing.class +com/fasterxml/jackson/databind/annotation/JsonSerialize.class +com/fasterxml/jackson/databind/annotation/JsonTypeIdResolver.class +com/fasterxml/jackson/databind/annotation/JsonTypeResolver.class +com/fasterxml/jackson/databind/annotation/JsonValueInstantiator.class +com/fasterxml/jackson/databind/annotation/NoClass.class +com/fasterxml/jackson/databind/cfg/ +com/fasterxml/jackson/databind/cfg/BaseSettings.class +com/fasterxml/jackson/databind/cfg/ConfigFeature.class +com/fasterxml/jackson/databind/cfg/ConfigOverride$Empty.class +com/fasterxml/jackson/databind/cfg/ConfigOverride.class +com/fasterxml/jackson/databind/cfg/ConfigOverrides.class +com/fasterxml/jackson/databind/cfg/ContextAttributes$Impl.class +com/fasterxml/jackson/databind/cfg/ContextAttributes.class +com/fasterxml/jackson/databind/cfg/DeserializerFactoryConfig.class +com/fasterxml/jackson/databind/cfg/HandlerInstantiator.class +com/fasterxml/jackson/databind/cfg/MapperConfig.class +com/fasterxml/jackson/databind/cfg/MapperConfigBase.class +com/fasterxml/jackson/databind/cfg/MutableConfigOverride.class +com/fasterxml/jackson/databind/cfg/PackageVersion.class +com/fasterxml/jackson/databind/cfg/SerializerFactoryConfig.class +com/fasterxml/jackson/databind/deser/ +com/fasterxml/jackson/databind/deser/AbstractDeserializer.class +com/fasterxml/jackson/databind/deser/BasicDeserializerFactory$1.class +com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.class +com/fasterxml/jackson/databind/deser/BeanDeserializer$1.class +com/fasterxml/jackson/databind/deser/BeanDeserializer$BeanReferring.class +com/fasterxml/jackson/databind/deser/BeanDeserializer.class +com/fasterxml/jackson/databind/deser/BeanDeserializerBase.class +com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.class +com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.class +com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.class +com/fasterxml/jackson/databind/deser/BuilderBasedDeserializer.class +com/fasterxml/jackson/databind/deser/ContextualDeserializer.class +com/fasterxml/jackson/databind/deser/ContextualKeyDeserializer.class +com/fasterxml/jackson/databind/deser/CreatorProperty.class +com/fasterxml/jackson/databind/deser/DataFormatReaders$AccessorForReader.class +com/fasterxml/jackson/databind/deser/DataFormatReaders$Match.class +com/fasterxml/jackson/databind/deser/DataFormatReaders.class +com/fasterxml/jackson/databind/deser/DefaultDeserializationContext$Impl.class +com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.class +com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.class +com/fasterxml/jackson/databind/deser/DeserializerCache.class +com/fasterxml/jackson/databind/deser/DeserializerFactory.class +com/fasterxml/jackson/databind/deser/Deserializers$Base.class +com/fasterxml/jackson/databind/deser/Deserializers.class +com/fasterxml/jackson/databind/deser/KeyDeserializers.class +com/fasterxml/jackson/databind/deser/NullValueProvider.class +com/fasterxml/jackson/databind/deser/ResolvableDeserializer.class +com/fasterxml/jackson/databind/deser/SettableAnyProperty$AnySetterReferring.class +com/fasterxml/jackson/databind/deser/SettableAnyProperty.class +com/fasterxml/jackson/databind/deser/SettableBeanProperty$Delegating.class +com/fasterxml/jackson/databind/deser/SettableBeanProperty.class +com/fasterxml/jackson/databind/deser/UnresolvedForwardReference.class +com/fasterxml/jackson/databind/deser/UnresolvedId.class +com/fasterxml/jackson/databind/deser/ValueInstantiator$Base.class +com/fasterxml/jackson/databind/deser/ValueInstantiator$Gettable.class +com/fasterxml/jackson/databind/deser/ValueInstantiator.class +com/fasterxml/jackson/databind/deser/ValueInstantiators$Base.class +com/fasterxml/jackson/databind/deser/ValueInstantiators.class +com/fasterxml/jackson/databind/deser/impl/ +com/fasterxml/jackson/databind/deser/impl/BeanAsArrayBuilderDeserializer.class +com/fasterxml/jackson/databind/deser/impl/BeanAsArrayDeserializer.class +com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.class +com/fasterxml/jackson/databind/deser/impl/CreatorCandidate$Param.class +com/fasterxml/jackson/databind/deser/impl/CreatorCandidate.class +com/fasterxml/jackson/databind/deser/impl/CreatorCollector$StdTypeConstructor.class +com/fasterxml/jackson/databind/deser/impl/CreatorCollector.class +com/fasterxml/jackson/databind/deser/impl/ErrorThrowingDeserializer.class +com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$Builder.class +com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$ExtTypedProperty.class +com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler.class +com/fasterxml/jackson/databind/deser/impl/FailingDeserializer.class +com/fasterxml/jackson/databind/deser/impl/FieldProperty.class +com/fasterxml/jackson/databind/deser/impl/InnerClassProperty.class +com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$1.class +com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$JavaUtilCollectionsConverter.class +com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers.class +com/fasterxml/jackson/databind/deser/impl/ManagedReferenceProperty.class +com/fasterxml/jackson/databind/deser/impl/MergingSettableBeanProperty.class +com/fasterxml/jackson/databind/deser/impl/MethodProperty.class +com/fasterxml/jackson/databind/deser/impl/NullsAsEmptyProvider.class +com/fasterxml/jackson/databind/deser/impl/NullsConstantProvider.class +com/fasterxml/jackson/databind/deser/impl/NullsFailProvider.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdReader.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty$PropertyReferring.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty.class +com/fasterxml/jackson/databind/deser/impl/ObjectIdValueProperty.class +com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator$CaseInsensitiveMap.class +com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator.class +com/fasterxml/jackson/databind/deser/impl/PropertyBasedObjectIdGenerator.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue$Any.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue$Map.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue$Regular.class +com/fasterxml/jackson/databind/deser/impl/PropertyValue.class +com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.class +com/fasterxml/jackson/databind/deser/impl/ReadableObjectId$Referring.class +com/fasterxml/jackson/databind/deser/impl/ReadableObjectId.class +com/fasterxml/jackson/databind/deser/impl/SetterlessProperty.class +com/fasterxml/jackson/databind/deser/impl/TypeWrappedDeserializer.class +com/fasterxml/jackson/databind/deser/impl/UnwrappedPropertyHandler.class +com/fasterxml/jackson/databind/deser/impl/ValueInjector.class +com/fasterxml/jackson/databind/deser/std/ +com/fasterxml/jackson/databind/deser/std/ArrayBlockingQueueDeserializer.class +com/fasterxml/jackson/databind/deser/std/AtomicBooleanDeserializer.class +com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.class +com/fasterxml/jackson/databind/deser/std/BaseNodeDeserializer.class +com/fasterxml/jackson/databind/deser/std/ByteBufferDeserializer.class +com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferring.class +com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferringAccumulator.class +com/fasterxml/jackson/databind/deser/std/CollectionDeserializer.class +com/fasterxml/jackson/databind/deser/std/ContainerDeserializerBase.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$CalendarDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateBasedDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$SqlDateDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers$TimestampDeserializer.class +com/fasterxml/jackson/databind/deser/std/DateDeserializers.class +com/fasterxml/jackson/databind/deser/std/DelegatingDeserializer.class +com/fasterxml/jackson/databind/deser/std/EnumDeserializer.class +com/fasterxml/jackson/databind/deser/std/EnumMapDeserializer.class +com/fasterxml/jackson/databind/deser/std/EnumSetDeserializer.class +com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.class +com/fasterxml/jackson/databind/deser/std/FromStringDeserializer$Std.class +com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.class +com/fasterxml/jackson/databind/deser/std/JdkDeserializers.class +com/fasterxml/jackson/databind/deser/std/JsonLocationInstantiator.class +com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ArrayDeserializer.class +com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ObjectDeserializer.class +com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer.class +com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferring.class +com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferringAccumulator.class +com/fasterxml/jackson/databind/deser/std/MapDeserializer.class +com/fasterxml/jackson/databind/deser/std/MapEntryDeserializer.class +com/fasterxml/jackson/databind/deser/std/NullifyingDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$1.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigDecimalDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigIntegerDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BooleanDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ByteDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$CharacterDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$DoubleDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$FloatDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$IntegerDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$LongDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$NumberDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$PrimitiveOrWrapperDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ShortDeserializer.class +com/fasterxml/jackson/databind/deser/std/NumberDeserializers.class +com/fasterxml/jackson/databind/deser/std/ObjectArrayDeserializer.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$BooleanDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ByteDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$CharDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$DoubleDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$FloatDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$IntDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$LongDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ShortDeser.class +com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers.class +com/fasterxml/jackson/databind/deser/std/ReferenceTypeDeserializer.class +com/fasterxml/jackson/databind/deser/std/StackTraceElementDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$DelegatingKD.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$EnumKD.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringCtorKeyDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringFactoryKeyDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringKD.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdKeyDeserializers.class +com/fasterxml/jackson/databind/deser/std/StdNodeBasedDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdScalarDeserializer.class +com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.class +com/fasterxml/jackson/databind/deser/std/StringArrayDeserializer.class +com/fasterxml/jackson/databind/deser/std/StringCollectionDeserializer.class +com/fasterxml/jackson/databind/deser/std/StringDeserializer.class +com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.class +com/fasterxml/jackson/databind/deser/std/TokenBufferDeserializer.class +com/fasterxml/jackson/databind/deser/std/UUIDDeserializer.class +com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer$Vanilla.class +com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.class +com/fasterxml/jackson/databind/exc/ +com/fasterxml/jackson/databind/exc/IgnoredPropertyException.class +com/fasterxml/jackson/databind/exc/InvalidDefinitionException.class +com/fasterxml/jackson/databind/exc/InvalidFormatException.class +com/fasterxml/jackson/databind/exc/InvalidNullException.class +com/fasterxml/jackson/databind/exc/InvalidTypeIdException.class +com/fasterxml/jackson/databind/exc/MismatchedInputException.class +com/fasterxml/jackson/databind/exc/PropertyBindingException.class +com/fasterxml/jackson/databind/exc/UnrecognizedPropertyException.class +com/fasterxml/jackson/databind/ext/ +com/fasterxml/jackson/databind/ext/CoreXMLDeserializers$Std.class +com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.class +com/fasterxml/jackson/databind/ext/CoreXMLSerializers$XMLGregorianCalendarSerializer.class +com/fasterxml/jackson/databind/ext/CoreXMLSerializers.class +com/fasterxml/jackson/databind/ext/DOMDeserializer$DocumentDeserializer.class +com/fasterxml/jackson/databind/ext/DOMDeserializer$NodeDeserializer.class +com/fasterxml/jackson/databind/ext/DOMDeserializer.class +com/fasterxml/jackson/databind/ext/DOMSerializer.class +com/fasterxml/jackson/databind/ext/Java7Support.class +com/fasterxml/jackson/databind/ext/Java7SupportImpl.class +com/fasterxml/jackson/databind/ext/NioPathDeserializer.class +com/fasterxml/jackson/databind/ext/NioPathSerializer.class +com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.class +com/fasterxml/jackson/databind/introspect/ +com/fasterxml/jackson/databind/introspect/Annotated.class +com/fasterxml/jackson/databind/introspect/AnnotatedClass$Creators.class +com/fasterxml/jackson/databind/introspect/AnnotatedClass.class +com/fasterxml/jackson/databind/introspect/AnnotatedClassResolver.class +com/fasterxml/jackson/databind/introspect/AnnotatedConstructor$Serialization.class +com/fasterxml/jackson/databind/introspect/AnnotatedConstructor.class +com/fasterxml/jackson/databind/introspect/AnnotatedCreatorCollector.class +com/fasterxml/jackson/databind/introspect/AnnotatedField$Serialization.class +com/fasterxml/jackson/databind/introspect/AnnotatedField.class +com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector$FieldBuilder.class +com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector.class +com/fasterxml/jackson/databind/introspect/AnnotatedMember.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethod$Serialization.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethod.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector$MethodBuilder.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector.class +com/fasterxml/jackson/databind/introspect/AnnotatedMethodMap.class +com/fasterxml/jackson/databind/introspect/AnnotatedParameter.class +com/fasterxml/jackson/databind/introspect/AnnotatedWithParams.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$EmptyCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$NCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$NoAnnotations.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneAnnotation.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector$TwoAnnotations.class +com/fasterxml/jackson/databind/introspect/AnnotationCollector.class +com/fasterxml/jackson/databind/introspect/AnnotationIntrospectorPair.class +com/fasterxml/jackson/databind/introspect/AnnotationMap.class +com/fasterxml/jackson/databind/introspect/BasicBeanDescription.class +com/fasterxml/jackson/databind/introspect/BasicClassIntrospector.class +com/fasterxml/jackson/databind/introspect/BeanPropertyDefinition.class +com/fasterxml/jackson/databind/introspect/ClassIntrospector$MixInResolver.class +com/fasterxml/jackson/databind/introspect/ClassIntrospector.class +com/fasterxml/jackson/databind/introspect/CollectorBase.class +com/fasterxml/jackson/databind/introspect/ConcreteBeanPropertyBase.class +com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector$1.class +com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector.class +com/fasterxml/jackson/databind/introspect/MemberKey.class +com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector$1.class +com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector.class +com/fasterxml/jackson/databind/introspect/ObjectIdInfo.class +com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$1.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$10.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$2.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$3.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$4.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$5.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$6.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$7.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$8.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$9.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$Linked.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$MemberIterator.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$WithMember.class +com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.class +com/fasterxml/jackson/databind/introspect/SimpleMixInResolver.class +com/fasterxml/jackson/databind/introspect/TypeResolutionContext$Basic.class +com/fasterxml/jackson/databind/introspect/TypeResolutionContext.class +com/fasterxml/jackson/databind/introspect/VirtualAnnotatedMember.class +com/fasterxml/jackson/databind/introspect/VisibilityChecker$1.class +com/fasterxml/jackson/databind/introspect/VisibilityChecker$Std.class +com/fasterxml/jackson/databind/introspect/VisibilityChecker.class +com/fasterxml/jackson/databind/introspect/WithMember.class +com/fasterxml/jackson/databind/jsonFormatVisitors/ +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatTypes.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitable.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWithSerializerProvider.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormat.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor$Base.class +com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor.class +com/fasterxml/jackson/databind/jsonschema/ +com/fasterxml/jackson/databind/jsonschema/JsonSchema.class +com/fasterxml/jackson/databind/jsonschema/JsonSerializableSchema.class +com/fasterxml/jackson/databind/jsonschema/SchemaAware.class +com/fasterxml/jackson/databind/jsontype/ +com/fasterxml/jackson/databind/jsontype/NamedType.class +com/fasterxml/jackson/databind/jsontype/SubtypeResolver.class +com/fasterxml/jackson/databind/jsontype/TypeDeserializer$1.class +com/fasterxml/jackson/databind/jsontype/TypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/TypeIdResolver.class +com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.class +com/fasterxml/jackson/databind/jsontype/TypeSerializer$1.class +com/fasterxml/jackson/databind/jsontype/TypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/ +com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsExistingPropertyTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeDeserializer.class +com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeSerializer.class +com/fasterxml/jackson/databind/jsontype/impl/ClassNameIdResolver.class +com/fasterxml/jackson/databind/jsontype/impl/MinimalClassNameIdResolver.class +com/fasterxml/jackson/databind/jsontype/impl/StdSubtypeResolver.class +com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder$1.class +com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder.class +com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.class +com/fasterxml/jackson/databind/jsontype/impl/TypeDeserializerBase.class +com/fasterxml/jackson/databind/jsontype/impl/TypeIdResolverBase.class +com/fasterxml/jackson/databind/jsontype/impl/TypeNameIdResolver.class +com/fasterxml/jackson/databind/jsontype/impl/TypeSerializerBase.class +com/fasterxml/jackson/databind/module/ +com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.class +com/fasterxml/jackson/databind/module/SimpleDeserializers.class +com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.class +com/fasterxml/jackson/databind/module/SimpleModule.class +com/fasterxml/jackson/databind/module/SimpleSerializers.class +com/fasterxml/jackson/databind/module/SimpleValueInstantiators.class +com/fasterxml/jackson/databind/node/ +com/fasterxml/jackson/databind/node/ArrayNode.class +com/fasterxml/jackson/databind/node/BaseJsonNode.class +com/fasterxml/jackson/databind/node/BigIntegerNode.class +com/fasterxml/jackson/databind/node/BinaryNode.class +com/fasterxml/jackson/databind/node/BooleanNode.class +com/fasterxml/jackson/databind/node/ContainerNode.class +com/fasterxml/jackson/databind/node/DecimalNode.class +com/fasterxml/jackson/databind/node/DoubleNode.class +com/fasterxml/jackson/databind/node/FloatNode.class +com/fasterxml/jackson/databind/node/IntNode.class +com/fasterxml/jackson/databind/node/JsonNodeCreator.class +com/fasterxml/jackson/databind/node/JsonNodeFactory.class +com/fasterxml/jackson/databind/node/JsonNodeType.class +com/fasterxml/jackson/databind/node/LongNode.class +com/fasterxml/jackson/databind/node/MissingNode.class +com/fasterxml/jackson/databind/node/NodeCursor$ArrayCursor.class +com/fasterxml/jackson/databind/node/NodeCursor$ObjectCursor.class +com/fasterxml/jackson/databind/node/NodeCursor$RootCursor.class +com/fasterxml/jackson/databind/node/NodeCursor.class +com/fasterxml/jackson/databind/node/NullNode.class +com/fasterxml/jackson/databind/node/NumericNode.class +com/fasterxml/jackson/databind/node/ObjectNode.class +com/fasterxml/jackson/databind/node/POJONode.class +com/fasterxml/jackson/databind/node/ShortNode.class +com/fasterxml/jackson/databind/node/TextNode.class +com/fasterxml/jackson/databind/node/TreeTraversingParser$1.class +com/fasterxml/jackson/databind/node/TreeTraversingParser.class +com/fasterxml/jackson/databind/node/ValueNode.class +com/fasterxml/jackson/databind/ser/ +com/fasterxml/jackson/databind/ser/AnyGetterWriter.class +com/fasterxml/jackson/databind/ser/BasicSerializerFactory$1.class +com/fasterxml/jackson/databind/ser/BasicSerializerFactory.class +com/fasterxml/jackson/databind/ser/BeanPropertyFilter.class +com/fasterxml/jackson/databind/ser/BeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/BeanSerializer.class +com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.class +com/fasterxml/jackson/databind/ser/BeanSerializerFactory.class +com/fasterxml/jackson/databind/ser/BeanSerializerModifier.class +com/fasterxml/jackson/databind/ser/ContainerSerializer.class +com/fasterxml/jackson/databind/ser/ContextualSerializer.class +com/fasterxml/jackson/databind/ser/DefaultSerializerProvider$Impl.class +com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.class +com/fasterxml/jackson/databind/ser/FilterProvider.class +com/fasterxml/jackson/databind/ser/PropertyBuilder$1.class +com/fasterxml/jackson/databind/ser/PropertyBuilder.class +com/fasterxml/jackson/databind/ser/PropertyFilter.class +com/fasterxml/jackson/databind/ser/PropertyWriter.class +com/fasterxml/jackson/databind/ser/ResolvableSerializer.class +com/fasterxml/jackson/databind/ser/SerializerCache.class +com/fasterxml/jackson/databind/ser/SerializerFactory.class +com/fasterxml/jackson/databind/ser/Serializers$Base.class +com/fasterxml/jackson/databind/ser/Serializers.class +com/fasterxml/jackson/databind/ser/VirtualBeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/ +com/fasterxml/jackson/databind/ser/impl/AttributePropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/BeanAsArraySerializer.class +com/fasterxml/jackson/databind/ser/impl/FailingSerializer.class +com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$MultiView.class +com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$SingleView.class +com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/IndexedListSerializer.class +com/fasterxml/jackson/databind/ser/impl/IndexedStringListSerializer.class +com/fasterxml/jackson/databind/ser/impl/IteratorSerializer.class +com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer$1.class +com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer.class +com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.class +com/fasterxml/jackson/databind/ser/impl/PropertyBasedObjectIdGenerator.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Double.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Empty.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Multi.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$SerializerAndMapResult.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Single.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$TypeAndSerializer.class +com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap.class +com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap$Bucket.class +com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$1.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$FilterExceptFilter.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$SerializeExceptFilter.class +com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.class +com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.class +com/fasterxml/jackson/databind/ser/impl/StringArraySerializer.class +com/fasterxml/jackson/databind/ser/impl/StringCollectionSerializer.class +com/fasterxml/jackson/databind/ser/impl/TypeWrappedSerializer.class +com/fasterxml/jackson/databind/ser/impl/UnknownSerializer.class +com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter$1.class +com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter.class +com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanSerializer.class +com/fasterxml/jackson/databind/ser/impl/WritableObjectId.class +com/fasterxml/jackson/databind/ser/std/ +com/fasterxml/jackson/databind/ser/std/ArraySerializerBase.class +com/fasterxml/jackson/databind/ser/std/AsArraySerializerBase.class +com/fasterxml/jackson/databind/ser/std/AtomicReferenceSerializer.class +com/fasterxml/jackson/databind/ser/std/BeanSerializerBase$1.class +com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.class +com/fasterxml/jackson/databind/ser/std/BooleanSerializer$AsNumber.class +com/fasterxml/jackson/databind/ser/std/BooleanSerializer.class +com/fasterxml/jackson/databind/ser/std/ByteArraySerializer.class +com/fasterxml/jackson/databind/ser/std/ByteBufferSerializer.class +com/fasterxml/jackson/databind/ser/std/CalendarSerializer.class +com/fasterxml/jackson/databind/ser/std/ClassSerializer.class +com/fasterxml/jackson/databind/ser/std/CollectionSerializer.class +com/fasterxml/jackson/databind/ser/std/DateSerializer.class +com/fasterxml/jackson/databind/ser/std/DateTimeSerializerBase.class +com/fasterxml/jackson/databind/ser/std/EnumSerializer.class +com/fasterxml/jackson/databind/ser/std/EnumSetSerializer.class +com/fasterxml/jackson/databind/ser/std/FileSerializer.class +com/fasterxml/jackson/databind/ser/std/InetAddressSerializer.class +com/fasterxml/jackson/databind/ser/std/InetSocketAddressSerializer.class +com/fasterxml/jackson/databind/ser/std/IterableSerializer.class +com/fasterxml/jackson/databind/ser/std/JsonValueSerializer$TypeSerializerRerouter.class +com/fasterxml/jackson/databind/ser/std/JsonValueSerializer.class +com/fasterxml/jackson/databind/ser/std/MapProperty.class +com/fasterxml/jackson/databind/ser/std/MapSerializer$1.class +com/fasterxml/jackson/databind/ser/std/MapSerializer.class +com/fasterxml/jackson/databind/ser/std/NonTypedScalarSerializerBase.class +com/fasterxml/jackson/databind/ser/std/NullSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializer$1.class +com/fasterxml/jackson/databind/ser/std/NumberSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$1.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$Base.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$DoubleSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$FloatSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntLikeSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntegerSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$LongSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers$ShortSerializer.class +com/fasterxml/jackson/databind/ser/std/NumberSerializers.class +com/fasterxml/jackson/databind/ser/std/ObjectArraySerializer.class +com/fasterxml/jackson/databind/ser/std/RawSerializer.class +com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer$1.class +com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer.class +com/fasterxml/jackson/databind/ser/std/SerializableSerializer.class +com/fasterxml/jackson/databind/ser/std/SqlDateSerializer.class +com/fasterxml/jackson/databind/ser/std/SqlTimeSerializer.class +com/fasterxml/jackson/databind/ser/std/StaticListSerializerBase.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$BooleanArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$CharArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$DoubleArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$FloatArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$IntArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$LongArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$ShortArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers$TypedPrimitiveArraySerializer.class +com/fasterxml/jackson/databind/ser/std/StdArraySerializers.class +com/fasterxml/jackson/databind/ser/std/StdDelegatingSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicBooleanSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicIntegerSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicLongSerializer.class +com/fasterxml/jackson/databind/ser/std/StdJdkSerializers.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializer.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Default.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Dynamic.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$EnumKeySerializer.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers$StringKeySerializer.class +com/fasterxml/jackson/databind/ser/std/StdKeySerializers.class +com/fasterxml/jackson/databind/ser/std/StdScalarSerializer.class +com/fasterxml/jackson/databind/ser/std/StdSerializer.class +com/fasterxml/jackson/databind/ser/std/StringSerializer.class +com/fasterxml/jackson/databind/ser/std/TimeZoneSerializer.class +com/fasterxml/jackson/databind/ser/std/ToStringSerializer.class +com/fasterxml/jackson/databind/ser/std/TokenBufferSerializer.class +com/fasterxml/jackson/databind/ser/std/UUIDSerializer.class +com/fasterxml/jackson/databind/type/ +com/fasterxml/jackson/databind/type/ArrayType.class +com/fasterxml/jackson/databind/type/ClassKey.class +com/fasterxml/jackson/databind/type/ClassStack.class +com/fasterxml/jackson/databind/type/CollectionLikeType.class +com/fasterxml/jackson/databind/type/CollectionType.class +com/fasterxml/jackson/databind/type/MapLikeType.class +com/fasterxml/jackson/databind/type/MapType.class +com/fasterxml/jackson/databind/type/PlaceholderForType.class +com/fasterxml/jackson/databind/type/ReferenceType.class +com/fasterxml/jackson/databind/type/ResolvedRecursiveType.class +com/fasterxml/jackson/databind/type/SimpleType.class +com/fasterxml/jackson/databind/type/TypeBase.class +com/fasterxml/jackson/databind/type/TypeBindings$AsKey.class +com/fasterxml/jackson/databind/type/TypeBindings$TypeParamStash.class +com/fasterxml/jackson/databind/type/TypeBindings.class +com/fasterxml/jackson/databind/type/TypeFactory.class +com/fasterxml/jackson/databind/type/TypeModifier.class +com/fasterxml/jackson/databind/type/TypeParser$MyTokenizer.class +com/fasterxml/jackson/databind/type/TypeParser.class +com/fasterxml/jackson/databind/util/ +com/fasterxml/jackson/databind/util/AccessPattern.class +com/fasterxml/jackson/databind/util/Annotations.class +com/fasterxml/jackson/databind/util/ArrayBuilders$1.class +com/fasterxml/jackson/databind/util/ArrayBuilders$BooleanBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$ByteBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$DoubleBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$FloatBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$IntBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$LongBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders$ShortBuilder.class +com/fasterxml/jackson/databind/util/ArrayBuilders.class +com/fasterxml/jackson/databind/util/ArrayIterator.class +com/fasterxml/jackson/databind/util/BeanUtil.class +com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.class +com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.class +com/fasterxml/jackson/databind/util/ClassUtil$Ctor.class +com/fasterxml/jackson/databind/util/ClassUtil$EnumTypeLocator.class +com/fasterxml/jackson/databind/util/ClassUtil.class +com/fasterxml/jackson/databind/util/CompactStringObjectMap.class +com/fasterxml/jackson/databind/util/ConstantValueInstantiator.class +com/fasterxml/jackson/databind/util/Converter$None.class +com/fasterxml/jackson/databind/util/Converter.class +com/fasterxml/jackson/databind/util/EnumResolver.class +com/fasterxml/jackson/databind/util/EnumValues.class +com/fasterxml/jackson/databind/util/ISO8601DateFormat.class +com/fasterxml/jackson/databind/util/ISO8601Utils.class +com/fasterxml/jackson/databind/util/JSONPObject.class +com/fasterxml/jackson/databind/util/JSONWrappedObject.class +com/fasterxml/jackson/databind/util/LRUMap.class +com/fasterxml/jackson/databind/util/LinkedNode.class +com/fasterxml/jackson/databind/util/NameTransformer$1.class +com/fasterxml/jackson/databind/util/NameTransformer$2.class +com/fasterxml/jackson/databind/util/NameTransformer$3.class +com/fasterxml/jackson/databind/util/NameTransformer$Chained.class +com/fasterxml/jackson/databind/util/NameTransformer$NopTransformer.class +com/fasterxml/jackson/databind/util/NameTransformer.class +com/fasterxml/jackson/databind/util/Named.class +com/fasterxml/jackson/databind/util/ObjectBuffer.class +com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder$Node.class +com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.class +com/fasterxml/jackson/databind/util/RawValue.class +com/fasterxml/jackson/databind/util/RootNameLookup.class +com/fasterxml/jackson/databind/util/SimpleBeanPropertyDefinition.class +com/fasterxml/jackson/databind/util/StdConverter.class +com/fasterxml/jackson/databind/util/StdDateFormat.class +com/fasterxml/jackson/databind/util/TokenBuffer$1.class +com/fasterxml/jackson/databind/util/TokenBuffer$Parser.class +com/fasterxml/jackson/databind/util/TokenBuffer$Segment.class +com/fasterxml/jackson/databind/util/TokenBuffer.class +com/fasterxml/jackson/databind/util/TokenBufferReadContext.class +com/fasterxml/jackson/databind/util/TypeKey.class +com/fasterxml/jackson/databind/util/ViewMatcher$Multi.class +com/fasterxml/jackson/databind/util/ViewMatcher$Single.class +com/fasterxml/jackson/databind/util/ViewMatcher.class diff --git a/gradle.properties.example b/gradle.properties.example deleted file mode 100644 index cde593ea..00000000 --- a/gradle.properties.example +++ /dev/null @@ -1,6 +0,0 @@ -signing.keyId= -signing.password= -signing.secretKeyRingFile=/Users/yourusername/.gnupg/secring.gpg - -sonatypeUsername= -sonatypePassword= diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 0087cd3b18659b5577cf6ad3ef61f8eb9416ebba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 51348 zcmaI7W0WY}vL#x!ZQHhO+qP}n*k#+cZEKfpo4fG#edqLj{oOwOa^%X9KO#r26&WjH zM$AYBXBtf-10t)!e7Jura6KLk|ps_JDL96SJbfqAPy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nEe{)y~YBlAZtPg$PE zANt86gf2BU@-Y#5d1ny{ka5B-OPRxl%)Me z@YgKyZ#HY6mgK1y$4{a+9*>$4?@*y8l}k{= diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b0c3cf1e..00000000 --- a/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Mon May 26 17:38:02 PDT 2014 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-1.8-bin.zip diff --git a/gradlew b/gradlew deleted file mode 100755 index 91a7e269..00000000 --- a/gradlew +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat deleted file mode 100644 index aec99730..00000000 --- a/gradlew.bat +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/pom.xml b/pom.xml index 3557e179..cb0eaf98 100644 --- a/pom.xml +++ b/pom.xml @@ -21,19 +21,20 @@ 2.9.9 + 4.2.0 https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - HEAD + HEAD - + ${basedir} - LICENSE.txt + LICENSE.md @@ -85,6 +86,50 @@ + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.1 + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.1 + + + + com.sendgrid.helpers.mail.objects + com.sendgrid + + + com.sendgrid.helpers.mail + com.sendgrid + + + + + + package + + shade + + + + @@ -100,7 +145,7 @@ com.sendgrid java-http-client - 4.1.0 + ${java-http-client.version} com.fasterxml.jackson.core diff --git a/scripts/upload.sh b/scripts/upload.sh deleted file mode 100755 index fb719838..00000000 --- a/scripts/upload.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -curl \ - -F "sdk=@./repo/com/sendgrid/sendgrid-java-latest.jar" \ - -H "X-Key: $UPLOAD_SECRET" \ - https://dx.sendgrid.com/upload - -exit 0 From 89a472934bfcf5d8fc459d052103836e12a7ba2e Mon Sep 17 00:00:00 2001 From: Twilio Date: Sat, 1 Feb 2020 00:38:48 +0000 Subject: [PATCH 086/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1294aa28..4583c8fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-02-01] Version 4.4.2 +-------------------------- +**Library - Chore** +- [PR #471](https://github.com/sendgrid/sendgrid-java/pull/471): Update build.gradle. Thanks to [@doilio](https://github.com/doilio)! +- [PR #557](https://github.com/sendgrid/sendgrid-java/pull/557): Update Jackson dependencies to the latest version. Thanks to [@wkurniawan07](https://github.com/wkurniawan07)! +- [PR #574](https://github.com/sendgrid/sendgrid-java/pull/574): maven-compiler-plugin 3.8.1. Thanks to [@sullis](https://github.com/sullis)! +- [PR #599](https://github.com/sendgrid/sendgrid-java/pull/599): prep the repo for automated release. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + + [2019-05-20] Version 4.4.1 --------------------------- ### Fix From 268fd10c4b351cc315ded2798177d7d1389a5922 Mon Sep 17 00:00:00 2001 From: Twilio Date: Sat, 1 Feb 2020 00:46:30 +0000 Subject: [PATCH 087/288] Release 4.4.2 --- CONTRIBUTING.md | 6 +- README.md | 6 +- pom.xml | 349 ++++++++++++++++++++++++------------------------ 3 files changed, 180 insertions(+), 181 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 531dcb88..a53d0ef1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -100,7 +100,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.1/sendgrid-4.4.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.1/sendgrid-4.4.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.2/sendgrid-4.4.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.2/sendgrid-4.4.2-jar.jar:. Example ``` @@ -166,10 +166,10 @@ Please run your code through: ```bash # Clone your fork of the repo into the current directory git clone https://github.com/sendgrid/sendgrid-java - + # Navigate to the newly cloned directory cd sendgrid-java - + # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/sendgrid/sendgrid-java ``` diff --git a/README.md b/README.md index 3b941063..1d736927 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.1' + implementation 'com.sendgrid:sendgrid-java:4.4.2' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.2/sendgrid-java.jar) ## Dependencies @@ -232,7 +232,7 @@ Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-java sendgrid-java is guided and supported by the Twilio Developer Experience Team. -Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in case of any queries. +Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in case of any queries. sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of Twilio SendGrid, Inc. diff --git a/pom.xml b/pom.xml index cb0eaf98..2ca492ec 100644 --- a/pom.xml +++ b/pom.xml @@ -1,179 +1,178 @@ - + - 4.0.0 - - org.sonatype.oss - oss-parent - 7 - - com.sendgrid - sendgrid-java - Twilio SendGrid Java helper library - 4.4.1 - This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + com.sendgrid + sendgrid-java + Twilio SendGrid Java helper library + 4.4.2 + This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. + https://github.com/sendgrid/sendgrid-java + + + The MIT License (MIT) + https://github.com/sendgrid/java-http-client/blob/master/LICENSE + repo + + + + 2.9.9 + 4.3.0 + + https://github.com/sendgrid/sendgrid-java - - - The MIT License (MIT) - https://github.com/sendgrid/java-http-client/blob/master/LICENSE - repo - - - - 2.9.9 - 4.2.0 - - - https://github.com/sendgrid/sendgrid-java - scm:git:git@github.com:sendgrid/sendgrid-java.git - scm:git:git@github.com:sendgrid/sendgrid-java.git - HEAD + scm:git:git@github.com:sendgrid/sendgrid-java.git + scm:git:git@github.com:sendgrid/sendgrid-java.git + 4.4.2 - - - - ${basedir} - - LICENSE.md - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-release-plugin - 2.4.2 - - - org.apache.maven.scm - maven-scm-provider-gitexe - 1.8.1 - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9.1 - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.1.1 - - - jar-with-dependencies - - - - - make-assembly - package - - single - - - - - - org.apache.maven.plugins - maven-shade-plugin - 3.2.1 - - - - com.sendgrid.helpers.mail.objects - com.sendgrid - - - com.sendgrid.helpers.mail - com.sendgrid - - - - - - package - - shade - - - - - - - - - thinkingserious - Elmer Thomas - dx@sendgrid.com - https://sendgrid.com - - - jar - - - com.sendgrid - java-http-client - ${java-http-client.version} - - - com.fasterxml.jackson.core - jackson-core - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-annotations - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-databind - ${jackson.version} - - - junit - junit-dep - 4.11 - test - - - org.mockito - mockito-core - 2.1.0 - test - - + + + + ${basedir} + + LICENSE.md + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-release-plugin + 2.4.2 + + + org.apache.maven.scm + maven-scm-provider-gitexe + 1.8.1 + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.1 + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.1 + + + + com.sendgrid.helpers.mail.objects + com.sendgrid + + + com.sendgrid.helpers.mail + com.sendgrid + + + + + + package + + shade + + + + + + + + + thinkingserious + Elmer Thomas + dx@sendgrid.com + https://sendgrid.com + + + jar + + + com.sendgrid + java-http-client + ${java-http-client.version} + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + junit + junit-dep + 4.11 + test + + + org.mockito + mockito-core + 2.1.0 + test + + - From aaef5b4571d57d5a9119201d70de82abe8a5b6c9 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Mon, 3 Feb 2020 16:50:53 -0800 Subject: [PATCH 088/288] Version Bump --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 167344c7..8e697df3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: java +before_install: + - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import || true matrix: include: - name: 'OpenJDK 7' From 1ff240564d1f8cfe8b3de9ea449e913d61eff3a0 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Mon, 3 Feb 2020 16:53:40 -0800 Subject: [PATCH 089/288] Version Bump --- pom.xml | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/pom.xml b/pom.xml index 2ca492ec..27569c47 100644 --- a/pom.xml +++ b/pom.xml @@ -29,6 +29,128 @@ scm:git:git@github.com:sendgrid/sendgrid-java.git 4.4.2 + + + gpg + + false + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + ${gpg.keyname} + ${gpg.passphrase} + + --pinentry-mode + loopback + + + + + + + + release + + + release + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.1 + + + + com.sendgrid.helpers.mail.objects + com.sendgrid + + + com.sendgrid.helpers.mail + com.sendgrid + + + + + + package + + shade + + + + + + + + From 76dcd4280280c2661be211eec6f47c2d691c30b1 Mon Sep 17 00:00:00 2001 From: brianjester Date: Tue, 4 Feb 2020 08:35:37 -0800 Subject: [PATCH 090/288] docs: fix typo in README (#590) --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d736927..954df3fc 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Update the development environment with your [SENDGRID_API_KEY](https://app.send cp .env_sample .env ``` 2. Edit the new `.env` to add your API key -3. Source the `.env` file to set rhe variable in the current session +3. Source the `.env` file to set the variable in the current session ```bash source .env ``` @@ -220,7 +220,6 @@ Quick links: - [Feature Request](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#feature-request) - [Bug Reports](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#submit-a-bug-report) - [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#improvements-to-the-codebase) -- [Sign the CLA to Create a Pull Request](https://cla.sendgrid.com/sendgrid/sendgrid-java) # Troubleshooting From b71b572ba60e50aab2ca67d2bad0f6b872d9a522 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2020 10:46:46 -0600 Subject: [PATCH 091/288] chore: Bump jackson.version from 2.9.9 to 2.10.2 (#602) Bumps `jackson.version` from 2.9.9 to 2.10.2. Updates `jackson-core` from 2.9.9 to 2.10.2 - [Release notes](https://github.com/FasterXML/jackson-core/releases) - [Commits](https://github.com/FasterXML/jackson-core/compare/jackson-core-2.9.9...jackson-core-2.10.2) Updates `jackson-annotations` from 2.9.9 to 2.10.2 - [Release notes](https://github.com/FasterXML/jackson/releases) - [Commits](https://github.com/FasterXML/jackson/commits) Updates `jackson-databind` from 2.9.9 to 2.10.2 - [Release notes](https://github.com/FasterXML/jackson/releases) - [Commits](https://github.com/FasterXML/jackson/commits) Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 27569c47..6aebb72a 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 2.9.9 + 2.10.2 4.3.0 From f00704b6bff594636d04b7517ec45d9b15ea20f5 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Tue, 4 Feb 2020 12:48:25 -0600 Subject: [PATCH 092/288] fix: version command updated --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bc1a62ee..c739dbc9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: install test test-integration clean -VERSION := $(shell mvn help:evaluate -Dexpression=project.version | grep -e '^[^\[]') +VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | grep -e '^[^\[]') install: @java -version || (echo "Java is not installed, please install Java >= 7"; exit 1); mvn clean install -DskipTests=true -Dgpg.skip -B From 69ba0d2941ad33eb57bec96d4d0cb3c52961dd2d Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Tue, 4 Feb 2020 11:18:04 -0800 Subject: [PATCH 093/288] fix: use http client version range --- pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6aebb72a..d50252e8 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,6 @@ 2.10.2 - 4.3.0 https://github.com/sendgrid/sendgrid-java @@ -267,7 +266,7 @@ com.sendgrid java-http-client - ${java-http-client.version} + [4.2,) com.fasterxml.jackson.core From 1b2a55eaacf069cecde7ef26ff6d34bcc74237d7 Mon Sep 17 00:00:00 2001 From: Ethan Wood Date: Tue, 4 Feb 2020 12:51:11 -0700 Subject: [PATCH 094/288] chore: Remove unnecessary access modifiers on interface methods. (#563) --- src/main/java/com/sendgrid/APICallback.java | 4 ++-- src/main/java/com/sendgrid/SendGridAPI.java | 22 ++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/sendgrid/APICallback.java b/src/main/java/com/sendgrid/APICallback.java index fde54f9d..8504f41c 100644 --- a/src/main/java/com/sendgrid/APICallback.java +++ b/src/main/java/com/sendgrid/APICallback.java @@ -9,11 +9,11 @@ public interface APICallback { * Callback method in case of an error. * @param ex the error that was thrown. */ - public void error(Exception ex); + void error(Exception ex); /** * Callback method in case of a valid response. * @param response the valid response. */ - public void response(Response response); + void response(Response response); } diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index 1d9e69f7..aa9583a2 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -10,34 +10,34 @@ public interface SendGridAPI { * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys */ - public void initializeSendGrid(String apiKey); + void initializeSendGrid(String apiKey); /** * Returns the library version * * @return the library version. */ - public String getLibraryVersion(); + String getLibraryVersion(); /** * Gets the version. * * @return returns the version. */ - public String getVersion(); + String getVersion(); /** * Sets the version. * * @param version the Twilio SendGrid version. */ - public void setVersion(String version); + void setVersion(String version); /** * Gets the request headers. * @return returns a map of request headers. */ - public Map getRequestHeaders(); + Map getRequestHeaders(); /** * Adds a request headers. @@ -46,7 +46,7 @@ public interface SendGridAPI { * @param value the value * @return returns a map of request headers. */ - public Map addRequestHeader(String key, String value); + Map addRequestHeader(String key, String value); /** * Removes a request headers. @@ -54,21 +54,21 @@ public interface SendGridAPI { * @param key the key * @return returns a map of request headers. */ - public Map removeRequestHeader(String key); + Map removeRequestHeader(String key); /** * Gets the host. * * @return returns the host. */ - public String getHost(); + String getHost(); /** * Sets the host. * * @param host the host to set */ - public void setHost(String host); + void setHost(String host); /** * Class makeCall makes the call to the Twilio SendGrid API, override this method for @@ -78,7 +78,7 @@ public interface SendGridAPI { * @return returns a response. * @throws IOException in case of network or marshal error. */ - public Response makeCall(Request request) throws IOException; + Response makeCall(Request request) throws IOException; /** * Class api sets up the request to the Twilio SendGrid API, this is main interface. @@ -87,5 +87,5 @@ public interface SendGridAPI { * @return returns a response. * @throws IOException in case of network or marshal error. */ - public Response api(Request request) throws IOException; + Response api(Request request) throws IOException; } From 8fc3514a8f9384379d2a438d04b36cddd866c357 Mon Sep 17 00:00:00 2001 From: Rohan Talip Date: Tue, 4 Feb 2020 11:57:16 -0800 Subject: [PATCH 095/288] chore: Removed the apiKey instance variable as it wasn't being used (#542) --- src/main/java/com/sendgrid/SendGrid.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 213cce52..3c27b313 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -20,9 +20,6 @@ public class SendGrid implements SendGridAPI { private ExecutorService pool; - /** The user's API key. */ - private String apiKey; - /** The Twilio SendGrid host to which to connect. */ private String host; @@ -78,7 +75,6 @@ public SendGrid(String apiKey, Client client) { * @param apiKey the user's API key. */ public void initializeSendGrid(String apiKey) { - this.apiKey = apiKey; this.host = "api.sendgrid.com"; this.version = "v3"; this.requestHeaders = new HashMap(); From ced880a3fe553598023a9dd628904766b52fdb4a Mon Sep 17 00:00:00 2001 From: Anurag Sachdeva Date: Wed, 5 Feb 2020 01:34:46 +0530 Subject: [PATCH 096/288] docs: fix a minor type in README (#516) From c8fb5a6d9e64ef442453e5f0e2d7fca5605f021b Mon Sep 17 00:00:00 2001 From: thepriefy Date: Wed, 5 Feb 2020 03:14:49 +0700 Subject: [PATCH 097/288] docs: makes Environmental Variables a sub topic in CONTRIBUTING.md (#387) --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a53d0ef1..bca4db22 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,7 +72,7 @@ git clone https://github.com/sendgrid/sendgrid-java.git cd sendgrid-java ``` -## Environment Variables +### Environment Variables First, get your free Twilio SendGrid account [here](https://sendgrid.com/free?source=sendgrid-java). From 4c13fa2b26c63de683152806cae376276cea4f70 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Tue, 4 Feb 2020 15:16:24 -0600 Subject: [PATCH 098/288] docs: baseline all the templated markdown docs (#603) --- .github/ISSUE_TEMPLATE | 17 --- .github/PULL_REQUEST_TEMPLATE | 26 ---- CODE_OF_CONDUCT.md | 115 +++++++++++------- CONTRIBUTING.md | 2 +- ISSUE_TEMPLATE.md | 26 ++++ LICENSE.md | 16 +-- PULL_REQUEST_TEMPLATE.md | 31 +++++ src/test/java/com/sendgrid/LicenseTest.java | 2 +- .../com/sendgrid/TestRequiredFilesExist.java | 8 +- 9 files changed, 144 insertions(+), 99 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE delete mode 100644 .github/PULL_REQUEST_TEMPLATE create mode 100644 ISSUE_TEMPLATE.md create mode 100644 PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE b/.github/ISSUE_TEMPLATE deleted file mode 100644 index ee3ea5c2..00000000 --- a/.github/ISSUE_TEMPLATE +++ /dev/null @@ -1,17 +0,0 @@ -#### Issue Summary - -A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, code examples. - - -#### Steps to Reproduce - -1. This is the first step -2. This is the second step -3. Further steps, etc. - -Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead? - -#### Technical details: - -* sendgrid-java Version: master (latest commit: [commit number]) -* Java Version: X.X \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE deleted file mode 100644 index 4aa9c567..00000000 --- a/.github/PULL_REQUEST_TEMPLATE +++ /dev/null @@ -1,26 +0,0 @@ - -# Fixes # - -### Checklist -- [ ] I acknowledge that all my contributions will be made under the project's license -- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) -- [ ] I have read the [Contribution Guide] and my PR follows them. -- [ ] I updated my branch with the development branch. -- [ ] I have added tests that prove my fix is effective or that my feature works -- [ ] I have added necessary documentation about the functionality in the appropriate .md file -- [ ] I have added in line documentation to the code I modified - -### Short description of what this PR does: -- -- - -If you have questions, please send an email to [Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository. \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index d2ca9db9..2f0727ed 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,42 +1,73 @@ - - # Twilio SendGrid Community Code of Conduct - - The Twilio SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community. - - ### Be Open - Members of the community are open to collaboration, whether it's on pull requests, code reviews, approvals, issues or otherwise. We're receptive to constructive comments and criticism, as the experiences and skill sets of all members contribute to the whole of our efforts. We're accepting of all who wish to take part in our activities, fostering an environment where anyone can participate, and everyone can make a difference. - - ### Be Considerate - Members of the community are considerate of their peers, which include other contributors and users of Twilio SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views. - - ### Be Respectful - Members of the community are respectful. We're respectful of others, their positions, their skills, their commitments and their efforts. We're respectful of the volunteer efforts that permeate the Twilio SendGrid community. We're respectful of the processes outlined in the community, and we work within them. When we disagree, we are courteous in raising our issues. Overall, we're good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, these guidelines will come naturally. - - ## Additional Guidance - - ### Disclose Potential Conflicts of Interest - Community discussions often involve interested parties. We expect participants to be aware when they are conflicted due to employment or other projects they are involved in and disclose those interests to other project members. When in doubt, over-disclose. Perceived conflicts of interest are important to address so that the community’s decisions are credible even when unpopular, difficult or favorable to the interests of one group over another. - - ### Interpretation - This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [Twilio SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest. - - ### Enforcement - Most members of the Twilio SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors. - - ## If you have concerns about someone’s conduct - **Initiate Direct Contact** - It is always appropriate to email a community member (if contact information is available), mention that you think their behavior was out of line, and (if necessary) point them to this Code. - - **Discuss Publicly** - Discussing publicly is always acceptable. Note, though, that approaching the person directly may be better, as it tends to make them less defensive, and it respects the time of other community members, so you probably want to try direct contact first. - - **Contact the Moderators** - You can reach the Twilio SendGrid moderators by emailing dx@sendgrid.com. - - ## Submission to Twilio SendGrid Repositories - Finally, just a reminder, changes to the Twilio SendGrid repositories will only be accepted upon completion of the [Twilio SendGrid Contributor Agreement](https://cla.sendgrid.com). - - ## Attribution - - Twilio SendGrid thanks the following, on which it draws for content and inspiration: - - * [Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/) - * [Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct) - * [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html) +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +- The use of sexualized language or imagery and unwelcome sexual attention or + advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic + address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at open-source@twilio.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bca4db22..9e433714 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,7 +47,7 @@ Before you decide to create a new issue, please try the following: ### Please use our Bug Report Template -In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/sendgrid-java/blob/master/.github/ISSUE_TEMPLATE) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting. +In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/sendgrid-java/blob/master/ISSUE_TEMPLATE.md) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting. ## Improvements to the Codebase diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..68630383 --- /dev/null +++ b/ISSUE_TEMPLATE.md @@ -0,0 +1,26 @@ + + +### Issue Summary +A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, or code examples. + +### Steps to Reproduce +1. This is the first step +2. This is the second step +3. Further steps, etc. + +### Code Snippet +```java +# paste code here +``` + +### Exception/Log +``` +# paste exception/log here +``` + +### Technical details: +* sendgrid-java version: +* java version: + diff --git a/LICENSE.md b/LICENSE.md index d55059a3..29aba592 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,13 +1,13 @@ -The MIT License (MIT) +MIT License -Copyright (c) 2013-2020 Twilio SendGrid, Inc. +Copyright (C) 2020, Twilio SendGrid, Inc. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..215059a9 --- /dev/null +++ b/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,31 @@ + + +# Fixes # + +A short description of what this PR does. + +### Checklist +- [ ] I acknowledge that all my contributions will be made under the project's license +- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) +- [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them +- [ ] I have titled the PR appropriately +- [ ] I have updated my branch with the master branch +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] I have added necessary documentation about the functionality in the appropriate .md file +- [ ] I have added inline documentation to the code I modified + +If you have questions, please file a [support ticket](https://twilio.com/help/contact), or create a GitHub Issue in this repository. diff --git a/src/test/java/com/sendgrid/LicenseTest.java b/src/test/java/com/sendgrid/LicenseTest.java index 776b768e..493458e6 100644 --- a/src/test/java/com/sendgrid/LicenseTest.java +++ b/src/test/java/com/sendgrid/LicenseTest.java @@ -21,7 +21,7 @@ public void testLicenseShouldHaveCorrectYear() throws IOException { } } } - String expectedCopyright = String.format("Copyright (c) 2013-%d Twilio SendGrid, Inc.", Calendar.getInstance().get(Calendar.YEAR)); + String expectedCopyright = String.format("Copyright (C) %d, Twilio SendGrid, Inc. ", Calendar.getInstance().get(Calendar.YEAR)); Assert.assertEquals("License has incorrect year", copyrightText, expectedCopyright); } } diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index 928758b9..bb5dd46c 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -57,9 +57,9 @@ public class TestRequiredFilesExist { assertTrue(new File("./CONTRIBUTING.md").exists()); } - // ./.github/ISSUE_TEMPLATE + // ./ISSUE_TEMPLATE.md @Test public void checkIssuesTemplateExists() { - assertTrue(new File("./.github/ISSUE_TEMPLATE").exists()); + assertTrue(new File("./ISSUE_TEMPLATE.md").exists()); } // ./LICENSE.md @@ -67,9 +67,9 @@ public class TestRequiredFilesExist { assertTrue(new File("./LICENSE.md").exists()); } - // ./.github/PULL_REQUEST_TEMPLATE + // ./PULL_REQUEST_TEMPLATE.md @Test public void checkPullRequestExists() { - assertTrue(new File("./.github/PULL_REQUEST_TEMPLATE").exists()); + assertTrue(new File("./PULL_REQUEST_TEMPLATE.md").exists()); } // ./README.md From 40d073ec5dcd839923ea5b08d0fd07f004dc9667 Mon Sep 17 00:00:00 2001 From: Derek Neuland Date: Tue, 4 Feb 2020 16:37:53 -0500 Subject: [PATCH 099/288] docs: Add Code Review to Contributing.md (#402) --- CONTRIBUTING.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6d512b75..60ac4b09 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,6 +16,7 @@ Hello! Thank you for choosing to help contribute to one of the Twilio SendGrid o - [Testing](#testing) - [Style Guidelines & Naming Conventions](#style-guidelines--naming-conventions) - [Creating a Pull Request](#creating-a-pull-request) +- [Code Reviews](#code-reviews) We use [Milestones](https://github.com/sendgrid/sendgrid-java/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged. @@ -211,6 +212,9 @@ Please run your code through: ``` 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) - with a clear title and description against the `development` branch. All tests must be passing before we will review the PR. + with a clear title and description against the `master` branch. All tests must be passing before we will review the PR. + +## Code Reviews +If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great information on how to review a Pull Request. If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo. From 63aafd1a32fd4df6faf873f8f2e98fd2b5e0e907 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Tue, 4 Feb 2020 13:46:55 -0800 Subject: [PATCH 100/288] docs: Fix GitHub spelling (#604) --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 60ac4b09..bd04f222 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -213,8 +213,8 @@ Please run your code through: 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description against the `master` branch. All tests must be passing before we will review the PR. - + ## Code Reviews -If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great information on how to review a Pull Request. +If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, GitHub has some great information on how to review a Pull Request. If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo. From 7d8a80f96a95bcc6daa4238c5c3ebd337d3edeab Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 5 Feb 2020 19:04:46 +0000 Subject: [PATCH 101/288] [Librarian] Version Bump --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4583c8fd..599016cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,23 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-02-05] Version 4.4.3 +-------------------------- +**Library - Docs** +- [PR #604](https://github.com/sendgrid/sendgrid-java/pull/604): Fix GitHub spelling. Thanks to [@friederbluemle](https://github.com/friederbluemle)! +- [PR #534](https://github.com/sendgrid/sendgrid-java/pull/534): Fix whitespace errors and typos. Thanks to [@friederbluemle](https://github.com/friederbluemle)! +- [PR #402](https://github.com/sendgrid/sendgrid-java/pull/402): Add Code Review to Contributing.md. Thanks to [@derekneuland](https://github.com/derekneuland)! +- [PR #603](https://github.com/sendgrid/sendgrid-java/pull/603): baseline all the templated markdown docs. Thanks to [@childish-sambino](https://github.com/childish-sambino)! +- [PR #387](https://github.com/sendgrid/sendgrid-java/pull/387): makes Environmental Variables a sub topic in CONTRIBUTING.md. Thanks to [@thepriefy](https://github.com/thepriefy)! +- [PR #516](https://github.com/sendgrid/sendgrid-java/pull/516): fix a minor type in README. Thanks to [@anuragsachdeva28](https://github.com/anuragsachdeva28)! +- [PR #590](https://github.com/sendgrid/sendgrid-java/pull/590): fix typo in README. Thanks to [@brianjester](https://github.com/brianjester)! + +**Library - Chore** +- [PR #542](https://github.com/sendgrid/sendgrid-java/pull/542): Removed the apiKey instance variable as it wasn't being used. Thanks to [@RohanTalip](https://github.com/RohanTalip)! +- [PR #563](https://github.com/sendgrid/sendgrid-java/pull/563): Remove unnecessary access modifiers on interface methods. Thanks to [@ethanwood17](https://github.com/ethanwood17)! +- [PR #602](https://github.com/sendgrid/sendgrid-java/pull/602): Bump jackson.version from 2.9.9 to 2.10.2. Thanks to [@dependabot](https://github.com/dependabot)! + + [2020-02-01] Version 4.4.2 -------------------------- **Library - Chore** From 0e121cc4e83de5fd954e420189cb6224ba92991e Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 5 Feb 2020 19:38:13 +0000 Subject: [PATCH 102/288] Release 4.4.3 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bd04f222..5687d511 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.2/sendgrid-4.4.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.2/sendgrid-4.4.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.3/sendgrid-4.4.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.3/sendgrid-4.4.3-jar.jar:. Example ``` diff --git a/README.md b/README.md index 30b2da8d..de73ea22 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.2' + implementation 'com.sendgrid:sendgrid-java:4.4.3' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.2/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.3/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index d50252e8..af283cb1 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.2 + 4.4.3 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.2 + 4.4.3 @@ -296,4 +296,4 @@ test - + \ No newline at end of file From 81a170e03505cc9d7f437d26b60939893d9410a1 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Fri, 7 Feb 2020 15:43:55 -0800 Subject: [PATCH 103/288] fix: update release jar (#608) --- Makefile | 2 +- pom.xml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c739dbc9..36295ba5 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | install: @java -version || (echo "Java is not installed, please install Java >= 7"; exit 1); mvn clean install -DskipTests=true -Dgpg.skip -B - cp target/sendgrid-java-$(VERSION).jar sendgrid-java.jar + cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar test: mvn test diff --git a/pom.xml b/pom.xml index af283cb1..be2ca895 100644 --- a/pom.xml +++ b/pom.xml @@ -143,6 +143,10 @@ shade + + true + shaded + @@ -248,6 +252,10 @@ shade + + true + shaded + @@ -296,4 +304,4 @@ test - \ No newline at end of file + From a2157a17256490947b00cc359675aa6c672c5e3d Mon Sep 17 00:00:00 2001 From: Twilio Date: Sat, 8 Feb 2020 00:14:56 +0000 Subject: [PATCH 104/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 599016cb..aecc8312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-02-08] Version 4.4.4 +-------------------------- +**Library - Fix** +- [PR #608](https://github.com/sendgrid/sendgrid-java/pull/608): update release jar. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + + [2020-02-05] Version 4.4.3 -------------------------- **Library - Docs** From 603713410dbb259afa5cd2524a79218aa11d50b0 Mon Sep 17 00:00:00 2001 From: Twilio Date: Sat, 8 Feb 2020 00:18:05 +0000 Subject: [PATCH 105/288] Release 4.4.4 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5687d511..1bb95451 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.3/sendgrid-4.4.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.3/sendgrid-4.4.3-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.4/sendgrid-4.4.4-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.4/sendgrid-4.4.4-jar.jar:. Example ``` diff --git a/README.md b/README.md index de73ea22..38061f66 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.3' + implementation 'com.sendgrid:sendgrid-java:4.4.4' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.3/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.4/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index be2ca895..0b3b0990 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.3 + 4.4.4 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.3 + 4.4.4 @@ -304,4 +304,4 @@ test - + \ No newline at end of file From 9659ae34aa028ffc71f6db0529f60e59804f1ad7 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 10 Feb 2020 12:35:03 -0600 Subject: [PATCH 106/288] fix: limit HTTP client version range to minor updates --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0b3b0990..771fa249 100644 --- a/pom.xml +++ b/pom.xml @@ -274,7 +274,7 @@ com.sendgrid java-http-client - [4.2,) + [4.2,5.0) com.fasterxml.jackson.core @@ -304,4 +304,4 @@ test - \ No newline at end of file + From 07425677749ed9cc18df7d5c656b036c13449042 Mon Sep 17 00:00:00 2001 From: Rohan Talip Date: Fri, 14 Feb 2020 06:19:51 -0800 Subject: [PATCH 107/288] docs: Update the link for Google's Style Guide (#540) ... from the out-of-date http://checkstyle.sourceforge.net/reports/google-java-style.html (last updated 2014-03-21) ... to https://google.github.io/styleguide/javaguide.html (last updated 2018-05-22) See also https://github.com/google/styleguide/blob/gh-pages/javaguide.html --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1bb95451..d5ad65b0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -155,7 +155,7 @@ Generally, we follow the style guidelines as suggested by the official language. Please run your code through: - [FindBugs](http://findbugs.sourceforge.net/) -- [CheckStyle](http://checkstyle.sourceforge.net/) with [Google's Java Style Guide](http://checkstyle.sourceforge.net/reports/google-java-style.html). +- [CheckStyle](http://checkstyle.sourceforge.net/) with [Google's Java Style Guide](https://google.github.io/styleguide/javaguide.html). ## Creating a Pull Request From 041f7b1ae617fc750937e728871ac4103f2a4249 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 19 Feb 2020 23:47:56 +0000 Subject: [PATCH 108/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aecc8312..51d5926e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-02-19] Version 4.4.5 +-------------------------- +**Library - Docs** +- [PR #540](https://github.com/sendgrid/sendgrid-java/pull/540): Update the link for Google's Style Guide. Thanks to [@RohanTalip](https://github.com/RohanTalip)! + + [2020-02-08] Version 4.4.4 -------------------------- **Library - Fix** From 5b10cf9ca91d7b28cdbcdfabd18e608e44b71772 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 20 Feb 2020 00:02:02 +0000 Subject: [PATCH 109/288] Release 4.4.5 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d5ad65b0..bf38a9d1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.4/sendgrid-4.4.4-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.4/sendgrid-4.4.4-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.5/sendgrid-4.4.5-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.5/sendgrid-4.4.5-jar.jar:. Example ``` diff --git a/README.md b/README.md index 38061f66..8ccf389a 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.4' + implementation 'com.sendgrid:sendgrid-java:4.4.5' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.4/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.5/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 771fa249..84dd9b68 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.4 + 4.4.5 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.4 + 4.4.5 @@ -304,4 +304,4 @@ test - + \ No newline at end of file From e2e146b60d36b1c6ced57436efdd389472a63b7d Mon Sep 17 00:00:00 2001 From: Rohan Talip Date: Wed, 31 Oct 2018 10:13:21 -0700 Subject: [PATCH 110/288] Tidied up a little. - (Mostly) automatically reformatted code using IntelliJ IDEA to match the Google Style Guide (as documented in CONTRIBUTING.md). - 2 space indent, where it wasn't already. - Line wrap at 100 characters, where it wasn't already. - Wildcard imports were replaced with explicit imports. - Unused imports were removed. - Annotations were put onto their own line, and additional lines added for readability where necessary. - Braces were added to if-statements that didn't already have them. - Also made some minor edits, e.g. as suggested by IntelliJ IDEA (e.g. public --> private). This will help with getting the code into shape before style conformance is required as per issue #472 and pull request #496. See also: - https://github.com/google/google-java-format - https://plugins.jetbrains.com/plugin/8527-google-java-format - https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml --- src/main/java/com/sendgrid/APICallback.java | 27 +- .../java/com/sendgrid/RateLimitException.java | 58 ++-- src/main/java/com/sendgrid/SendGrid.java | 55 ++-- src/main/java/com/sendgrid/SendGridAPI.java | 22 +- .../java/com/sendgrid/helpers/mail/Mail.java | 270 +++++++++++------- .../sendgrid/helpers/mail/objects/ASM.java | 32 ++- .../helpers/mail/objects/Attachments.java | 133 +++++---- .../helpers/mail/objects/BccSettings.java | 31 +- .../mail/objects/ClickTrackingSetting.java | 37 ++- .../helpers/mail/objects/Content.java | 41 +-- .../sendgrid/helpers/mail/objects/Email.java | 29 +- .../helpers/mail/objects/FooterSetting.java | 47 +-- .../mail/objects/GoogleAnalyticsSetting.java | 86 ++++-- .../helpers/mail/objects/MailSettings.java | 93 +++--- .../mail/objects/OpenTrackingSetting.java | 43 +-- .../helpers/mail/objects/Personalization.java | 141 +++++---- .../helpers/mail/objects/Setting.java | 16 +- .../mail/objects/SpamCheckSetting.java | 46 +-- .../objects/SubscriptionTrackingSetting.java | 70 +++-- .../mail/objects/TrackingSettings.java | 75 +++-- src/test/java/com/sendgrid/LicenseTest.java | 31 +- src/test/java/com/sendgrid/SendGridTest.java | 133 +++++---- .../com/sendgrid/TestRequiredFilesExist.java | 184 ++++++------ 23 files changed, 1040 insertions(+), 660 deletions(-) diff --git a/src/main/java/com/sendgrid/APICallback.java b/src/main/java/com/sendgrid/APICallback.java index 8504f41c..101052d6 100644 --- a/src/main/java/com/sendgrid/APICallback.java +++ b/src/main/java/com/sendgrid/APICallback.java @@ -1,19 +1,22 @@ package com.sendgrid; /** - * An interface describing a callback mechanism for the - * asynchronous, rate limit aware API connection. + * An interface describing a callback mechanism for the asynchronous, rate limit aware API + * connection. */ public interface APICallback { - /** - * Callback method in case of an error. - * @param ex the error that was thrown. - */ - void error(Exception ex); - /** - * Callback method in case of a valid response. - * @param response the valid response. - */ - void response(Response response); + /** + * Callback method in case of an error. + * + * @param ex the error that was thrown. + */ + void error(Exception ex); + + /** + * Callback method in case of a valid response. + * + * @param response the valid response. + */ + void response(Response response); } diff --git a/src/main/java/com/sendgrid/RateLimitException.java b/src/main/java/com/sendgrid/RateLimitException.java index 4912ac92..7a2570ac 100644 --- a/src/main/java/com/sendgrid/RateLimitException.java +++ b/src/main/java/com/sendgrid/RateLimitException.java @@ -1,36 +1,40 @@ package com.sendgrid; /** - * An exception thrown when the maximum number of retries - * have occurred, and the API calls are still rate limited. + * An exception thrown when the maximum number of retries have occurred, and the API calls are still + * rate limited. */ public class RateLimitException extends Exception { - private final Request request; - private final int retryCount; - /** - * Construct a new exception. - * @param request the originating request object. - * @param retryCount the number of times a retry was attempted. - */ - public RateLimitException(Request request, int retryCount) { - this.request = request; - this.retryCount = retryCount; - } + private final Request request; + private final int retryCount; - /** - * Get the originating request object. - * @return the request object. - */ - public Request getRequest() { - return this.request; - } + /** + * Construct a new exception. + * + * @param request the originating request object. + * @param retryCount the number of times a retry was attempted. + */ + public RateLimitException(Request request, int retryCount) { + this.request = request; + this.retryCount = retryCount; + } - /** - * Get the number of times the action was attemted. - * @return the retry count. - */ - public int getRetryCount() { - return this.retryCount; - } + /** + * Get the originating request object. + * + * @return the request object. + */ + public Request getRequest() { + return this.request; + } + + /** + * Get the number of times the action was attemted. + * + * @return the retry count. + */ + public int getRetryCount() { + return this.retryCount; + } } diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 3c27b313..b248e7af 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.HashMap; import java.util.Map; -import java.util.concurrent.Executors; import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; /** - * Class Twilio SendGrid allows for quick and easy access to the Twilio SendGrid API. - */ + * The Twilio SendGrid class allows for quick and easy access to the Twilio SendGrid API. + */ public class SendGrid implements SendGridAPI { private static final String VERSION = "3.0.0"; @@ -43,6 +43,7 @@ public class SendGrid implements SendGridAPI { /** * Construct a new Twilio SendGrid API wrapper. + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys */ public SendGrid(String apiKey) { @@ -52,6 +53,7 @@ public SendGrid(String apiKey) { /** * Construct a new Twilio SendGrid API wrapper. + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys * @param test is true if you are unit testing */ @@ -62,6 +64,7 @@ public SendGrid(String apiKey, Boolean test) { /** * Construct a new Twilio SendGrid API wrapper. + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys * @param client the Client to use (allows to customize its configuration) */ @@ -72,6 +75,7 @@ public SendGrid(String apiKey, Client client) { /** * Initialize the client. + * * @param apiKey the user's API key. */ public void initializeSendGrid(String apiKey) { @@ -89,14 +93,16 @@ public void initializeSendGrid(String apiKey) { /** * Retrieve the current library version. + * * @return the current version. */ public String getLibraryVersion() { - return this.VERSION; + return VERSION; } /** * Get the API version. + * * @return the current API versioin (v3 by default). */ public String getVersion() { @@ -105,6 +111,7 @@ public String getVersion() { /** * Set the API version. + * * @param version the new version. */ public void setVersion(String version) { @@ -113,6 +120,7 @@ public void setVersion(String version) { /** * Obtain the request headers. + * * @return the request headers. */ public Map getRequestHeaders() { @@ -121,6 +129,7 @@ public Map getRequestHeaders() { /** * Add a new request header. + * * @param key the header key. * @param value the header value. * @return the new set of request headers. @@ -132,6 +141,7 @@ public Map addRequestHeader(String key, String value) { /** * Remove a request header. + * * @param key the header key to remove. * @return the new set of request headers. */ @@ -142,6 +152,7 @@ public Map removeRequestHeader(String key) { /** * Get the Twilio SendGrid host (api.sendgrid.com by default). + * * @return the Twilio SendGrid host. */ public String getHost() { @@ -150,6 +161,7 @@ public String getHost() { /** * Set the Twilio SendGrid host. + * * @param host the new Twilio SendGrid host. */ public void setHost(String host) { @@ -157,8 +169,8 @@ public void setHost(String host) { } /** - * Get the maximum number of retries on a rate limit response. - * The default is 5. + * Get the maximum number of retries on a rate limit response. The default is 5. + * * @return the number of retries on a rate limit. */ public int getRateLimitRetry() { @@ -167,6 +179,7 @@ public int getRateLimitRetry() { /** * Set the maximum number of retries on a rate limit response. + * * @param rateLimitRetry the maximum retry count. */ public void setRateLimitRetry(int rateLimitRetry) { @@ -174,9 +187,9 @@ public void setRateLimitRetry(int rateLimitRetry) { } /** - * Get the duration of time (in milliseconds) to sleep between - * consecutive rate limit retries. The Twilio SendGrid API enforces - * the rate limit to the second. The default value is 1.1 seconds. + * Get the duration of time (in milliseconds) to sleep between consecutive rate limit retries. The + * Twilio SendGrid API enforces the rate limit to the second. The default value is 1.1 seconds. + * * @return the sleep duration. */ public int getRateLimitSleep() { @@ -184,8 +197,8 @@ public int getRateLimitSleep() { } /** - * Set the duration of time (in milliseconds) to sleep between - * consecutive rate limit retries. + * Set the duration of time (in milliseconds) to sleep between consecutive rate limit retries. + * * @param rateLimitSleep the sleep duration. */ public void setRateLimitSleep(int rateLimitSleep) { @@ -194,6 +207,7 @@ public void setRateLimitSleep(int rateLimitSleep) { /** * Impersonate subuser for subsequent requests + * * @param subuser the subuser to be impersonated */ public void addImpersonateSubuser(String subuser) { @@ -211,14 +225,16 @@ public void removeImpersonateSubuser() { /** * Get the impersonated subuser or null if empty + * * @return the impersonated subuser */ public String getImpersonateSubuser() { - return this.subuser; + return this.subuser; } /** * Makes the call to the Twilio SendGrid API, override this method for testing. + * * @param request the request to make. * @return the response object. * @throws IOException in case of a network error. @@ -229,6 +245,7 @@ public Response makeCall(Request request) throws IOException { /** * Class api sets up the request to the Twilio SendGrid API, this is main interface. + * * @param request the request object. * @return the response object. * @throws IOException in case of a network error. @@ -250,9 +267,9 @@ public Response api(Request request) throws IOException { } /** - * Attempt an API call. This method executes the API call asynchronously - * on an internal thread pool. If the call is rate limited, the thread - * will retry up to the maximum configured time. + * Attempt an API call. This method executes the API call asynchronously on an internal thread + * pool. If the call is rate limited, the thread will retry up to the maximum configured time. + * * @param request the API request. */ public void attempt(Request request) { @@ -267,10 +284,10 @@ public void response(Response r) { } /** - * Attempt an API call. This method executes the API call asynchronously - * on an internal thread pool. If the call is rate limited, the thread - * will retry up to the maximum configured time. The supplied callback - * will be called in the event of an error, or a successful response. + * Attempt an API call. This method executes the API call asynchronously on an internal thread + * pool. If the call is rate limited, the thread will retry up to the maximum configured time. The + * supplied callback will be called in the event of an error, or a successful response. + * * @param request the API request. * @param callback the callback. */ diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index aa9583a2..5110e8ca 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -7,14 +7,14 @@ public interface SendGridAPI { /** * Initializes Twilio SendGrid - * + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys */ void initializeSendGrid(String apiKey); /** * Returns the library version - * + * * @return the library version. */ String getLibraryVersion(); @@ -28,20 +28,21 @@ public interface SendGridAPI { /** * Sets the version. - * + * * @param version the Twilio SendGrid version. */ void setVersion(String version); /** * Gets the request headers. + * * @return returns a map of request headers. */ Map getRequestHeaders(); /** * Adds a request headers. - * + * * @param key the key * @param value the value * @return returns a map of request headers. @@ -50,7 +51,7 @@ public interface SendGridAPI { /** * Removes a request headers. - * + * * @param key the key * @return returns a map of request headers. */ @@ -58,22 +59,21 @@ public interface SendGridAPI { /** * Gets the host. - * + * * @return returns the host. */ String getHost(); /** * Sets the host. - * + * * @param host the host to set */ void setHost(String host); /** - * Class makeCall makes the call to the Twilio SendGrid API, override this method for - * testing. - * + * Class makeCall makes the call to the Twilio SendGrid API, override this method for testing. + * * @param request the request * @return returns a response. * @throws IOException in case of network or marshal error. @@ -82,7 +82,7 @@ public interface SendGridAPI { /** * Class api sets up the request to the Twilio SendGrid API, this is main interface. - * + * * @param request the request * @return returns a response. * @throws IOException in case of network or marshal error. diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index 29dd2325..24eb19de 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -5,8 +5,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; -import com.sendgrid.helpers.mail.objects.*; - +import com.sendgrid.helpers.mail.objects.ASM; +import com.sendgrid.helpers.mail.objects.Attachments; +import com.sendgrid.helpers.mail.objects.Content; +import com.sendgrid.helpers.mail.objects.Email; +import com.sendgrid.helpers.mail.objects.MailSettings; +import com.sendgrid.helpers.mail.objects.Personalization; +import com.sendgrid.helpers.mail.objects.TrackingSettings; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; @@ -14,95 +19,106 @@ import java.util.Map; /** - * Class Mail builds an object that sends an email through Twilio SendGrid. - * Note that this object is not thread safe. + * Class Mail builds an object that sends an email through Twilio SendGrid. Note that this object is + * not thread safe. */ @JsonInclude(Include.NON_DEFAULT) public class Mail { /** The email's from field. */ - @JsonProperty("from") public Email from; + @JsonProperty("from") + public Email from; - /** The email's subject line. This is the global, or - * “message level”, subject of your email. This may - * be overridden by personalizations[x].subject. + /** + * The email's subject line. This is the global, or “message level”, subject of your email. This + * may be overridden by personalizations[x].subject. */ - @JsonProperty("subject") public String subject; + @JsonProperty("subject") + public String subject; - /** - * The email's personalization. Each object within - * personalizations can be thought of as an envelope - * - it defines who should receive an individual message - * and how that message should be handled. + /** + * The email's personalization. Each object within personalizations can be thought of as an + * envelope - it defines who should receive an individual message and how that message should be + * handled. */ - @JsonProperty("personalizations") public List personalization; + @JsonProperty("personalizations") + public List personalization; /** The email's content. */ - @JsonProperty("content") public List content; + @JsonProperty("content") + public List content; /** The email's attachments. */ - @JsonProperty("attachments") public List attachments; + @JsonProperty("attachments") + public List attachments; /** The email's template ID. */ - @JsonProperty("template_id") public String templateId; + @JsonProperty("template_id") + public String templateId; - /** - * The email's sections. An object of key/value pairs that - * define block sections of code to be used as substitutions. + /** + * The email's sections. An object of key/value pairs that define block sections of code to be + * used as substitutions. */ - @JsonProperty("sections") public Map sections; + @JsonProperty("sections") + public Map sections; /** The email's headers. */ - @JsonProperty("headers") public Map headers; + @JsonProperty("headers") + public Map headers; /** The email's categories. */ - @JsonProperty("categories") public List categories; - - /** - * The email's custom arguments. Values that are specific to - * the entire send that will be carried along with the email - * and its activity data. Substitutions will not be made on - * custom arguments, so any string that is entered into this - * parameter will be assumed to be the custom argument that - * you would like to be used. This parameter is overridden by - * personalizations[x].custom_args if that parameter has been - * defined. Total custom args size may not exceed 10,000 bytes. - */ - @JsonProperty("custom_args") public Map customArgs; - - /** - * A unix timestamp allowing you to specify when you want - * your email to be delivered. This may be overridden by - * the personalizations[x].send_at parameter. Scheduling - * more than 72 hours in advance is forbidden. - */ - @JsonProperty("send_at") public long sendAt; - - /** - * This ID represents a batch of emails to be sent at the - * same time. Including a batch_id in your request allows - * you include this email in that batch, and also enables - * you to cancel or pause the delivery of that batch. For - * more information, see https://sendgrid.com/docs/API_Reference/Web_API_v3/cancel_schedule_send. - */ - @JsonProperty("batch_id") public String batchId; + @JsonProperty("categories") + public List categories; + + /** + * The email's custom arguments. Values that are specific to the entire send that will be carried + * along with the email and its activity data. Substitutions will not be made on custom arguments, + * so any string that is entered into this parameter will be assumed to be the custom argument + * that you would like to be used. This parameter is overridden by personalizations[x].custom_args + * if that parameter has been defined. Total custom args size may not exceed 10,000 bytes. + */ + @JsonProperty("custom_args") + public Map customArgs; + + /** + * A unix timestamp allowing you to specify when you want your email to be delivered. This may be + * overridden by the personalizations[x].send_at parameter. Scheduling more than 72 hours in + * advance is forbidden. + */ + @JsonProperty("send_at") + public long sendAt; + + /** + * This ID represents a batch of emails to be sent at the same time. Including a batch_id in your + * request allows you include this email in that batch, and also enables you to cancel or pause + * the delivery of that batch. For more information, see https://sendgrid.com/docs/API_Reference/Web_API_v3/cancel_schedule_send. + */ + @JsonProperty("batch_id") + public String batchId; /** The email's unsubscribe handling object. */ - @JsonProperty("asm") public ASM asm; + @JsonProperty("asm") + public ASM asm; /** The email's IP pool name. */ - @JsonProperty("ip_pool_name") public String ipPoolId; + @JsonProperty("ip_pool_name") + public String ipPoolId; /** The email's mail settings. */ - @JsonProperty("mail_settings") public MailSettings mailSettings; + @JsonProperty("mail_settings") + public MailSettings mailSettings; /** The email's tracking settings. */ - @JsonProperty("tracking_settings") public TrackingSettings trackingSettings; + @JsonProperty("tracking_settings") + public TrackingSettings trackingSettings; /** The email's reply to address. */ - @JsonProperty("reply_to") public Email replyTo; + @JsonProperty("reply_to") + public Email replyTo; private static final ObjectMapper SORTED_MAPPER = new ObjectMapper(); + static { SORTED_MAPPER.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true); } @@ -118,17 +134,17 @@ private List addToList(T element, List defaultList) { } } - private Map addToMap(K key, V value, Map defaultMap) { + private Map addToMap(K key, V value, Map defaultMap) { if (defaultMap != null) { defaultMap.put(key, value); return defaultMap; } else { - Map map = new HashMap(); + Map map = new HashMap(); map.put(key, value); return map; } } - + /** Construct a new Mail object. */ public Mail() { return; @@ -136,13 +152,13 @@ public Mail() { /** * Construct a new Mail object. + * * @param from the email's from address. * @param subject the email's subject line. * @param to the email's recipient. * @param content the email's content. */ - public Mail(Email from, String subject, Email to, Content content) - { + public Mail(Email from, String subject, Email to, Content content) { this.setFrom(from); this.setSubject(subject); Personalization personalization = new Personalization(); @@ -153,6 +169,7 @@ public Mail(Email from, String subject, Email to, Content content) /** * Get the email's from address. + * * @return the email's from address. */ @JsonProperty("from") @@ -162,6 +179,7 @@ public Email getFrom() { /** * Set the email's from address. + * * @param from the email's from address. */ public void setFrom(Email from) { @@ -170,6 +188,7 @@ public void setFrom(Email from) { /** * Get the email's subject line. + * * @return the email's subject line. */ @JsonProperty("subject") @@ -179,6 +198,7 @@ public String getSubject() { /** * Set the email's subject line. + * * @param subject the email's subject line. */ public void setSubject(String subject) { @@ -187,6 +207,7 @@ public void setSubject(String subject) { /** * Get the email's unsubscribe handling object (ASM). + * * @return the email's ASM. */ @JsonProperty("asm") @@ -196,6 +217,7 @@ public ASM getASM() { /** * Set the email's unsubscribe handling object (ASM). + * * @param asm the email's ASM. */ public void setASM(ASM asm) { @@ -203,8 +225,9 @@ public void setASM(ASM asm) { } /** - * Get the email's personalizations. Content added to the returned - * list will be included when sent. + * Get the email's personalizations. Content added to the returned list will be included when + * sent. + * * @return the email's personalizations. */ @JsonProperty("personalizations") @@ -214,6 +237,7 @@ public List getPersonalization() { /** * Add a personalizaton to the email. + * * @param personalization a personalization. */ public void addPersonalization(Personalization personalization) { @@ -221,8 +245,8 @@ public void addPersonalization(Personalization personalization) { } /** - * Get the email's content. Content added to the returned list - * will be included when sent. + * Get the email's content. Content added to the returned list will be included when sent. + * * @return the email's content. */ @JsonProperty("content") @@ -232,6 +256,7 @@ public List getContent() { /** * Add content to this email. + * * @param content content to add to this email. */ public void addContent(Content content) { @@ -242,8 +267,9 @@ public void addContent(Content content) { } /** - * Get the email's attachments. Attachments added to the returned - * list will be included when sent. + * Get the email's attachments. Attachments added to the returned list will be included when + * sent. + * * @return the email's attachments. */ @JsonProperty("attachments") @@ -253,6 +279,7 @@ public List getAttachments() { /** * Add attachments to the email. + * * @param attachments attachments to add. */ public void addAttachments(Attachments attachments) { @@ -267,6 +294,7 @@ public void addAttachments(Attachments attachments) { /** * Get the email's template ID. + * * @return the email's template ID. */ @JsonProperty("template_id") @@ -276,6 +304,7 @@ public String getTemplateId() { /** * Set the email's template ID. + * * @param templateId the email's template ID. */ public void setTemplateId(String templateId) { @@ -283,17 +312,18 @@ public void setTemplateId(String templateId) { } /** - * Get the email's sections. Sections added to the returned list - * will be included when sent. + * Get the email's sections. Sections added to the returned list will be included when sent. + * * @return the email's sections. */ @JsonProperty("sections") - public Map getSections() { + public Map getSections() { return sections; } /** * Add a section to the email. + * * @param key the section's key. * @param value the section's value. */ @@ -302,17 +332,18 @@ public void addSection(String key, String value) { } /** - * Get the email's headers. Headers added to the returned list - * will be included when sent. + * Get the email's headers. Headers added to the returned list will be included when sent. + * * @return the email's headers. */ @JsonProperty("headers") - public Map getHeaders() { + public Map getHeaders() { return headers; } /** * Add a header to the email. + * * @param key the header's key. * @param value the header's value. */ @@ -321,8 +352,8 @@ public void addHeader(String key, String value) { } /** - * Get the email's categories. Categories added to the returned list - * will be included when sent. + * Get the email's categories. Categories added to the returned list will be included when sent. + * * @return the email's categories. */ @JsonProperty("categories") @@ -332,6 +363,7 @@ public List getCategories() { /** * Add a category to the email. + * * @param category the category. */ public void addCategory(String category) { @@ -339,17 +371,19 @@ public void addCategory(String category) { } /** - * Get the email's custom arguments. Custom arguments added to the returned list - * will be included when sent. + * Get the email's custom arguments. Custom arguments added to the returned list will be included + * when sent. + * * @return the email's custom arguments. */ @JsonProperty("custom_args") - public Map getCustomArgs() { + public Map getCustomArgs() { return customArgs; } /** * Add a custom argument to the email. + * * @param key argument's key. * @param value the argument's value. */ @@ -359,6 +393,7 @@ public void addCustomArg(String key, String value) { /** * Get the email's send at time (Unix timestamp). + * * @return the email's send at time. */ @JsonProperty("send_at") @@ -368,6 +403,7 @@ public long sendAt() { /** * Set the email's send at time (Unix timestamp). + * * @param sendAt the send at time. */ public void setSendAt(long sendAt) { @@ -376,6 +412,7 @@ public void setSendAt(long sendAt) { /** * Get the email's batch ID. + * * @return the batch ID. */ @JsonProperty("batch_id") @@ -385,6 +422,7 @@ public String getBatchId() { /** * Set the email's batch ID. + * * @param batchId the batch ID. */ public void setBatchId(String batchId) { @@ -393,6 +431,7 @@ public void setBatchId(String batchId) { /** * Get the email's IP pool ID. + * * @return the IP pool ID. */ @JsonProperty("ip_pool_name") @@ -402,6 +441,7 @@ public String getIpPoolId() { /** * Set the email's IP pool ID. + * * @param ipPoolId the IP pool ID. */ public void setIpPoolId(String ipPoolId) { @@ -410,6 +450,7 @@ public void setIpPoolId(String ipPoolId) { /** * Get the email's settings. + * * @return the settings. */ @JsonProperty("mail_settings") @@ -419,6 +460,7 @@ public MailSettings getMailSettings() { /** * Set the email's settings. + * * @param mailSettings the settings. */ public void setMailSettings(MailSettings mailSettings) { @@ -427,6 +469,7 @@ public void setMailSettings(MailSettings mailSettings) { /** * Get the email's tracking settings. + * * @return the tracking settings. */ @JsonProperty("tracking_settings") @@ -436,6 +479,7 @@ public TrackingSettings getTrackingSettings() { /** * Set the email's tracking settings. + * * @param trackingSettings the tracking settings. */ public void setTrackingSettings(TrackingSettings trackingSettings) { @@ -444,6 +488,7 @@ public void setTrackingSettings(TrackingSettings trackingSettings) { /** * Get the email's reply to address. + * * @return the reply to address. */ @JsonProperty("reply_to") @@ -453,6 +498,7 @@ public Email getReplyto() { /** * Set the email's reply to address. + * * @param replyTo the reply to address. */ public void setReplyTo(Email replyTo) { @@ -461,6 +507,7 @@ public void setReplyTo(Email replyTo) { /** * Create a string represenation of the Mail object JSON. + * * @return a JSON string. * @throws IOException in case of a JSON marshal error. */ @@ -475,6 +522,7 @@ public String build() throws IOException { /** * Create a string represenation of the Mail object JSON and pretty print it. + * * @return a pretty JSON string. * @throws IOException in case of a JSON marshal error. */ @@ -505,55 +553,75 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } Mail other = (Mail) obj; if (batchId == null) { - if (other.batchId != null) + if (other.batchId != null) { return false; - } else if (!batchId.equals(other.batchId)) + } + } else if (!batchId.equals(other.batchId)) { return false; + } if (categories == null) { - if (other.categories != null) + if (other.categories != null) { return false; - } else if (!categories.equals(other.categories)) + } + } else if (!categories.equals(other.categories)) { return false; + } if (customArgs == null) { - if (other.customArgs != null) + if (other.customArgs != null) { return false; - } else if (!customArgs.equals(other.customArgs)) + } + } else if (!customArgs.equals(other.customArgs)) { return false; + } if (headers == null) { - if (other.headers != null) + if (other.headers != null) { return false; - } else if (!headers.equals(other.headers)) + } + } else if (!headers.equals(other.headers)) { return false; + } if (ipPoolId == null) { - if (other.ipPoolId != null) + if (other.ipPoolId != null) { return false; - } else if (!ipPoolId.equals(other.ipPoolId)) + } + } else if (!ipPoolId.equals(other.ipPoolId)) { return false; + } if (sections == null) { - if (other.sections != null) + if (other.sections != null) { return false; - } else if (!sections.equals(other.sections)) + } + } else if (!sections.equals(other.sections)) { return false; - if (sendAt != other.sendAt) + } + if (sendAt != other.sendAt) { return false; + } if (subject == null) { - if (other.subject != null) + if (other.subject != null) { return false; - } else if (!subject.equals(other.subject)) + } + } else if (!subject.equals(other.subject)) { return false; + } if (templateId == null) { - if (other.templateId != null) + if (other.templateId != null) { return false; - } else if (!templateId.equals(other.templateId)) + } + } else if (!templateId.equals(other.templateId)) { return false; + } return true; } -} \ No newline at end of file +} diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java b/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java index a34895f2..44ce4228 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ASM.java @@ -3,28 +3,31 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; - import java.util.Arrays; @JsonInclude(Include.NON_DEFAULT) public class ASM { - @JsonProperty("group_id") private int groupId; - @JsonProperty("groups_to_display") private int[] groupsToDisplay; - + + @JsonProperty("group_id") + private int groupId; + + @JsonProperty("groups_to_display") + private int[] groupsToDisplay; + @JsonProperty("group_id") public int getGroupId() { return groupId; } - + public void setGroupId(int groupId) { this.groupId = groupId; } - + @JsonProperty("groups_to_display") public int[] getGroupsToDisplay() { return groupsToDisplay; } - + public void setGroupsToDisplay(int[] groupsToDisplay) { this.groupsToDisplay = Arrays.copyOf(groupsToDisplay, groupsToDisplay.length); } @@ -40,17 +43,22 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } ASM other = (ASM) obj; - if (groupId != other.groupId) + if (groupId != other.groupId) { return false; - if (!Arrays.equals(groupsToDisplay, other.groupsToDisplay)) + } + if (!Arrays.equals(groupsToDisplay, other.groupsToDisplay)) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java index 969c1630..9a3ff1b4 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java @@ -4,68 +4,74 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; import org.apache.commons.codec.binary.Base64; -import java.io.*; - /** * An attachment object. */ @JsonInclude(Include.NON_DEFAULT) public class Attachments { - + /** The attachment content. */ - @JsonProperty("content") private String content; + @JsonProperty("content") + private String content; - /** - * The mime type of the content you are attaching. For example, - * “text/plain” or “text/html”. + /** + * The mime type of the content you are attaching. For example, “text/plain” or “text/html”. */ - @JsonProperty("type") private String type; + @JsonProperty("type") + private String type; /** The attachment file name. */ - @JsonProperty("filename") private String filename; + @JsonProperty("filename") + private String filename; /** The attachment disposition. */ - @JsonProperty("disposition") private String disposition; + @JsonProperty("disposition") + private String disposition; - /** - * The attachment content ID. This is used when the - * disposition is set to “inline” and the attachment - * is an image, allowing the file to be displayed within - * the body of your email. + /** + * The attachment content ID. This is used when the disposition is set to “inline” and the + * attachment is an image, allowing the file to be displayed within the body of your email. */ - @JsonProperty("content_id") private String contentId; + @JsonProperty("content_id") + private String contentId; /** * Get the attachment's content. + * * @return the content. */ - @JsonProperty("content") + @JsonProperty("content") public String getContent() { return content; } /** * Set the attachment's content. + * * @param content the content. */ public void setContent(String content) { this.content = content; } - + /** - * Get the mime type of the content you are attaching. For example, - * “text/plain” or “text/html”. + * Get the mime type of the content you are attaching. For example, “text/plain” or “text/html”. + * * @return the mime type. */ - @JsonProperty("type") + @JsonProperty("type") public String getType() { return type; } - + /** * Set the mime type of the content. + * * @param type the mime type. */ public void setType(String type) { @@ -74,38 +80,39 @@ public void setType(String type) { /** * Get the filename for this attachment. + * * @return the file name. */ - @JsonProperty("filename") + @JsonProperty("filename") public String getFilename() { return filename; } - + /** * Set the filename for this attachment. + * * @param filename the filename. */ public void setFilename(String filename) { this.filename = filename; } - + /** - * Get the content-disposition of the attachment specifying - * how you would like the attachment to be displayed. - * For example, “inline” results in the attached file - * being displayed automatically within the message - * while “attachment” results in the attached file - * requiring some action to be taken before it is - * displayed (e.g. opening or downloading the file). + * Get the content-disposition of the attachment specifying how you would like the attachment to + * be displayed. For example, “inline” results in the attached file being displayed automatically + * within the message while “attachment” results in the attached file requiring some action to be + * taken before it is displayed (e.g. opening or downloading the file). + * * @return the disposition. */ - @JsonProperty("disposition") + @JsonProperty("disposition") public String getDisposition() { return disposition; } - + /** * Set the content-disposition of the attachment. + * * @param disposition the disposition. */ public void setDisposition(String disposition) { @@ -113,19 +120,19 @@ public void setDisposition(String disposition) { } /** - * Get the attachment content ID. This is used when the - * disposition is set to “inline” and the attachment - * is an image, allowing the file to be displayed within - * the body of your email. + * Get the attachment content ID. This is used when the disposition is set to “inline” and the + * attachment is an image, allowing the file to be displayed within the body of your email. + * * @return the content ID. */ - @JsonProperty("content_id") + @JsonProperty("content_id") public String getContentId() { return contentId; } - + /** * Set the content ID. + * * @param contentId the content ID. */ public void setContentId(String contentId) { @@ -148,6 +155,7 @@ public static class Builder { /** * Construct a new attachment builder. + * * @param fileName the filename to include. * @param content an input stream for the content. * @throws IllegalArgumentException in case either the fileName or the content is null. @@ -167,6 +175,7 @@ public Builder(String fileName, InputStream content) { /** * Construct a new attachment builder. + * * @param fileName the filename to include. * @param content an input string for the content. * @throws IllegalArgumentException in case either the fileName or the content is null. @@ -187,7 +196,7 @@ public Builder(String fileName, String content) { private String encodeToBase64(InputStream content) { int read = 0; byte[] bytes = new byte[BYTE_BUFFER_SIZE]; - try(ByteArrayOutputStream baos = new ByteArrayOutputStream()) { + try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { while ((read = content.read(bytes)) != -1) { baos.write(bytes, 0, read); } @@ -200,6 +209,7 @@ private String encodeToBase64(InputStream content) { /** * Set the type of this attachment builder. + * * @param type the attachment type. */ public Builder withType(String type) { @@ -209,6 +219,7 @@ public Builder withType(String type) { /** * Set the disposition of this attachment builder. + * * @param disposition the disposition. */ public Builder withDisposition(String disposition) { @@ -218,6 +229,7 @@ public Builder withDisposition(String disposition) { /** * Set the content ID of this attachment builder. + * * @param contentId the content ID. */ public Builder withContentId(String contentId) { @@ -253,38 +265,51 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } Attachments other = (Attachments) obj; if (content == null) { - if (other.content != null) + if (other.content != null) { return false; - } else if (!content.equals(other.content)) + } + } else if (!content.equals(other.content)) { return false; + } if (contentId == null) { - if (other.contentId != null) + if (other.contentId != null) { return false; - } else if (!contentId.equals(other.contentId)) + } + } else if (!contentId.equals(other.contentId)) { return false; + } if (disposition == null) { - if (other.disposition != null) + if (other.disposition != null) { return false; - } else if (!disposition.equals(other.disposition)) + } + } else if (!disposition.equals(other.disposition)) { return false; + } if (filename == null) { - if (other.filename != null) + if (other.filename != null) { return false; - } else if (!filename.equals(other.filename)) + } + } else if (!filename.equals(other.filename)) { return false; + } if (type == null) { - if (other.type != null) + if (other.type != null) { return false; - } else if (!type.equals(other.type)) + } + } else if (!type.equals(other.type)) { return false; + } return true; } } diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java index f43803f1..68d7a535 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/BccSettings.java @@ -5,14 +5,17 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * This object allows you to have a blind carbon copy - * automatically sent to the specified email address - * for every email that is sent. + * This object allows you to have a blind carbon copy automatically sent to the specified email + * address for every email that is sent. */ @JsonInclude(Include.NON_EMPTY) public class BccSettings { - @JsonProperty("enable") private boolean enable; - @JsonProperty("email") private String email; + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("email") + private String email; @JsonProperty("enable") public boolean getEnable() { @@ -43,20 +46,26 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } BccSettings other = (BccSettings) obj; if (email == null) { - if (other.email != null) + if (other.email != null) { return false; - } else if (!email.equals(other.email)) + } + } else if (!email.equals(other.email)) { return false; - if (enable != other.enable) + } + if (enable != other.enable) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java index ee12fc07..13ce3f13 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/ClickTrackingSetting.java @@ -5,28 +5,32 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Settings to determine how you would like to track the - * metrics of how your recipients interact with your email. + * Settings to determine how you would like to track the metrics of how your recipients interact + * with your email. */ @JsonInclude(Include.NON_EMPTY) public class ClickTrackingSetting { - @JsonProperty("enable") private boolean enable; - @JsonProperty("enable_text") private boolean enableText; - + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("enable_text") + private boolean enableText; + @JsonProperty("enable") public boolean getEnable() { return enable; } - + public void setEnable(boolean enable) { this.enable = enable; } - + @JsonProperty("enable_text") public boolean getEnableText() { return enableText; - } - + } + public void setEnableText(boolean enableText) { this.enableText = enableText; } @@ -42,17 +46,22 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } ClickTrackingSetting other = (ClickTrackingSetting) obj; - if (enable != other.enable) + if (enable != other.enable) { return false; - if (enableText != other.enableText) + } + if (enableText != other.enableText) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java index 0a7a6557..329cf285 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java @@ -3,22 +3,21 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Arrays; import java.util.Collections; -import java.util.HashSet; import java.util.List; -import java.util.Set; import java.util.regex.Pattern; -import java.lang.IllegalArgumentException; /** - * An object in which you may specify the content of your email. + * An object in which you may specify the content of your email. */ @JsonInclude(Include.NON_DEFAULT) public class Content { - @JsonProperty("type") private String type; - @JsonProperty("value") private String value; + + @JsonProperty("type") + private String type; + + @JsonProperty("value") + private String value; public Content() { return; @@ -59,34 +58,42 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } Content other = (Content) obj; if (type == null) { - if (other.type != null) + if (other.type != null) { return false; - } else if (!type.equals(other.type)) + } + } else if (!type.equals(other.type)) { return false; + } if (value == null) { - if (other.value != null) + if (other.value != null) { return false; - } else if (!value.equals(other.value)) + } + } else if (!value.equals(other.value)) { return false; + } return true; } } class ContentVerifier { + private static final List FORBIDDEN_PATTERNS = Collections.singletonList( - Pattern.compile(".*SG\\.[a-zA-Z0-9(-|_)]*\\.[a-zA-Z0-9(-|_)]*.*") + Pattern.compile(".*SG\\.[a-zA-Z0-9(-|_)]*\\.[a-zA-Z0-9(-|_)]*.*") ); static void verifyContent(String content) { - for (Pattern pattern: FORBIDDEN_PATTERNS) { + for (Pattern pattern : FORBIDDEN_PATTERNS) { if (pattern.matcher(content).matches()) { throw new IllegalArgumentException("Found a Forbidden Pattern in the content of the email"); } diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Email.java b/src/main/java/com/sendgrid/helpers/mail/objects/Email.java index 537b27b6..37e8fbcf 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Email.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Email.java @@ -6,8 +6,12 @@ @JsonInclude(Include.NON_DEFAULT) public class Email { - @JsonProperty("name") private String name; - @JsonProperty("email") private String email; + + @JsonProperty("name") + private String name; + + @JsonProperty("email") + private String email; public Email() { return; @@ -51,23 +55,30 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } Email other = (Email) obj; if (email == null) { - if (other.email != null) + if (other.email != null) { return false; - } else if (!email.equals(other.email)) + } + } else if (!email.equals(other.email)) { return false; + } if (name == null) { - if (other.name != null) + if (other.name != null) { return false; - } else if (!name.equals(other.name)) + } + } else if (!name.equals(other.name)) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java index 905436ed..6ec12eb2 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/FooterSetting.java @@ -5,15 +5,20 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * An object representing the default footer - * that you would like included on every email. + * An object representing the default footer that you would like included on every email. */ @JsonInclude(Include.NON_EMPTY) public class FooterSetting { - @JsonProperty("enable") private boolean enable; - @JsonProperty("text") private String text; - @JsonProperty("html") private String html; - + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("text") + private String text; + + @JsonProperty("html") + private String html; + @JsonProperty("enable") public boolean getEnable() { return enable; @@ -22,16 +27,16 @@ public boolean getEnable() { public void setEnable(boolean enable) { this.enable = enable; } - + @JsonProperty("text") public String getText() { return text; } - + public void setText(String text) { this.text = text; } - + @JsonProperty("html") public String getHtml() { return html; @@ -53,25 +58,33 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } FooterSetting other = (FooterSetting) obj; - if (enable != other.enable) + if (enable != other.enable) { return false; + } if (html == null) { - if (other.html != null) + if (other.html != null) { return false; - } else if (!html.equals(other.html)) + } + } else if (!html.equals(other.html)) { return false; + } if (text == null) { - if (other.text != null) + if (other.text != null) { return false; - } else if (!text.equals(other.text)) + } + } else if (!text.equals(other.text)) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java index a01d4df6..e8f12f70 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/GoogleAnalyticsSetting.java @@ -9,22 +9,34 @@ */ @JsonInclude(Include.NON_EMPTY) public class GoogleAnalyticsSetting { - @JsonProperty("enable") private boolean enable; - @JsonProperty("utm_source") private String campaignSource; - @JsonProperty("utm_term") private String campaignTerm; - @JsonProperty("utm_content") private String campaignContent; - @JsonProperty("utm_campaign") private String campaignName; - @JsonProperty("utm_medium") private String campaignMedium; - + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("utm_source") + private String campaignSource; + + @JsonProperty("utm_term") + private String campaignTerm; + + @JsonProperty("utm_content") + private String campaignContent; + + @JsonProperty("utm_campaign") + private String campaignName; + + @JsonProperty("utm_medium") + private String campaignMedium; + @JsonProperty("enable") public boolean getEnable() { return enable; } - + public void setEnable(boolean enable) { this.enable = enable; } - + @JsonProperty("utm_source") public String getCampaignSource() { return campaignSource; @@ -33,7 +45,7 @@ public String getCampaignSource() { public void setCampaignSource(String campaignSource) { this.campaignSource = campaignSource; } - + @JsonProperty("utm_term") public String getCampaignTerm() { return campaignTerm; @@ -42,30 +54,30 @@ public String getCampaignTerm() { public void setCampaignTerm(String campaignTerm) { this.campaignTerm = campaignTerm; } - + @JsonProperty("utm_content") public String getCampaignContent() { return campaignContent; } - + public void setCampaignContent(String campaignContent) { this.campaignContent = campaignContent; } - + @JsonProperty("utm_campaign") public String getCampaignName() { return campaignName; } - + public void setCampaignName(String campaignName) { this.campaignName = campaignName; } - + @JsonProperty("utm_medium") public String getCampaignMedium() { return campaignMedium; } - + public void setCampaignMedium(String campaignMedium) { this.campaignMedium = campaignMedium; } @@ -85,40 +97,54 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } GoogleAnalyticsSetting other = (GoogleAnalyticsSetting) obj; if (campaignContent == null) { - if (other.campaignContent != null) + if (other.campaignContent != null) { return false; - } else if (!campaignContent.equals(other.campaignContent)) + } + } else if (!campaignContent.equals(other.campaignContent)) { return false; + } if (campaignMedium == null) { - if (other.campaignMedium != null) + if (other.campaignMedium != null) { return false; - } else if (!campaignMedium.equals(other.campaignMedium)) + } + } else if (!campaignMedium.equals(other.campaignMedium)) { return false; + } if (campaignName == null) { - if (other.campaignName != null) + if (other.campaignName != null) { return false; - } else if (!campaignName.equals(other.campaignName)) + } + } else if (!campaignName.equals(other.campaignName)) { return false; + } if (campaignSource == null) { - if (other.campaignSource != null) + if (other.campaignSource != null) { return false; - } else if (!campaignSource.equals(other.campaignSource)) + } + } else if (!campaignSource.equals(other.campaignSource)) { return false; + } if (campaignTerm == null) { - if (other.campaignTerm != null) + if (other.campaignTerm != null) { return false; - } else if (!campaignTerm.equals(other.campaignTerm)) + } + } else if (!campaignTerm.equals(other.campaignTerm)) { return false; - if (enable != other.enable) + } + if (enable != other.enable) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java index 5175642c..bd239880 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java @@ -5,18 +5,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * An object representing a collection of different mail - * settings that you can use to specify how you would - * like this email to be handled. + * An object representing a collection of different mail settings that you can use to specify how + * you would like this email to be handled. */ @JsonInclude(Include.NON_DEFAULT) public class MailSettings { - @JsonProperty("bcc") private BccSettings bccSettings; - @JsonProperty("bypass_list_management") private Setting bypassListManagement; - @JsonProperty("footer") private FooterSetting footerSetting; - @JsonProperty("sandbox_mode") private Setting sandBoxMode; - @JsonProperty("spam_check") private SpamCheckSetting spamCheckSetting; + + @JsonProperty("bcc") + private BccSettings bccSettings; + + @JsonProperty("bypass_list_management") + private Setting bypassListManagement; + + @JsonProperty("footer") + private FooterSetting footerSetting; + + @JsonProperty("sandbox_mode") + private Setting sandBoxMode; + + @JsonProperty("spam_check") + private SpamCheckSetting spamCheckSetting; @JsonProperty("bcc") public BccSettings getBccSettings() { @@ -25,6 +34,7 @@ public BccSettings getBccSettings() { /** * Set the BCC settings. + * * @param bccSettings the BCC settings. */ public void setBccSettings(BccSettings bccSettings) { @@ -32,11 +42,10 @@ public void setBccSettings(BccSettings bccSettings) { } /** - * A setting that allows you to bypass all unsubscribe - * groups and suppressions to ensure that the email is - * delivered to every single recipient. This should only - * be used in emergencies when it is absolutely necessary - * that every recipient receives your email. + * A setting that allows you to bypass all unsubscribe groups and suppressions to ensure that the + * email is delivered to every single recipient. This should only be used in emergencies when it + * is absolutely necessary that every recipient receives your email. + * * @return the bypass list setting. */ @@ -51,6 +60,7 @@ public void setBypassListManagement(Setting bypassListManagement) { /** * Get the the footer settings that you would like included on every email. + * * @return the setting. */ @@ -61,6 +71,7 @@ public FooterSetting getFooterSetting() { /** * Set the the footer settings that you would like included on every email. + * * @param footerSetting the setting. */ public void setFooterSetting(FooterSetting footerSetting) { @@ -68,8 +79,9 @@ public void setFooterSetting(FooterSetting footerSetting) { } /** - * Get sandbox mode. This allows you to send a test email to - * ensure that your request body is valid and formatted correctly. + * Get sandbox mode. This allows you to send a test email to ensure that your request body is + * valid and formatted correctly. + * * @return the sandbox mode setting. */ @@ -80,6 +92,7 @@ public Setting getSandBoxMode() { /** * Set sandbox mode. + * * @param sandBoxMode the sandbox mode setting. */ @JsonProperty("sandbox_mode") @@ -88,8 +101,8 @@ public void setSandboxMode(Setting sandBoxMode) { } /** - * Get the spam check setting. This allows you to test the - * content of your email for spam. + * Get the spam check setting. This allows you to test the content of your email for spam. + * * @return the spam check setting. */ @@ -99,8 +112,8 @@ public SpamCheckSetting getSpamCheck() { } /** - * Set the spam check setting. This allows you to test the - * content of your email for spam. + * Set the spam check setting. This allows you to test the content of your email for spam. + * * @param spamCheckSetting the spam check setting. */ @@ -113,7 +126,8 @@ public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((bccSettings == null) ? 0 : bccSettings.hashCode()); - result = prime * result + ((bypassListManagement == null) ? 0 : bypassListManagement.hashCode()); + result = + prime * result + ((bypassListManagement == null) ? 0 : bypassListManagement.hashCode()); result = prime * result + ((footerSetting == null) ? 0 : footerSetting.hashCode()); result = prime * result + ((sandBoxMode == null) ? 0 : sandBoxMode.hashCode()); result = prime * result + ((spamCheckSetting == null) ? 0 : spamCheckSetting.hashCode()); @@ -122,38 +136,51 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } MailSettings other = (MailSettings) obj; if (bccSettings == null) { - if (other.bccSettings != null) + if (other.bccSettings != null) { return false; - } else if (!bccSettings.equals(other.bccSettings)) + } + } else if (!bccSettings.equals(other.bccSettings)) { return false; + } if (bypassListManagement == null) { - if (other.bypassListManagement != null) + if (other.bypassListManagement != null) { return false; - } else if (!bypassListManagement.equals(other.bypassListManagement)) + } + } else if (!bypassListManagement.equals(other.bypassListManagement)) { return false; + } if (footerSetting == null) { - if (other.footerSetting != null) + if (other.footerSetting != null) { return false; - } else if (!footerSetting.equals(other.footerSetting)) + } + } else if (!footerSetting.equals(other.footerSetting)) { return false; + } if (sandBoxMode == null) { - if (other.sandBoxMode != null) + if (other.sandBoxMode != null) { return false; - } else if (!sandBoxMode.equals(other.sandBoxMode)) + } + } else if (!sandBoxMode.equals(other.sandBoxMode)) { return false; + } if (spamCheckSetting == null) { - if (other.spamCheckSetting != null) + if (other.spamCheckSetting != null) { return false; - } else if (!spamCheckSetting.equals(other.spamCheckSetting)) + } + } else if (!spamCheckSetting.equals(other.spamCheckSetting)) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java index e4497d9c..a44cb8d8 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/OpenTrackingSetting.java @@ -5,30 +5,33 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * An open tracking settings object. This allows you to track - * whether the email was opened or not, but including a single - * pixel image in the body of the content. When the pixel is - * loaded, we can log that the email was opened. + * An open tracking settings object. This allows you to track whether the email was opened or not, + * but including a single pixel image in the body of the content. When the pixel is loaded, we can + * log that the email was opened. */ @JsonInclude(Include.NON_EMPTY) public class OpenTrackingSetting { - @JsonProperty("enable") private boolean enable; - @JsonProperty("substitution_tag") private String substitutionTag; - + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("substitution_tag") + private String substitutionTag; + @JsonProperty("enable") public boolean getEnable() { return enable; } - + public void setEnable(boolean enable) { this.enable = enable; } - + @JsonProperty("substitution_tag") public String getSubstitutionTag() { return substitutionTag; } - + public void setSubstitutionTag(String substitutionTag) { this.substitutionTag = substitutionTag; } @@ -44,21 +47,27 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } OpenTrackingSetting other = (OpenTrackingSetting) obj; - if (enable != other.enable) + if (enable != other.enable) { return false; + } if (substitutionTag == null) { - if (other.substitutionTag != null) + if (other.substitutionTag != null) { return false; - } else if (!substitutionTag.equals(other.substitutionTag)) + } + } else if (!substitutionTag.equals(other.substitutionTag)) { return false; + } return true; } - + } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index 9a91db5d..82cb3de3 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -3,29 +3,47 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; - -import java.util.Collections; import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @JsonInclude(Include.NON_DEFAULT) public class Personalization { - @JsonProperty("to") private List tos; - @JsonProperty("cc") private List ccs; - @JsonProperty("bcc") private List bccs; - @JsonProperty("subject") private String subject; - @JsonProperty("headers") private Map headers; - @JsonProperty("substitutions") private Map substitutions; - @JsonProperty("custom_args") private Map customArgs; - @JsonProperty("dynamic_template_data") private Map dynamicTemplateData; - @JsonProperty("send_at") private long sendAt; + + @JsonProperty("to") + private List tos; + + @JsonProperty("cc") + private List ccs; + + @JsonProperty("bcc") + private List bccs; + + @JsonProperty("subject") + private String subject; + + @JsonProperty("headers") + private Map headers; + + @JsonProperty("substitutions") + private Map substitutions; + + @JsonProperty("custom_args") + private Map customArgs; + + @JsonProperty("dynamic_template_data") + private Map dynamicTemplateData; + + @JsonProperty("send_at") + private long sendAt; @JsonProperty("to") public List getTos() { - if(tos == null) - return Collections.emptyList(); + if (tos == null) { + return Collections.emptyList(); + } return tos; } @@ -43,8 +61,9 @@ public void addTo(Email email) { @JsonProperty("cc") public List getCcs() { - if(ccs == null) - return Collections.emptyList(); + if (ccs == null) { + return Collections.emptyList(); + } return ccs; } @@ -62,8 +81,9 @@ public void addCc(Email email) { @JsonProperty("bcc") public List getBccs() { - if(bccs == null) - return Collections.emptyList(); + if (bccs == null) { + return Collections.emptyList(); + } return bccs; } @@ -89,15 +109,16 @@ public void setSubject(String subject) { } @JsonProperty("headers") - public Map getHeaders() { - if(headers == null) - return Collections.emptyMap(); + public Map getHeaders() { + if (headers == null) { + return Collections.emptyMap(); + } return headers; } public void addHeader(String key, String value) { if (headers == null) { - headers = new HashMap(); + headers = new HashMap(); headers.put(key, value); } else { headers.put(key, value); @@ -105,15 +126,16 @@ public void addHeader(String key, String value) { } @JsonProperty("substitutions") - public Map getSubstitutions() { - if(substitutions == null) - return Collections.emptyMap(); + public Map getSubstitutions() { + if (substitutions == null) { + return Collections.emptyMap(); + } return substitutions; } public void addSubstitution(String key, String value) { if (substitutions == null) { - substitutions = new HashMap(); + substitutions = new HashMap(); substitutions.put(key, value); } else { substitutions.put(key, value); @@ -121,15 +143,16 @@ public void addSubstitution(String key, String value) { } @JsonProperty("custom_args") - public Map getCustomArgs() { - if(customArgs == null) - return Collections.emptyMap(); + public Map getCustomArgs() { + if (customArgs == null) { + return Collections.emptyMap(); + } return customArgs; } public void addCustomArg(String key, String value) { if (customArgs == null) { - customArgs = new HashMap(); + customArgs = new HashMap(); customArgs.put(key, value); } else { customArgs.put(key, value); @@ -146,14 +169,14 @@ public void setSendAt(long sendAt) { } @JsonProperty("dynamic_template_data") - public Map getDynamicTemplateData() { + public Map getDynamicTemplateData() { return dynamicTemplateData == null - ? Collections.emptyMap() : dynamicTemplateData; + ? Collections.emptyMap() : dynamicTemplateData; } public void addDynamicTemplateData(String key, Object value) { if (dynamicTemplateData == null) { - dynamicTemplateData = new HashMap(); + dynamicTemplateData = new HashMap(); } dynamicTemplateData.put(key, value); } @@ -175,50 +198,68 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } Personalization other = (Personalization) obj; if (bccs == null) { - if (other.bccs != null) + if (other.bccs != null) { return false; - } else if (!bccs.equals(other.bccs)) + } + } else if (!bccs.equals(other.bccs)) { return false; + } if (ccs == null) { - if (other.ccs != null) + if (other.ccs != null) { return false; - } else if (!ccs.equals(other.ccs)) + } + } else if (!ccs.equals(other.ccs)) { return false; + } if (customArgs == null) { - if (other.customArgs != null) + if (other.customArgs != null) { return false; - } else if (!customArgs.equals(other.customArgs)) + } + } else if (!customArgs.equals(other.customArgs)) { return false; + } if (headers == null) { - if (other.headers != null) + if (other.headers != null) { return false; - } else if (!headers.equals(other.headers)) + } + } else if (!headers.equals(other.headers)) { return false; - if (sendAt != other.sendAt) + } + if (sendAt != other.sendAt) { return false; + } if (subject == null) { - if (other.subject != null) + if (other.subject != null) { return false; - } else if (!subject.equals(other.subject)) + } + } else if (!subject.equals(other.subject)) { return false; + } if (substitutions == null) { - if (other.substitutions != null) + if (other.substitutions != null) { return false; - } else if (!substitutions.equals(other.substitutions)) + } + } else if (!substitutions.equals(other.substitutions)) { return false; + } if (tos == null) { - if (other.tos != null) + if (other.tos != null) { return false; - } else if (!tos.equals(other.tos)) + } + } else if (!tos.equals(other.tos)) { return false; + } return true; } } diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java index 45bef3bb..84a26b0f 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java @@ -6,7 +6,9 @@ @JsonInclude(Include.NON_DEFAULT) public class Setting { - @JsonProperty("enable") private boolean enable; + + @JsonProperty("enable") + private boolean enable; @JsonProperty("enable") public boolean getEnable() { @@ -27,15 +29,19 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } Setting other = (Setting) obj; - if (enable != other.enable) + if (enable != other.enable) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java index d2cd79c1..b0939bdb 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SpamCheckSetting.java @@ -5,38 +5,43 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A setting object that allows you to test the content of - * your email for spam. + * A setting object that allows you to test the content of your email for spam. */ @JsonInclude(Include.NON_EMPTY) public class SpamCheckSetting { - @JsonProperty("enable") private boolean enable; - @JsonProperty("threshold") private int spamThreshold; - @JsonProperty("post_to_url") private String postToUrl; + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("threshold") + private int spamThreshold; + + @JsonProperty("post_to_url") + private String postToUrl; @JsonProperty("enable") public boolean getEnable() { return enable; } - + public void setEnable(boolean enable) { this.enable = enable; } - + @JsonProperty("threshold") public int getSpamThreshold() { return spamThreshold; } - + public void setSpamThreshold(int spamThreshold) { this.spamThreshold = spamThreshold; } - + @JsonProperty("post_to_url") public String getPostToUrl() { return postToUrl; } - + public void setPostToUrl(String postToUrl) { this.postToUrl = postToUrl; } @@ -53,22 +58,29 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } SpamCheckSetting other = (SpamCheckSetting) obj; - if (enable != other.enable) + if (enable != other.enable) { return false; + } if (postToUrl == null) { - if (other.postToUrl != null) + if (other.postToUrl != null) { return false; - } else if (!postToUrl.equals(other.postToUrl)) + } + } else if (!postToUrl.equals(other.postToUrl)) { return false; - if (spamThreshold != other.spamThreshold) + } + if (spamThreshold != other.spamThreshold) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java index 6c438cc9..fe0f102e 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/SubscriptionTrackingSetting.java @@ -5,50 +5,56 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A subscription tracking setting object. Subscription tracking - * allows you to insert a subscription management link at the - * bottom of the text and html bodies of your email. If you - * would like to specify the location of the link within your - * email, you may use the substitution_tag. + * A subscription tracking setting object. Subscription tracking allows you to insert a subscription + * management link at the bottom of the text and html bodies of your email. If you would like to + * specify the location of the link within your email, you may use the substitution_tag. */ @JsonInclude(Include.NON_EMPTY) public class SubscriptionTrackingSetting { - @JsonProperty("enable") private boolean enable; - @JsonProperty("text") private String text; - @JsonProperty("html") private String html; - @JsonProperty("substitution_tag") private String substitutionTag; - + + @JsonProperty("enable") + private boolean enable; + + @JsonProperty("text") + private String text; + + @JsonProperty("html") + private String html; + + @JsonProperty("substitution_tag") + private String substitutionTag; + @JsonProperty("enable") public boolean getEnable() { return enable; } - + public void setEnable(boolean enable) { this.enable = enable; } - + @JsonProperty("text") public String getText() { return text; } - + public void setText(String text) { this.text = text; } - + @JsonProperty("html") public String getHtml() { return html; - } + } public void setHtml(String html) { this.html = html; } - + @JsonProperty("substitution_tag") public String getSubstitutionTag() { return substitutionTag; - } + } public void setSubstitutionTag(String substitutionTag) { this.substitutionTag = substitutionTag; @@ -67,30 +73,40 @@ public int hashCode() { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } SubscriptionTrackingSetting other = (SubscriptionTrackingSetting) obj; - if (enable != other.enable) + if (enable != other.enable) { return false; + } if (html == null) { - if (other.html != null) + if (other.html != null) { return false; - } else if (!html.equals(other.html)) + } + } else if (!html.equals(other.html)) { return false; + } if (substitutionTag == null) { - if (other.substitutionTag != null) + if (other.substitutionTag != null) { return false; - } else if (!substitutionTag.equals(other.substitutionTag)) + } + } else if (!substitutionTag.equals(other.substitutionTag)) { return false; + } if (text == null) { - if (other.text != null) + if (other.text != null) { return false; - } else if (!text.equals(other.text)) + } + } else if (!text.equals(other.text)) { return false; + } return true; } } \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java index 981875c8..08a9b411 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/TrackingSettings.java @@ -6,43 +6,52 @@ @JsonInclude(Include.NON_DEFAULT) public class TrackingSettings { - @JsonProperty("click_tracking") private ClickTrackingSetting clickTrackingSetting; - @JsonProperty("open_tracking") private OpenTrackingSetting openTrackingSetting; - @JsonProperty("subscription_tracking") private SubscriptionTrackingSetting subscriptionTrackingSetting; - @JsonProperty("ganalytics") private GoogleAnalyticsSetting googleAnalyticsSetting; + + @JsonProperty("click_tracking") + private ClickTrackingSetting clickTrackingSetting; + + @JsonProperty("open_tracking") + private OpenTrackingSetting openTrackingSetting; + + @JsonProperty("subscription_tracking") + private SubscriptionTrackingSetting subscriptionTrackingSetting; + + @JsonProperty("ganalytics") + private GoogleAnalyticsSetting googleAnalyticsSetting; @JsonProperty("click_tracking") public ClickTrackingSetting getClickTrackingSetting() { return clickTrackingSetting; } - + public void setClickTrackingSetting(ClickTrackingSetting clickTrackingSetting) { this.clickTrackingSetting = clickTrackingSetting; } - + @JsonProperty("open_tracking") public OpenTrackingSetting getOpenTrackingSetting() { return openTrackingSetting; } - + public void setOpenTrackingSetting(OpenTrackingSetting openTrackingSetting) { this.openTrackingSetting = openTrackingSetting; } - + @JsonProperty("subscription_tracking") public SubscriptionTrackingSetting getSubscriptionTrackingSetting() { return subscriptionTrackingSetting; } - - public void setSubscriptionTrackingSetting(SubscriptionTrackingSetting subscriptionTrackingSetting) { + + public void setSubscriptionTrackingSetting( + SubscriptionTrackingSetting subscriptionTrackingSetting) { this.subscriptionTrackingSetting = subscriptionTrackingSetting; } - + @JsonProperty("ganalytics") public GoogleAnalyticsSetting getGoogleAnalyticsSetting() { return googleAnalyticsSetting; } - + public void setGoogleAnalyticsSetting(GoogleAnalyticsSetting googleAnalyticsSetting) { this.googleAnalyticsSetting = googleAnalyticsSetting; } @@ -51,42 +60,56 @@ public void setGoogleAnalyticsSetting(GoogleAnalyticsSetting googleAnalyticsSett public int hashCode() { final int prime = 31; int result = 1; - result = prime * result + ((clickTrackingSetting == null) ? 0 : clickTrackingSetting.hashCode()); - result = prime * result + ((googleAnalyticsSetting == null) ? 0 : googleAnalyticsSetting.hashCode()); + result = + prime * result + ((clickTrackingSetting == null) ? 0 : clickTrackingSetting.hashCode()); + result = + prime * result + ((googleAnalyticsSetting == null) ? 0 : googleAnalyticsSetting.hashCode()); result = prime * result + ((openTrackingSetting == null) ? 0 : openTrackingSetting.hashCode()); - result = prime * result + ((subscriptionTrackingSetting == null) ? 0 : subscriptionTrackingSetting.hashCode()); + result = prime * result + ((subscriptionTrackingSetting == null) ? 0 + : subscriptionTrackingSetting.hashCode()); return result; } @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } TrackingSettings other = (TrackingSettings) obj; if (clickTrackingSetting == null) { - if (other.clickTrackingSetting != null) + if (other.clickTrackingSetting != null) { return false; - } else if (!clickTrackingSetting.equals(other.clickTrackingSetting)) + } + } else if (!clickTrackingSetting.equals(other.clickTrackingSetting)) { return false; + } if (googleAnalyticsSetting == null) { - if (other.googleAnalyticsSetting != null) + if (other.googleAnalyticsSetting != null) { return false; - } else if (!googleAnalyticsSetting.equals(other.googleAnalyticsSetting)) + } + } else if (!googleAnalyticsSetting.equals(other.googleAnalyticsSetting)) { return false; + } if (openTrackingSetting == null) { - if (other.openTrackingSetting != null) + if (other.openTrackingSetting != null) { return false; - } else if (!openTrackingSetting.equals(other.openTrackingSetting)) + } + } else if (!openTrackingSetting.equals(other.openTrackingSetting)) { return false; + } if (subscriptionTrackingSetting == null) { - if (other.subscriptionTrackingSetting != null) + if (other.subscriptionTrackingSetting != null) { return false; - } else if (!subscriptionTrackingSetting.equals(other.subscriptionTrackingSetting)) + } + } else if (!subscriptionTrackingSetting.equals(other.subscriptionTrackingSetting)) { return false; + } return true; } } \ No newline at end of file diff --git a/src/test/java/com/sendgrid/LicenseTest.java b/src/test/java/com/sendgrid/LicenseTest.java index 493458e6..96bf096c 100644 --- a/src/test/java/com/sendgrid/LicenseTest.java +++ b/src/test/java/com/sendgrid/LicenseTest.java @@ -1,27 +1,28 @@ package com.sendgrid; -import org.junit.Assert; -import org.junit.Test; - import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Calendar; +import org.junit.Assert; +import org.junit.Test; public class LicenseTest { - @Test - public void testLicenseShouldHaveCorrectYear() throws IOException { - String copyrightText = null; - try (BufferedReader br = new BufferedReader(new FileReader("./LICENSE.md"))) { - for (String line; (line = br.readLine()) != null; ) { - if (line.startsWith("Copyright")) { - copyrightText = line; - break; - } - } + @Test + public void testLicenseShouldHaveCorrectYear() throws IOException { + String copyrightText = null; + try (BufferedReader br = new BufferedReader(new FileReader("./LICENSE.md"))) { + for (String line; (line = br.readLine()) != null; ) { + if (line.startsWith("Copyright")) { + copyrightText = line; + break; } - String expectedCopyright = String.format("Copyright (C) %d, Twilio SendGrid, Inc. ", Calendar.getInstance().get(Calendar.YEAR)); - Assert.assertEquals("License has incorrect year", copyrightText, expectedCopyright); + } } + String expectedCopyright = String + .format("Copyright (C) %d, Twilio SendGrid, Inc. ", + Calendar.getInstance().get(Calendar.YEAR)); + Assert.assertEquals("License has incorrect year", copyrightText, expectedCopyright); + } } diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 1873be71..d72909e3 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -1,20 +1,21 @@ package com.sendgrid; -import org.junit.Assert; -import org.junit.Test; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; import java.io.IOException; import java.util.HashMap; import java.util.Map; -import static org.mockito.Mockito.*; +import org.junit.Assert; +import org.junit.Test; public class SendGridTest { private final String SENDGRID_API_KEY = ""; - public Map buildDefaultHeaders() { + private Map buildDefaultHeaders() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Map requestHeaders = new HashMap(); + Map requestHeaders = new HashMap(); requestHeaders.put("Authorization", "Bearer " + SENDGRID_API_KEY); String USER_AGENT = "sendgrid/" + sg.getLibraryVersion() + ";java"; requestHeaders.put("User-agent", USER_AGENT); @@ -27,7 +28,7 @@ public void testInitialization() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); Assert.assertEquals(sg.getHost(), "api.sendgrid.com"); Assert.assertEquals(sg.getVersion(), "v3"); - Map requestHeaders = buildDefaultHeaders(); + Map requestHeaders = buildDefaultHeaders(); Assert.assertEquals(sg.getRequestHeaders(), requestHeaders); } @@ -56,7 +57,7 @@ public void testVersion() { @Test public void testRequestHeaders() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Map requestHeaders = buildDefaultHeaders(); + Map requestHeaders = buildDefaultHeaders(); sg.addRequestHeader("Test", "one"); requestHeaders.put("Test", "one"); @@ -93,7 +94,7 @@ public void testRateLimitSleep() { public void test_async() { final Object sync = new Object(); SendGrid sg = null; - if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { + if (System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { sg = new SendGrid("SENDGRID_API_KEY"); sg.setHost(System.getenv("MOCK_HOST")); } else { @@ -111,7 +112,7 @@ public void test_async() { @Override public void error(Exception e) { Assert.fail(); - synchronized(sync) { + synchronized (sync) { sync.notify(); } } @@ -119,17 +120,17 @@ public void error(Exception e) { @Override public void response(Response response) { Assert.assertEquals(200, response.getStatusCode()); - synchronized(sync) { + synchronized (sync) { sync.notify(); } } }); try { - synchronized(sync) { + synchronized (sync) { sync.wait(2000); } - } catch(InterruptedException ex) { + } catch (InterruptedException ex) { Assert.fail(ex.toString()); } } @@ -138,7 +139,7 @@ public void response(Response response) { public void test_async_rate_limit() { final Object sync = new Object(); SendGrid sg = null; - if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { + if (System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { sg = new SendGrid("SENDGRID_API_KEY"); sg.setHost(System.getenv("MOCK_HOST")); } else { @@ -167,10 +168,10 @@ public void response(Response response) { }); try { - synchronized(sync) { + synchronized (sync) { sync.wait(2000); } - } catch(InterruptedException ex) { + } catch (InterruptedException ex) { Assert.fail(ex.toString()); } } @@ -198,7 +199,8 @@ public void test_access_settings_whitelist_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("access_settings/whitelist"); - request.setBody("{\"ips\":[{\"ip\":\"192.168.1.1\"},{\"ip\":\"192.*.*.*\"},{\"ip\":\"192.168.1.3/32\"}]}"); + request.setBody( + "{\"ips\":[{\"ip\":\"192.168.1.1\"},{\"ip\":\"192.*.*.*\"},{\"ip\":\"192.168.1.3/32\"}]}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -265,7 +267,8 @@ public void test_alerts_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("alerts"); - request.setBody("{\"type\":\"stats_notification\",\"frequency\":\"daily\",\"email_to\":\"example@example.com\"}"); + request.setBody( + "{\"type\":\"stats_notification\",\"frequency\":\"daily\",\"email_to\":\"example@example.com\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -332,7 +335,8 @@ public void test_api_keys_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("api_keys"); - request.setBody("{\"sample\":\"data\",\"scopes\":[\"mail.send\",\"alerts.create\",\"alerts.read\"],\"name\":\"My API Key\"}"); + request.setBody( + "{\"sample\":\"data\",\"scopes\":[\"mail.send\",\"alerts.create\",\"alerts.read\"],\"name\":\"My API Key\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -360,7 +364,8 @@ public void test_api_keys__api_key_id__put() throws IOException { Request request = new Request(); request.setMethod(Method.PUT); request.setEndpoint("api_keys/{api_key_id}"); - request.setBody("{\"scopes\":[\"user.profile.read\",\"user.profile.update\"],\"name\":\"A New Hope\"}"); + request.setBody( + "{\"scopes\":[\"user.profile.read\",\"user.profile.update\"],\"name\":\"A New Hope\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -414,7 +419,8 @@ public void test_asm_groups_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("asm/groups"); - request.setBody("{\"is_default\":true,\"description\":\"Suggestions for products our users might like.\",\"name\":\"Product Suggestions\"}"); + request.setBody( + "{\"is_default\":true,\"description\":\"Suggestions for products our users might like.\",\"name\":\"Product Suggestions\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -442,7 +448,8 @@ public void test_asm_groups__group_id__patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("asm/groups/{group_id}"); - request.setBody("{\"description\":\"Suggestions for items our users might like.\",\"name\":\"Item Suggestions\",\"id\":103}"); + request.setBody( + "{\"description\":\"Suggestions for items our users might like.\",\"name\":\"Item Suggestions\",\"id\":103}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -509,7 +516,8 @@ public void test_asm_groups__group_id__suppressions_search_post() throws IOExcep Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("asm/groups/{group_id}/suppressions/search"); - request.setBody("{\"recipient_emails\":[\"exists1@example.com\",\"exists2@example.com\",\"doesnotexists@example.com\"]}"); + request.setBody( + "{\"recipient_emails\":[\"exists1@example.com\",\"exists2@example.com\",\"doesnotexists@example.com\"]}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -621,7 +629,8 @@ public void test_campaigns_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("campaigns"); - request.setBody("{\"custom_unsubscribe_url\":\"\",\"html_content\":\"

Check out our spring line!

\",\"list_ids\":[110,124],\"sender_id\":124451,\"subject\":\"New Products for Spring!\",\"plain_content\":\"Check out our spring line!\",\"suppression_group_id\":42,\"title\":\"March Newsletter\",\"segment_ids\":[110],\"categories\":[\"spring line\"],\"ip_pool\":\"marketing\"}"); + request.setBody( + "{\"custom_unsubscribe_url\":\"\",\"html_content\":\"

Check out our spring line!

\",\"list_ids\":[110,124],\"sender_id\":124451,\"subject\":\"New Products for Spring!\",\"plain_content\":\"Check out our spring line!\",\"suppression_group_id\":42,\"title\":\"March Newsletter\",\"segment_ids\":[110],\"categories\":[\"spring line\"],\"ip_pool\":\"marketing\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -650,7 +659,8 @@ public void test_campaigns__campaign_id__patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("campaigns/{campaign_id}"); - request.setBody("{\"html_content\":\"

Check out our summer line!

\",\"subject\":\"New Products for Summer!\",\"title\":\"May Newsletter\",\"categories\":[\"summer line\"],\"plain_content\":\"Check out our summer line!\"}"); + request.setBody( + "{\"html_content\":\"

Check out our summer line!

\",\"subject\":\"New Products for Summer!\",\"title\":\"May Newsletter\",\"categories\":[\"summer line\"],\"plain_content\":\"Check out our summer line!\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -1053,7 +1063,8 @@ public void test_contactdb_recipients_patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("contactdb/recipients"); - request.setBody("[{\"first_name\":\"Guy\",\"last_name\":\"Jones\",\"email\":\"jones@example.com\"}]"); + request.setBody( + "[{\"first_name\":\"Guy\",\"last_name\":\"Jones\",\"email\":\"jones@example.com\"}]"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -1067,7 +1078,8 @@ public void test_contactdb_recipients_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("contactdb/recipients"); - request.setBody("[{\"age\":25,\"last_name\":\"User\",\"email\":\"example@example.com\",\"first_name\":\"\"},{\"age\":25,\"last_name\":\"User\",\"email\":\"example2@example.com\",\"first_name\":\"Example\"}]"); + request.setBody( + "[{\"age\":25,\"last_name\":\"User\",\"email\":\"example@example.com\",\"first_name\":\"\"},{\"age\":25,\"last_name\":\"User\",\"email\":\"example2@example.com\",\"first_name\":\"Example\"}]"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -1202,7 +1214,8 @@ public void test_contactdb_segments_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("contactdb/segments"); - request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and_or\":\"\",\"value\":\"Miller\"},{\"operator\":\"gt\",\"field\":\"last_clicked\",\"and_or\":\"and\",\"value\":\"01/02/2015\"},{\"operator\":\"eq\",\"field\":\"clicks.campaign_identifier\",\"and_or\":\"or\",\"value\":\"513\"}],\"name\":\"Last Name Miller\",\"list_id\":4}"); + request.setBody( + "{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and_or\":\"\",\"value\":\"Miller\"},{\"operator\":\"gt\",\"field\":\"last_clicked\",\"and_or\":\"and\",\"value\":\"01/02/2015\"},{\"operator\":\"eq\",\"field\":\"clicks.campaign_identifier\",\"and_or\":\"or\",\"value\":\"513\"}],\"name\":\"Last Name Miller\",\"list_id\":4}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -1229,7 +1242,8 @@ public void test_contactdb_segments__segment_id__patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("contactdb/segments/{segment_id}"); - request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and_or\":\"\",\"value\":\"Miller\"}],\"name\":\"The Millers\",\"list_id\":5}"); + request.setBody( + "{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and_or\":\"\",\"value\":\"Miller\"}],\"name\":\"The Millers\",\"list_id\":5}"); request.addQueryParam("segment_id", "test_string"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); @@ -1541,7 +1555,8 @@ public void test_mail_send_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("mail/send"); - request.setBody("{\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\"[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"from\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"attachments\":[{\"name\":\"file1\",\"filename\":\"file1.jpg\",\"content\":\"[BASE64 encoded content block here]\",\"disposition\":\"inline\",\"content_id\":\"ii_139db99fdb5c3704\",\"type\":\"jpg\"}],\"personalizations\":[{\"to\":[{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}],\"cc\":[{\"email\":\"jane.doe@example.com\",\"name\":\"Jane Doe\"}],\"bcc\":[{\"email\":\"sam.doe@example.com\",\"name\":\"Sam Doe\"}],\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\"[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"headers\":{\"X-Accept-Language\":\"en\",\"X-Mailer\":\"MyApp\"},\"send_at\":1409348513,\"substitutions\":{\"type\":\"object\",\"id\":\"substitutions\"},\"subject\":\"Hello, World!\"}],\"subject\":\"Hello, World!\",\"ip_pool_name\":\"[YOUR POOL NAME GOES HERE]\",\"content\":[{\"type\":\"text/html\",\"value\":\"

Hello, world!

\"}],\"headers\":{},\"asm\":{\"groups_to_display\":[1,2,3],\"group_id\":1},\"batch_id\":\"[YOUR BATCH ID GOES HERE]\",\"tracking_settings\":{\"subscription_tracking\":{\"text\":\"If you would like to unsubscribe and stop receiveing these emails <% click here %>.\",\"enable\":true,\"html\":\"If you would like to unsubscribe and stop receiving these emails <% clickhere %>.\",\"substitution_tag\":\"<%click here%>\"},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"%opentrack\"},\"click_tracking\":{\"enable\":true,\"enable_text\":true},\"ganalytics\":{\"utm_campaign\":\"[NAME OF YOUR REFERRER SOURCE]\",\"enable\":true,\"utm_name\":\"[NAME OF YOUR CAMPAIGN]\",\"utm_term\":\"[IDENTIFY PAID KEYWORDS HERE]\",\"utm_content\":\"[USE THIS SPACE TO DIFFERENTIATE YOUR EMAIL FROM ADS]\",\"utm_medium\":\"[NAME OF YOUR MARKETING MEDIUM e.g. email]\"}},\"mail_settings\":{\"footer\":{\"text\":\"Thanks,/n The SendGrid Team\",\"enable\":true,\"html\":\"

Thanks
The SendGrid Team

\"},\"spam_check\":{\"threshold\":3,\"post_to_url\":\"http://example.com/compliance\",\"enable\":true},\"bypass_list_management\":{\"enable\":true},\"sandbox_mode\":{\"enable\":false},\"bcc\":{\"enable\":true,\"email\":\"ben.doe@example.com\"}},\"reply_to\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"sections\":{\"section\":{\":sectionName2\":\"section 2 text\",\":sectionName1\":\"section 1 text\"}},\"template_id\":\"[YOUR TEMPLATE ID GOES HERE]\",\"categories\":[\"category1\",\"category2\"],\"send_at\":1409348513}"); + request.setBody( + "{\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\"[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"from\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"attachments\":[{\"name\":\"file1\",\"filename\":\"file1.jpg\",\"content\":\"[BASE64 encoded content block here]\",\"disposition\":\"inline\",\"content_id\":\"ii_139db99fdb5c3704\",\"type\":\"jpg\"}],\"personalizations\":[{\"to\":[{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}],\"cc\":[{\"email\":\"jane.doe@example.com\",\"name\":\"Jane Doe\"}],\"bcc\":[{\"email\":\"sam.doe@example.com\",\"name\":\"Sam Doe\"}],\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\"[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"headers\":{\"X-Accept-Language\":\"en\",\"X-Mailer\":\"MyApp\"},\"send_at\":1409348513,\"substitutions\":{\"type\":\"object\",\"id\":\"substitutions\"},\"subject\":\"Hello, World!\"}],\"subject\":\"Hello, World!\",\"ip_pool_name\":\"[YOUR POOL NAME GOES HERE]\",\"content\":[{\"type\":\"text/html\",\"value\":\"

Hello, world!

\"}],\"headers\":{},\"asm\":{\"groups_to_display\":[1,2,3],\"group_id\":1},\"batch_id\":\"[YOUR BATCH ID GOES HERE]\",\"tracking_settings\":{\"subscription_tracking\":{\"text\":\"If you would like to unsubscribe and stop receiveing these emails <% click here %>.\",\"enable\":true,\"html\":\"If you would like to unsubscribe and stop receiving these emails <% clickhere %>.\",\"substitution_tag\":\"<%click here%>\"},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"%opentrack\"},\"click_tracking\":{\"enable\":true,\"enable_text\":true},\"ganalytics\":{\"utm_campaign\":\"[NAME OF YOUR REFERRER SOURCE]\",\"enable\":true,\"utm_name\":\"[NAME OF YOUR CAMPAIGN]\",\"utm_term\":\"[IDENTIFY PAID KEYWORDS HERE]\",\"utm_content\":\"[USE THIS SPACE TO DIFFERENTIATE YOUR EMAIL FROM ADS]\",\"utm_medium\":\"[NAME OF YOUR MARKETING MEDIUM e.g. email]\"}},\"mail_settings\":{\"footer\":{\"text\":\"Thanks,/n The SendGrid Team\",\"enable\":true,\"html\":\"

Thanks
The SendGrid Team

\"},\"spam_check\":{\"threshold\":3,\"post_to_url\":\"http://example.com/compliance\",\"enable\":true},\"bypass_list_management\":{\"enable\":true},\"sandbox_mode\":{\"enable\":false},\"bcc\":{\"enable\":true,\"email\":\"ben.doe@example.com\"}},\"reply_to\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"sections\":{\"section\":{\":sectionName2\":\"section 2 text\",\":sectionName1\":\"section 1 text\"}},\"template_id\":\"[YOUR TEMPLATE ID GOES HERE]\",\"categories\":[\"category1\",\"category2\"],\"send_at\":1409348513}"); Response response = sg.api(request); Assert.assertEquals(202, response.getStatusCode()); } @@ -1887,7 +1902,8 @@ public void test_senders_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("senders"); - request.setBody("{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"); + request.setBody( + "{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -1914,7 +1930,8 @@ public void test_senders__sender_id__patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("senders/{sender_id}"); - request.setBody("{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"); + request.setBody( + "{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -1985,7 +2002,8 @@ public void test_subusers_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("subusers"); - request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\":\"John@example.com\"}"); + request.setBody( + "{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\":\"John@example.com\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -2217,7 +2235,8 @@ public void test_suppression_blocks_delete() throws IOException { Request request = new Request(); request.setMethod(Method.DELETE); request.setEndpoint("suppression/blocks"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + request.setBody( + "{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); Response response = sg.api(request); Assert.assertEquals(204, response.getStatusCode()); } @@ -2272,7 +2291,8 @@ public void test_suppression_bounces_delete() throws IOException { Request request = new Request(); request.setMethod(Method.DELETE); request.setEndpoint("suppression/bounces"); - request.setBody("{\"emails\":[\"example@example.com\",\"example2@example.com\"],\"delete_all\":true}"); + request.setBody( + "{\"emails\":[\"example@example.com\",\"example2@example.com\"],\"delete_all\":true}"); Response response = sg.api(request); Assert.assertEquals(204, response.getStatusCode()); } @@ -2330,7 +2350,8 @@ public void test_suppression_invalid_emails_delete() throws IOException { Request request = new Request(); request.setMethod(Method.DELETE); request.setEndpoint("suppression/invalid_emails"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + request.setBody( + "{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); Response response = sg.api(request); Assert.assertEquals(204, response.getStatusCode()); } @@ -2413,7 +2434,8 @@ public void test_suppression_spam_reports_delete() throws IOException { Request request = new Request(); request.setMethod(Method.DELETE); request.setEndpoint("suppression/spam_reports"); - request.setBody("{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); + request.setBody( + "{\"emails\":[\"example1@example.com\",\"example2@example.com\"],\"delete_all\":false}"); Response response = sg.api(request); Assert.assertEquals(204, response.getStatusCode()); } @@ -2511,7 +2533,8 @@ public void test_templates__template_id__versions_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("templates/{template_id}/versions"); - request.setBody("{\"name\":\"example_version_name\",\"html_content\":\"<%body%>\",\"plain_content\":\"<%body%>\",\"active\":1,\"template_id\":\"ddb96bbc-9b92-425e-8979-99464621b543\",\"subject\":\"<%subject%>\"}"); + request.setBody( + "{\"name\":\"example_version_name\",\"html_content\":\"<%body%>\",\"plain_content\":\"<%body%>\",\"active\":1,\"template_id\":\"ddb96bbc-9b92-425e-8979-99464621b543\",\"subject\":\"<%subject%>\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -2525,7 +2548,8 @@ public void test_templates__template_id__versions__version_id__patch() throws IO Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("templates/{template_id}/versions/{version_id}"); - request.setBody("{\"active\":1,\"html_content\":\"<%body%>\",\"subject\":\"<%subject%>\",\"name\":\"updated_example_name\",\"plain_content\":\"<%body%>\"}"); + request.setBody( + "{\"active\":1,\"html_content\":\"<%body%>\",\"subject\":\"<%subject%>\",\"name\":\"updated_example_name\",\"plain_content\":\"<%body%>\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -2557,7 +2581,8 @@ public void test_templates__template_id__versions__version_id__delete() throws I } @Test - public void test_templates__template_id__versions__version_id__activate_post() throws IOException { + public void test_templates__template_id__versions__version_id__activate_post() + throws IOException { SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); sg.setHost("localhost:4010"); sg.addRequestHeader("X-Mock", "200"); @@ -2620,7 +2645,8 @@ public void test_tracking_settings_google_analytics_patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("tracking_settings/google_analytics"); - request.setBody("{\"utm_campaign\":\"website\",\"utm_term\":\"\",\"utm_content\":\"\",\"enabled\":true,\"utm_source\":\"sendgrid.com\",\"utm_medium\":\"email\"}"); + request.setBody( + "{\"utm_campaign\":\"website\",\"utm_term\":\"\",\"utm_content\":\"\",\"enabled\":true,\"utm_source\":\"sendgrid.com\",\"utm_medium\":\"email\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -2674,7 +2700,8 @@ public void test_tracking_settings_subscription_patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("tracking_settings/subscription"); - request.setBody("{\"url\":\"url\",\"html_content\":\"html content\",\"enabled\":true,\"landing\":\"landing page html\",\"replace\":\"replacement tag\",\"plain_content\":\"text content\"}"); + request.setBody( + "{\"url\":\"url\",\"html_content\":\"html content\",\"enabled\":true,\"landing\":\"landing page html\",\"replace\":\"replacement tag\",\"plain_content\":\"text content\"}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -2916,7 +2943,8 @@ public void test_user_webhooks_event_settings_patch() throws IOException { Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("user/webhooks/event/settings"); - request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"); + request.setBody( + "{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -2957,7 +2985,8 @@ public void test_user_webhooks_parse_settings_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("user/webhooks/parse/settings"); - request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam_check\":true}"); + request.setBody( + "{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam_check\":true}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -2984,7 +3013,8 @@ public void test_user_webhooks_parse_settings__hostname__patch() throws IOExcept Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("user/webhooks/parse/settings/{hostname}"); - request.setBody("{\"url\":\"http://newdomain.com/parse\",\"send_raw\":true,\"spam_check\":false}"); + request + .setBody("{\"url\":\"http://newdomain.com/parse\",\"send_raw\":true,\"spam_check\":false}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @@ -3042,7 +3072,8 @@ public void test_whitelabel_domains_post() throws IOException { Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("whitelabel/domains"); - request.setBody("{\"automatic_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"); + request.setBody( + "{\"automatic_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"); Response response = sg.api(request); Assert.assertEquals(201, response.getStatusCode()); } @@ -3409,7 +3440,7 @@ public void test_whitelabel_links__link_id__subuser_post() throws IOException { @Test public void test_add_impersonate_subuser() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - + sg.addImpersonateSubuser("subusername"); Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), "subusername"); } @@ -3417,22 +3448,22 @@ public void test_add_impersonate_subuser() { @Test public void test_remove_impersonate_subuser() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - + sg.addImpersonateSubuser("subusername"); Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), "subusername"); sg.removeImpersonateSubuser(); Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), null); } - + @Test public void test_get_impersonate_subuser() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - + sg.addImpersonateSubuser("subusername"); Assert.assertEquals(sg.getImpersonateSubuser(), "subusername"); - + sg.removeImpersonateSubuser(); Assert.assertEquals(sg.getImpersonateSubuser(), null); - } + } } diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index bb5dd46c..62eda186 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -1,94 +1,108 @@ package com.sendgrid; -import org.junit.Test; +import static org.junit.Assert.assertTrue; import java.io.File; - -import static org.junit.Assert.assertTrue; +import org.junit.Test; public class TestRequiredFilesExist { - // ./Docker or docker/Docker - @Test public void checkDockerExists() { - boolean dockerExists = new File("./Dockerfile").exists() || + // ./Docker or docker/Docker + @Test + public void checkDockerExists() { + boolean dockerExists = new File("./Dockerfile").exists() || new File("./docker/Dockerfile").exists(); - assertTrue(dockerExists); - } - - // // ./docker-compose.yml or ./docker/docker-compose.yml - // @Test public void checkDockerComposeExists() { - // boolean dockerComposeExists = new File("./docker-compose.yml").exists() || - // new File("./docker/docker-compose.yml").exists(); - // assertTrue(dockerComposeExists); - // } - - // ./.env_sample - @Test public void checkEnvSampleExists() { - assertTrue(new File("./.env_sample").exists()); - } - - // ./.gitignore - @Test public void checkGitIgnoreExists() { - assertTrue(new File("./.gitignore").exists()); - } - - // ./.travis.yml - @Test public void checkTravisExists() { - assertTrue(new File("./.travis.yml").exists()); - } - - // ./.codeclimate.yml - @Test public void checkCodeClimateExists() { - assertTrue(new File("./.codeclimate.yml").exists()); - } - - // ./CHANGELOG.md - @Test public void checkChangelogExists() { - assertTrue(new File("./CHANGELOG.md").exists()); - } - - // ./CODE_OF_CONDUCT.md - @Test public void checkCodeOfConductExists() { - assertTrue(new File("./CODE_OF_CONDUCT.md").exists()); - } - - // ./CONTRIBUTING.md - @Test public void checkContributingGuideExists() { - assertTrue(new File("./CONTRIBUTING.md").exists()); - } - - // ./ISSUE_TEMPLATE.md - @Test public void checkIssuesTemplateExists() { - assertTrue(new File("./ISSUE_TEMPLATE.md").exists()); - } - - // ./LICENSE.md - @Test public void checkLicenseExists() { - assertTrue(new File("./LICENSE.md").exists()); - } - - // ./PULL_REQUEST_TEMPLATE.md - @Test public void checkPullRequestExists() { - assertTrue(new File("./PULL_REQUEST_TEMPLATE.md").exists()); - } - - // ./README.md - @Test public void checkReadMeExists() { - assertTrue(new File("./README.md").exists()); - } - - // ./TROUBLESHOOTING.md - @Test public void checkTroubleShootingGuideExists() { - assertTrue(new File("./TROUBLESHOOTING.md").exists()); - } - - // ./USAGE.md - @Test public void checkUsageGuideExists() { - assertTrue(new File("./USAGE.md").exists()); - } - - // ./USE_CASES.md - @Test public void checkUseCases() { - assertTrue(new File("./USE_CASES.md").exists()); - } + assertTrue(dockerExists); + } + + // // ./docker-compose.yml or ./docker/docker-compose.yml + // @Test public void checkDockerComposeExists() { + // boolean dockerComposeExists = new File("./docker-compose.yml").exists() || + // new File("./docker/docker-compose.yml").exists(); + // assertTrue(dockerComposeExists); + // } + + // ./.env_sample + @Test + public void checkEnvSampleExists() { + assertTrue(new File("./.env_sample").exists()); + } + + // ./.gitignore + @Test + public void checkGitIgnoreExists() { + assertTrue(new File("./.gitignore").exists()); + } + + // ./.travis.yml + @Test + public void checkTravisExists() { + assertTrue(new File("./.travis.yml").exists()); + } + + // ./.codeclimate.yml + @Test + public void checkCodeClimateExists() { + assertTrue(new File("./.codeclimate.yml").exists()); + } + + // ./CHANGELOG.md + @Test + public void checkChangelogExists() { + assertTrue(new File("./CHANGELOG.md").exists()); + } + + // ./CODE_OF_CONDUCT.md + @Test + public void checkCodeOfConductExists() { + assertTrue(new File("./CODE_OF_CONDUCT.md").exists()); + } + + // ./CONTRIBUTING.md + @Test + public void checkContributingGuideExists() { + assertTrue(new File("./CONTRIBUTING.md").exists()); + } + + // ./ISSUE_TEMPLATE.md + @Test + public void checkIssuesTemplateExists() { + assertTrue(new File("./ISSUE_TEMPLATE.md").exists()); + } + + // ./LICENSE.md + @Test + public void checkLicenseExists() { + assertTrue(new File("./LICENSE.md").exists()); + } + + // ./PULL_REQUEST_TEMPLATE.md + @Test + public void checkPullRequestExists() { + assertTrue(new File("./PULL_REQUEST_TEMPLATE.md").exists()); + } + + // ./README.md + @Test + public void checkReadMeExists() { + assertTrue(new File("./README.md").exists()); + } + + // ./TROUBLESHOOTING.md + @Test + public void checkTroubleShootingGuideExists() { + assertTrue(new File("./TROUBLESHOOTING.md").exists()); + } + + // ./USAGE.md + @Test + public void checkUsageGuideExists() { + assertTrue(new File("./USAGE.md").exists()); + } + + // ./USE_CASES.md + @Test + public void checkUseCases() { + assertTrue(new File("./USE_CASES.md").exists()); + } } From 3712a8fb9fe7cc10ee31a7a0cd0abb77a29a5d7e Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Mon, 24 Feb 2020 10:40:49 -0600 Subject: [PATCH 111/288] chore: fix JDK Travis failures (#610) --- .travis.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e697df3..60f39a58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,23 @@ language: java before_install: - - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import || true + - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true matrix: include: - - name: 'OpenJDK 7' - jdk: openjdk7 - - name: 'OpenJDK 8' - jdk: openjdk8 - - name: 'Oracle JDK 7' - jdk: oraclejdk7 - - name: 'Oracle JDK 8' - jdk: oraclejdk8 - - name: 'OpenJDK 11' - jdk: openjdk11 + - jdk: openjdk7 + dist: trusty + - jdk: openjdk8 + dist: xenial + - jdk: openjdk11 + dist: xenial + - jdk: oraclejdk7 + dist: precise + - jdk: oraclejdk8 + dist: trusty + - jdk: oraclejdk11 + dist: trusty allow_failures: - - name: 'Oracle JDK 8' # See https://travis-ci.community/t/expected-feature-release-number-in-range-of-9-to-12-but-got-8-installing-oraclejdk8/1345/14 - - name: 'OpenJDK 7' - - name: 'Oracle JDK 7' - - name: 'OpenJDK 11' + - jdk: openjdk7 + - jdk: oraclejdk7 before_script: - "./scripts/startPrism.sh &" - sleep 20 From d274ed2cad9db4ca8387aba1d2669e1929af7e18 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 Mar 2020 19:00:25 +0000 Subject: [PATCH 112/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51d5926e..c9ccea9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-03-18] Version 4.4.6 +-------------------------- +**Library - Docs** +- [PR #264](https://github.com/sendgrid/sendgrid-java/pull/264): Overhaul javadocs, using Oracle's styleguide. Thanks to [@jamierocks](https://github.com/jamierocks)! + +**Library - Chore** +- [PR #610](https://github.com/sendgrid/sendgrid-java/pull/610): fix JDK Travis failures. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-02-19] Version 4.4.5 -------------------------- **Library - Docs** From d84a9dde1cd1f45a2e8f8a0b0de87cbe0c113af4 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 Mar 2020 19:31:08 +0000 Subject: [PATCH 113/288] Release 4.4.6 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bf38a9d1..fe93aed2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.5/sendgrid-4.4.5-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.5/sendgrid-4.4.5-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.6/sendgrid-4.4.6-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.6/sendgrid-4.4.6-jar.jar:. Example ``` diff --git a/README.md b/README.md index 8ccf389a..1b19bb63 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.5' + implementation 'com.sendgrid:sendgrid-java:4.4.6' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.5/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.6/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 84dd9b68..7083e094 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.5 + 4.4.6 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.5 + 4.4.6
From b476d4ce62eec9bc7164da98a14c3ee00c0fb2d0 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Wed, 18 Mar 2020 17:23:05 -0500 Subject: [PATCH 114/288] fix: correct the serialization of Setting to include non-null values (#612) --- .../java/com/sendgrid/helpers/mail/objects/Setting.java | 4 ++-- .../helpers/mail/objects/SettingsSerializationTest.java | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java index 45bef3bb..fd21bcb5 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Setting.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -@JsonInclude(Include.NON_DEFAULT) +@JsonInclude(Include.NON_NULL) public class Setting { @JsonProperty("enable") private boolean enable; @@ -38,4 +38,4 @@ public boolean equals(Object obj) { return false; return true; } -} \ No newline at end of file +} diff --git a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java index 27878162..2f7d47c2 100644 --- a/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java +++ b/src/test/java/com/sendgrid/helpers/mail/objects/SettingsSerializationTest.java @@ -15,6 +15,15 @@ public class SettingsSerializationTest { private ObjectMapper mapper = new ObjectMapper(); + @Test + public void testSettingSerialization() throws Exception { + Setting setting = new Setting(); + setting.setEnable(false); + + String json = mapper.writeValueAsString(setting); + Assert.assertEquals(json, "{\"enable\":false}"); + } + @Test public void testOpenTrackingSettingSerialization() throws Exception { OpenTrackingSetting setting = new OpenTrackingSetting(); From 5741ac8fd9cada32227ddd1e5c39e1e10ce4d021 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Wed, 25 Mar 2020 15:55:34 -0700 Subject: [PATCH 115/288] docs: fix link to jar file (#615) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b19bb63..fbc6943a 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/v4.4.6/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.4.6/sendgrid-java.jar) ## Dependencies From 76f5328f2448c21ceb841bcf15dde4e0ac0188db Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 31 Mar 2020 10:08:11 -0500 Subject: [PATCH 116/288] docs: support verbiage for login issues (#617) Added support verbiage for login issues due to several recent github issues being opened. --- TROUBLESHOOTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 452d5c59..ed1090d1 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -1,3 +1,5 @@ +If you have an issue logging into your Twilio SendGrid account, please read this [document](https://sendgrid.com/docs/ui/account-and-settings/troubleshooting-login/). For any questions regarding login issues, please contact our [support team](https://support.sendgrid.com). + If you have a non-library SendGrid issue, please contact our [support team](https://support.sendgrid.com). If you can't find a solution below, please open an [issue](https://github.com/sendgrid/sendgrid-java/issues). From 86a727d317ea15ee9799a42478392f344781af11 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 1 Apr 2020 19:04:48 +0000 Subject: [PATCH 117/288] [Librarian] Version Bump --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9ccea9f..aca526c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-04-01] Version 4.4.7 +-------------------------- +**Library - Docs** +- [PR #617](https://github.com/sendgrid/sendgrid-java/pull/617): support verbiage for login issues. Thanks to [@adamchasetaylor](https://github.com/adamchasetaylor)! +- [PR #615](https://github.com/sendgrid/sendgrid-java/pull/615): fix link to jar file. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + +**Library - Fix** +- [PR #612](https://github.com/sendgrid/sendgrid-java/pull/612): correct the serialization of Setting to include non-null values. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-03-18] Version 4.4.6 -------------------------- **Library - Docs** From 9a2aacb8193b309f5ebd55770c47bd46e351e4cc Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 1 Apr 2020 19:39:10 +0000 Subject: [PATCH 118/288] Release 4.4.7 --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fe93aed2..8717c9f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.6/sendgrid-4.4.6-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.6/sendgrid-4.4.6-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.7/sendgrid-4.4.7-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.7/sendgrid-4.4.7-jar.jar:. Example ``` diff --git a/README.md b/README.md index fbc6943a..c7a65489 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 40,000 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.4.7 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.6' + implementation 'com.sendgrid:sendgrid-java:4.4.7' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.4.6/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.4.7/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 7083e094..ca133ec4 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.6 + 4.4.7 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.6 + 4.4.7
From 46192aa1729cd431d0d96f180fdf50084ae130c4 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Fri, 3 Apr 2020 13:51:20 -0500 Subject: [PATCH 119/288] fix: correct the User-Agent casing (#618) --- src/main/java/com/sendgrid/SendGrid.java | 6 +++--- src/test/java/com/sendgrid/SendGridTest.java | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index 3c27b313..e746bcfd 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -79,7 +79,7 @@ public void initializeSendGrid(String apiKey) { this.version = "v3"; this.requestHeaders = new HashMap(); this.requestHeaders.put("Authorization", "Bearer " + apiKey); - this.requestHeaders.put("User-agent", USER_AGENT); + this.requestHeaders.put("User-Agent", USER_AGENT); this.requestHeaders.put("Accept", "application/json"); this.rateLimitRetry = 5; this.rateLimitSleep = 1100; @@ -157,7 +157,7 @@ public void setHost(String host) { } /** - * Get the maximum number of retries on a rate limit response. + * Get the maximum number of retries on a rate limit response. * The default is 5. * @return the number of retries on a rate limit. */ @@ -214,7 +214,7 @@ public void removeImpersonateSubuser() { * @return the impersonated subuser */ public String getImpersonateSubuser() { - return this.subuser; + return this.subuser; } /** diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 1873be71..92c0b4a2 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -17,7 +17,7 @@ public Map buildDefaultHeaders() { Map requestHeaders = new HashMap(); requestHeaders.put("Authorization", "Bearer " + SENDGRID_API_KEY); String USER_AGENT = "sendgrid/" + sg.getLibraryVersion() + ";java"; - requestHeaders.put("User-agent", USER_AGENT); + requestHeaders.put("User-Agent", USER_AGENT); requestHeaders.put("Accept", "application/json"); return requestHeaders; } @@ -3409,7 +3409,7 @@ public void test_whitelabel_links__link_id__subuser_post() throws IOException { @Test public void test_add_impersonate_subuser() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - + sg.addImpersonateSubuser("subusername"); Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), "subusername"); } @@ -3417,21 +3417,21 @@ public void test_add_impersonate_subuser() { @Test public void test_remove_impersonate_subuser() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - + sg.addImpersonateSubuser("subusername"); Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), "subusername"); sg.removeImpersonateSubuser(); Assert.assertEquals(sg.getRequestHeaders().get("on-behalf-of"), null); } - + @Test public void test_get_impersonate_subuser() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - + sg.addImpersonateSubuser("subusername"); Assert.assertEquals(sg.getImpersonateSubuser(), "subusername"); - + sg.removeImpersonateSubuser(); Assert.assertEquals(sg.getImpersonateSubuser(), null); } From 9c456d105d48868efad2698f847ed2d63fd3cbea Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Fri, 3 Apr 2020 15:27:48 -0500 Subject: [PATCH 120/288] chore: update Travis CI Slack notifications --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 60f39a58..09ee97fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,3 +31,11 @@ deploy: tags: true jdk: openjdk8 branch: master + +notifications: + slack: + if: branch = master + on_success: never + on_failure: change + rooms: + - secure: q2SEemDXFLu/2G2I7oD02+YsM5Q0G27j+b4P1BcReWqVHhRz9L+iyuYWhIXJ6hW0omL5V2XrZ65uqb4f/SD7b89oXRGToVxfykrBzcas1tqIIp9lldd1u2eMc59zALX4nkTlE0T4UFLwEvoeY8aXoD/dNytSy6M2F5c2nYcmoN0= From d098bfb8f1dc531440512797079045670a7d58ec Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Mon, 6 Apr 2020 11:09:16 -0500 Subject: [PATCH 121/288] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 09ee97fb..db96dad8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ deploy: notifications: slack: if: branch = master + on_pull_requests: false on_success: never on_failure: change rooms: From 22944b7c0a1b5e15533acad8abc2764b239facf8 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Wed, 8 Apr 2020 16:17:09 -0500 Subject: [PATCH 122/288] docs: cleanup support/help/contact information --- CONTRIBUTING.md | 2 -- README.md | 6 +++--- docker/README.md | 6 ------ docker/USAGE.md | 7 ------- pom.xml | 4 ++-- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8717c9f8..189c719f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -216,5 +216,3 @@ Please run your code through: ## Code Reviews If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, GitHub has some great information on how to review a Pull Request. - -If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo. diff --git a/README.md b/README.md index c7a65489..d3f1c22c 100644 --- a/README.md +++ b/README.md @@ -229,11 +229,11 @@ Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-java # About -sendgrid-java is guided and supported by the Twilio Developer Experience Team. +sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of Twilio SendGrid, Inc. -Please email the Developer Experience Team [here](mailto:dx@sendgrid.com) in case of any queries. +If you need help installing or using the library, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com). -sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of Twilio SendGrid, Inc. +If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo! # License diff --git a/docker/README.md b/docker/README.md index db653dd1..dccc98cf 100644 --- a/docker/README.md +++ b/docker/README.md @@ -28,10 +28,4 @@ Due to Oracle's JDK license, you must build this Docker image using the official For more detailed information, see [USAGE.md](https://github.com/sendgrid/sendgrid-java/blob/master/docker/USAGE.md). -# About - -sendgrid-java is guided and supported by the Twilio Developer Experience Team. - -sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of SendGrid, Inc. - ![SendGrid Logo](https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png) diff --git a/docker/USAGE.md b/docker/USAGE.md index fe894b24..dab8ed36 100644 --- a/docker/USAGE.md +++ b/docker/USAGE.md @@ -28,12 +28,5 @@ Testing is easy! 2. `cd sendgrid-java` 3. run `./gradlew test` - -# About - -sendgrid-java is guided and supported by the Twilio SendGrid [Developer Experience Team](mailto:dx@sendgrid.com). - -sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of Twilio SendGrid, Inc. - ![SendGrid Logo](https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png) diff --git a/pom.xml b/pom.xml index ca133ec4..a132c77c 100644 --- a/pom.xml +++ b/pom.xml @@ -265,7 +265,7 @@ thinkingserious Elmer Thomas - dx@sendgrid.com + ethomas@twilio.com https://sendgrid.com @@ -304,4 +304,4 @@ test - \ No newline at end of file + From 8cc09c56aad10da84d79c858e584035bda491b83 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 15 Apr 2020 19:16:06 +0000 Subject: [PATCH 123/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aca526c8..2dc16ffc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-04-15] Version 4.4.8 +-------------------------- +**Library - Fix** +- [PR #618](https://github.com/sendgrid/sendgrid-java/pull/618): correct the User-Agent casing. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-04-01] Version 4.4.7 -------------------------- **Library - Docs** From 2bd232a7d3ce5652dae13b3d5bcc0b02cd77f248 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 15 Apr 2020 19:27:47 +0000 Subject: [PATCH 124/288] Release 4.4.8 --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- pom.xml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 189c719f..7b6b97a3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.7/sendgrid-4.4.7-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.7/sendgrid-4.4.7-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.4.8/sendgrid-4.4.8-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.8/sendgrid-4.4.8-jar.jar:. Example ``` diff --git a/README.md b/README.md index d3f1c22c..d5d5e5ff 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.4.7 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.4.8 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.7' + implementation 'com.sendgrid:sendgrid-java:4.4.8' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.4.7/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.4.8/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index a132c77c..3463b417 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.7 + 4.4.8 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.7 + 4.4.8 @@ -304,4 +304,4 @@ test - + \ No newline at end of file From 180d408519c626a7fbaf9b1816161c653e96b877 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Tue, 5 May 2020 19:56:52 -0500 Subject: [PATCH 125/288] feat: add support for Twilio Email (#621) --- USE_CASES.md | 83 +++-- src/main/java/com/sendgrid/BaseInterface.java | 343 ++++++++++++++++++ src/main/java/com/sendgrid/SendGrid.java | 296 +-------------- src/main/java/com/sendgrid/SendGridAPI.java | 91 ++--- src/main/java/com/sendgrid/TwilioEmail.java | 50 +++ .../java/com/sendgrid/TwilioEmailTest.java | 29 ++ 6 files changed, 530 insertions(+), 362 deletions(-) create mode 100644 src/main/java/com/sendgrid/BaseInterface.java create mode 100644 src/main/java/com/sendgrid/TwilioEmail.java create mode 100644 src/test/java/com/sendgrid/TwilioEmailTest.java diff --git a/USE_CASES.md b/USE_CASES.md index a77c941e..520825d6 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -5,8 +5,9 @@ This documentation provides examples for specific use cases. Please [open an iss * [Transactional Templates](#transactional-templates) * [Legacy Templates](#legacy-templates) * [How to Setup a Domain Authentication](#domain-authentication) -* [How to View Email Statistics](#email-stats) -* [Send a SMS Message](#sms) +* [How to View Email Statistics](#how-to-view-email-statistics) +* [Send an Email With Twilio Email (Pilot)](#send-an-email-with-twilio-email-pilot) +* [Send an SMS Message](#send-an-sms-message) # Transactional Templates @@ -225,84 +226,92 @@ You can find documentation for how to setup a domain authentication via the UI [ Find more information about all of Twilio SendGrid's authentication related documentation [here](https://sendgrid.com/docs/ui/account-and-settings/). - # How to View Email Statistics You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](https://github.com/sendgrid/sendgrid-java/blob/master/USAGE.md#stats). Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as Twilio SendGrid processes your email. - -# Send a SMS Message +# Send an Email With Twilio Email (Pilot) -Following are the steps to add Twilio SMS to your app: - -## 1. Obtain a Free Twilio Account +### 1. Obtain a Free Twilio Account Sign up for a free Twilio account [here](https://www.twilio.com/try-twilio?source=sendgrid-java). -## 2. Update Your Environment Variables +### 2. Set Up Your Environment Variables + +The Twilio API allows for authentication using with either an API key/secret or your Account SID/Auth Token. You can create an API key [here](https://twil.io/get-api-key) or obtain your Account SID and Auth Token [here](https://twil.io/console). -You can obtain your Account Sid and Auth Token from [twilio.com/console](https://twilio.com/console). +Once you have those, follow the steps below based on your operating system. -### Mac +#### Linux/Mac ```bash +echo "export TWILIO_API_KEY='YOUR_TWILIO_API_KEY'" > twilio.env +echo "export TWILIO_API_SECRET='YOUR_TWILIO_API_SECRET'" >> twilio.env + +# or + echo "export TWILIO_ACCOUNT_SID='YOUR_TWILIO_ACCOUNT_SID'" > twilio.env echo "export TWILIO_AUTH_TOKEN='YOUR_TWILIO_AUTH_TOKEN'" >> twilio.env +``` + +Then: + +```bash echo "twilio.env" >> .gitignore source ./twilio.env ``` -### Windows +#### Windows Temporarily set the environment variable (accessible only during the current CLI session): ```bash +set TWILIO_API_KEY=YOUR_TWILIO_API_KEY +set TWILIO_API_SECRET=YOUR_TWILIO_API_SECRET + +: or + set TWILIO_ACCOUNT_SID=YOUR_TWILIO_ACCOUNT_SID set TWILIO_AUTH_TOKEN=YOUR_TWILIO_AUTH_TOKEN ``` -Permanently set the environment variable (accessible in all subsequent CLI sessions): +Or permanently set the environment variable (accessible in all subsequent CLI sessions): ```bash +setx TWILIO_API_KEY "YOUR_TWILIO_API_KEY" +setx TWILIO_API_SECRET "YOUR_TWILIO_API_SECRET" + +: or + setx TWILIO_ACCOUNT_SID "YOUR_TWILIO_ACCOUNT_SID" setx TWILIO_AUTH_TOKEN "YOUR_TWILIO_AUTH_TOKEN" ``` -## 3. Install the Twilio Helper Library +### 3. Initialize the Twilio Email Client -`twilio-java` uses Maven. At present the jars *are* available from a public [maven](http://mvnrepository.com/artifact/com.twilio.sdk/twilio) repository. +```java +TwilioEmail mailClient = new TwilioEmail(System.getenv("TWILIO_API_KEY"), System.getenv("TWILIO_API_SECRET")); -Use the following dependency in your project to grab via Maven: +// or -```xml - - com.twilio.sdk - twilio - 7.X.X - compile - +TwilioEmail mailClient = new TwilioEmail(System.getenv("TWILIO_ACCOUNT_SID"), System.getenv("TWILIO_AUTH_TOKEN")); ``` -or Gradle: -```groovy -compile "com.twilio.sdk:twilio:7.X.X" -```` +This client has the same interface as the `SendGrid` client. -If you want to compile it yourself, here is how: +# Send an SMS Message -```bash -$ git clone git@github.com:twilio/twilio-java -$ cd twilio-java -$ mvn install # Requires maven, download from http://maven.apache.org/download.html -``` +First, follow the above steps for creating a Twilio account and setting up environment variables with the proper credentials. + +Then, install the Twilio Helper Library by following the [installation steps](https://github.com/twilio/twilio-java#installation). -Then, you can execute the following code. +Finally, send a message. ```java -String accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID"); -String authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN"); +String accountSid = System.getenv("TWILIO_ACCOUNT_SID"); +String authToken = System.getenv("TWILIO_AUTH_TOKEN"); Twilio.init(accountSid, authToken); @@ -315,4 +324,4 @@ Message message = Message.creator( System.out.println(message.getSid()); ``` -For more information, please visit the [Twilio SMS Java documentation](https://www.twilio.com/docs/sms/quickstart/java). \ No newline at end of file +For more information, please visit the [Twilio SMS Java documentation](https://www.twilio.com/docs/sms/quickstart/java). diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java new file mode 100644 index 00000000..0b87b528 --- /dev/null +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -0,0 +1,343 @@ +package com.sendgrid; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +/** + * This class is the base interface to the Twilio SendGrid Web API. + */ +public abstract class BaseInterface implements SendGridAPI { + + private static final String VERSION = "3.0.0"; + + private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; + private static final int RATE_LIMIT_RESPONSE_CODE = 429; + private static final int THREAD_POOL_SIZE = 8; + + private ExecutorService pool; + + /** + * The host to which to connect. + */ + private String host; + + /** + * The API version. + */ + private String version; + + /** + * The HTTP client. + */ + private Client client; + + /** + * The request headers container. + */ + private Map requestHeaders; + + /** + * The number of times to try after a rate limit. + */ + private int rateLimitRetry; + + /** + * The number of milliseconds to sleep between retries. + */ + private int rateLimitSleep; + + /** + * The subuser to be impersonated. + */ + private String subuser; + + /** + * Construct a new API wrapper. + */ + public BaseInterface() { + this.client = new Client(); + } + + /** + * Construct a new API wrapper. + * + * @param test is true if you are unit testing + */ + public BaseInterface(final Boolean test) { + this.client = new Client(test); + } + + /** + * Construct a new API wrapper. + * + * @param client the Client to use (allows to customize its configuration) + */ + public BaseInterface(final Client client) { + this.client = client; + } + + /** + * Initialize the client. + * + * @param auth authorization header value + * @param host the base URL for the API + */ + public void initialize(final String auth, final String host) { + this.host = host; + this.version = "v3"; + this.requestHeaders = new HashMap<>(); + this.requestHeaders.put("Authorization", auth); + this.requestHeaders.put("User-Agent", USER_AGENT); + this.requestHeaders.put("Accept", "application/json"); + this.rateLimitRetry = 5; + this.rateLimitSleep = 1100; + + this.pool = Executors.newFixedThreadPool(THREAD_POOL_SIZE); + } + + /** + * Get the current library version. + * + * @return the current version + */ + public String getLibraryVersion() { + return VERSION; + } + + /** + * Get the API version. + * + * @return the current API version + */ + public String getVersion() { + return this.version; + } + + /** + * Set the API version. + * + * @param version the new version + */ + public void setVersion(final String version) { + this.version = version; + } + + /** + * Get the request headers. + * + * @return the request headers + */ + public Map getRequestHeaders() { + return this.requestHeaders; + } + + /** + * Add/update a request header. + * + * @param key the header key + * @param value the header value + * @return the new set of request headers + */ + public Map addRequestHeader(final String key, final String value) { + this.requestHeaders.put(key, value); + return getRequestHeaders(); + } + + /** + * Remove a request header. + * + * @param key the header key to remove + * @return the new set of request headers + */ + public Map removeRequestHeader(final String key) { + this.requestHeaders.remove(key); + return getRequestHeaders(); + } + + /** + * Get the host. + * + * @return the host + */ + public String getHost() { + return this.host; + } + + /** + * Set the host. + * + * @param host the new host + */ + public void setHost(final String host) { + this.host = host; + } + + /** + * Get the maximum number of retries on a rate limit response. + * The default is 5. + * + * @return the number of retries on a rate limit + */ + public int getRateLimitRetry() { + return this.rateLimitRetry; + } + + /** + * Set the maximum number of retries on a rate limit response. + * + * @param rateLimitRetry the maximum retry count + */ + public void setRateLimitRetry(final int rateLimitRetry) { + this.rateLimitRetry = rateLimitRetry; + } + + /** + * Get the duration of time (in milliseconds) to sleep between + * consecutive rate limit retries. The Twilio SendGrid API enforces + * the rate limit to the second. The default value is 1.1 seconds. + * + * @return the sleep duration + */ + public int getRateLimitSleep() { + return this.rateLimitSleep; + } + + /** + * Set the duration of time (in milliseconds) to sleep between + * consecutive rate limit retries. + * + * @param rateLimitSleep the sleep duration + */ + public void setRateLimitSleep(final int rateLimitSleep) { + this.rateLimitSleep = rateLimitSleep; + } + + /** + * Impersonate subuser for subsequent requests + * + * @param subuser the subuser to be impersonated + */ + public void addImpersonateSubuser(final String subuser) { + this.subuser = subuser; + this.addRequestHeader("on-behalf-of", subuser); + } + + /** + * Stop Impersonating the subuser + */ + public void removeImpersonateSubuser() { + this.subuser = null; + this.removeRequestHeader("on-behalf-of"); + } + + /** + * Get the impersonated subuser or null if empty + * + * @return the impersonated subuser + */ + public String getImpersonateSubuser() { + return this.subuser; + } + + /** + * Makes the call to the Twilio SendGrid API, override this method for testing. + * + * @param request the request to make + * @return the response object + * @throws IOException in case of a network error + */ + public Response makeCall(final Request request) throws IOException { + return client.api(request); + } + + /** + * Class api sets up the request to the Twilio SendGrid API, this is main interface. + * + * @param request the request object + * @return the response object + * @throws IOException in case of a network error + */ + public Response api(final Request request) throws IOException { + final Request req = new Request(); + + req.setMethod(request.getMethod()); + req.setBaseUri(this.host); + req.setEndpoint("/" + version + "/" + request.getEndpoint()); + req.setBody(request.getBody()); + + for (final Map.Entry header : this.requestHeaders.entrySet()) { + req.addHeader(header.getKey(), header.getValue()); + } + + for (final Map.Entry queryParam : request.getQueryParams().entrySet()) { + req.addQueryParam(queryParam.getKey(), queryParam.getValue()); + } + + return makeCall(req); + } + + /** + * Attempt an API call. This method executes the API call asynchronously + * on an internal thread pool. If the call is rate limited, the thread + * will retry up to the maximum configured time. + * + * @param request the API request + */ + public void attempt(final Request request) { + this.attempt(request, new APICallback() { + @Override + public void error(final Exception ex) { + } + + public void response(final Response r) { + } + }); + } + + /** + * Attempt an API call. This method executes the API call asynchronously + * on an internal thread pool. If the call is rate limited, the thread + * will retry up to the maximum configured time. The supplied callback + * will be called in the event of an error, or a successful response. + * + * @param request the API request + * @param callback the callback + */ + public void attempt(final Request request, final APICallback callback) { + this.pool.execute(new Runnable() { + @Override + public void run() { + Response response; + + // Retry until the retry limit has been reached. + for (int i = 0; i < rateLimitRetry; ++i) { + try { + response = api(request); + } catch (IOException ex) { + // Stop retrying if there is a network error. + callback.error(ex); + return; + } + + // We have been rate limited. + if (response.getStatusCode() == RATE_LIMIT_RESPONSE_CODE) { + try { + Thread.sleep(rateLimitSleep); + } catch (InterruptedException ex) { + // Can safely ignore this exception and retry. + } + } else { + callback.response(response); + return; + } + } + + // Retries exhausted. Return error. + callback.error(new RateLimitException(request, rateLimitRetry)); + } + }); + } +} diff --git a/src/main/java/com/sendgrid/SendGrid.java b/src/main/java/com/sendgrid/SendGrid.java index e746bcfd..e30a00f2 100644 --- a/src/main/java/com/sendgrid/SendGrid.java +++ b/src/main/java/com/sendgrid/SendGrid.java @@ -1,311 +1,47 @@ package com.sendgrid; -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; -import java.util.concurrent.Executors; -import java.util.concurrent.ExecutorService; - /** - * Class Twilio SendGrid allows for quick and easy access to the Twilio SendGrid API. - */ -public class SendGrid implements SendGridAPI { - - private static final String VERSION = "3.0.0"; - - /** The user agent string to return to Twilio SendGrid. */ - private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; - private static final int RATE_LIMIT_RESPONSE_CODE = 429; - private static final int THREAD_POOL_SIZE = 8; - - private ExecutorService pool; - - /** The Twilio SendGrid host to which to connect. */ - private String host; - - /** The API version. */ - private String version; - - /** The HTTP client. */ - private Client client; - - /** The request headers container. */ - private Map requestHeaders; - - /** The number of times to try after a rate limit. */ - private int rateLimitRetry; - - /** The number of milliseconds to sleep between retries. */ - private int rateLimitSleep; - - /** The subuser to be impersonated. */ - private String subuser; + * Class Twilio SendGrid allows for quick and easy access to the Twilio SendGrid API. + */ +public class SendGrid extends BaseInterface { /** * Construct a new Twilio SendGrid API wrapper. + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys */ - public SendGrid(String apiKey) { - this.client = new Client(); + public SendGrid(final String apiKey) { initializeSendGrid(apiKey); } /** * Construct a new Twilio SendGrid API wrapper. + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys - * @param test is true if you are unit testing + * @param test is true if you are unit testing */ - public SendGrid(String apiKey, Boolean test) { - this.client = new Client(test); + public SendGrid(final String apiKey, final Boolean test) { + super(test); initializeSendGrid(apiKey); } /** * Construct a new Twilio SendGrid API wrapper. + * * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys * @param client the Client to use (allows to customize its configuration) */ - public SendGrid(String apiKey, Client client) { - this.client = client; + public SendGrid(final String apiKey, final Client client) { + super(client); initializeSendGrid(apiKey); } /** * Initialize the client. - * @param apiKey the user's API key. - */ - public void initializeSendGrid(String apiKey) { - this.host = "api.sendgrid.com"; - this.version = "v3"; - this.requestHeaders = new HashMap(); - this.requestHeaders.put("Authorization", "Bearer " + apiKey); - this.requestHeaders.put("User-Agent", USER_AGENT); - this.requestHeaders.put("Accept", "application/json"); - this.rateLimitRetry = 5; - this.rateLimitSleep = 1100; - - this.pool = Executors.newFixedThreadPool(THREAD_POOL_SIZE); - } - - /** - * Retrieve the current library version. - * @return the current version. - */ - public String getLibraryVersion() { - return this.VERSION; - } - - /** - * Get the API version. - * @return the current API versioin (v3 by default). - */ - public String getVersion() { - return this.version; - } - - /** - * Set the API version. - * @param version the new version. + * + * @param apiKey the user's API key */ - public void setVersion(String version) { - this.version = version; - } - - /** - * Obtain the request headers. - * @return the request headers. - */ - public Map getRequestHeaders() { - return this.requestHeaders; - } - - /** - * Add a new request header. - * @param key the header key. - * @param value the header value. - * @return the new set of request headers. - */ - public Map addRequestHeader(String key, String value) { - this.requestHeaders.put(key, value); - return getRequestHeaders(); - } - - /** - * Remove a request header. - * @param key the header key to remove. - * @return the new set of request headers. - */ - public Map removeRequestHeader(String key) { - this.requestHeaders.remove(key); - return getRequestHeaders(); - } - - /** - * Get the Twilio SendGrid host (api.sendgrid.com by default). - * @return the Twilio SendGrid host. - */ - public String getHost() { - return this.host; - } - - /** - * Set the Twilio SendGrid host. - * @param host the new Twilio SendGrid host. - */ - public void setHost(String host) { - this.host = host; - } - - /** - * Get the maximum number of retries on a rate limit response. - * The default is 5. - * @return the number of retries on a rate limit. - */ - public int getRateLimitRetry() { - return this.rateLimitRetry; - } - - /** - * Set the maximum number of retries on a rate limit response. - * @param rateLimitRetry the maximum retry count. - */ - public void setRateLimitRetry(int rateLimitRetry) { - this.rateLimitRetry = rateLimitRetry; - } - - /** - * Get the duration of time (in milliseconds) to sleep between - * consecutive rate limit retries. The Twilio SendGrid API enforces - * the rate limit to the second. The default value is 1.1 seconds. - * @return the sleep duration. - */ - public int getRateLimitSleep() { - return this.rateLimitSleep; - } - - /** - * Set the duration of time (in milliseconds) to sleep between - * consecutive rate limit retries. - * @param rateLimitSleep the sleep duration. - */ - public void setRateLimitSleep(int rateLimitSleep) { - this.rateLimitSleep = rateLimitSleep; - } - - /** - * Impersonate subuser for subsequent requests - * @param subuser the subuser to be impersonated - */ - public void addImpersonateSubuser(String subuser) { - this.subuser = subuser; - this.addRequestHeader("on-behalf-of", subuser); - } - - /** - * Stop Impersonating the subuser - */ - public void removeImpersonateSubuser() { - this.subuser = null; - this.removeRequestHeader("on-behalf-of"); - } - - /** - * Get the impersonated subuser or null if empty - * @return the impersonated subuser - */ - public String getImpersonateSubuser() { - return this.subuser; - } - - /** - * Makes the call to the Twilio SendGrid API, override this method for testing. - * @param request the request to make. - * @return the response object. - * @throws IOException in case of a network error. - */ - public Response makeCall(Request request) throws IOException { - return client.api(request); - } - - /** - * Class api sets up the request to the Twilio SendGrid API, this is main interface. - * @param request the request object. - * @return the response object. - * @throws IOException in case of a network error. - */ - public Response api(Request request) throws IOException { - Request req = new Request(); - req.setMethod(request.getMethod()); - req.setBaseUri(this.host); - req.setEndpoint("/" + version + "/" + request.getEndpoint()); - req.setBody(request.getBody()); - for (Map.Entry header : this.requestHeaders.entrySet()) { - req.addHeader(header.getKey(), header.getValue()); - } - for (Map.Entry queryParam : request.getQueryParams().entrySet()) { - req.addQueryParam(queryParam.getKey(), queryParam.getValue()); - } - - return makeCall(req); - } - - /** - * Attempt an API call. This method executes the API call asynchronously - * on an internal thread pool. If the call is rate limited, the thread - * will retry up to the maximum configured time. - * @param request the API request. - */ - public void attempt(Request request) { - this.attempt(request, new APICallback() { - @Override - public void error(Exception ex) { - } - - public void response(Response r) { - } - }); - } - - /** - * Attempt an API call. This method executes the API call asynchronously - * on an internal thread pool. If the call is rate limited, the thread - * will retry up to the maximum configured time. The supplied callback - * will be called in the event of an error, or a successful response. - * @param request the API request. - * @param callback the callback. - */ - public void attempt(final Request request, final APICallback callback) { - this.pool.execute(new Runnable() { - @Override - public void run() { - Response response; - - // Retry until the retry limit has been reached. - for (int i = 0; i < rateLimitRetry; ++i) { - try { - response = api(request); - } catch (IOException ex) { - // Stop retrying if there is a network error. - callback.error(ex); - return; - } - - // We have been rate limited. - if (response.getStatusCode() == RATE_LIMIT_RESPONSE_CODE) { - try { - Thread.sleep(rateLimitSleep); - } catch (InterruptedException ex) { - // Can safely ignore this exception and retry. - } - } else { - callback.response(response); - return; - } - } - - // Retries exhausted. Return error. - callback.error(new RateLimitException(request, rateLimitRetry)); - } - }); + public void initializeSendGrid(final String apiKey) { + this.initialize("Bearer " + apiKey, "api.sendgrid.com"); } } diff --git a/src/main/java/com/sendgrid/SendGridAPI.java b/src/main/java/com/sendgrid/SendGridAPI.java index aa9583a2..71b2c3cc 100644 --- a/src/main/java/com/sendgrid/SendGridAPI.java +++ b/src/main/java/com/sendgrid/SendGridAPI.java @@ -6,86 +6,87 @@ public interface SendGridAPI { /** - * Initializes Twilio SendGrid - * - * @param apiKey is your Twilio SendGrid API Key: https://app.sendgrid.com/settings/api_keys + * Initialize the client. + * + * @param auth authorization header value + * @param host the base URL for the API */ - void initializeSendGrid(String apiKey); + void initialize(final String auth, final String host); /** - * Returns the library version - * - * @return the library version. + * Get the current library version. + * + * @return the current version */ String getLibraryVersion(); /** - * Gets the version. + * Get the API version. * - * @return returns the version. + * @return the current API version */ String getVersion(); /** - * Sets the version. - * - * @param version the Twilio SendGrid version. + * Set the API version. + * + * @param version the new version */ - void setVersion(String version); + void setVersion(final String version); /** - * Gets the request headers. - * @return returns a map of request headers. + * Get the request headers. + * + * @return the request headers */ Map getRequestHeaders(); /** - * Adds a request headers. - * - * @param key the key - * @param value the value - * @return returns a map of request headers. + * Add/update a request header. + * + * @param key the header key + * @param value the header value + * @return the new set of request headers */ - Map addRequestHeader(String key, String value); + Map addRequestHeader(final String key, final String value); /** - * Removes a request headers. - * - * @param key the key - * @return returns a map of request headers. + * Remove a request header. + * + * @param key the header key to remove + * @return the new set of request headers */ - Map removeRequestHeader(String key); + Map removeRequestHeader(final String key); /** - * Gets the host. - * - * @return returns the host. + * Get the host. + * + * @return the host */ String getHost(); /** - * Sets the host. - * - * @param host the host to set + * Set the host. + * + * @param host the new host */ - void setHost(String host); + void setHost(final String host); /** - * Class makeCall makes the call to the Twilio SendGrid API, override this method for - * testing. - * - * @param request the request - * @return returns a response. - * @throws IOException in case of network or marshal error. + * Makes the call to the Twilio SendGrid API, override this method for testing. + * + * @param request the request to make + * @return the response object + * @throws IOException in case of a network error */ - Response makeCall(Request request) throws IOException; + Response makeCall(final Request request) throws IOException; /** * Class api sets up the request to the Twilio SendGrid API, this is main interface. - * - * @param request the request - * @return returns a response. - * @throws IOException in case of network or marshal error. + * + * @param request the request object + * @return the response object + * @throws IOException in case of a network error */ - Response api(Request request) throws IOException; + Response api(final Request request) throws IOException; } diff --git a/src/main/java/com/sendgrid/TwilioEmail.java b/src/main/java/com/sendgrid/TwilioEmail.java new file mode 100644 index 00000000..d2c79503 --- /dev/null +++ b/src/main/java/com/sendgrid/TwilioEmail.java @@ -0,0 +1,50 @@ +package com.sendgrid; + +import org.apache.commons.codec.binary.Base64; + +/** + * This class allows you to quickly and easily send emails through Twilio + * SendGrid using Java. + */ +public class TwilioEmail extends BaseInterface { + + /** + * Construct a new Twilio SendGrid API wrapper. + * + * @param username your Twilio Email API key SID or Account SID + * @param password your Twilio Email API key secret or Account Auth Token + */ + public TwilioEmail(final String username, final String password) { + initialize(username, password); + } + + /** + * Construct a new Twilio SendGrid API wrapper. + * + * @param username your Twilio Email API key SID or Account SID + * @param password your Twilio Email API key secret or Account Auth Token + * @param client the Client to use (allows to customize its configuration) + */ + public TwilioEmail(final String username, final String password, final Client client) { + super(client); + initialize(username, password); + } + + /** + * Initialize the client. + * + * @param username your Twilio Email API key SID or Account SID + * @param password your Twilio Email API key secret or Account Auth Token + */ + public void initialize(final String username, final String password) { + super.initialize(getAuthString(username, password), "email.twilio.com"); + } + + private String getAuthString(final String username, final String password) { + final String credentials = username + ":" + password; + final byte[] encodedBytes = Base64.encodeBase64(credentials.getBytes()); + final String encoderString = new String(encodedBytes); + + return "Basic " + encoderString; + } +} diff --git a/src/test/java/com/sendgrid/TwilioEmailTest.java b/src/test/java/com/sendgrid/TwilioEmailTest.java new file mode 100644 index 00000000..e07c2ca5 --- /dev/null +++ b/src/test/java/com/sendgrid/TwilioEmailTest.java @@ -0,0 +1,29 @@ +package com.sendgrid; + +import org.junit.Assert; +import org.junit.Test; + +import java.io.IOException; + +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; + +public class TwilioEmailTest { + + @Test + public void testInitialization() { + final TwilioEmail sg = new TwilioEmail("username", "password"); + Assert.assertEquals("email.twilio.com", sg.getHost()); + Assert.assertEquals("Basic dXNlcm5hbWU6cGFzc3dvcmQ=", sg.getRequestHeaders().get("Authorization")); + } + + @Test + public void testConstructWithClient() throws IOException { + final Client client = mock(Client.class); + final TwilioEmail sg = new TwilioEmail("username", "password", client); + final Request request = new Request(); + + sg.makeCall(request); + verify(client).api(request); + } +} From 2104e0e10021107b76f7d2638e2a74d6f6e1c228 Mon Sep 17 00:00:00 2001 From: Anuj Shah Date: Thu, 7 May 2020 15:06:47 -0700 Subject: [PATCH 126/288] feat: verify signature from event webhook (#622) * signature-verification: verify signature from event webhook * signature-verification: code review * signature-verification: add an example * signature-verification: package renaming and updated examples * signature-verification: code review updates * signature-verification: consistent sample data across SDKs --- examples/helpers/eventwebhook/Example.java | 27 ++++++++ pom.xml | 5 ++ .../helpers/eventwebhook/EventWebhook.java | 68 +++++++++++++++++++ .../eventwebhook/EventWebhookHeader.java | 20 ++++++ .../eventwebhook/EventWebhookTest.java | 27 ++++++++ 5 files changed, 147 insertions(+) create mode 100644 examples/helpers/eventwebhook/Example.java create mode 100644 src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java create mode 100644 src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhookHeader.java create mode 100644 src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java diff --git a/examples/helpers/eventwebhook/Example.java b/examples/helpers/eventwebhook/Example.java new file mode 100644 index 00000000..786d5902 --- /dev/null +++ b/examples/helpers/eventwebhook/Example.java @@ -0,0 +1,27 @@ +import com.sendgrid.helpers.eventwebhook.EventWebhook; +import java.security.PublicKey; +import java.security.Security; +import java.security.interfaces.ECPublicKey; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.bouncycastle.jce.provider.BouncyCastleProvider; + +public class Example { + + public static void main(String[] args) { + Security.addProvider(new BouncyCastleProvider()); + + try { + String publicKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEDr2LjtURuePQzplybdC+u4CwrqDqBaWjcMMsTbhdbcwHBcepxo7yAQGhHPTnlvFYPAZFceEu/1FwCM/QmGUhA=="; + String payload = "{\"category\":\"example_payload\",\"event\":\"test_event\",\"message_id\":\"message_id\"}"; + String signature = "MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH2j/0="; + String timestamp = "1588788367"; + EventWebhook ew = new EventWebhook(); + ECPublicKey ellipticCurvePublicKey = ew.ConvertPublicKeyToECDSA(publicKey); + boolean valid = ew.VerifySignature(ellipticCurvePublicKey, payload, signature, timestamp); + System.out.println("Valid Signature: " + valid); + } catch (Exception exception) { + Logger.getLogger(Example.class.getName()).log(Level.SEVERE, "something went wrong", exception); + } + } +} diff --git a/pom.xml b/pom.xml index 3463b417..c7bb48e2 100644 --- a/pom.xml +++ b/pom.xml @@ -303,5 +303,10 @@ 2.1.0 test + + org.bouncycastle + bcprov-jdk15on + 1.65 + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java b/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java new file mode 100644 index 00000000..6e52bd38 --- /dev/null +++ b/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java @@ -0,0 +1,68 @@ +package com.sendgrid.helpers.eventwebhook; + +import java.security.InvalidKeyException; +import java.security.KeyFactory; +import java.security.NoSuchAlgorithmException; +import java.security.NoSuchProviderException; +import java.security.Signature; +import java.security.SignatureException; +import java.security.interfaces.ECPublicKey; +import java.security.spec.InvalidKeySpecException; +import java.security.spec.X509EncodedKeySpec; +import java.util.Base64; + +/** + * This class allows you to easily use the Event Webhook feature. Read the docs + * for more details: + * https://sendgrid.com/docs/for-developers/tracking-events/event. + */ +public class EventWebhook { + /** + * Convert the public key string to a ECPublicKey. + * + * @param publicKey: verification key under Mail Settings + * @return a public key using the ECDSA algorithm + * @throws NoSuchAlgorithmException + * @throws NoSuchProviderException + * @throws InvalidKeySpecException + */ + public java.security.interfaces.ECPublicKey ConvertPublicKeyToECDSA(String publicKey) + throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException { + byte[] publicKeyInBytes = Base64.getDecoder().decode(publicKey); + KeyFactory factory = KeyFactory.getInstance("ECDSA", "BC"); + return (ECPublicKey) factory.generatePublic(new X509EncodedKeySpec(publicKeyInBytes)); + } + + /** + * Verify signed event webhook requests. + * + * @param publicKey: elliptic curve public key + * @param payload: event payload in the request body + * @param signature: value obtained from the + * 'X-Twilio-Email-Event-Webhook-Signature' header + * @param timestamp: value obtained from the + * 'X-Twilio-Email-Event-Webhook-Timestamp' header + * @return true or false if signature is valid + * @throws NoSuchAlgorithmException + * @throws NoSuchProviderException + * @throws InvalidKeyException + * @throws SignatureException + */ + public boolean VerifySignature(ECPublicKey publicKey, String payload, String signature, String timestamp) + throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException { + + // prepend the payload with the timestamp + String payloadWithTimestamp = timestamp + payload; + + // create the signature object + Signature signatureObject = Signature.getInstance("SHA256withECDSA", "BC"); + signatureObject.initVerify(publicKey); + signatureObject.update(payloadWithTimestamp.getBytes()); + + // decode the signature + byte[] signatureInBytes = Base64.getDecoder().decode(signature); + + // verify the signature + return signatureObject.verify(signatureInBytes); + } +} diff --git a/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhookHeader.java b/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhookHeader.java new file mode 100644 index 00000000..7bdc422c --- /dev/null +++ b/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhookHeader.java @@ -0,0 +1,20 @@ +package com.sendgrid.helpers.eventwebhook; + +/** + * This enum lists headers that get posted to the webhook. Read the docs for + * more details: https://sendgrid.com/docs/for-developers/tracking-events/event. + */ +public enum EventWebhookHeader { + SIGNATURE("X-Twilio-Email-Event-Webhook-Signature"), TIMESTAMP("X-Twilio-Email-Event-Webhook-Timestamp"); + + public final String name; + + EventWebhookHeader(String name) { + this.name = name; + } + + @Override + public String toString() { + return name; + } +} diff --git a/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java b/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java new file mode 100644 index 00000000..434201bb --- /dev/null +++ b/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java @@ -0,0 +1,27 @@ +package com.sendgrid.helpers.eventwebhook; + +import java.security.Security; +import java.security.interfaces.ECPublicKey; +import org.bouncycastle.jce.provider.BouncyCastleProvider; +import org.junit.Assert; +import org.junit.Test; + +public class EventWebhookTest { + @Test + public void testVerifySignature() throws Exception { + + Security.addProvider(new BouncyCastleProvider()); + + String testPublicKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEDr2LjtURuePQzplybdC+u4CwrqDqBaWjcMMsTbhdbcwHBcepxo7yAQGhHPTnlvFYPAZFceEu/1FwCM/QmGUhA=="; + String testPayload = "{\"category\":\"example_payload\",\"event\":\"test_event\",\"message_id\":\"message_id\"}"; + String testSignature = "MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH2j/0="; + String testTimestamp = "1588788367"; + + EventWebhook ew = new EventWebhook(); + ECPublicKey ellipticCurvePublicKey = ew.ConvertPublicKeyToECDSA(testPublicKey); + boolean isValidSignature = ew.VerifySignature(ellipticCurvePublicKey, testPayload, testSignature, + testTimestamp); + + Assert.assertTrue(isValidSignature); + } +} From 83e58d36969c40d025d911f8dab5e2e40d1b2aaf Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 13 May 2020 19:45:09 +0000 Subject: [PATCH 127/288] [Librarian] Version Bump --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dc16ffc..342d5a09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-05-13] Version 4.5.0 +-------------------------- +**Library - Feature** +- [PR #622](https://github.com/sendgrid/sendgrid-java/pull/622): verify signature from event webhook. Thanks to [@anujs3](https://github.com/anujs3)! +- [PR #621](https://github.com/sendgrid/sendgrid-java/pull/621): add support for Twilio Email. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-04-15] Version 4.4.8 -------------------------- **Library - Fix** From 810be077e969a038290192f94807a0d35fc4e050 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 13 May 2020 20:09:20 +0000 Subject: [PATCH 128/288] Release 4.5.0 --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- pom.xml | 14 +++++++------- src/main/java/com/sendgrid/BaseInterface.java | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b6b97a3..e96c2960 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.4.8/sendgrid-4.4.8-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.4.8/sendgrid-4.4.8-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.5.0/sendgrid-4.5.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.5.0/sendgrid-4.5.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index d5d5e5ff..8caf5d24 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.4.8 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.5.0 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.4.8' + implementation 'com.sendgrid:sendgrid-java:4.5.0' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.4.8/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.5.0/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index c7bb48e2..d0ff2d07 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.4.8 + 4.5.0 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.4.8 + 4.5.0 @@ -303,10 +303,10 @@ 2.1.0 test - - org.bouncycastle - bcprov-jdk15on - 1.65 - + + org.bouncycastle + bcprov-jdk15on + 1.65 + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 0b87b528..d4813ecf 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "3.0.0"; + private static final String VERSION = "4.5.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; From feabd2cde80c9d067f84319e0eb981c112b22649 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 13 May 2020 16:24:52 -0700 Subject: [PATCH 129/288] fix: library version test --- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 92c0b4a2..2045a937 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "3.0.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.5.0"); } @Test From b50129fc9b240113e3cbc5db7a98ecbf1a70682e Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Fri, 29 May 2020 10:03:10 -0500 Subject: [PATCH 130/288] docs: shorten and correct the issue template link --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e96c2960..30240905 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,7 +48,7 @@ Before you decide to create a new issue, please try the following: ### Please use our Bug Report Template -In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/sendgrid-java/blob/master/ISSUE_TEMPLATE.md) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting. +In order to make the process easier, we've included a [sample bug report template](ISSUE_TEMPLATE.md). ## Improvements to the Codebase From 217e6ed1f0346dfded6f62532301869ff42d7636 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Wed, 3 Jun 2020 13:26:09 -0500 Subject: [PATCH 131/288] feat: add prism Docker setup (#626) --- .gitignore | 1 + .travis.yml | 30 +- CONTRIBUTING.md | 20 +- Dockerfile | 21 + Makefile | 13 +- docker/Dockerfile | 24 - docker/README.md | 31 - docker/USAGE.md | 32 - docker/entrypoint.sh | 31 - scripts/startPrism.sh | 58 -- src/test/java/com/sendgrid/SendGridTest.java | 711 ++++++------------- test/prism.sh | 42 -- 12 files changed, 272 insertions(+), 742 deletions(-) create mode 100644 Dockerfile delete mode 100644 docker/Dockerfile delete mode 100644 docker/README.md delete mode 100644 docker/USAGE.md delete mode 100644 docker/entrypoint.sh delete mode 100755 scripts/startPrism.sh delete mode 100755 test/prism.sh diff --git a/.gitignore b/.gitignore index fa35c4dd..12b0a405 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ examples/Example.java .vscode sendgrid-java.jar dependency-reduced-pom.xml +prism* diff --git a/.travis.yml b/.travis.yml index db96dad8..7becc3f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,19 @@ language: java before_install: - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true -matrix: - include: - - jdk: openjdk7 - dist: trusty - - jdk: openjdk8 - dist: xenial - - jdk: openjdk11 - dist: xenial - - jdk: oraclejdk7 - dist: precise - - jdk: oraclejdk8 - dist: trusty - - jdk: oraclejdk11 - dist: trusty - allow_failures: - - jdk: openjdk7 - - jdk: oraclejdk7 -before_script: - - "./scripts/startPrism.sh &" - - sleep 20 -install: - - mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V +env: + - version=8 + - version=11 +script: + - make test-docker + deploy: - provider: script script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease edge: true on: tags: true - jdk: openjdk8 + condition: $version = 8 branch: master notifications: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 30240905..8367539d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -128,25 +128,9 @@ All test files are in the [`tests`](https://github.com/sendgrid/sendgrid-java/tr For the purposes of contributing to this repo, please update the [`SendGridTest.java`](https://github.com/sendgrid/sendgrid-java/tree/master/src/test/java/com/sendgrid/SendGridTest.java) file with unit tests as you modify the code. -1. Download [prism](http://stoplight.io/platform/prism/) for your platform ([Mac OS X](https://github.com/stoplightio/prism/releases/download/v0.6.21/prism_darwin_amd64), [Linux](https://github.com/stoplightio/prism/releases/download/v0.6.21/prism_linux_amd64), [Windows](https://github.com/stoplightio/prism/releases/download/v0.6.21/prism_windows_amd64.exe)) and save the binary to the sendgrid-java directory (or any directory you would like. The sendgrid-java directory is chosen mostly for convenience.) +The integration tests require a Twilio SendGrid mock API in order to execute. We've simplified setting this up using Docker to run the tests. You will just need [Docker Desktop](https://docs.docker.com/get-docker/) and `make`. -1. Add execute permissions - - ```bash - chmod +x prism - ``` - -1. In a separate terminal, cd into the directory you chose for prism and start the sendgrid local server which the tests will use. - - ```bash - ./prism run --mock --list --spec https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json - ``` - -1. Now you can run the test suite from the root of the project - - ```bash - ./gradlew test -i - ``` +Once these are available, simply execute the Docker test target to run all tests: `make test-docker`. This command can also be used to open an interactive shell into the container where this library is installed. To start a *bash* shell for example, use this command: `command=bash make test-docker`. ## Style Guidelines & Naming Conventions diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..6587fff8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +ARG version=latest +FROM openjdk:$version + +# version <= 11 +RUN apt-get update \ + && apt-get install -y make maven || true +COPY prism/prism/nginx/cert.crt /usr/local/share/ca-certificates/cert.crt +RUN update-ca-certificates || true + +# version > 11 +RUN yum update -y \ + && yum install -y make wget || true +RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \ + && yum install -y maven || true +RUN keytool -import -trustcacerts -cacerts -storepass changeit -noprompt \ + -alias api.sendgrid.com -file /usr/local/share/ca-certificates/cert.crt || true + +WORKDIR /app +COPY . . + +RUN make install diff --git a/Makefile b/Makefile index 36295ba5..a7e6c434 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,20 @@ -.PHONY: install test test-integration clean +.PHONY: install test test-integ test-docker clean VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | grep -e '^[^\[]') install: @java -version || (echo "Java is not installed, please install Java >= 7"; exit 1); - mvn clean install -DskipTests=true -Dgpg.skip -B + mvn clean install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar test: mvn test -test-integration: - ./scripts/startPrism.sh & - sleep 5 +test-integ: test + +version ?= latest +test-docker: + curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/prism/prism.sh -o prism.sh + version=$(version) bash ./prism.sh clean: mvn clean diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index cc4ce776..00000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -FROM store/oracle/serverjre:8 - -ENV OAI_SPEC_URL="https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json" - -RUN yum install -y git - -WORKDIR /root - -# install Prism -ADD https://raw.githubusercontent.com/stoplightio/prism/master/install install.sh -RUN chmod +x ./install.sh && \ - ./install.sh && \ - rm ./install.sh - -# Set up default Twilio SendGrid env -WORKDIR /root/sources -RUN git clone https://github.com/sendgrid/sendgrid-java.git -WORKDIR /root -RUN ln -s /root/sources/sendgrid-java - -COPY entrypoint.sh entrypoint.sh -RUN chmod +x entrypoint.sh -ENTRYPOINT ["./entrypoint.sh"] -CMD ["--mock"] diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index dccc98cf..00000000 --- a/docker/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# Supported tags and respective `Dockerfile` links - - `v1.0.0`, `latest` [(Dockerfile)](https://github.com/sendgrid/sendgrid-java/blob/master/docker/Dockerfile) - -# Quick reference -Due to Oracle's JDK license, you must build this Docker image using the official Oracle image located in the Docker Store. You will need a Docker store account. Once you have an account, you must accept the Oracle license [here](https://store.docker.com/images/oracle-serverjre-8). On the command line, type `docker login` and provide your credentials. You may then build the image using this command `docker build -t sendgrid/sendgrid-java -f Dockerfile .` - - - **Where to get help:** - [Contact Twilio SendGrid Support](https://support.sendgrid.com/hc/en-us) - - - **Where to file issues:** - https://github.com/sendgrid/sendgrid-java/issues - - - **Where to get more info:** - [USAGE.md](https://github.com/sendgrid/sendgrid-java/blob/master/docker/USAGE.md) - - - **Maintained by:** - [Twilio SendGrid Inc.](https://sendgrid.com) - -# Usage examples - - Most recent version: `docker run -it sendgrid/sendgrid-java`. - - Your own fork: - ```sh-session - $ git clone https://github.com/you/cool-sendgrid-java.git - $ realpath cool-sendgrid-java - /path/to/cool-sendgrid-java - $ docker run -it -v /path/to/cool-sendgrid-java:/mnt/sendgrid-java sendgrid/sendgrid-java - ``` - -For more detailed information, see [USAGE.md](https://github.com/sendgrid/sendgrid-java/blob/master/docker/USAGE.md). - -![SendGrid Logo](https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png) diff --git a/docker/USAGE.md b/docker/USAGE.md deleted file mode 100644 index dab8ed36..00000000 --- a/docker/USAGE.md +++ /dev/null @@ -1,32 +0,0 @@ -You can use Docker to easily try out or test sendgrid-java. - - -# Quickstart - -1. Install Docker on your machine. -2. If you have not done so, create a Docker Store account [here](https://store.docker.com/signup?next=%2F) -3. Navigate [here](https://store.docker.com/images/oracle-serverjre-8) and click the "Proceed to Checkout" link (don't worry, it's free). -4. On the command line, execute `docker login` and provide your credentials. -5. Build the Docker image using the command `docker build -t sendgrid/sendgrid-java -f Dockerfile .` -6. Run `docker run -it sendgrid/sendgrid-java`. - - -# Info - -This Docker image contains - - `sendgrid-java` - - Stoplight's Prism, which lets you try out the API without actually sending email - -Run it in interactive mode with `-it`. - -You can mount repositories in the `/mnt/sendgrid-java` and `/mnt/java-http-client` directories to use them instead of the default Twilio SendGrid libraries. Read on for more info. - - -# Testing -Testing is easy! -1. Run the container: `docker run -it sendgrid/sendgrid-java` -2. `cd sendgrid-java` -3. run `./gradlew test` - -![SendGrid Logo](https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png) - diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh deleted file mode 100644 index 556d85bd..00000000 --- a/docker/entrypoint.sh +++ /dev/null @@ -1,31 +0,0 @@ -#! /bin/bash -clear - -# check for + link mounted libraries: -if [ -d /mnt/sendgrid-java ] -then - rm /root/sendgrid - ln -s /mnt/sendgrid-java/sendgrid - echo "Linked mounted sendgrid-java's code to /root/sendgrid" -fi - -SENDGRID_JAVA_VERSION="1.0.0" -echo "Welcome to sendgrid-java docker v${SENDGRID_JAVA_VERSION}." -echo - -if [ "$1" != "--no-mock" ] -then - echo "Starting Prism in mock mode. Calls made to Prism will not actually send emails." - echo "Disable this by running this container with --no-mock." - prism run --mock --spec $OAI_SPEC_URL 2> /dev/null & -else - echo "Starting Prism in live (--no-mock) mode. Calls made to Prism will send emails." - prism run --spec $OAI_SPEC_URL 2> /dev/null & -fi -echo "To use Prism, make API calls to localhost:4010. For example," -echo " sg = sendgrid.SendGridAPIClient(" -echo " host='http://localhost:4010/'," -echo " api_key=os.environ.get('SENDGRID_API_KEY_CAMPAIGNS'))" -echo "To stop Prism, run \"kill $!\" from the shell." - -bash \ No newline at end of file diff --git a/scripts/startPrism.sh b/scripts/startPrism.sh deleted file mode 100755 index 53923593..00000000 --- a/scripts/startPrism.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -set -eu - -install () { - -echo "Installing Prism..." - -UNAME=$(uname) -ARCH=$(uname -m) -if [ "$UNAME" != "Linux" ] && [ "$UNAME" != "Darwin" ] && [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "i686" ]; then - echo "Sorry, OS/Architecture not supported: ${UNAME}/${ARCH}. Download binary from https://github.com/stoplightio/prism/releases" - exit 1 -fi - -if [ "$UNAME" = "Darwin" ] ; then - OSX_ARCH=$(uname -m) - if [ "${OSX_ARCH}" = "x86_64" ] ; then - PLATFORM="darwin_amd64" - fi -elif [ "$UNAME" = "Linux" ] ; then - LINUX_ARCH=$(uname -m) - if [ "${LINUX_ARCH}" = "i686" ] ; then - PLATFORM="linux_386" - elif [ "${LINUX_ARCH}" = "x86_64" ] ; then - PLATFORM="linux_amd64" - fi -fi - -mkdir -p ../prism/bin -#LATEST=$(curl -s https://api.github.com/repos/stoplightio/prism/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2) -LATEST="v0.6.21" -URL="https://github.com/stoplightio/prism/releases/download/$LATEST/prism_$PLATFORM" -DEST=../prism/bin/prism - -if [ -z $LATEST ] ; then - echo "Error requesting. Download binary from ${URL}" - exit 1 -else - curl -L $URL -o $DEST - chmod +x $DEST -fi -} - -run () { - echo "Running prism..." - cd ../prism/bin - ./prism run --mock --spec https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json -} - -if [ -f ../prism/bin/prism ]; then - echo "Prism is already installed." - run -else - echo "Prism is not installed." - install - run -fi diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 2045a937..0dc2a86e 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -92,14 +92,7 @@ public void testRateLimitSleep() { @Test public void test_async() { final Object sync = new Object(); - SendGrid sg = null; - if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { - sg = new SendGrid("SENDGRID_API_KEY"); - sg.setHost(System.getenv("MOCK_HOST")); - } else { - sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); - } + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -137,14 +130,7 @@ public void response(Response response) { @Test public void test_async_rate_limit() { final Object sync = new Object(); - SendGrid sg = null; - if(System.getenv("TRAVIS") != null && Boolean.parseBoolean(System.getenv("TRAVIS"))) { - sg = new SendGrid("SENDGRID_API_KEY"); - sg.setHost(System.getenv("MOCK_HOST")); - } else { - sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); - } + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "429"); Request request = new Request(); @@ -177,8 +163,7 @@ public void response(Response response) { @Test public void test_access_settings_activity_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -191,8 +176,7 @@ public void test_access_settings_activity_get() throws IOException { @Test public void test_access_settings_whitelist_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -205,8 +189,7 @@ public void test_access_settings_whitelist_post() throws IOException { @Test public void test_access_settings_whitelist_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -218,8 +201,7 @@ public void test_access_settings_whitelist_get() throws IOException { @Test public void test_access_settings_whitelist_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -232,8 +214,7 @@ public void test_access_settings_whitelist_delete() throws IOException { @Test public void test_access_settings_whitelist__rule_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -245,8 +226,7 @@ public void test_access_settings_whitelist__rule_id__get() throws IOException { @Test public void test_access_settings_whitelist__rule_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -258,8 +238,7 @@ public void test_access_settings_whitelist__rule_id__delete() throws IOException @Test public void test_alerts_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -272,8 +251,7 @@ public void test_alerts_post() throws IOException { @Test public void test_alerts_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -285,8 +263,7 @@ public void test_alerts_get() throws IOException { @Test public void test_alerts__alert_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -299,8 +276,7 @@ public void test_alerts__alert_id__patch() throws IOException { @Test public void test_alerts__alert_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -312,8 +288,7 @@ public void test_alerts__alert_id__get() throws IOException { @Test public void test_alerts__alert_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -325,8 +300,7 @@ public void test_alerts__alert_id__delete() throws IOException { @Test public void test_api_keys_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -339,8 +313,7 @@ public void test_api_keys_post() throws IOException { @Test public void test_api_keys_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -353,8 +326,7 @@ public void test_api_keys_get() throws IOException { @Test public void test_api_keys__api_key_id__put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -367,8 +339,7 @@ public void test_api_keys__api_key_id__put() throws IOException { @Test public void test_api_keys__api_key_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -381,8 +352,7 @@ public void test_api_keys__api_key_id__patch() throws IOException { @Test public void test_api_keys__api_key_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -394,8 +364,7 @@ public void test_api_keys__api_key_id__get() throws IOException { @Test public void test_api_keys__api_key_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -407,8 +376,7 @@ public void test_api_keys__api_key_id__delete() throws IOException { @Test public void test_asm_groups_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -421,8 +389,7 @@ public void test_asm_groups_post() throws IOException { @Test public void test_asm_groups_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -435,8 +402,7 @@ public void test_asm_groups_get() throws IOException { @Test public void test_asm_groups__group_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -449,8 +415,7 @@ public void test_asm_groups__group_id__patch() throws IOException { @Test public void test_asm_groups__group_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -462,8 +427,7 @@ public void test_asm_groups__group_id__get() throws IOException { @Test public void test_asm_groups__group_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -475,8 +439,7 @@ public void test_asm_groups__group_id__delete() throws IOException { @Test public void test_asm_groups__group_id__suppressions_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -489,8 +452,7 @@ public void test_asm_groups__group_id__suppressions_post() throws IOException { @Test public void test_asm_groups__group_id__suppressions_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -502,8 +464,7 @@ public void test_asm_groups__group_id__suppressions_get() throws IOException { @Test public void test_asm_groups__group_id__suppressions_search_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -516,8 +477,7 @@ public void test_asm_groups__group_id__suppressions_search_post() throws IOExcep @Test public void test_asm_groups__group_id__suppressions__email__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -529,8 +489,7 @@ public void test_asm_groups__group_id__suppressions__email__delete() throws IOEx @Test public void test_asm_suppressions_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -542,8 +501,7 @@ public void test_asm_suppressions_get() throws IOException { @Test public void test_asm_suppressions_global_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -556,8 +514,7 @@ public void test_asm_suppressions_global_post() throws IOException { @Test public void test_asm_suppressions_global__email__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -569,8 +526,7 @@ public void test_asm_suppressions_global__email__get() throws IOException { @Test public void test_asm_suppressions_global__email__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -582,8 +538,7 @@ public void test_asm_suppressions_global__email__delete() throws IOException { @Test public void test_asm_suppressions__email__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -595,8 +550,7 @@ public void test_asm_suppressions__email__get() throws IOException { @Test public void test_browsers_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -614,8 +568,7 @@ public void test_browsers_stats_get() throws IOException { @Test public void test_campaigns_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -628,8 +581,7 @@ public void test_campaigns_post() throws IOException { @Test public void test_campaigns_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -643,8 +595,7 @@ public void test_campaigns_get() throws IOException { @Test public void test_campaigns__campaign_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -657,8 +608,7 @@ public void test_campaigns__campaign_id__patch() throws IOException { @Test public void test_campaigns__campaign_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -670,8 +620,7 @@ public void test_campaigns__campaign_id__get() throws IOException { @Test public void test_campaigns__campaign_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -683,8 +632,7 @@ public void test_campaigns__campaign_id__delete() throws IOException { @Test public void test_campaigns__campaign_id__schedules_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -697,8 +645,7 @@ public void test_campaigns__campaign_id__schedules_patch() throws IOException { @Test public void test_campaigns__campaign_id__schedules_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -711,8 +658,7 @@ public void test_campaigns__campaign_id__schedules_post() throws IOException { @Test public void test_campaigns__campaign_id__schedules_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -724,8 +670,7 @@ public void test_campaigns__campaign_id__schedules_get() throws IOException { @Test public void test_campaigns__campaign_id__schedules_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -737,8 +682,7 @@ public void test_campaigns__campaign_id__schedules_delete() throws IOException { @Test public void test_campaigns__campaign_id__schedules_now_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -750,8 +694,7 @@ public void test_campaigns__campaign_id__schedules_now_post() throws IOException @Test public void test_campaigns__campaign_id__schedules_test_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -764,8 +707,7 @@ public void test_campaigns__campaign_id__schedules_test_post() throws IOExceptio @Test public void test_categories_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -780,8 +722,7 @@ public void test_categories_get() throws IOException { @Test public void test_categories_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -799,8 +740,7 @@ public void test_categories_stats_get() throws IOException { @Test public void test_categories_stats_sums_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -819,8 +759,7 @@ public void test_categories_stats_sums_get() throws IOException { @Test public void test_clients_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -835,8 +774,7 @@ public void test_clients_stats_get() throws IOException { @Test public void test_clients__client_type__stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -851,8 +789,7 @@ public void test_clients__client_type__stats_get() throws IOException { @Test public void test_contactdb_custom_fields_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -865,8 +802,7 @@ public void test_contactdb_custom_fields_post() throws IOException { @Test public void test_contactdb_custom_fields_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -878,8 +814,7 @@ public void test_contactdb_custom_fields_get() throws IOException { @Test public void test_contactdb_custom_fields__custom_field_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -891,8 +826,7 @@ public void test_contactdb_custom_fields__custom_field_id__get() throws IOExcept @Test public void test_contactdb_custom_fields__custom_field_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "202"); Request request = new Request(); @@ -904,8 +838,7 @@ public void test_contactdb_custom_fields__custom_field_id__delete() throws IOExc @Test public void test_contactdb_lists_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -918,8 +851,7 @@ public void test_contactdb_lists_post() throws IOException { @Test public void test_contactdb_lists_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -931,8 +863,7 @@ public void test_contactdb_lists_get() throws IOException { @Test public void test_contactdb_lists_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -945,8 +876,7 @@ public void test_contactdb_lists_delete() throws IOException { @Test public void test_contactdb_lists__list_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -960,8 +890,7 @@ public void test_contactdb_lists__list_id__patch() throws IOException { @Test public void test_contactdb_lists__list_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -974,8 +903,7 @@ public void test_contactdb_lists__list_id__get() throws IOException { @Test public void test_contactdb_lists__list_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "202"); Request request = new Request(); @@ -988,8 +916,7 @@ public void test_contactdb_lists__list_id__delete() throws IOException { @Test public void test_contactdb_lists__list_id__recipients_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1002,8 +929,7 @@ public void test_contactdb_lists__list_id__recipients_post() throws IOException @Test public void test_contactdb_lists__list_id__recipients_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1018,8 +944,7 @@ public void test_contactdb_lists__list_id__recipients_get() throws IOException { @Test public void test_contactdb_lists__list_id__recipients__recipient_id__post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1031,8 +956,7 @@ public void test_contactdb_lists__list_id__recipients__recipient_id__post() thro @Test public void test_contactdb_lists__list_id__recipients__recipient_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1046,8 +970,7 @@ public void test_contactdb_lists__list_id__recipients__recipient_id__delete() th @Test public void test_contactdb_recipients_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1060,8 +983,7 @@ public void test_contactdb_recipients_patch() throws IOException { @Test public void test_contactdb_recipients_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1074,8 +996,7 @@ public void test_contactdb_recipients_post() throws IOException { @Test public void test_contactdb_recipients_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1089,8 +1010,7 @@ public void test_contactdb_recipients_get() throws IOException { @Test public void test_contactdb_recipients_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1103,8 +1023,7 @@ public void test_contactdb_recipients_delete() throws IOException { @Test public void test_contactdb_recipients_billable_count_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1116,8 +1035,7 @@ public void test_contactdb_recipients_billable_count_get() throws IOException { @Test public void test_contactdb_recipients_count_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1129,8 +1047,7 @@ public void test_contactdb_recipients_count_get() throws IOException { @Test public void test_contactdb_recipients_search_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1143,8 +1060,7 @@ public void test_contactdb_recipients_search_get() throws IOException { @Test public void test_contactdb_recipients__recipient_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1156,8 +1072,7 @@ public void test_contactdb_recipients__recipient_id__get() throws IOException { @Test public void test_contactdb_recipients__recipient_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1169,8 +1084,7 @@ public void test_contactdb_recipients__recipient_id__delete() throws IOException @Test public void test_contactdb_recipients__recipient_id__lists_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1182,8 +1096,7 @@ public void test_contactdb_recipients__recipient_id__lists_get() throws IOExcept @Test public void test_contactdb_reserved_fields_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1195,8 +1108,7 @@ public void test_contactdb_reserved_fields_get() throws IOException { @Test public void test_contactdb_segments_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1209,8 +1121,7 @@ public void test_contactdb_segments_post() throws IOException { @Test public void test_contactdb_segments_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1222,8 +1133,7 @@ public void test_contactdb_segments_get() throws IOException { @Test public void test_contactdb_segments__segment_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1237,8 +1147,7 @@ public void test_contactdb_segments__segment_id__patch() throws IOException { @Test public void test_contactdb_segments__segment_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1251,8 +1160,7 @@ public void test_contactdb_segments__segment_id__get() throws IOException { @Test public void test_contactdb_segments__segment_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1265,8 +1173,7 @@ public void test_contactdb_segments__segment_id__delete() throws IOException { @Test public void test_contactdb_segments__segment_id__recipients_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1280,8 +1187,7 @@ public void test_contactdb_segments__segment_id__recipients_get() throws IOExcep @Test public void test_devices_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1298,8 +1204,7 @@ public void test_devices_stats_get() throws IOException { @Test public void test_geo_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1317,8 +1222,7 @@ public void test_geo_stats_get() throws IOException { @Test public void test_ips_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1335,8 +1239,7 @@ public void test_ips_get() throws IOException { @Test public void test_ips_assigned_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1348,8 +1251,7 @@ public void test_ips_assigned_get() throws IOException { @Test public void test_ips_pools_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1362,8 +1264,7 @@ public void test_ips_pools_post() throws IOException { @Test public void test_ips_pools_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1375,8 +1276,7 @@ public void test_ips_pools_get() throws IOException { @Test public void test_ips_pools__pool_name__put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1389,8 +1289,7 @@ public void test_ips_pools__pool_name__put() throws IOException { @Test public void test_ips_pools__pool_name__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1402,8 +1301,7 @@ public void test_ips_pools__pool_name__get() throws IOException { @Test public void test_ips_pools__pool_name__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1415,8 +1313,7 @@ public void test_ips_pools__pool_name__delete() throws IOException { @Test public void test_ips_pools__pool_name__ips_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1429,8 +1326,7 @@ public void test_ips_pools__pool_name__ips_post() throws IOException { @Test public void test_ips_pools__pool_name__ips__ip__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1442,8 +1338,7 @@ public void test_ips_pools__pool_name__ips__ip__delete() throws IOException { @Test public void test_ips_warmup_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1456,8 +1351,7 @@ public void test_ips_warmup_post() throws IOException { @Test public void test_ips_warmup_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1469,8 +1363,7 @@ public void test_ips_warmup_get() throws IOException { @Test public void test_ips_warmup__ip_address__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1482,8 +1375,7 @@ public void test_ips_warmup__ip_address__get() throws IOException { @Test public void test_ips_warmup__ip_address__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1495,8 +1387,7 @@ public void test_ips_warmup__ip_address__delete() throws IOException { @Test public void test_ips__ip_address__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1508,8 +1399,7 @@ public void test_ips__ip_address__get() throws IOException { @Test public void test_mail_batch_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1521,8 +1411,7 @@ public void test_mail_batch_post() throws IOException { @Test public void test_mail_batch__batch_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1534,8 +1423,7 @@ public void test_mail_batch__batch_id__get() throws IOException { @Test public void test_mail_send_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "202"); Request request = new Request(); @@ -1548,8 +1436,7 @@ public void test_mail_send_post() throws IOException { @Test public void test_mail_settings_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1563,8 +1450,7 @@ public void test_mail_settings_get() throws IOException { @Test public void test_mail_settings_address_whitelist_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1577,8 +1463,7 @@ public void test_mail_settings_address_whitelist_patch() throws IOException { @Test public void test_mail_settings_address_whitelist_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1590,8 +1475,7 @@ public void test_mail_settings_address_whitelist_get() throws IOException { @Test public void test_mail_settings_bcc_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1604,8 +1488,7 @@ public void test_mail_settings_bcc_patch() throws IOException { @Test public void test_mail_settings_bcc_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1617,8 +1500,7 @@ public void test_mail_settings_bcc_get() throws IOException { @Test public void test_mail_settings_bounce_purge_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1631,8 +1513,7 @@ public void test_mail_settings_bounce_purge_patch() throws IOException { @Test public void test_mail_settings_bounce_purge_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1644,8 +1525,7 @@ public void test_mail_settings_bounce_purge_get() throws IOException { @Test public void test_mail_settings_footer_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1658,8 +1538,7 @@ public void test_mail_settings_footer_patch() throws IOException { @Test public void test_mail_settings_footer_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1671,8 +1550,7 @@ public void test_mail_settings_footer_get() throws IOException { @Test public void test_mail_settings_forward_bounce_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1685,8 +1563,7 @@ public void test_mail_settings_forward_bounce_patch() throws IOException { @Test public void test_mail_settings_forward_bounce_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1698,8 +1575,7 @@ public void test_mail_settings_forward_bounce_get() throws IOException { @Test public void test_mail_settings_forward_spam_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1712,8 +1588,7 @@ public void test_mail_settings_forward_spam_patch() throws IOException { @Test public void test_mail_settings_forward_spam_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1725,8 +1600,7 @@ public void test_mail_settings_forward_spam_get() throws IOException { @Test public void test_mail_settings_plain_content_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1739,8 +1613,7 @@ public void test_mail_settings_plain_content_patch() throws IOException { @Test public void test_mail_settings_plain_content_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1752,8 +1625,7 @@ public void test_mail_settings_plain_content_get() throws IOException { @Test public void test_mail_settings_spam_check_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1766,8 +1638,7 @@ public void test_mail_settings_spam_check_patch() throws IOException { @Test public void test_mail_settings_spam_check_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1779,8 +1650,7 @@ public void test_mail_settings_spam_check_get() throws IOException { @Test public void test_mail_settings_template_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1793,8 +1663,7 @@ public void test_mail_settings_template_patch() throws IOException { @Test public void test_mail_settings_template_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1806,8 +1675,7 @@ public void test_mail_settings_template_get() throws IOException { @Test public void test_mailbox_providers_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1825,8 +1693,7 @@ public void test_mailbox_providers_stats_get() throws IOException { @Test public void test_partner_settings_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1840,8 +1707,7 @@ public void test_partner_settings_get() throws IOException { @Test public void test_partner_settings_new_relic_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1854,8 +1720,7 @@ public void test_partner_settings_new_relic_patch() throws IOException { @Test public void test_partner_settings_new_relic_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1867,8 +1732,7 @@ public void test_partner_settings_new_relic_get() throws IOException { @Test public void test_scopes_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1880,8 +1744,7 @@ public void test_scopes_get() throws IOException { @Test public void test_senders_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -1894,8 +1757,7 @@ public void test_senders_post() throws IOException { @Test public void test_senders_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1907,8 +1769,7 @@ public void test_senders_get() throws IOException { @Test public void test_senders__sender_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1921,8 +1782,7 @@ public void test_senders__sender_id__patch() throws IOException { @Test public void test_senders__sender_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1934,8 +1794,7 @@ public void test_senders__sender_id__get() throws IOException { @Test public void test_senders__sender_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1947,8 +1806,7 @@ public void test_senders__sender_id__delete() throws IOException { @Test public void test_senders__sender_id__resend_verification_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -1960,8 +1818,7 @@ public void test_senders__sender_id__resend_verification_post() throws IOExcepti @Test public void test_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1978,8 +1835,7 @@ public void test_stats_get() throws IOException { @Test public void test_subusers_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -1992,8 +1848,7 @@ public void test_subusers_post() throws IOException { @Test public void test_subusers_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2008,8 +1863,7 @@ public void test_subusers_get() throws IOException { @Test public void test_subusers_reputations_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2022,8 +1876,7 @@ public void test_subusers_reputations_get() throws IOException { @Test public void test_subusers_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2041,8 +1894,7 @@ public void test_subusers_stats_get() throws IOException { @Test public void test_subusers_stats_monthly_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2060,8 +1912,7 @@ public void test_subusers_stats_monthly_get() throws IOException { @Test public void test_subusers_stats_sums_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2080,8 +1931,7 @@ public void test_subusers_stats_sums_get() throws IOException { @Test public void test_subusers__subuser_name__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2094,8 +1944,7 @@ public void test_subusers__subuser_name__patch() throws IOException { @Test public void test_subusers__subuser_name__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2107,8 +1956,7 @@ public void test_subusers__subuser_name__delete() throws IOException { @Test public void test_subusers__subuser_name__ips_put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2121,8 +1969,7 @@ public void test_subusers__subuser_name__ips_put() throws IOException { @Test public void test_subusers__subuser_name__monitor_put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2135,8 +1982,7 @@ public void test_subusers__subuser_name__monitor_put() throws IOException { @Test public void test_subusers__subuser_name__monitor_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2149,8 +1995,7 @@ public void test_subusers__subuser_name__monitor_post() throws IOException { @Test public void test_subusers__subuser_name__monitor_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2162,8 +2007,7 @@ public void test_subusers__subuser_name__monitor_get() throws IOException { @Test public void test_subusers__subuser_name__monitor_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2175,8 +2019,7 @@ public void test_subusers__subuser_name__monitor_delete() throws IOException { @Test public void test_subusers__subuser_name__stats_monthly_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2193,8 +2036,7 @@ public void test_subusers__subuser_name__stats_monthly_get() throws IOException @Test public void test_suppression_blocks_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2210,8 +2052,7 @@ public void test_suppression_blocks_get() throws IOException { @Test public void test_suppression_blocks_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2224,8 +2065,7 @@ public void test_suppression_blocks_delete() throws IOException { @Test public void test_suppression_blocks__email__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2237,8 +2077,7 @@ public void test_suppression_blocks__email__get() throws IOException { @Test public void test_suppression_blocks__email__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2250,8 +2089,7 @@ public void test_suppression_blocks__email__delete() throws IOException { @Test public void test_suppression_bounces_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2265,8 +2103,7 @@ public void test_suppression_bounces_get() throws IOException { @Test public void test_suppression_bounces_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2279,8 +2116,7 @@ public void test_suppression_bounces_delete() throws IOException { @Test public void test_suppression_bounces__email__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2292,8 +2128,7 @@ public void test_suppression_bounces__email__get() throws IOException { @Test public void test_suppression_bounces__email__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2306,8 +2141,7 @@ public void test_suppression_bounces__email__delete() throws IOException { @Test public void test_suppression_invalid_emails_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2323,8 +2157,7 @@ public void test_suppression_invalid_emails_get() throws IOException { @Test public void test_suppression_invalid_emails_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2337,8 +2170,7 @@ public void test_suppression_invalid_emails_delete() throws IOException { @Test public void test_suppression_invalid_emails__email__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2350,8 +2182,7 @@ public void test_suppression_invalid_emails__email__get() throws IOException { @Test public void test_suppression_invalid_emails__email__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2363,8 +2194,7 @@ public void test_suppression_invalid_emails__email__delete() throws IOException @Test public void test_suppression_spam_report__email__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2376,8 +2206,7 @@ public void test_suppression_spam_report__email__get() throws IOException { @Test public void test_suppression_spam_report__email__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2389,8 +2218,7 @@ public void test_suppression_spam_report__email__delete() throws IOException { @Test public void test_suppression_spam_reports_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2406,8 +2234,7 @@ public void test_suppression_spam_reports_get() throws IOException { @Test public void test_suppression_spam_reports_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2420,8 +2247,7 @@ public void test_suppression_spam_reports_delete() throws IOException { @Test public void test_suppression_unsubscribes_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2437,8 +2263,7 @@ public void test_suppression_unsubscribes_get() throws IOException { @Test public void test_templates_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -2451,8 +2276,7 @@ public void test_templates_post() throws IOException { @Test public void test_templates_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2464,8 +2288,7 @@ public void test_templates_get() throws IOException { @Test public void test_templates__template_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2478,8 +2301,7 @@ public void test_templates__template_id__patch() throws IOException { @Test public void test_templates__template_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2491,8 +2313,7 @@ public void test_templates__template_id__get() throws IOException { @Test public void test_templates__template_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2504,8 +2325,7 @@ public void test_templates__template_id__delete() throws IOException { @Test public void test_templates__template_id__versions_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -2518,8 +2338,7 @@ public void test_templates__template_id__versions_post() throws IOException { @Test public void test_templates__template_id__versions__version_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2532,8 +2351,7 @@ public void test_templates__template_id__versions__version_id__patch() throws IO @Test public void test_templates__template_id__versions__version_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2545,8 +2363,7 @@ public void test_templates__template_id__versions__version_id__get() throws IOEx @Test public void test_templates__template_id__versions__version_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2558,8 +2375,7 @@ public void test_templates__template_id__versions__version_id__delete() throws I @Test public void test_templates__template_id__versions__version_id__activate_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2571,8 +2387,7 @@ public void test_templates__template_id__versions__version_id__activate_post() t @Test public void test_tracking_settings_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2586,8 +2401,7 @@ public void test_tracking_settings_get() throws IOException { @Test public void test_tracking_settings_click_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2600,8 +2414,7 @@ public void test_tracking_settings_click_patch() throws IOException { @Test public void test_tracking_settings_click_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2613,8 +2426,7 @@ public void test_tracking_settings_click_get() throws IOException { @Test public void test_tracking_settings_google_analytics_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2627,8 +2439,7 @@ public void test_tracking_settings_google_analytics_patch() throws IOException { @Test public void test_tracking_settings_google_analytics_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2640,8 +2451,7 @@ public void test_tracking_settings_google_analytics_get() throws IOException { @Test public void test_tracking_settings_open_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2654,8 +2464,7 @@ public void test_tracking_settings_open_patch() throws IOException { @Test public void test_tracking_settings_open_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2667,8 +2476,7 @@ public void test_tracking_settings_open_get() throws IOException { @Test public void test_tracking_settings_subscription_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2681,8 +2489,7 @@ public void test_tracking_settings_subscription_patch() throws IOException { @Test public void test_tracking_settings_subscription_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2694,8 +2501,7 @@ public void test_tracking_settings_subscription_get() throws IOException { @Test public void test_user_account_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2707,8 +2513,7 @@ public void test_user_account_get() throws IOException { @Test public void test_user_credits_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2720,8 +2525,7 @@ public void test_user_credits_get() throws IOException { @Test public void test_user_email_put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2734,8 +2538,7 @@ public void test_user_email_put() throws IOException { @Test public void test_user_email_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2747,8 +2550,7 @@ public void test_user_email_get() throws IOException { @Test public void test_user_password_put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2761,8 +2563,7 @@ public void test_user_password_put() throws IOException { @Test public void test_user_profile_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2775,8 +2576,7 @@ public void test_user_profile_patch() throws IOException { @Test public void test_user_profile_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2788,8 +2588,7 @@ public void test_user_profile_get() throws IOException { @Test public void test_user_scheduled_sends_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -2802,8 +2601,7 @@ public void test_user_scheduled_sends_post() throws IOException { @Test public void test_user_scheduled_sends_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2815,8 +2613,7 @@ public void test_user_scheduled_sends_get() throws IOException { @Test public void test_user_scheduled_sends__batch_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2829,8 +2626,7 @@ public void test_user_scheduled_sends__batch_id__patch() throws IOException { @Test public void test_user_scheduled_sends__batch_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2842,8 +2638,7 @@ public void test_user_scheduled_sends__batch_id__get() throws IOException { @Test public void test_user_scheduled_sends__batch_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2855,8 +2650,7 @@ public void test_user_scheduled_sends__batch_id__delete() throws IOException { @Test public void test_user_settings_enforced_tls_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2869,8 +2663,7 @@ public void test_user_settings_enforced_tls_patch() throws IOException { @Test public void test_user_settings_enforced_tls_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2882,8 +2675,7 @@ public void test_user_settings_enforced_tls_get() throws IOException { @Test public void test_user_username_put() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2896,8 +2688,7 @@ public void test_user_username_put() throws IOException { @Test public void test_user_username_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2909,8 +2700,7 @@ public void test_user_username_get() throws IOException { @Test public void test_user_webhooks_event_settings_patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2923,8 +2713,7 @@ public void test_user_webhooks_event_settings_patch() throws IOException { @Test public void test_user_webhooks_event_settings_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2936,8 +2725,7 @@ public void test_user_webhooks_event_settings_get() throws IOException { @Test public void test_user_webhooks_event_test_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -2950,8 +2738,7 @@ public void test_user_webhooks_event_test_post() throws IOException { @Test public void test_user_webhooks_parse_settings_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -2964,8 +2751,7 @@ public void test_user_webhooks_parse_settings_post() throws IOException { @Test public void test_user_webhooks_parse_settings_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2977,8 +2763,7 @@ public void test_user_webhooks_parse_settings_get() throws IOException { @Test public void test_user_webhooks_parse_settings__hostname__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -2991,8 +2776,7 @@ public void test_user_webhooks_parse_settings__hostname__patch() throws IOExcept @Test public void test_user_webhooks_parse_settings__hostname__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3004,8 +2788,7 @@ public void test_user_webhooks_parse_settings__hostname__get() throws IOExceptio @Test public void test_user_webhooks_parse_settings__hostname__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -3017,8 +2800,7 @@ public void test_user_webhooks_parse_settings__hostname__delete() throws IOExcep @Test public void test_user_webhooks_parse_stats_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3035,8 +2817,7 @@ public void test_user_webhooks_parse_stats_get() throws IOException { @Test public void test_whitelabel_domains_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -3049,8 +2830,7 @@ public void test_whitelabel_domains_post() throws IOException { @Test public void test_whitelabel_domains_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3067,8 +2847,7 @@ public void test_whitelabel_domains_get() throws IOException { @Test public void test_whitelabel_domains_default_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3080,8 +2859,7 @@ public void test_whitelabel_domains_default_get() throws IOException { @Test public void test_whitelabel_domains_subuser_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3093,8 +2871,7 @@ public void test_whitelabel_domains_subuser_get() throws IOException { @Test public void test_whitelabel_domains_subuser_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -3106,8 +2883,7 @@ public void test_whitelabel_domains_subuser_delete() throws IOException { @Test public void test_whitelabel_domains__domain_id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3120,8 +2896,7 @@ public void test_whitelabel_domains__domain_id__patch() throws IOException { @Test public void test_whitelabel_domains__domain_id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3133,8 +2908,7 @@ public void test_whitelabel_domains__domain_id__get() throws IOException { @Test public void test_whitelabel_domains__domain_id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -3146,8 +2920,7 @@ public void test_whitelabel_domains__domain_id__delete() throws IOException { @Test public void test_whitelabel_domains__domain_id__subuser_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -3160,8 +2933,7 @@ public void test_whitelabel_domains__domain_id__subuser_post() throws IOExceptio @Test public void test_whitelabel_domains__id__ips_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3174,8 +2946,7 @@ public void test_whitelabel_domains__id__ips_post() throws IOException { @Test public void test_whitelabel_domains__id__ips__ip__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3187,8 +2958,7 @@ public void test_whitelabel_domains__id__ips__ip__delete() throws IOException { @Test public void test_whitelabel_domains__id__validate_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3200,8 +2970,7 @@ public void test_whitelabel_domains__id__validate_post() throws IOException { @Test public void test_whitelabel_ips_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -3214,8 +2983,7 @@ public void test_whitelabel_ips_post() throws IOException { @Test public void test_whitelabel_ips_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3230,8 +2998,7 @@ public void test_whitelabel_ips_get() throws IOException { @Test public void test_whitelabel_ips__id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3243,8 +3010,7 @@ public void test_whitelabel_ips__id__get() throws IOException { @Test public void test_whitelabel_ips__id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -3256,8 +3022,7 @@ public void test_whitelabel_ips__id__delete() throws IOException { @Test public void test_whitelabel_ips__id__validate_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3269,8 +3034,7 @@ public void test_whitelabel_ips__id__validate_post() throws IOException { @Test public void test_whitelabel_links_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "201"); Request request = new Request(); @@ -3285,8 +3049,7 @@ public void test_whitelabel_links_post() throws IOException { @Test public void test_whitelabel_links_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3299,8 +3062,7 @@ public void test_whitelabel_links_get() throws IOException { @Test public void test_whitelabel_links_default_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3313,8 +3075,7 @@ public void test_whitelabel_links_default_get() throws IOException { @Test public void test_whitelabel_links_subuser_get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3327,8 +3088,7 @@ public void test_whitelabel_links_subuser_get() throws IOException { @Test public void test_whitelabel_links_subuser_delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -3341,8 +3101,7 @@ public void test_whitelabel_links_subuser_delete() throws IOException { @Test public void test_whitelabel_links__id__patch() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3355,8 +3114,7 @@ public void test_whitelabel_links__id__patch() throws IOException { @Test public void test_whitelabel_links__id__get() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3368,8 +3126,7 @@ public void test_whitelabel_links__id__get() throws IOException { @Test public void test_whitelabel_links__id__delete() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); @@ -3381,8 +3138,7 @@ public void test_whitelabel_links__id__delete() throws IOException { @Test public void test_whitelabel_links__id__validate_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); @@ -3394,8 +3150,7 @@ public void test_whitelabel_links__id__validate_post() throws IOException { @Test public void test_whitelabel_links__link_id__subuser_post() throws IOException { - SendGrid sg = new SendGrid("SENDGRID_API_KEY", true); - sg.setHost("localhost:4010"); + SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); diff --git a/test/prism.sh b/test/prism.sh deleted file mode 100755 index d6e0f251..00000000 --- a/test/prism.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -install () { - -set -eu - -UNAME=$(uname) -ARCH=$(uname -m) -if [ "$UNAME" != "Linux" ] && [ "$UNAME" != "Darwin" ] && [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "i686" ]; then - echo "Sorry, OS/Architecture not supported: ${UNAME}/${ARCH}. Download binary from https://github.com/stoplightio/prism/releases" - exit 1 -fi - -if [ "$UNAME" = "Darwin" ] ; then - OSX_ARCH=$(uname -m) - if [ "${OSX_ARCH}" = "x86_64" ] ; then - PLATFORM="darwin_amd64" - fi -elif [ "$UNAME" = "Linux" ] ; then - LINUX_ARCH=$(uname -m) - if [ "${LINUX_ARCH}" = "i686" ] ; then - PLATFORM="linux_386" - elif [ "${LINUX_ARCH}" = "x86_64" ] ; then - PLATFORM="linux_amd64" - fi -fi - -#LATEST=$(curl -s https://api.github.com/repos/stoplightio/prism/tags | grep -Eo '"name":.*?[^\\]",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2) -LATEST="v0.1.5" -URL="https://github.com/stoplightio/prism/releases/download/$LATEST/prism_$PLATFORM" -DEST=./prism/bin/prism - -if [ -z $LATEST ] ; then - echo "Error requesting. Download binary from ${URL}" - exit 1 -else - curl -L $URL -o $DEST - chmod +x $DEST -fi -} - -install From 07b57b75b49191132d9670b23dae5725f7043be0 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 10 Jun 2020 19:37:20 +0000 Subject: [PATCH 132/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 342d5a09..e7ade9f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-06-10] Version 4.6.0 +-------------------------- +**Library - Feature** +- [PR #626](https://github.com/sendgrid/sendgrid-java/pull/626): add prism Docker setup. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-05-13] Version 4.5.0 -------------------------- **Library - Feature** From eabee46c82995606ba312563b381f2efa0401c2e Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 10 Jun 2020 19:52:22 +0000 Subject: [PATCH 133/288] Release 4.6.0 --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8367539d..43d8d8ea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.5.0/sendgrid-4.5.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.5.0/sendgrid-4.5.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.0/sendgrid-4.6.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.0/sendgrid-4.6.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index 8caf5d24..20fa177f 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.5.0 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.0 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.5.0' + implementation 'com.sendgrid:sendgrid-java:4.6.0' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.5.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.0/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index d0ff2d07..432908f1 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.5.0 + 4.6.0 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.5.0 + 4.6.0 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index d4813ecf..fad02bb7 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.5.0"; + private static final String VERSION = "4.6.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 0dc2a86e..c00cc776 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.5.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.0"); } @Test From 3aa96eb05b4c3b94e20ae053cad500125d4e775f Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Wed, 10 Jun 2020 15:58:18 -0500 Subject: [PATCH 134/288] fix: run with openjdk8 in TravisCI --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7becc3f3..7b7c65a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: java +jdk: openjdk8 before_install: - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true env: From 3239e86640055dc4475763257e9c4e9f50314f8f Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Thu, 2 Jul 2020 16:06:51 -0500 Subject: [PATCH 135/288] fix: don't use dependency version ranges (#635) Using a version range like this results in maven attempting to get SNAPSHOT information for the dependency since it's possible a SNAPSHOT release would match the version range. It's not a big deal, but there are better approaches. The idea was we want to pick up the latest 4.X version of java-http-client, but even a version range does not guarantee this. It only guarantees that a 4.X version will be used (not necessarily the latest release). What we really want is the latest non-snapshot, minor version release for all dependencies, not just java-http-client. Also note that Maven version ranges perform basic string comparison so even it they were capable of getting the latest release for a dependency, it might not actually be the latest release if proper semver is used. --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 432908f1..081690eb 100644 --- a/pom.xml +++ b/pom.xml @@ -274,7 +274,7 @@ com.sendgrid java-http-client - [4.2,5.0) + 4.3.3 com.fasterxml.jackson.core @@ -300,7 +300,7 @@ org.mockito mockito-core - 2.1.0 + 2.28.2 test @@ -309,4 +309,4 @@ 1.65 - \ No newline at end of file + From ee6fad6e83a8ec508ac1ba50b14871d77347de1f Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 8 Jul 2020 19:51:47 +0000 Subject: [PATCH 136/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7ade9f9..3e767f0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-07-08] Version 4.6.1 +-------------------------- +**Library - Fix** +- [PR #635](https://github.com/sendgrid/sendgrid-java/pull/635): don't use dependency version ranges. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-06-10] Version 4.6.0 -------------------------- **Library - Feature** From 88b85cb8cbc886b1481fb33c18d0346a3b44ed94 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 8 Jul 2020 19:57:39 +0000 Subject: [PATCH 137/288] Release 4.6.1 --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- pom.xml | 8 ++++---- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 43d8d8ea..dbdcf01f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.0/sendgrid-4.6.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.0/sendgrid-4.6.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.1/sendgrid-4.6.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.1/sendgrid-4.6.1-jar.jar:. Example ``` diff --git a/README.md b/README.md index 20fa177f..955ceadd 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.0 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.1 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.0' + implementation 'com.sendgrid:sendgrid-java:4.6.1' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.1/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 081690eb..561d291e 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.0 + 4.6.1 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.0 + 4.6.1 @@ -306,7 +306,7 @@ org.bouncycastle bcprov-jdk15on - 1.65 + 1.66 - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index fad02bb7..776888d2 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.0"; + private static final String VERSION = "4.6.1"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index c00cc776..87e2fede 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.1"); } @Test From d9f4413707c38cd7c702d04574b207da56343002 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Wed, 8 Jul 2020 13:30:14 -0700 Subject: [PATCH 138/288] fix: bouncycastle artifact ID --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 561d291e..378bdea1 100644 --- a/pom.xml +++ b/pom.xml @@ -305,8 +305,8 @@ org.bouncycastle - bcprov-jdk15on - 1.66 + bcprov-jdk15to18 + 1.65 - \ No newline at end of file + From c6e63611735c0ff23885b2eae30d3bb2f88a3505 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Wed, 15 Jul 2020 09:04:50 -0500 Subject: [PATCH 139/288] docs: fix the kitchen sink example and link to it in the use cases doc (#637) The "Kitchen Sink" example and other mail-send examples were out-of-date. This change updates them to use the latest package version. --- USE_CASES.md | 5 +- .../DeleteIPFromAccessSettings.java | 30 +- examples/helpers/mail/Example.java | 102 +- examples/ips/RetrieveAllPools.java | 3 +- examples/temp.txt | 1917 ----------------- examples/temp2.txt | 1917 ----------------- 6 files changed, 48 insertions(+), 3926 deletions(-) delete mode 100644 examples/temp.txt delete mode 100644 examples/temp2.txt diff --git a/USE_CASES.md b/USE_CASES.md index 520825d6..4bea0387 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -1,7 +1,8 @@ This documentation provides examples for specific use cases. Please [open an issue](https://github.com/sendgrid/sendgrid-java/issues) or make a pull request for any use cases you would like us to document here. Thank you! -# Table of Contents +# Use Cases +* [Send Mail Examples](examples/helpers/mail/Example.java) * [Transactional Templates](#transactional-templates) * [Legacy Templates](#legacy-templates) * [How to Setup a Domain Authentication](#domain-authentication) @@ -9,7 +10,6 @@ This documentation provides examples for specific use cases. Please [open an iss * [Send an Email With Twilio Email (Pilot)](#send-an-email-with-twilio-email-pilot) * [Send an SMS Message](#send-an-sms-message) - # Transactional Templates For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html) in the UI or via the API. Following is the template content we used for testing. @@ -110,7 +110,6 @@ public class Example { } ``` - # Legacy Templates For this example, we assume you have created a [legacy template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. diff --git a/examples/accesssettings/DeleteIPFromAccessSettings.java b/examples/accesssettings/DeleteIPFromAccessSettings.java index d084c99c..ce9eeb0c 100644 --- a/examples/accesssettings/DeleteIPFromAccessSettings.java +++ b/examples/accesssettings/DeleteIPFromAccessSettings.java @@ -10,20 +10,20 @@ */ public class DeleteIPFromAccessSettings extends Example { - - private void run() throws IOException { - try { - String endPoint = "access_settings/whitelist"; - String body = "{\"ids\":[1,2,3]}"; - Request request = createRequest(Method.DELETE, endPoint, body); - Response response = execute(request); - printResponseInfo(response); - } catch (IOException ex) { - throw ex; - } + private void run() throws IOException { + try { + String endPoint = "access_settings/whitelist"; + String body = "{\"ids\":[1,2,3]}"; + Request request = createRequest(Method.DELETE, endPoint, body); + Response response = execute(request); + printResponseInfo(response); + } catch (IOException ex) { + throw ex; } + } - public static void main(String[] args) throws IOException { - DeleteIPFromAccessSettings deleteIPFromAccessSettings = new DeleteIPFromAccessSettings(); - deleteIPFromAccessSettings.run(); -} \ No newline at end of file + public static void main(String[] args) throws IOException { + DeleteIPFromAccessSettings deleteIPFromAccessSettings = new DeleteIPFromAccessSettings(); + deleteIPFromAccessSettings.run(); + } +} diff --git a/examples/helpers/mail/Example.java b/examples/helpers/mail/Example.java index a74cdbd5..8ff7ed42 100644 --- a/examples/helpers/mail/Example.java +++ b/examples/helpers/mail/Example.java @@ -1,33 +1,16 @@ -import com.sendgrid.ASM; -import com.sendgrid.Attachments; -import com.sendgrid.BccSettings; -import com.sendgrid.ClickTrackingSetting; -import com.sendgrid.Client; -import com.sendgrid.Content; -import com.sendgrid.Email; -import com.sendgrid.FooterSetting; -import com.sendgrid.GoogleAnalyticsSetting; -import com.sendgrid.Mail; -import com.sendgrid.MailSettings; import com.sendgrid.Method; -import com.sendgrid.OpenTrackingSetting; -import com.sendgrid.Personalization; import com.sendgrid.Request; import com.sendgrid.Response; import com.sendgrid.SendGrid; -import com.sendgrid.Setting; -import com.sendgrid.SpamCheckSetting; -import com.sendgrid.SubscriptionTrackingSetting; -import com.sendgrid.TrackingSettings; +import com.sendgrid.helpers.mail.Mail; +import com.sendgrid.helpers.mail.objects.*; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; public class Example { // Fully populated Mail object - public static Mail buildKitchenSink() throws IOException { + public static Mail buildKitchenSink() { Mail mail = new Mail(); Email fromEmail = new Email(); @@ -143,7 +126,7 @@ public static Mail buildKitchenSink() throws IOException { ASM asm = new ASM(); asm.setGroupId(99); - asm.setGroupsToDisplay(new int[] {4,5,6,7,8}); + asm.setGroupsToDisplay(new int[]{4, 5, 6, 7, 8}); mail.setASM(asm); // This must be a valid [batch ID](https://sendgrid.com/docs/API_Reference/SMTP_API/scheduling_parameters.html) to work @@ -208,7 +191,7 @@ public static Mail buildKitchenSink() throws IOException { } // API V3 Dynamic Template implementation - public static Mail buildDynamicTemplate() throws IOException { + public static Mail buildDynamicTemplate() { Mail mail = new Mail(); Email fromEmail = new Email(); @@ -223,12 +206,12 @@ public static Mail buildDynamicTemplate() throws IOException { personalization.addDynamicTemplateData("city", "Denver"); personalization.addTo(new Email("test@example.com")); mail.addPersonalization(personalization); - + return mail; } // Minimum required to send an email - public static Mail buildHelloEmail() throws IOException { + public static Mail buildHelloEmail() { Email from = new Email("test@example.com"); String subject = "Hello World from the Twilio SendGrid Java Library"; Email to = new Email("test@example.com"); @@ -244,65 +227,38 @@ public static Mail buildHelloEmail() throws IOException { } public static void baselineExample() throws IOException { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - sg.addRequestHeader("X-Mock", "true"); - - Request request = new Request(); - Mail helloWorld = buildHelloEmail(); - try { - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody(helloWorld.build()); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } + final Mail helloWorld = buildHelloEmail(); + send(helloWorld); } public static void kitchenSinkExample() throws IOException { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - sg.addRequestHeader("X-Mock", "true"); - - Request request = new Request(); - Mail kitchenSink = buildKitchenSink(); - try { - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody(kitchenSink.build()); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } + final Mail kitchenSink = buildKitchenSink(); + send(kitchenSink); } public static void dynamicTemplateExample() throws IOException { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + final Mail dynamicTemplate = buildDynamicTemplate(); + send(dynamicTemplate); + } + + private static void send(final Mail mail) throws IOException { + final SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); sg.addRequestHeader("X-Mock", "true"); - Request request = new Request(); - Mail dynamicTemplate = buildDynamicTemplate(); - try { - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody(dynamicTemplate.build()); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } + final Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + + final Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); } public static void main(String[] args) throws IOException { - // baselineExample(); - // kitchenSinkExample(); + baselineExample(); + kitchenSinkExample(); dynamicTemplateExample(); } -} \ No newline at end of file +} diff --git a/examples/ips/RetrieveAllPools.java b/examples/ips/RetrieveAllPools.java index a4362ce0..93bf78ec 100644 --- a/examples/ips/RetrieveAllPools.java +++ b/examples/ips/RetrieveAllPools.java @@ -27,4 +27,5 @@ public static void main(String[] args) throws IOException { } catch (IOException ex) { throw ex; } - } \ No newline at end of file + } +} diff --git a/examples/temp.txt b/examples/temp.txt deleted file mode 100644 index 83556ad8..00000000 --- a/examples/temp.txt +++ /dev/null @@ -1,1917 +0,0 @@ -META-INF/ -META-INF/MANIFEST.MF -LICENSE.md -com/ -com/sendgrid/ -com/sendgrid/SendGridAPI.class -com/sendgrid/SendGrid$1.class -com/sendgrid/APICallback.class -com/sendgrid/SendGrid$2.class -com/sendgrid/SendGrid.class -com/sendgrid/SpamCheckSetting.class -com/sendgrid/Attachments$Builder.class -com/sendgrid/OpenTrackingSetting.class -com/sendgrid/Setting.class -com/sendgrid/GoogleAnalyticsSetting.class -com/sendgrid/ASM.class -com/sendgrid/FooterSetting.class -com/sendgrid/Personalization.class -com/sendgrid/Email.class -com/sendgrid/MailSettings.class -com/sendgrid/BccSettings.class -com/sendgrid/Content.class -com/sendgrid/TrackingSettings.class -com/sendgrid/ClickTrackingSetting.class -com/sendgrid/Attachments.class -com/sendgrid/ContentVerifier.class -com/sendgrid/SubscriptionTrackingSetting.class -com/sendgrid/Mail.class -com/sendgrid/RateLimitException.class -META-INF/maven/ -META-INF/maven/com.sendgrid/ -META-INF/maven/com.sendgrid/sendgrid-java/ -META-INF/maven/com.sendgrid/sendgrid-java/pom.xml -META-INF/maven/com.sendgrid/sendgrid-java/pom.properties -com/sendgrid/Client$1.class -com/sendgrid/Client.class -com/sendgrid/HttpDeleteWithBody.class -com/sendgrid/Method.class -com/sendgrid/Request.class -com/sendgrid/Response.class -com/sendgrid/SendGridResponseHandler.class -org/ -org/apache/ -org/apache/http/ -org/apache/http/message/ -org/apache/http/message/BasicHeaderElementIterator.class -org/apache/http/message/LineParser.class -org/apache/http/message/BasicHttpEntityEnclosingRequest.class -org/apache/http/message/HeaderValueFormatter.class -org/apache/http/message/BasicLineFormatter.class -org/apache/http/message/BasicLineParser.class -org/apache/http/message/HeaderGroup.class -org/apache/http/message/BasicNameValuePair.class -org/apache/http/message/BufferedHeader.class -org/apache/http/message/BasicListHeaderIterator.class -org/apache/http/message/BasicHeader.class -org/apache/http/message/LineFormatter.class -org/apache/http/message/BasicHttpResponse.class -org/apache/http/message/BasicTokenIterator.class -org/apache/http/message/BasicRequestLine.class -org/apache/http/message/ParserCursor.class -org/apache/http/message/BasicHeaderValueParser.class -org/apache/http/message/BasicHeaderValueFormatter.class -org/apache/http/message/BasicHttpRequest.class -org/apache/http/message/HeaderValueParser.class -org/apache/http/message/AbstractHttpMessage.class -org/apache/http/message/TokenParser.class -org/apache/http/message/BasicHeaderIterator.class -org/apache/http/message/BasicHeaderElement.class -org/apache/http/message/BasicStatusLine.class -org/apache/http/concurrent/ -org/apache/http/concurrent/BasicFuture.class -org/apache/http/concurrent/Cancellable.class -org/apache/http/concurrent/FutureCallback.class -org/apache/http/HeaderElement.class -org/apache/http/TruncatedChunkException.class -org/apache/http/ExceptionLogger$1.class -org/apache/http/version.properties -org/apache/http/HeaderElementIterator.class -org/apache/http/ProtocolVersion.class -org/apache/http/ExceptionLogger.class -org/apache/http/HttpRequestFactory.class -org/apache/http/HttpConnection.class -org/apache/http/HttpRequestInterceptor.class -org/apache/http/ContentTooLongException.class -org/apache/http/UnsupportedHttpVersionException.class -org/apache/http/HttpResponseInterceptor.class -org/apache/http/HttpInetConnection.class -org/apache/http/HttpEntity.class -org/apache/http/HttpException.class -org/apache/http/annotation/ -org/apache/http/annotation/Obsolete.class -org/apache/http/annotation/Experimental.class -org/apache/http/annotation/NotThreadSafe.class -org/apache/http/annotation/Immutable.class -org/apache/http/annotation/ThreadSafe.class -org/apache/http/annotation/GuardedBy.class -org/apache/http/Consts.class -org/apache/http/HttpConnectionMetrics.class -org/apache/http/HttpMessage.class -org/apache/http/MethodNotSupportedException.class -org/apache/http/ParseException.class -org/apache/http/params/ -org/apache/http/params/CoreProtocolPNames.class -org/apache/http/params/SyncBasicHttpParams.class -org/apache/http/params/DefaultedHttpParams.class -org/apache/http/params/HttpParams.class -org/apache/http/params/AbstractHttpParams.class -org/apache/http/params/HttpAbstractParamBean.class -org/apache/http/params/HttpConnectionParams.class -org/apache/http/params/BasicHttpParams.class -org/apache/http/params/HttpConnectionParamBean.class -org/apache/http/params/CoreConnectionPNames.class -org/apache/http/params/HttpParamConfig.class -org/apache/http/params/HttpProtocolParamBean.class -org/apache/http/params/HttpProtocolParams.class -org/apache/http/params/HttpParamsNames.class -org/apache/http/ReasonPhraseCatalog.class -org/apache/http/MalformedChunkCodingException.class -org/apache/http/FormattedHeader.class -org/apache/http/HttpResponse.class -org/apache/http/HeaderIterator.class -org/apache/http/HttpHeaders.class -org/apache/http/HttpClientConnection.class -org/apache/http/HttpHost.class -org/apache/http/protocol/ -org/apache/http/protocol/ResponseDate.class -org/apache/http/protocol/ChainBuilder.class -org/apache/http/protocol/HttpDateGenerator.class -org/apache/http/protocol/HttpRequestHandlerMapper.class -org/apache/http/protocol/HTTP.class -org/apache/http/protocol/SyncBasicHttpContext.class -org/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter.class -org/apache/http/protocol/ImmutableHttpProcessor.class -org/apache/http/protocol/BasicHttpContext.class -org/apache/http/protocol/HttpProcessorBuilder.class -org/apache/http/protocol/RequestTargetHost.class -org/apache/http/protocol/ResponseConnControl.class -org/apache/http/protocol/HttpRequestInterceptorList.class -org/apache/http/protocol/HttpRequestExecutor.class -org/apache/http/protocol/RequestUserAgent.class -org/apache/http/protocol/HttpRequestHandlerResolver.class -org/apache/http/protocol/BasicHttpProcessor.class -org/apache/http/protocol/ResponseServer.class -org/apache/http/protocol/ResponseContent.class -org/apache/http/protocol/RequestDate.class -org/apache/http/protocol/HttpService.class -org/apache/http/protocol/HttpContext.class -org/apache/http/protocol/RequestConnControl.class -org/apache/http/protocol/UriHttpRequestHandlerMapper.class -org/apache/http/protocol/UriPatternMatcher.class -org/apache/http/protocol/HttpCoreContext.class -org/apache/http/protocol/HttpProcessor.class -org/apache/http/protocol/RequestExpectContinue.class -org/apache/http/protocol/HttpExpectationVerifier.class -org/apache/http/protocol/HttpRequestHandlerRegistry.class -org/apache/http/protocol/HttpResponseInterceptorList.class -org/apache/http/protocol/HttpRequestHandler.class -org/apache/http/protocol/ExecutionContext.class -org/apache/http/protocol/RequestContent.class -org/apache/http/protocol/DefaultedHttpContext.class -org/apache/http/HttpStatus.class -org/apache/http/TokenIterator.class -org/apache/http/ssl/ -org/apache/http/ssl/SSLContextBuilder$TrustManagerDelegate.class -org/apache/http/ssl/TrustStrategy.class -org/apache/http/ssl/PrivateKeyStrategy.class -org/apache/http/ssl/SSLContextBuilder$KeyManagerDelegate.class -org/apache/http/ssl/SSLContexts.class -org/apache/http/ssl/SSLContextBuilder.class -org/apache/http/ssl/SSLInitializationException.class -org/apache/http/ssl/PrivateKeyDetails.class -org/apache/http/ConnectionReuseStrategy.class -org/apache/http/pool/ -org/apache/http/pool/AbstractConnPool$4.class -org/apache/http/pool/AbstractConnPool$2.class -org/apache/http/pool/PoolEntry.class -org/apache/http/pool/ConnFactory.class -org/apache/http/pool/RouteSpecificPool.class -org/apache/http/pool/AbstractConnPool$3.class -org/apache/http/pool/PoolEntryCallback.class -org/apache/http/pool/AbstractConnPool.class -org/apache/http/pool/ConnPoolControl.class -org/apache/http/pool/PoolStats.class -org/apache/http/pool/AbstractConnPool$1.class -org/apache/http/pool/ConnPool.class -org/apache/http/pool/PoolEntryFuture.class -org/apache/http/config/ -org/apache/http/config/MessageConstraints$Builder.class -org/apache/http/config/ConnectionConfig.class -org/apache/http/config/SocketConfig.class -org/apache/http/config/Registry.class -org/apache/http/config/ConnectionConfig$Builder.class -org/apache/http/config/RegistryBuilder.class -org/apache/http/config/SocketConfig$Builder.class -org/apache/http/config/MessageConstraints.class -org/apache/http/config/Lookup.class -org/apache/http/HttpResponseFactory.class -org/apache/http/HttpRequest.class -org/apache/http/RequestLine.class -org/apache/http/HttpServerConnection.class -org/apache/http/NameValuePair.class -org/apache/http/util/ -org/apache/http/util/LangUtils.class -org/apache/http/util/NetUtils.class -org/apache/http/util/EntityUtils.class -org/apache/http/util/EncodingUtils.class -org/apache/http/util/TextUtils.class -org/apache/http/util/CharsetUtils.class -org/apache/http/util/CharArrayBuffer.class -org/apache/http/util/ByteArrayBuffer.class -org/apache/http/util/Asserts.class -org/apache/http/util/ExceptionUtils.class -org/apache/http/util/Args.class -org/apache/http/util/VersionInfo.class -org/apache/http/HttpVersion.class -org/apache/http/HttpConnectionFactory.class -org/apache/http/impl/ -org/apache/http/impl/DefaultHttpRequestFactory.class -org/apache/http/impl/SocketHttpClientConnection.class -org/apache/http/impl/bootstrap/ -org/apache/http/impl/bootstrap/SSLServerSetupHandler.class -org/apache/http/impl/bootstrap/HttpServer$Status.class -org/apache/http/impl/bootstrap/ThreadFactoryImpl.class -org/apache/http/impl/bootstrap/Worker.class -org/apache/http/impl/bootstrap/RequestListener.class -org/apache/http/impl/bootstrap/ServerBootstrap.class -org/apache/http/impl/bootstrap/HttpServer.class -org/apache/http/impl/SocketHttpServerConnection.class -org/apache/http/impl/BHttpConnectionBase.class -org/apache/http/impl/DefaultConnectionReuseStrategy.class -org/apache/http/impl/DefaultHttpServerConnection.class -org/apache/http/impl/AbstractHttpClientConnection.class -org/apache/http/impl/EnglishReasonPhraseCatalog.class -org/apache/http/impl/DefaultBHttpServerConnection.class -org/apache/http/impl/DefaultHttpClientConnection.class -org/apache/http/impl/pool/ -org/apache/http/impl/pool/BasicConnPool.class -org/apache/http/impl/pool/BasicConnFactory.class -org/apache/http/impl/pool/BasicPoolEntry.class -org/apache/http/impl/DefaultBHttpClientConnectionFactory.class -org/apache/http/impl/DefaultBHttpClientConnection.class -org/apache/http/impl/AbstractHttpServerConnection.class -org/apache/http/impl/io/ -org/apache/http/impl/io/HttpResponseWriter.class -org/apache/http/impl/io/HttpTransportMetricsImpl.class -org/apache/http/impl/io/AbstractSessionInputBuffer.class -org/apache/http/impl/io/DefaultHttpRequestWriter.class -org/apache/http/impl/io/SessionInputBufferImpl.class -org/apache/http/impl/io/ContentLengthOutputStream.class -org/apache/http/impl/io/SocketInputBuffer.class -org/apache/http/impl/io/DefaultHttpResponseWriterFactory.class -org/apache/http/impl/io/DefaultHttpRequestWriterFactory.class -org/apache/http/impl/io/IdentityOutputStream.class -org/apache/http/impl/io/IdentityInputStream.class -org/apache/http/impl/io/SocketOutputBuffer.class -org/apache/http/impl/io/ChunkedOutputStream.class -org/apache/http/impl/io/DefaultHttpResponseParserFactory.class -org/apache/http/impl/io/ContentLengthInputStream.class -org/apache/http/impl/io/HttpRequestWriter.class -org/apache/http/impl/io/DefaultHttpResponseWriter.class -org/apache/http/impl/io/DefaultHttpRequestParserFactory.class -org/apache/http/impl/io/AbstractMessageParser.class -org/apache/http/impl/io/EmptyInputStream.class -org/apache/http/impl/io/DefaultHttpRequestParser.class -org/apache/http/impl/io/SessionOutputBufferImpl.class -org/apache/http/impl/io/HttpRequestParser.class -org/apache/http/impl/io/AbstractSessionOutputBuffer.class -org/apache/http/impl/io/DefaultHttpResponseParser.class -org/apache/http/impl/io/ChunkedInputStream.class -org/apache/http/impl/io/AbstractMessageWriter.class -org/apache/http/impl/io/HttpResponseParser.class -org/apache/http/impl/entity/ -org/apache/http/impl/entity/DisallowIdentityContentLengthStrategy.class -org/apache/http/impl/entity/LaxContentLengthStrategy.class -org/apache/http/impl/entity/StrictContentLengthStrategy.class -org/apache/http/impl/entity/EntityDeserializer.class -org/apache/http/impl/entity/EntitySerializer.class -org/apache/http/impl/DefaultHttpResponseFactory.class -org/apache/http/impl/DefaultBHttpServerConnectionFactory.class -org/apache/http/impl/HttpConnectionMetricsImpl.class -org/apache/http/impl/ConnSupport.class -org/apache/http/impl/NoConnectionReuseStrategy.class -org/apache/http/ConnectionClosedException.class -org/apache/http/StatusLine.class -org/apache/http/io/ -org/apache/http/io/HttpMessageWriterFactory.class -org/apache/http/io/BufferInfo.class -org/apache/http/io/HttpMessageParserFactory.class -org/apache/http/io/HttpTransportMetrics.class -org/apache/http/io/SessionOutputBuffer.class -org/apache/http/io/HttpMessageParser.class -org/apache/http/io/EofSensor.class -org/apache/http/io/HttpMessageWriter.class -org/apache/http/io/SessionInputBuffer.class -org/apache/http/NoHttpResponseException.class -org/apache/http/HttpEntityEnclosingRequest.class -org/apache/http/entity/ -org/apache/http/entity/ContentLengthStrategy.class -org/apache/http/entity/FileEntity.class -org/apache/http/entity/InputStreamEntity.class -org/apache/http/entity/SerializableEntity.class -org/apache/http/entity/StringEntity.class -org/apache/http/entity/HttpEntityWrapper.class -org/apache/http/entity/ContentProducer.class -org/apache/http/entity/BufferedHttpEntity.class -org/apache/http/entity/ByteArrayEntity.class -org/apache/http/entity/EntityTemplate.class -org/apache/http/entity/BasicHttpEntity.class -org/apache/http/entity/ContentType.class -org/apache/http/entity/AbstractHttpEntity.class -org/apache/http/ProtocolException.class -org/apache/http/MessageConstraintException.class -org/apache/http/ExceptionLogger$2.class -org/apache/http/Header.class -META-INF/DEPENDENCIES -META-INF/NOTICE -META-INF/LICENSE -META-INF/maven/org.apache.httpcomponents/ -META-INF/maven/org.apache.httpcomponents/httpcore/ -META-INF/maven/org.apache.httpcomponents/httpcore/pom.xml -META-INF/maven/org.apache.httpcomponents/httpcore/pom.properties -org/apache/http/auth/ -org/apache/http/auth/KerberosCredentials.class -org/apache/http/auth/AuthSchemeRegistry.class -org/apache/http/auth/ChallengeState.class -org/apache/http/auth/NTUserPrincipal.class -org/apache/http/auth/InvalidCredentialsException.class -org/apache/http/auth/AuthSchemeRegistry$1.class -org/apache/http/auth/NTCredentials.class -org/apache/http/auth/AuthScheme.class -org/apache/http/auth/AuthenticationException.class -org/apache/http/auth/params/ -org/apache/http/auth/params/AuthParams.class -org/apache/http/auth/params/AuthParamBean.class -org/apache/http/auth/params/AuthPNames.class -org/apache/http/auth/BasicUserPrincipal.class -org/apache/http/auth/AuthSchemeProvider.class -org/apache/http/auth/ContextAwareAuthScheme.class -org/apache/http/auth/AuthProtocolState.class -org/apache/http/auth/AuthScope.class -org/apache/http/auth/AuthSchemeFactory.class -org/apache/http/auth/AUTH.class -org/apache/http/auth/Credentials.class -org/apache/http/auth/UsernamePasswordCredentials.class -org/apache/http/auth/AuthOption.class -org/apache/http/auth/MalformedChallengeException.class -org/apache/http/auth/AuthState.class -org/apache/http/cookie/ -org/apache/http/cookie/CookieSpecRegistry.class -org/apache/http/cookie/CookieSpec.class -org/apache/http/cookie/CookieRestrictionViolationException.class -org/apache/http/cookie/CookieIdentityComparator.class -org/apache/http/cookie/SM.class -org/apache/http/cookie/CookieOrigin.class -org/apache/http/cookie/CookieAttributeHandler.class -org/apache/http/cookie/SetCookie2.class -org/apache/http/cookie/params/ -org/apache/http/cookie/params/CookieSpecParamBean.class -org/apache/http/cookie/params/CookieSpecPNames.class -org/apache/http/cookie/MalformedCookieException.class -org/apache/http/cookie/ClientCookie.class -org/apache/http/cookie/CommonCookieAttributeHandler.class -org/apache/http/cookie/CookieSpecRegistry$1.class -org/apache/http/cookie/CookiePathComparator.class -org/apache/http/cookie/SetCookie.class -org/apache/http/cookie/Cookie.class -org/apache/http/cookie/CookieSpecProvider.class -org/apache/http/cookie/CookiePriorityComparator.class -org/apache/http/cookie/CookieSpecFactory.class -org/apache/http/client/ -org/apache/http/client/RedirectStrategy.class -org/apache/http/client/ConnectionBackoffStrategy.class -org/apache/http/client/version.properties -org/apache/http/client/AuthenticationStrategy.class -org/apache/http/client/HttpClient.class -org/apache/http/client/methods/ -org/apache/http/client/methods/HttpOptions.class -org/apache/http/client/methods/AbortableHttpRequest.class -org/apache/http/client/methods/HttpRequestBase.class -org/apache/http/client/methods/AbstractExecutionAwareRequest$2.class -org/apache/http/client/methods/RequestBuilder.class -org/apache/http/client/methods/HttpGet.class -org/apache/http/client/methods/HttpPatch.class -org/apache/http/client/methods/HttpDelete.class -org/apache/http/client/methods/HttpUriRequest.class -org/apache/http/client/methods/CloseableHttpResponse.class -org/apache/http/client/methods/HttpRequestWrapper$1.class -org/apache/http/client/methods/RequestBuilder$InternalEntityEclosingRequest.class -org/apache/http/client/methods/HttpRequestWrapper$HttpEntityEnclosingRequestWrapper.class -org/apache/http/client/methods/RequestBuilder$InternalRequest.class -org/apache/http/client/methods/HttpRequestWrapper.class -org/apache/http/client/methods/HttpHead.class -org/apache/http/client/methods/HttpExecutionAware.class -org/apache/http/client/methods/AbstractExecutionAwareRequest.class -org/apache/http/client/methods/Configurable.class -org/apache/http/client/methods/AbstractExecutionAwareRequest$1.class -org/apache/http/client/methods/HttpPost.class -org/apache/http/client/methods/HttpEntityEnclosingRequestBase.class -org/apache/http/client/methods/HttpTrace.class -org/apache/http/client/methods/HttpPut.class -org/apache/http/client/CredentialsProvider.class -org/apache/http/client/UserTokenHandler.class -org/apache/http/client/CookieStore.class -org/apache/http/client/HttpResponseException.class -org/apache/http/client/ClientProtocolException.class -org/apache/http/client/AuthenticationHandler.class -org/apache/http/client/params/ -org/apache/http/client/params/HttpClientParams.class -org/apache/http/client/params/ClientPNames.class -org/apache/http/client/params/ClientParamBean.class -org/apache/http/client/params/CookiePolicy.class -org/apache/http/client/params/AuthPolicy.class -org/apache/http/client/params/HttpClientParamConfig.class -org/apache/http/client/params/AllClientPNames.class -org/apache/http/client/CircularRedirectException.class -org/apache/http/client/utils/ -org/apache/http/client/utils/Punycode.class -org/apache/http/client/utils/Idn.class -org/apache/http/client/utils/HttpClientUtils.class -org/apache/http/client/utils/URIBuilder.class -org/apache/http/client/utils/URIUtils.class -org/apache/http/client/utils/DateUtils$DateFormatHolder.class -org/apache/http/client/utils/URLEncodedUtils.class -org/apache/http/client/utils/JdkIdn.class -org/apache/http/client/utils/CloneUtils.class -org/apache/http/client/utils/DateUtils.class -org/apache/http/client/utils/Rfc3492Idn.class -org/apache/http/client/protocol/ -org/apache/http/client/protocol/RequestAcceptEncoding.class -org/apache/http/client/protocol/ResponseProcessCookies.class -org/apache/http/client/protocol/RequestDefaultHeaders.class -org/apache/http/client/protocol/ResponseContentEncoding$2.class -org/apache/http/client/protocol/ClientContext.class -org/apache/http/client/protocol/ResponseAuthCache.class -org/apache/http/client/protocol/RequestAuthenticationBase$1.class -org/apache/http/client/protocol/RequestTargetAuthentication.class -org/apache/http/client/protocol/RequestProxyAuthentication.class -org/apache/http/client/protocol/RequestClientConnControl.class -org/apache/http/client/protocol/ResponseAuthCache$1.class -org/apache/http/client/protocol/RequestAddCookies.class -org/apache/http/client/protocol/RequestAuthCache.class -org/apache/http/client/protocol/ClientContextConfigurer.class -org/apache/http/client/protocol/ResponseContentEncoding$1.class -org/apache/http/client/protocol/RequestExpectContinue.class -org/apache/http/client/protocol/ResponseContentEncoding.class -org/apache/http/client/protocol/RequestAuthenticationBase.class -org/apache/http/client/protocol/HttpClientContext.class -org/apache/http/client/BackoffManager.class -org/apache/http/client/config/ -org/apache/http/client/config/RequestConfig$Builder.class -org/apache/http/client/config/RequestConfig.class -org/apache/http/client/config/CookieSpecs.class -org/apache/http/client/config/AuthSchemes.class -org/apache/http/client/AuthCache.class -org/apache/http/client/ResponseHandler.class -org/apache/http/client/RedirectException.class -org/apache/http/client/RedirectHandler.class -org/apache/http/client/NonRepeatableRequestException.class -org/apache/http/client/entity/ -org/apache/http/client/entity/DeflateInputStream.class -org/apache/http/client/entity/InputStreamFactory.class -org/apache/http/client/entity/UrlEncodedFormEntity.class -org/apache/http/client/entity/DeflateInputStream$DeflateStream.class -org/apache/http/client/entity/GzipCompressingEntity.class -org/apache/http/client/entity/EntityBuilder.class -org/apache/http/client/entity/LazyDecompressingInputStream.class -org/apache/http/client/entity/DecompressingEntity.class -org/apache/http/client/entity/GzipDecompressingEntity$1.class -org/apache/http/client/entity/DeflateDecompressingEntity$1.class -org/apache/http/client/entity/GzipDecompressingEntity.class -org/apache/http/client/entity/DeflateDecompressingEntity.class -org/apache/http/client/HttpRequestRetryHandler.class -org/apache/http/client/RequestDirector.class -org/apache/http/client/ServiceUnavailableRetryStrategy.class -org/apache/http/conn/ -org/apache/http/conn/OperatedClientConnection.class -org/apache/http/conn/ManagedClientConnection.class -org/apache/http/conn/ConnectionRequest.class -org/apache/http/conn/EofSensorInputStream.class -org/apache/http/conn/ClientConnectionOperator.class -org/apache/http/conn/HttpClientConnectionOperator.class -org/apache/http/conn/BasicManagedEntity.class -org/apache/http/conn/ConnectionKeepAliveStrategy.class -org/apache/http/conn/ManagedHttpClientConnection.class -org/apache/http/conn/BasicEofSensorWatcher.class -org/apache/http/conn/HttpClientConnectionManager.class -org/apache/http/conn/HttpRoutedConnection.class -org/apache/http/conn/EofSensorWatcher.class -org/apache/http/conn/routing/ -org/apache/http/conn/routing/BasicRouteDirector.class -org/apache/http/conn/routing/RouteInfo$LayerType.class -org/apache/http/conn/routing/RouteInfo.class -org/apache/http/conn/routing/RouteTracker.class -org/apache/http/conn/routing/HttpRouteDirector.class -org/apache/http/conn/routing/HttpRoutePlanner.class -org/apache/http/conn/routing/RouteInfo$TunnelType.class -org/apache/http/conn/routing/HttpRoute.class -org/apache/http/conn/SchemePortResolver.class -org/apache/http/conn/ClientConnectionManager.class -org/apache/http/conn/params/ -org/apache/http/conn/params/ConnManagerParamBean.class -org/apache/http/conn/params/ConnRouteParamBean.class -org/apache/http/conn/params/ConnManagerParams$1.class -org/apache/http/conn/params/ConnManagerPNames.class -org/apache/http/conn/params/ConnConnectionParamBean.class -org/apache/http/conn/params/ConnManagerParams.class -org/apache/http/conn/params/ConnPerRouteBean.class -org/apache/http/conn/params/ConnConnectionPNames.class -org/apache/http/conn/params/ConnPerRoute.class -org/apache/http/conn/params/ConnRoutePNames.class -org/apache/http/conn/params/ConnRouteParams.class -org/apache/http/conn/socket/ -org/apache/http/conn/socket/PlainConnectionSocketFactory.class -org/apache/http/conn/socket/ConnectionSocketFactory.class -org/apache/http/conn/socket/LayeredConnectionSocketFactory.class -org/apache/http/conn/ClientConnectionRequest.class -org/apache/http/conn/ssl/ -org/apache/http/conn/ssl/TrustSelfSignedStrategy.class -org/apache/http/conn/ssl/SSLContextBuilder$TrustManagerDelegate.class -org/apache/http/conn/ssl/DefaultHostnameVerifier$1.class -org/apache/http/conn/ssl/DefaultHostnameVerifier$TYPE.class -org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.class -org/apache/http/conn/ssl/TrustStrategy.class -org/apache/http/conn/ssl/PrivateKeyStrategy.class -org/apache/http/conn/ssl/SSLContextBuilder$KeyManagerDelegate.class -org/apache/http/conn/ssl/X509HostnameVerifier.class -org/apache/http/conn/ssl/AbstractVerifier.class -org/apache/http/conn/ssl/SSLSocketFactory.class -org/apache/http/conn/ssl/SSLConnectionSocketFactory.class -org/apache/http/conn/ssl/SSLContexts.class -org/apache/http/conn/ssl/AllowAllHostnameVerifier.class -org/apache/http/conn/ssl/StrictHostnameVerifier.class -org/apache/http/conn/ssl/SSLContextBuilder.class -org/apache/http/conn/ssl/DefaultHostnameVerifier.class -org/apache/http/conn/ssl/SSLInitializationException.class -org/apache/http/conn/ssl/PrivateKeyDetails.class -org/apache/http/conn/ssl/NoopHostnameVerifier.class -org/apache/http/conn/ConnectionPoolTimeoutException.class -org/apache/http/conn/ConnectionReleaseTrigger.class -org/apache/http/conn/ClientConnectionManagerFactory.class -org/apache/http/conn/scheme/ -org/apache/http/conn/scheme/SchemeSocketFactoryAdaptor.class -org/apache/http/conn/scheme/SchemeLayeredSocketFactory.class -org/apache/http/conn/scheme/PlainSocketFactory.class -org/apache/http/conn/scheme/LayeredSocketFactoryAdaptor.class -org/apache/http/conn/scheme/Scheme.class -org/apache/http/conn/scheme/HostNameResolver.class -org/apache/http/conn/scheme/SchemeRegistry.class -org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor2.class -org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor.class -org/apache/http/conn/scheme/SocketFactory.class -org/apache/http/conn/scheme/SchemeSocketFactory.class -org/apache/http/conn/scheme/SocketFactoryAdaptor.class -org/apache/http/conn/scheme/LayeredSchemeSocketFactory.class -org/apache/http/conn/scheme/LayeredSocketFactory.class -org/apache/http/conn/ConnectTimeoutException.class -org/apache/http/conn/util/ -org/apache/http/conn/util/DomainType.class -org/apache/http/conn/util/InetAddressUtils.class -org/apache/http/conn/util/PublicSuffixList.class -org/apache/http/conn/util/PublicSuffixMatcher.class -org/apache/http/conn/util/PublicSuffixListParser.class -org/apache/http/conn/util/PublicSuffixMatcherLoader.class -org/apache/http/conn/HttpInetSocketAddress.class -org/apache/http/conn/HttpConnectionFactory.class -org/apache/http/conn/HttpHostConnectException.class -org/apache/http/conn/DnsResolver.class -org/apache/http/conn/MultihomePlainSocketFactory.class -org/apache/http/conn/UnsupportedSchemeException.class -org/apache/http/impl/auth/ -org/apache/http/impl/auth/NTLMEngineImpl$CipherGen.class -org/apache/http/impl/auth/NTLMScheme$State.class -org/apache/http/impl/auth/GGSSchemeBase$1.class -org/apache/http/impl/auth/NTLMEngineException.class -org/apache/http/impl/auth/KerberosSchemeFactory.class -org/apache/http/impl/auth/RFC2617Scheme.class -org/apache/http/impl/auth/NTLMScheme.class -org/apache/http/impl/auth/KerberosScheme.class -org/apache/http/impl/auth/HttpEntityDigester.class -org/apache/http/impl/auth/SPNegoScheme.class -org/apache/http/impl/auth/BasicSchemeFactory.class -org/apache/http/impl/auth/NegotiateScheme.class -org/apache/http/impl/auth/NTLMSchemeFactory.class -org/apache/http/impl/auth/NTLMEngineImpl$NTLMMessage.class -org/apache/http/impl/auth/GGSSchemeBase.class -org/apache/http/impl/auth/HttpAuthenticator$1.class -org/apache/http/impl/auth/NTLMEngine.class -org/apache/http/impl/auth/DigestScheme.class -org/apache/http/impl/auth/NTLMEngineImpl.class -org/apache/http/impl/auth/AuthSchemeBase.class -org/apache/http/impl/auth/NTLMEngineImpl$Type3Message.class -org/apache/http/impl/auth/NegotiateSchemeFactory.class -org/apache/http/impl/auth/SpnegoTokenGenerator.class -org/apache/http/impl/auth/NTLMEngineImpl$HMACMD5.class -org/apache/http/impl/auth/HttpAuthenticator.class -org/apache/http/impl/auth/GGSSchemeBase$State.class -org/apache/http/impl/auth/NTLMEngineImpl$MD4.class -org/apache/http/impl/auth/NTLMEngineImpl$Type2Message.class -org/apache/http/impl/auth/DigestSchemeFactory.class -org/apache/http/impl/auth/SPNegoSchemeFactory.class -org/apache/http/impl/auth/NTLMEngineImpl$Type1Message.class -org/apache/http/impl/auth/BasicScheme.class -org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.class -org/apache/http/impl/cookie/ -org/apache/http/impl/cookie/BestMatchSpec.class -org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.class -org/apache/http/impl/cookie/DefaultCookieSpecProvider$CompatibilityLevel.class -org/apache/http/impl/cookie/BasicClientCookie2.class -org/apache/http/impl/cookie/BasicSecureHandler.class -org/apache/http/impl/cookie/RFC2109Spec.class -org/apache/http/impl/cookie/RFC2965Spec.class -org/apache/http/impl/cookie/PublicSuffixFilter.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider$2.class -org/apache/http/impl/cookie/BasicDomainHandler.class -org/apache/http/impl/cookie/DefaultCookieSpecProvider.class -org/apache/http/impl/cookie/RFC2109VersionHandler.class -org/apache/http/impl/cookie/RFC2109DomainHandler.class -org/apache/http/impl/cookie/BasicMaxAgeHandler.class -org/apache/http/impl/cookie/NetscapeDraftSpec.class -org/apache/http/impl/cookie/LaxExpiresHandler.class -org/apache/http/impl/cookie/BasicExpiresHandler.class -org/apache/http/impl/cookie/BrowserCompatSpec.class -org/apache/http/impl/cookie/RFC2965SpecFactory.class -org/apache/http/impl/cookie/DefaultCookieSpec.class -org/apache/http/impl/cookie/BrowserCompatSpec$1.class -org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.class -org/apache/http/impl/cookie/IgnoreSpec.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider.class -org/apache/http/impl/cookie/BestMatchSpecFactory.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider$CompatibilityLevel.class -org/apache/http/impl/cookie/RFC6265StrictSpec.class -org/apache/http/impl/cookie/RFC2965PortAttributeHandler.class -org/apache/http/impl/cookie/IgnoreSpecProvider.class -org/apache/http/impl/cookie/BasicClientCookie.class -org/apache/http/impl/cookie/NetscapeDraftHeaderParser.class -org/apache/http/impl/cookie/DefaultCookieSpecProvider$1.class -org/apache/http/impl/cookie/BasicPathHandler.class -org/apache/http/impl/cookie/LaxMaxAgeHandler.class -org/apache/http/impl/cookie/RFC6265CookieSpecBase.class -org/apache/http/impl/cookie/RFC2965SpecProvider.class -org/apache/http/impl/cookie/NetscapeDomainHandler.class -org/apache/http/impl/cookie/RFC2965DomainAttributeHandler.class -org/apache/http/impl/cookie/PublicSuffixDomainFilter.class -org/apache/http/impl/cookie/IgnoreSpecFactory.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider$1.class -org/apache/http/impl/cookie/RFC2965VersionAttributeHandler.class -org/apache/http/impl/cookie/AbstractCookieAttributeHandler.class -org/apache/http/impl/cookie/BrowserCompatSpecFactory.class -org/apache/http/impl/cookie/RFC2109SpecProvider.class -org/apache/http/impl/cookie/BrowserCompatSpecFactory$SecurityLevel.class -org/apache/http/impl/cookie/NetscapeDraftSpecFactory.class -org/apache/http/impl/cookie/CookieSpecBase.class -org/apache/http/impl/cookie/RFC6265LaxSpec.class -org/apache/http/impl/cookie/DateParseException.class -org/apache/http/impl/cookie/RFC2109SpecFactory.class -org/apache/http/impl/cookie/RFC6265CookieSpec.class -org/apache/http/impl/cookie/PublicSuffixListParser.class -org/apache/http/impl/cookie/AbstractCookieSpec.class -org/apache/http/impl/cookie/BasicCommentHandler.class -org/apache/http/impl/cookie/DateUtils.class -org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.class -org/apache/http/impl/cookie/NetscapeDraftSpecProvider.class -org/apache/http/impl/client/ -org/apache/http/impl/client/TargetAuthenticationStrategy.class -org/apache/http/impl/client/LaxRedirectStrategy.class -org/apache/http/impl/client/NoopUserTokenHandler.class -org/apache/http/impl/client/RoutedRequest.class -org/apache/http/impl/client/AuthenticationStrategyImpl.class -org/apache/http/impl/client/MinimalHttpClient$1.class -org/apache/http/impl/client/CloseableHttpResponseProxy.class -org/apache/http/impl/client/DefaultProxyAuthenticationHandler.class -org/apache/http/impl/client/DefaultRedirectStrategy.class -org/apache/http/impl/client/FutureRequestExecutionService.class -org/apache/http/impl/client/FutureRequestExecutionMetrics$DurationCounter.class -org/apache/http/impl/client/HttpClientBuilder.class -org/apache/http/impl/client/AutoRetryHttpClient.class -org/apache/http/impl/client/BasicCredentialsProvider.class -org/apache/http/impl/client/AbstractResponseHandler.class -org/apache/http/impl/client/IdleConnectionEvictor$DefaultThreadFactory.class -org/apache/http/impl/client/RequestWrapper.class -org/apache/http/impl/client/HttpRequestFutureTask.class -org/apache/http/impl/client/ProxyClient.class -org/apache/http/impl/client/ContentEncodingHttpClient.class -org/apache/http/impl/client/RedirectLocations.class -org/apache/http/impl/client/DefaultHttpRequestRetryHandler.class -org/apache/http/impl/client/HttpRequestTaskCallable.class -org/apache/http/impl/client/StandardHttpRequestRetryHandler.class -org/apache/http/impl/client/AIMDBackoffManager.class -org/apache/http/impl/client/AbstractAuthenticationHandler.class -org/apache/http/impl/client/DecompressingHttpClient.class -org/apache/http/impl/client/SystemClock.class -org/apache/http/impl/client/DefaultRedirectStrategyAdaptor.class -org/apache/http/impl/client/EntityEnclosingRequestWrapper$EntityWrapper.class -org/apache/http/impl/client/AbstractHttpClient.class -org/apache/http/impl/client/Clock.class -org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.class -org/apache/http/impl/client/InternalHttpClient$1.class -org/apache/http/impl/client/SystemDefaultHttpClient.class -org/apache/http/impl/client/AuthenticationStrategyAdaptor.class -org/apache/http/impl/client/IdleConnectionEvictor.class -org/apache/http/impl/client/SystemDefaultCredentialsProvider.class -org/apache/http/impl/client/FutureRequestExecutionMetrics.class -org/apache/http/impl/client/InternalHttpClient.class -org/apache/http/impl/client/HttpClientBuilder$2.class -org/apache/http/impl/client/NullBackoffStrategy.class -org/apache/http/impl/client/DefaultBackoffStrategy.class -org/apache/http/impl/client/HttpAuthenticator.class -org/apache/http/impl/client/BasicCookieStore.class -org/apache/http/impl/client/EntityEnclosingRequestWrapper.class -org/apache/http/impl/client/CookieSpecRegistries.class -org/apache/http/impl/client/DefaultClientConnectionReuseStrategy.class -org/apache/http/impl/client/DefaultServiceUnavailableRetryStrategy.class -org/apache/http/impl/client/DefaultRedirectHandler.class -org/apache/http/impl/client/HttpClients.class -org/apache/http/impl/client/CloseableHttpClient.class -org/apache/http/impl/client/TunnelRefusedException.class -org/apache/http/impl/client/MinimalHttpClient.class -org/apache/http/impl/client/BasicAuthCache.class -org/apache/http/impl/client/BasicResponseHandler.class -org/apache/http/impl/client/DefaultUserTokenHandler.class -org/apache/http/impl/client/HttpClientBuilder$1.class -org/apache/http/impl/client/ClientParamsStack.class -org/apache/http/impl/client/DefaultRequestDirector.class -org/apache/http/impl/client/DefaultTargetAuthenticationHandler.class -org/apache/http/impl/client/IdleConnectionEvictor$1.class -org/apache/http/impl/client/DefaultHttpClient.class -org/apache/http/impl/client/ProxyAuthenticationStrategy.class -org/apache/http/impl/execchain/ -org/apache/http/impl/execchain/ServiceUnavailableRetryExec.class -org/apache/http/impl/execchain/RequestEntityProxy.class -org/apache/http/impl/execchain/ProtocolExec.class -org/apache/http/impl/execchain/MinimalClientExec.class -org/apache/http/impl/execchain/MainClientExec.class -org/apache/http/impl/execchain/RedirectExec.class -org/apache/http/impl/execchain/ClientExecChain.class -org/apache/http/impl/execchain/ConnectionHolder.class -org/apache/http/impl/execchain/HttpResponseProxy.class -org/apache/http/impl/execchain/RetryExec.class -org/apache/http/impl/execchain/TunnelRefusedException.class -org/apache/http/impl/execchain/RequestAbortedException.class -org/apache/http/impl/execchain/ResponseEntityProxy.class -org/apache/http/impl/execchain/BackoffStrategyExec.class -org/apache/http/impl/conn/ -org/apache/http/impl/conn/HttpPoolEntry.class -org/apache/http/impl/conn/DefaultClientConnection.class -org/apache/http/impl/conn/CPool.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager.class -org/apache/http/impl/conn/Wire.class -org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.class -org/apache/http/impl/conn/IdleConnectionHandler.class -org/apache/http/impl/conn/ManagedHttpClientConnectionFactory.class -org/apache/http/impl/conn/SystemDefaultRoutePlanner$1.class -org/apache/http/impl/conn/CPoolProxy.class -org/apache/http/impl/conn/DefaultHttpRoutePlanner.class -org/apache/http/impl/conn/PoolingClientConnectionManager.class -org/apache/http/impl/conn/DefaultManagedHttpClientConnection.class -org/apache/http/impl/conn/LoggingSessionInputBuffer.class -org/apache/http/impl/conn/ConnectionShutdownException.class -org/apache/http/impl/conn/LoggingOutputStream.class -org/apache/http/impl/conn/ManagedClientConnectionImpl.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager$ConfigData.class -org/apache/http/impl/conn/DefaultResponseParser.class -org/apache/http/impl/conn/LoggingInputStream.class -org/apache/http/impl/conn/AbstractClientConnAdapter.class -org/apache/http/impl/conn/SystemDefaultRoutePlanner.class -org/apache/http/impl/conn/tsccm/ -org/apache/http/impl/conn/tsccm/ConnPoolByRoute.class -org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager$1.class -org/apache/http/impl/conn/tsccm/RouteSpecificPool.class -org/apache/http/impl/conn/tsccm/ConnPoolByRoute$1.class -org/apache/http/impl/conn/tsccm/PoolEntryRequest.class -org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.class -org/apache/http/impl/conn/tsccm/WaitingThread.class -org/apache/http/impl/conn/tsccm/WaitingThreadAborter.class -org/apache/http/impl/conn/tsccm/RouteSpecificPool$1.class -org/apache/http/impl/conn/tsccm/AbstractConnPool.class -org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.class -org/apache/http/impl/conn/tsccm/BasicPooledConnAdapter.class -org/apache/http/impl/conn/tsccm/BasicPoolEntry.class -org/apache/http/impl/conn/SingleClientConnManager$ConnAdapter.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager$InternalConnectionFactory.class -org/apache/http/impl/conn/DefaultHttpResponseParserFactory.class -org/apache/http/impl/conn/AbstractPoolEntry.class -org/apache/http/impl/conn/ProxySelectorRoutePlanner$1.class -org/apache/http/impl/conn/AbstractPooledConnAdapter.class -org/apache/http/impl/conn/SingleClientConnManager$PoolEntry.class -org/apache/http/impl/conn/HttpConnPool$InternalConnFactory.class -org/apache/http/impl/conn/SchemeRegistryFactory.class -org/apache/http/impl/conn/DefaultClientConnectionOperator.class -org/apache/http/impl/conn/LoggingManagedHttpClientConnection.class -org/apache/http/impl/conn/LoggingSessionOutputBuffer.class -org/apache/http/impl/conn/BasicHttpClientConnectionManager$1.class -org/apache/http/impl/conn/DefaultProxyRoutePlanner.class -org/apache/http/impl/conn/BasicClientConnectionManager$1.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager$1.class -org/apache/http/impl/conn/BasicHttpClientConnectionManager.class -org/apache/http/impl/conn/PoolingClientConnectionManager$1.class -org/apache/http/impl/conn/IdleConnectionHandler$TimeValues.class -org/apache/http/impl/conn/CPoolEntry.class -org/apache/http/impl/conn/DefaultSchemePortResolver.class -org/apache/http/impl/conn/SingleClientConnManager.class -org/apache/http/impl/conn/DefaultRoutePlanner.class -org/apache/http/impl/conn/InMemoryDnsResolver.class -org/apache/http/impl/conn/DefaultHttpResponseParser.class -org/apache/http/impl/conn/HttpConnPool.class -org/apache/http/impl/conn/BasicClientConnectionManager.class -org/apache/http/impl/conn/SingleClientConnManager$1.class -org/apache/http/impl/conn/ProxySelectorRoutePlanner.class -org/apache/http/impl/conn/SystemDefaultDnsResolver.class -mozilla/ -mozilla/public-suffix-list.txt -META-INF/maven/org.apache.httpcomponents/httpclient/ -META-INF/maven/org.apache.httpcomponents/httpclient/pom.xml -META-INF/maven/org.apache.httpcomponents/httpclient/pom.properties -META-INF/NOTICE.txt -META-INF/LICENSE.txt -org/apache/commons/ -org/apache/commons/logging/ -org/apache/commons/logging/impl/ -org/apache/commons/logging/impl/AvalonLogger.class -org/apache/commons/logging/impl/SimpleLog.class -org/apache/commons/logging/impl/Log4JLogger.class -org/apache/commons/logging/impl/WeakHashtable.class -org/apache/commons/logging/impl/WeakHashtable$1.class -org/apache/commons/logging/impl/Jdk14Logger.class -org/apache/commons/logging/impl/ServletContextCleaner.class -org/apache/commons/logging/impl/WeakHashtable$WeakKey.class -org/apache/commons/logging/impl/NoOpLog.class -org/apache/commons/logging/impl/LogKitLogger.class -org/apache/commons/logging/impl/LogFactoryImpl$3.class -org/apache/commons/logging/impl/LogFactoryImpl$1.class -org/apache/commons/logging/impl/WeakHashtable$Referenced.class -org/apache/commons/logging/impl/SimpleLog$1.class -org/apache/commons/logging/impl/Jdk13LumberjackLogger.class -org/apache/commons/logging/impl/LogFactoryImpl.class -org/apache/commons/logging/impl/LogFactoryImpl$2.class -org/apache/commons/logging/impl/WeakHashtable$Entry.class -org/apache/commons/logging/LogSource.class -org/apache/commons/logging/LogFactory$4.class -org/apache/commons/logging/LogFactory$3.class -org/apache/commons/logging/LogFactory$6.class -org/apache/commons/logging/LogConfigurationException.class -org/apache/commons/logging/LogFactory.class -org/apache/commons/logging/LogFactory$5.class -org/apache/commons/logging/LogFactory$1.class -org/apache/commons/logging/LogFactory$2.class -org/apache/commons/logging/Log.class -META-INF/maven/commons-logging/ -META-INF/maven/commons-logging/commons-logging/ -META-INF/maven/commons-logging/commons-logging/pom.xml -META-INF/maven/commons-logging/commons-logging/pom.properties -org/apache/commons/codec/ -org/apache/commons/codec/binary/ -org/apache/commons/codec/binary/Base32.class -org/apache/commons/codec/binary/Base32InputStream.class -org/apache/commons/codec/binary/Base32OutputStream.class -org/apache/commons/codec/binary/Base64.class -org/apache/commons/codec/binary/Base64InputStream.class -org/apache/commons/codec/binary/Base64OutputStream.class -org/apache/commons/codec/binary/BaseNCodec$Context.class -org/apache/commons/codec/binary/BaseNCodec.class -org/apache/commons/codec/binary/BaseNCodecInputStream.class -org/apache/commons/codec/binary/BaseNCodecOutputStream.class -org/apache/commons/codec/binary/BinaryCodec.class -org/apache/commons/codec/binary/Hex.class -org/apache/commons/codec/binary/StringUtils.class -org/apache/commons/codec/BinaryDecoder.class -org/apache/commons/codec/BinaryEncoder.class -org/apache/commons/codec/CharEncoding.class -org/apache/commons/codec/Charsets.class -org/apache/commons/codec/Decoder.class -org/apache/commons/codec/DecoderException.class -org/apache/commons/codec/digest/ -org/apache/commons/codec/digest/B64.class -org/apache/commons/codec/digest/Crypt.class -org/apache/commons/codec/digest/DigestUtils.class -org/apache/commons/codec/digest/Md5Crypt.class -org/apache/commons/codec/digest/MessageDigestAlgorithms.class -org/apache/commons/codec/digest/Sha2Crypt.class -org/apache/commons/codec/digest/UnixCrypt.class -org/apache/commons/codec/Encoder.class -org/apache/commons/codec/EncoderException.class -org/apache/commons/codec/language/ -org/apache/commons/codec/language/AbstractCaverphone.class -org/apache/commons/codec/language/bm/ -org/apache/commons/codec/language/bm/ash_approx_any.txt -org/apache/commons/codec/language/bm/ash_approx_common.txt -org/apache/commons/codec/language/bm/ash_approx_cyrillic.txt -org/apache/commons/codec/language/bm/ash_approx_english.txt -org/apache/commons/codec/language/bm/ash_approx_french.txt -org/apache/commons/codec/language/bm/ash_approx_german.txt -org/apache/commons/codec/language/bm/ash_approx_hebrew.txt -org/apache/commons/codec/language/bm/ash_approx_hungarian.txt -org/apache/commons/codec/language/bm/ash_approx_polish.txt -org/apache/commons/codec/language/bm/ash_approx_romanian.txt -org/apache/commons/codec/language/bm/ash_approx_russian.txt -org/apache/commons/codec/language/bm/ash_approx_spanish.txt -org/apache/commons/codec/language/bm/ash_exact_any.txt -org/apache/commons/codec/language/bm/ash_exact_approx_common.txt -org/apache/commons/codec/language/bm/ash_exact_common.txt -org/apache/commons/codec/language/bm/ash_exact_cyrillic.txt -org/apache/commons/codec/language/bm/ash_exact_english.txt -org/apache/commons/codec/language/bm/ash_exact_french.txt -org/apache/commons/codec/language/bm/ash_exact_german.txt -org/apache/commons/codec/language/bm/ash_exact_hebrew.txt -org/apache/commons/codec/language/bm/ash_exact_hungarian.txt -org/apache/commons/codec/language/bm/ash_exact_polish.txt -org/apache/commons/codec/language/bm/ash_exact_romanian.txt -org/apache/commons/codec/language/bm/ash_exact_russian.txt -org/apache/commons/codec/language/bm/ash_exact_spanish.txt -org/apache/commons/codec/language/bm/ash_hebrew_common.txt -org/apache/commons/codec/language/bm/ash_languages.txt -org/apache/commons/codec/language/bm/ash_rules_any.txt -org/apache/commons/codec/language/bm/ash_rules_cyrillic.txt -org/apache/commons/codec/language/bm/ash_rules_english.txt -org/apache/commons/codec/language/bm/ash_rules_french.txt -org/apache/commons/codec/language/bm/ash_rules_german.txt -org/apache/commons/codec/language/bm/ash_rules_hebrew.txt -org/apache/commons/codec/language/bm/ash_rules_hungarian.txt -org/apache/commons/codec/language/bm/ash_rules_polish.txt -org/apache/commons/codec/language/bm/ash_rules_romanian.txt -org/apache/commons/codec/language/bm/ash_rules_russian.txt -org/apache/commons/codec/language/bm/ash_rules_spanish.txt -org/apache/commons/codec/language/bm/BeiderMorseEncoder.class -org/apache/commons/codec/language/bm/gen_approx_any.txt -org/apache/commons/codec/language/bm/gen_approx_arabic.txt -org/apache/commons/codec/language/bm/gen_approx_common.txt -org/apache/commons/codec/language/bm/gen_approx_cyrillic.txt -org/apache/commons/codec/language/bm/gen_approx_czech.txt -org/apache/commons/codec/language/bm/gen_approx_dutch.txt -org/apache/commons/codec/language/bm/gen_approx_english.txt -org/apache/commons/codec/language/bm/gen_approx_french.txt -org/apache/commons/codec/language/bm/gen_approx_german.txt -org/apache/commons/codec/language/bm/gen_approx_greek.txt -org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt -org/apache/commons/codec/language/bm/gen_approx_hebrew.txt -org/apache/commons/codec/language/bm/gen_approx_hungarian.txt -org/apache/commons/codec/language/bm/gen_approx_italian.txt -org/apache/commons/codec/language/bm/gen_approx_polish.txt -org/apache/commons/codec/language/bm/gen_approx_portuguese.txt -org/apache/commons/codec/language/bm/gen_approx_romanian.txt -org/apache/commons/codec/language/bm/gen_approx_russian.txt -org/apache/commons/codec/language/bm/gen_approx_spanish.txt -org/apache/commons/codec/language/bm/gen_approx_turkish.txt -org/apache/commons/codec/language/bm/gen_exact_any.txt -org/apache/commons/codec/language/bm/gen_exact_approx_common.txt -org/apache/commons/codec/language/bm/gen_exact_arabic.txt -org/apache/commons/codec/language/bm/gen_exact_common.txt -org/apache/commons/codec/language/bm/gen_exact_cyrillic.txt -org/apache/commons/codec/language/bm/gen_exact_czech.txt -org/apache/commons/codec/language/bm/gen_exact_dutch.txt -org/apache/commons/codec/language/bm/gen_exact_english.txt -org/apache/commons/codec/language/bm/gen_exact_french.txt -org/apache/commons/codec/language/bm/gen_exact_german.txt -org/apache/commons/codec/language/bm/gen_exact_greek.txt -org/apache/commons/codec/language/bm/gen_exact_greeklatin.txt -org/apache/commons/codec/language/bm/gen_exact_hebrew.txt -org/apache/commons/codec/language/bm/gen_exact_hungarian.txt -org/apache/commons/codec/language/bm/gen_exact_italian.txt -org/apache/commons/codec/language/bm/gen_exact_polish.txt -org/apache/commons/codec/language/bm/gen_exact_portuguese.txt -org/apache/commons/codec/language/bm/gen_exact_romanian.txt -org/apache/commons/codec/language/bm/gen_exact_russian.txt -org/apache/commons/codec/language/bm/gen_exact_spanish.txt -org/apache/commons/codec/language/bm/gen_exact_turkish.txt -org/apache/commons/codec/language/bm/gen_hebrew_common.txt -org/apache/commons/codec/language/bm/gen_languages.txt -org/apache/commons/codec/language/bm/gen_rules_any.txt -org/apache/commons/codec/language/bm/gen_rules_arabic.txt -org/apache/commons/codec/language/bm/gen_rules_cyrillic.txt -org/apache/commons/codec/language/bm/gen_rules_czech.txt -org/apache/commons/codec/language/bm/gen_rules_dutch.txt -org/apache/commons/codec/language/bm/gen_rules_english.txt -org/apache/commons/codec/language/bm/gen_rules_french.txt -org/apache/commons/codec/language/bm/gen_rules_german.txt -org/apache/commons/codec/language/bm/gen_rules_greek.txt -org/apache/commons/codec/language/bm/gen_rules_greeklatin.txt -org/apache/commons/codec/language/bm/gen_rules_hebrew.txt -org/apache/commons/codec/language/bm/gen_rules_hungarian.txt -org/apache/commons/codec/language/bm/gen_rules_italian.txt -org/apache/commons/codec/language/bm/gen_rules_polish.txt -org/apache/commons/codec/language/bm/gen_rules_portuguese.txt -org/apache/commons/codec/language/bm/gen_rules_romanian.txt -org/apache/commons/codec/language/bm/gen_rules_russian.txt -org/apache/commons/codec/language/bm/gen_rules_spanish.txt -org/apache/commons/codec/language/bm/gen_rules_turkish.txt -org/apache/commons/codec/language/bm/Lang$1.class -org/apache/commons/codec/language/bm/Lang$LangRule.class -org/apache/commons/codec/language/bm/Lang.class -org/apache/commons/codec/language/bm/lang.txt -org/apache/commons/codec/language/bm/Languages$1.class -org/apache/commons/codec/language/bm/Languages$2.class -org/apache/commons/codec/language/bm/Languages$LanguageSet.class -org/apache/commons/codec/language/bm/Languages$SomeLanguages.class -org/apache/commons/codec/language/bm/Languages.class -org/apache/commons/codec/language/bm/NameType.class -org/apache/commons/codec/language/bm/PhoneticEngine$1.class -org/apache/commons/codec/language/bm/PhoneticEngine$PhonemeBuilder.class -org/apache/commons/codec/language/bm/PhoneticEngine$RulesApplication.class -org/apache/commons/codec/language/bm/PhoneticEngine.class -org/apache/commons/codec/language/bm/ResourceConstants.class -org/apache/commons/codec/language/bm/Rule$1.class -org/apache/commons/codec/language/bm/Rule$10.class -org/apache/commons/codec/language/bm/Rule$2.class -org/apache/commons/codec/language/bm/Rule$3.class -org/apache/commons/codec/language/bm/Rule$4.class -org/apache/commons/codec/language/bm/Rule$5.class -org/apache/commons/codec/language/bm/Rule$6.class -org/apache/commons/codec/language/bm/Rule$7.class -org/apache/commons/codec/language/bm/Rule$8.class -org/apache/commons/codec/language/bm/Rule$9.class -org/apache/commons/codec/language/bm/Rule$Phoneme$1.class -org/apache/commons/codec/language/bm/Rule$Phoneme.class -org/apache/commons/codec/language/bm/Rule$PhonemeExpr.class -org/apache/commons/codec/language/bm/Rule$PhonemeList.class -org/apache/commons/codec/language/bm/Rule$RPattern.class -org/apache/commons/codec/language/bm/Rule.class -org/apache/commons/codec/language/bm/RuleType.class -org/apache/commons/codec/language/bm/sep_approx_any.txt -org/apache/commons/codec/language/bm/sep_approx_common.txt -org/apache/commons/codec/language/bm/sep_approx_french.txt -org/apache/commons/codec/language/bm/sep_approx_hebrew.txt -org/apache/commons/codec/language/bm/sep_approx_italian.txt -org/apache/commons/codec/language/bm/sep_approx_portuguese.txt -org/apache/commons/codec/language/bm/sep_approx_spanish.txt -org/apache/commons/codec/language/bm/sep_exact_any.txt -org/apache/commons/codec/language/bm/sep_exact_approx_common.txt -org/apache/commons/codec/language/bm/sep_exact_common.txt -org/apache/commons/codec/language/bm/sep_exact_french.txt -org/apache/commons/codec/language/bm/sep_exact_hebrew.txt -org/apache/commons/codec/language/bm/sep_exact_italian.txt -org/apache/commons/codec/language/bm/sep_exact_portuguese.txt -org/apache/commons/codec/language/bm/sep_exact_spanish.txt -org/apache/commons/codec/language/bm/sep_hebrew_common.txt -org/apache/commons/codec/language/bm/sep_languages.txt -org/apache/commons/codec/language/bm/sep_rules_any.txt -org/apache/commons/codec/language/bm/sep_rules_french.txt -org/apache/commons/codec/language/bm/sep_rules_hebrew.txt -org/apache/commons/codec/language/bm/sep_rules_italian.txt -org/apache/commons/codec/language/bm/sep_rules_portuguese.txt -org/apache/commons/codec/language/bm/sep_rules_spanish.txt -org/apache/commons/codec/language/Caverphone.class -org/apache/commons/codec/language/Caverphone1.class -org/apache/commons/codec/language/Caverphone2.class -org/apache/commons/codec/language/ColognePhonetic$CologneBuffer.class -org/apache/commons/codec/language/ColognePhonetic$CologneInputBuffer.class -org/apache/commons/codec/language/ColognePhonetic$CologneOutputBuffer.class -org/apache/commons/codec/language/ColognePhonetic.class -org/apache/commons/codec/language/DoubleMetaphone$DoubleMetaphoneResult.class -org/apache/commons/codec/language/DoubleMetaphone.class -org/apache/commons/codec/language/MatchRatingApproachEncoder.class -org/apache/commons/codec/language/Metaphone.class -org/apache/commons/codec/language/Nysiis.class -org/apache/commons/codec/language/RefinedSoundex.class -org/apache/commons/codec/language/Soundex.class -org/apache/commons/codec/language/SoundexUtils.class -org/apache/commons/codec/net/ -org/apache/commons/codec/net/BCodec.class -org/apache/commons/codec/net/QCodec.class -org/apache/commons/codec/net/QuotedPrintableCodec.class -org/apache/commons/codec/net/RFC1522Codec.class -org/apache/commons/codec/net/URLCodec.class -org/apache/commons/codec/net/Utils.class -org/apache/commons/codec/StringDecoder.class -org/apache/commons/codec/StringEncoder.class -org/apache/commons/codec/StringEncoderComparator.class -META-INF/maven/commons-codec/ -META-INF/maven/commons-codec/commons-codec/ -META-INF/maven/commons-codec/commons-codec/pom.xml -META-INF/maven/commons-codec/commons-codec/pom.properties -META-INF/maven/com.fasterxml.jackson.core/ -META-INF/maven/com.fasterxml.jackson.core/jackson-core/ -META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.properties -META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml -META-INF/services/ -META-INF/services/com.fasterxml.jackson.core.JsonFactory -com/fasterxml/ -com/fasterxml/jackson/ -com/fasterxml/jackson/core/ -com/fasterxml/jackson/core/Base64Variant.class -com/fasterxml/jackson/core/Base64Variants.class -com/fasterxml/jackson/core/FormatFeature.class -com/fasterxml/jackson/core/FormatSchema.class -com/fasterxml/jackson/core/JsonEncoding.class -com/fasterxml/jackson/core/JsonFactory$Feature.class -com/fasterxml/jackson/core/JsonFactory.class -com/fasterxml/jackson/core/JsonGenerationException.class -com/fasterxml/jackson/core/JsonGenerator$1.class -com/fasterxml/jackson/core/JsonGenerator$Feature.class -com/fasterxml/jackson/core/JsonGenerator.class -com/fasterxml/jackson/core/JsonLocation.class -com/fasterxml/jackson/core/JsonParseException.class -com/fasterxml/jackson/core/JsonParser$Feature.class -com/fasterxml/jackson/core/JsonParser$NumberType.class -com/fasterxml/jackson/core/JsonParser.class -com/fasterxml/jackson/core/JsonPointer.class -com/fasterxml/jackson/core/JsonProcessingException.class -com/fasterxml/jackson/core/JsonStreamContext.class -com/fasterxml/jackson/core/JsonToken.class -com/fasterxml/jackson/core/JsonTokenId.class -com/fasterxml/jackson/core/JsonpCharacterEscapes.class -com/fasterxml/jackson/core/ObjectCodec.class -com/fasterxml/jackson/core/PrettyPrinter.class -com/fasterxml/jackson/core/SerializableString.class -com/fasterxml/jackson/core/TreeCodec.class -com/fasterxml/jackson/core/TreeNode.class -com/fasterxml/jackson/core/Version.class -com/fasterxml/jackson/core/Versioned.class -com/fasterxml/jackson/core/async/ -com/fasterxml/jackson/core/async/ByteArrayFeeder.class -com/fasterxml/jackson/core/async/ByteBufferFeeder.class -com/fasterxml/jackson/core/async/NonBlockingInputFeeder.class -com/fasterxml/jackson/core/base/ -com/fasterxml/jackson/core/base/GeneratorBase.class -com/fasterxml/jackson/core/base/ParserBase.class -com/fasterxml/jackson/core/base/ParserMinimalBase.class -com/fasterxml/jackson/core/filter/ -com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.class -com/fasterxml/jackson/core/filter/FilteringParserDelegate.class -com/fasterxml/jackson/core/filter/JsonPointerBasedFilter.class -com/fasterxml/jackson/core/filter/TokenFilter.class -com/fasterxml/jackson/core/filter/TokenFilterContext.class -com/fasterxml/jackson/core/format/ -com/fasterxml/jackson/core/format/DataFormatDetector.class -com/fasterxml/jackson/core/format/DataFormatMatcher.class -com/fasterxml/jackson/core/format/InputAccessor$Std.class -com/fasterxml/jackson/core/format/InputAccessor.class -com/fasterxml/jackson/core/format/MatchStrength.class -com/fasterxml/jackson/core/io/ -com/fasterxml/jackson/core/io/CharTypes.class -com/fasterxml/jackson/core/io/CharacterEscapes.class -com/fasterxml/jackson/core/io/DataOutputAsStream.class -com/fasterxml/jackson/core/io/IOContext.class -com/fasterxml/jackson/core/io/InputDecorator.class -com/fasterxml/jackson/core/io/JsonEOFException.class -com/fasterxml/jackson/core/io/JsonStringEncoder.class -com/fasterxml/jackson/core/io/MergedStream.class -com/fasterxml/jackson/core/io/NumberInput.class -com/fasterxml/jackson/core/io/NumberOutput.class -com/fasterxml/jackson/core/io/OutputDecorator.class -com/fasterxml/jackson/core/io/SegmentedStringWriter.class -com/fasterxml/jackson/core/io/SerializedString.class -com/fasterxml/jackson/core/io/UTF32Reader.class -com/fasterxml/jackson/core/io/UTF8Writer.class -com/fasterxml/jackson/core/json/ -com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.class -com/fasterxml/jackson/core/json/DupDetector.class -com/fasterxml/jackson/core/json/JsonGeneratorImpl.class -com/fasterxml/jackson/core/json/JsonReadContext.class -com/fasterxml/jackson/core/json/JsonWriteContext.class -com/fasterxml/jackson/core/json/PackageVersion.class -com/fasterxml/jackson/core/json/ReaderBasedJsonParser.class -com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.class -com/fasterxml/jackson/core/json/UTF8JsonGenerator.class -com/fasterxml/jackson/core/json/UTF8StreamJsonParser.class -com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.class -com/fasterxml/jackson/core/json/async/ -com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.class -com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.class -com/fasterxml/jackson/core/sym/ -com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer$TableInfo.class -com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.class -com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$Bucket.class -com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$TableInfo.class -com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer.class -com/fasterxml/jackson/core/sym/Name.class -com/fasterxml/jackson/core/sym/Name1.class -com/fasterxml/jackson/core/sym/Name2.class -com/fasterxml/jackson/core/sym/Name3.class -com/fasterxml/jackson/core/sym/NameN.class -com/fasterxml/jackson/core/type/ -com/fasterxml/jackson/core/type/ResolvedType.class -com/fasterxml/jackson/core/type/TypeReference.class -com/fasterxml/jackson/core/type/WritableTypeId$Inclusion.class -com/fasterxml/jackson/core/type/WritableTypeId.class -com/fasterxml/jackson/core/util/ -com/fasterxml/jackson/core/util/BufferRecycler.class -com/fasterxml/jackson/core/util/BufferRecyclers.class -com/fasterxml/jackson/core/util/ByteArrayBuilder.class -com/fasterxml/jackson/core/util/DefaultIndenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter$FixedSpaceIndenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter$Indenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter$NopIndenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter.class -com/fasterxml/jackson/core/util/Instantiatable.class -com/fasterxml/jackson/core/util/InternCache.class -com/fasterxml/jackson/core/util/JsonGeneratorDelegate.class -com/fasterxml/jackson/core/util/JsonParserDelegate.class -com/fasterxml/jackson/core/util/JsonParserSequence.class -com/fasterxml/jackson/core/util/MinimalPrettyPrinter.class -com/fasterxml/jackson/core/util/RequestPayload.class -com/fasterxml/jackson/core/util/Separators.class -com/fasterxml/jackson/core/util/TextBuffer.class -com/fasterxml/jackson/core/util/ThreadLocalBufferManager$ThreadLocalBufferManagerHolder.class -com/fasterxml/jackson/core/util/ThreadLocalBufferManager.class -com/fasterxml/jackson/core/util/VersionUtil.class -META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/ -META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.properties -META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml -com/fasterxml/jackson/annotation/ -com/fasterxml/jackson/annotation/JacksonAnnotation.class -com/fasterxml/jackson/annotation/JacksonAnnotationValue.class -com/fasterxml/jackson/annotation/JacksonAnnotationsInside.class -com/fasterxml/jackson/annotation/JacksonInject$Value.class -com/fasterxml/jackson/annotation/JacksonInject.class -com/fasterxml/jackson/annotation/JsonAlias.class -com/fasterxml/jackson/annotation/JsonAnyGetter.class -com/fasterxml/jackson/annotation/JsonAnySetter.class -com/fasterxml/jackson/annotation/JsonAutoDetect$1.class -com/fasterxml/jackson/annotation/JsonAutoDetect$Value.class -com/fasterxml/jackson/annotation/JsonAutoDetect$Visibility.class -com/fasterxml/jackson/annotation/JsonAutoDetect.class -com/fasterxml/jackson/annotation/JsonBackReference.class -com/fasterxml/jackson/annotation/JsonClassDescription.class -com/fasterxml/jackson/annotation/JsonCreator$Mode.class -com/fasterxml/jackson/annotation/JsonCreator.class -com/fasterxml/jackson/annotation/JsonEnumDefaultValue.class -com/fasterxml/jackson/annotation/JsonFilter.class -com/fasterxml/jackson/annotation/JsonFormat$Feature.class -com/fasterxml/jackson/annotation/JsonFormat$Features.class -com/fasterxml/jackson/annotation/JsonFormat$Shape.class -com/fasterxml/jackson/annotation/JsonFormat$Value.class -com/fasterxml/jackson/annotation/JsonFormat.class -com/fasterxml/jackson/annotation/JsonGetter.class -com/fasterxml/jackson/annotation/JsonIdentityInfo.class -com/fasterxml/jackson/annotation/JsonIdentityReference.class -com/fasterxml/jackson/annotation/JsonIgnore.class -com/fasterxml/jackson/annotation/JsonIgnoreProperties$Value.class -com/fasterxml/jackson/annotation/JsonIgnoreProperties.class -com/fasterxml/jackson/annotation/JsonIgnoreType.class -com/fasterxml/jackson/annotation/JsonInclude$Include.class -com/fasterxml/jackson/annotation/JsonInclude$Value.class -com/fasterxml/jackson/annotation/JsonInclude.class -com/fasterxml/jackson/annotation/JsonManagedReference.class -com/fasterxml/jackson/annotation/JsonMerge.class -com/fasterxml/jackson/annotation/JsonProperty$Access.class -com/fasterxml/jackson/annotation/JsonProperty.class -com/fasterxml/jackson/annotation/JsonPropertyDescription.class -com/fasterxml/jackson/annotation/JsonPropertyOrder.class -com/fasterxml/jackson/annotation/JsonRawValue.class -com/fasterxml/jackson/annotation/JsonRootName.class -com/fasterxml/jackson/annotation/JsonSetter$Value.class -com/fasterxml/jackson/annotation/JsonSetter.class -com/fasterxml/jackson/annotation/JsonSubTypes$Type.class -com/fasterxml/jackson/annotation/JsonSubTypes.class -com/fasterxml/jackson/annotation/JsonTypeId.class -com/fasterxml/jackson/annotation/JsonTypeInfo$As.class -com/fasterxml/jackson/annotation/JsonTypeInfo$Id.class -com/fasterxml/jackson/annotation/JsonTypeInfo$None.class -com/fasterxml/jackson/annotation/JsonTypeInfo.class -com/fasterxml/jackson/annotation/JsonTypeName.class -com/fasterxml/jackson/annotation/JsonUnwrapped.class -com/fasterxml/jackson/annotation/JsonValue.class -com/fasterxml/jackson/annotation/JsonView.class -com/fasterxml/jackson/annotation/Nulls.class -com/fasterxml/jackson/annotation/ObjectIdGenerator$IdKey.class -com/fasterxml/jackson/annotation/ObjectIdGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$Base.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$IntSequenceGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$None.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$PropertyGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$StringIdGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$UUIDGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators.class -com/fasterxml/jackson/annotation/ObjectIdResolver.class -com/fasterxml/jackson/annotation/OptBoolean.class -com/fasterxml/jackson/annotation/PropertyAccessor.class -com/fasterxml/jackson/annotation/SimpleObjectIdResolver.class -META-INF/maven/com.fasterxml.jackson.core/jackson-databind/ -META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.properties -META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml -META-INF/services/com.fasterxml.jackson.core.ObjectCodec -com/fasterxml/jackson/databind/ -com/fasterxml/jackson/databind/AbstractTypeResolver.class -com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty$Type.class -com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty.class -com/fasterxml/jackson/databind/AnnotationIntrospector.class -com/fasterxml/jackson/databind/BeanDescription.class -com/fasterxml/jackson/databind/BeanProperty$Bogus.class -com/fasterxml/jackson/databind/BeanProperty$Std.class -com/fasterxml/jackson/databind/BeanProperty.class -com/fasterxml/jackson/databind/DatabindContext.class -com/fasterxml/jackson/databind/DeserializationConfig.class -com/fasterxml/jackson/databind/DeserializationContext.class -com/fasterxml/jackson/databind/DeserializationFeature.class -com/fasterxml/jackson/databind/InjectableValues$Std.class -com/fasterxml/jackson/databind/InjectableValues.class -com/fasterxml/jackson/databind/JavaType.class -com/fasterxml/jackson/databind/JsonDeserializer$None.class -com/fasterxml/jackson/databind/JsonDeserializer.class -com/fasterxml/jackson/databind/JsonMappingException$Reference.class -com/fasterxml/jackson/databind/JsonMappingException.class -com/fasterxml/jackson/databind/JsonNode$1.class -com/fasterxml/jackson/databind/JsonNode.class -com/fasterxml/jackson/databind/JsonSerializable$Base.class -com/fasterxml/jackson/databind/JsonSerializable.class -com/fasterxml/jackson/databind/JsonSerializer$None.class -com/fasterxml/jackson/databind/JsonSerializer.class -com/fasterxml/jackson/databind/KeyDeserializer$None.class -com/fasterxml/jackson/databind/KeyDeserializer.class -com/fasterxml/jackson/databind/MapperFeature.class -com/fasterxml/jackson/databind/MappingIterator.class -com/fasterxml/jackson/databind/MappingJsonFactory.class -com/fasterxml/jackson/databind/Module$SetupContext.class -com/fasterxml/jackson/databind/Module.class -com/fasterxml/jackson/databind/ObjectMapper$1.class -com/fasterxml/jackson/databind/ObjectMapper$2.class -com/fasterxml/jackson/databind/ObjectMapper$3.class -com/fasterxml/jackson/databind/ObjectMapper$DefaultTypeResolverBuilder.class -com/fasterxml/jackson/databind/ObjectMapper$DefaultTyping.class -com/fasterxml/jackson/databind/ObjectMapper.class -com/fasterxml/jackson/databind/ObjectReader.class -com/fasterxml/jackson/databind/ObjectWriter$GeneratorSettings.class -com/fasterxml/jackson/databind/ObjectWriter$Prefetch.class -com/fasterxml/jackson/databind/ObjectWriter.class -com/fasterxml/jackson/databind/PropertyMetadata$MergeInfo.class -com/fasterxml/jackson/databind/PropertyMetadata.class -com/fasterxml/jackson/databind/PropertyName.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$KebabCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseWithUnderscoresStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$PascalCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$PropertyNamingStrategyBase.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$SnakeCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$UpperCamelCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy.class -com/fasterxml/jackson/databind/RuntimeJsonMappingException.class -com/fasterxml/jackson/databind/SequenceWriter.class -com/fasterxml/jackson/databind/SerializationConfig.class -com/fasterxml/jackson/databind/SerializationFeature.class -com/fasterxml/jackson/databind/SerializerProvider.class -com/fasterxml/jackson/databind/annotation/ -com/fasterxml/jackson/databind/annotation/JacksonStdImpl.class -com/fasterxml/jackson/databind/annotation/JsonAppend$Attr.class -com/fasterxml/jackson/databind/annotation/JsonAppend$Prop.class -com/fasterxml/jackson/databind/annotation/JsonAppend.class -com/fasterxml/jackson/databind/annotation/JsonDeserialize.class -com/fasterxml/jackson/databind/annotation/JsonNaming.class -com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder$Value.class -com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.class -com/fasterxml/jackson/databind/annotation/JsonSerialize$Inclusion.class -com/fasterxml/jackson/databind/annotation/JsonSerialize$Typing.class -com/fasterxml/jackson/databind/annotation/JsonSerialize.class -com/fasterxml/jackson/databind/annotation/JsonTypeIdResolver.class -com/fasterxml/jackson/databind/annotation/JsonTypeResolver.class -com/fasterxml/jackson/databind/annotation/JsonValueInstantiator.class -com/fasterxml/jackson/databind/annotation/NoClass.class -com/fasterxml/jackson/databind/cfg/ -com/fasterxml/jackson/databind/cfg/BaseSettings.class -com/fasterxml/jackson/databind/cfg/ConfigFeature.class -com/fasterxml/jackson/databind/cfg/ConfigOverride$Empty.class -com/fasterxml/jackson/databind/cfg/ConfigOverride.class -com/fasterxml/jackson/databind/cfg/ConfigOverrides.class -com/fasterxml/jackson/databind/cfg/ContextAttributes$Impl.class -com/fasterxml/jackson/databind/cfg/ContextAttributes.class -com/fasterxml/jackson/databind/cfg/DeserializerFactoryConfig.class -com/fasterxml/jackson/databind/cfg/HandlerInstantiator.class -com/fasterxml/jackson/databind/cfg/MapperConfig.class -com/fasterxml/jackson/databind/cfg/MapperConfigBase.class -com/fasterxml/jackson/databind/cfg/MutableConfigOverride.class -com/fasterxml/jackson/databind/cfg/PackageVersion.class -com/fasterxml/jackson/databind/cfg/SerializerFactoryConfig.class -com/fasterxml/jackson/databind/deser/ -com/fasterxml/jackson/databind/deser/AbstractDeserializer.class -com/fasterxml/jackson/databind/deser/BasicDeserializerFactory$1.class -com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.class -com/fasterxml/jackson/databind/deser/BeanDeserializer$1.class -com/fasterxml/jackson/databind/deser/BeanDeserializer$BeanReferring.class -com/fasterxml/jackson/databind/deser/BeanDeserializer.class -com/fasterxml/jackson/databind/deser/BeanDeserializerBase.class -com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.class -com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.class -com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.class -com/fasterxml/jackson/databind/deser/BuilderBasedDeserializer.class -com/fasterxml/jackson/databind/deser/ContextualDeserializer.class -com/fasterxml/jackson/databind/deser/ContextualKeyDeserializer.class -com/fasterxml/jackson/databind/deser/CreatorProperty.class -com/fasterxml/jackson/databind/deser/DataFormatReaders$AccessorForReader.class -com/fasterxml/jackson/databind/deser/DataFormatReaders$Match.class -com/fasterxml/jackson/databind/deser/DataFormatReaders.class -com/fasterxml/jackson/databind/deser/DefaultDeserializationContext$Impl.class -com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.class -com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.class -com/fasterxml/jackson/databind/deser/DeserializerCache.class -com/fasterxml/jackson/databind/deser/DeserializerFactory.class -com/fasterxml/jackson/databind/deser/Deserializers$Base.class -com/fasterxml/jackson/databind/deser/Deserializers.class -com/fasterxml/jackson/databind/deser/KeyDeserializers.class -com/fasterxml/jackson/databind/deser/NullValueProvider.class -com/fasterxml/jackson/databind/deser/ResolvableDeserializer.class -com/fasterxml/jackson/databind/deser/SettableAnyProperty$AnySetterReferring.class -com/fasterxml/jackson/databind/deser/SettableAnyProperty.class -com/fasterxml/jackson/databind/deser/SettableBeanProperty$Delegating.class -com/fasterxml/jackson/databind/deser/SettableBeanProperty.class -com/fasterxml/jackson/databind/deser/UnresolvedForwardReference.class -com/fasterxml/jackson/databind/deser/UnresolvedId.class -com/fasterxml/jackson/databind/deser/ValueInstantiator$Base.class -com/fasterxml/jackson/databind/deser/ValueInstantiator$Gettable.class -com/fasterxml/jackson/databind/deser/ValueInstantiator.class -com/fasterxml/jackson/databind/deser/ValueInstantiators$Base.class -com/fasterxml/jackson/databind/deser/ValueInstantiators.class -com/fasterxml/jackson/databind/deser/impl/ -com/fasterxml/jackson/databind/deser/impl/BeanAsArrayBuilderDeserializer.class -com/fasterxml/jackson/databind/deser/impl/BeanAsArrayDeserializer.class -com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.class -com/fasterxml/jackson/databind/deser/impl/CreatorCandidate$Param.class -com/fasterxml/jackson/databind/deser/impl/CreatorCandidate.class -com/fasterxml/jackson/databind/deser/impl/CreatorCollector$StdTypeConstructor.class -com/fasterxml/jackson/databind/deser/impl/CreatorCollector.class -com/fasterxml/jackson/databind/deser/impl/ErrorThrowingDeserializer.class -com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$Builder.class -com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$ExtTypedProperty.class -com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler.class -com/fasterxml/jackson/databind/deser/impl/FailingDeserializer.class -com/fasterxml/jackson/databind/deser/impl/FieldProperty.class -com/fasterxml/jackson/databind/deser/impl/InnerClassProperty.class -com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$1.class -com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$JavaUtilCollectionsConverter.class -com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers.class -com/fasterxml/jackson/databind/deser/impl/ManagedReferenceProperty.class -com/fasterxml/jackson/databind/deser/impl/MergingSettableBeanProperty.class -com/fasterxml/jackson/databind/deser/impl/MethodProperty.class -com/fasterxml/jackson/databind/deser/impl/NullsAsEmptyProvider.class -com/fasterxml/jackson/databind/deser/impl/NullsConstantProvider.class -com/fasterxml/jackson/databind/deser/impl/NullsFailProvider.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdReader.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty$PropertyReferring.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdValueProperty.class -com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator$CaseInsensitiveMap.class -com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator.class -com/fasterxml/jackson/databind/deser/impl/PropertyBasedObjectIdGenerator.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue$Any.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue$Map.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue$Regular.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue.class -com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.class -com/fasterxml/jackson/databind/deser/impl/ReadableObjectId$Referring.class -com/fasterxml/jackson/databind/deser/impl/ReadableObjectId.class -com/fasterxml/jackson/databind/deser/impl/SetterlessProperty.class -com/fasterxml/jackson/databind/deser/impl/TypeWrappedDeserializer.class -com/fasterxml/jackson/databind/deser/impl/UnwrappedPropertyHandler.class -com/fasterxml/jackson/databind/deser/impl/ValueInjector.class -com/fasterxml/jackson/databind/deser/std/ -com/fasterxml/jackson/databind/deser/std/ArrayBlockingQueueDeserializer.class -com/fasterxml/jackson/databind/deser/std/AtomicBooleanDeserializer.class -com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.class -com/fasterxml/jackson/databind/deser/std/BaseNodeDeserializer.class -com/fasterxml/jackson/databind/deser/std/ByteBufferDeserializer.class -com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferring.class -com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferringAccumulator.class -com/fasterxml/jackson/databind/deser/std/CollectionDeserializer.class -com/fasterxml/jackson/databind/deser/std/ContainerDeserializerBase.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$CalendarDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateBasedDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$SqlDateDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$TimestampDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers.class -com/fasterxml/jackson/databind/deser/std/DelegatingDeserializer.class -com/fasterxml/jackson/databind/deser/std/EnumDeserializer.class -com/fasterxml/jackson/databind/deser/std/EnumMapDeserializer.class -com/fasterxml/jackson/databind/deser/std/EnumSetDeserializer.class -com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.class -com/fasterxml/jackson/databind/deser/std/FromStringDeserializer$Std.class -com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.class -com/fasterxml/jackson/databind/deser/std/JdkDeserializers.class -com/fasterxml/jackson/databind/deser/std/JsonLocationInstantiator.class -com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ArrayDeserializer.class -com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ObjectDeserializer.class -com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer.class -com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferring.class -com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferringAccumulator.class -com/fasterxml/jackson/databind/deser/std/MapDeserializer.class -com/fasterxml/jackson/databind/deser/std/MapEntryDeserializer.class -com/fasterxml/jackson/databind/deser/std/NullifyingDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$1.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigDecimalDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigIntegerDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BooleanDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ByteDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$CharacterDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$DoubleDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$FloatDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$IntegerDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$LongDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$NumberDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$PrimitiveOrWrapperDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ShortDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers.class -com/fasterxml/jackson/databind/deser/std/ObjectArrayDeserializer.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$BooleanDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ByteDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$CharDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$DoubleDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$FloatDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$IntDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$LongDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ShortDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers.class -com/fasterxml/jackson/databind/deser/std/ReferenceTypeDeserializer.class -com/fasterxml/jackson/databind/deser/std/StackTraceElementDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$DelegatingKD.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$EnumKD.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringCtorKeyDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringFactoryKeyDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringKD.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializers.class -com/fasterxml/jackson/databind/deser/std/StdNodeBasedDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdScalarDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.class -com/fasterxml/jackson/databind/deser/std/StringArrayDeserializer.class -com/fasterxml/jackson/databind/deser/std/StringCollectionDeserializer.class -com/fasterxml/jackson/databind/deser/std/StringDeserializer.class -com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.class -com/fasterxml/jackson/databind/deser/std/TokenBufferDeserializer.class -com/fasterxml/jackson/databind/deser/std/UUIDDeserializer.class -com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer$Vanilla.class -com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.class -com/fasterxml/jackson/databind/exc/ -com/fasterxml/jackson/databind/exc/IgnoredPropertyException.class -com/fasterxml/jackson/databind/exc/InvalidDefinitionException.class -com/fasterxml/jackson/databind/exc/InvalidFormatException.class -com/fasterxml/jackson/databind/exc/InvalidNullException.class -com/fasterxml/jackson/databind/exc/InvalidTypeIdException.class -com/fasterxml/jackson/databind/exc/MismatchedInputException.class -com/fasterxml/jackson/databind/exc/PropertyBindingException.class -com/fasterxml/jackson/databind/exc/UnrecognizedPropertyException.class -com/fasterxml/jackson/databind/ext/ -com/fasterxml/jackson/databind/ext/CoreXMLDeserializers$Std.class -com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.class -com/fasterxml/jackson/databind/ext/CoreXMLSerializers$XMLGregorianCalendarSerializer.class -com/fasterxml/jackson/databind/ext/CoreXMLSerializers.class -com/fasterxml/jackson/databind/ext/DOMDeserializer$DocumentDeserializer.class -com/fasterxml/jackson/databind/ext/DOMDeserializer$NodeDeserializer.class -com/fasterxml/jackson/databind/ext/DOMDeserializer.class -com/fasterxml/jackson/databind/ext/DOMSerializer.class -com/fasterxml/jackson/databind/ext/Java7Support.class -com/fasterxml/jackson/databind/ext/Java7SupportImpl.class -com/fasterxml/jackson/databind/ext/NioPathDeserializer.class -com/fasterxml/jackson/databind/ext/NioPathSerializer.class -com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.class -com/fasterxml/jackson/databind/introspect/ -com/fasterxml/jackson/databind/introspect/Annotated.class -com/fasterxml/jackson/databind/introspect/AnnotatedClass$Creators.class -com/fasterxml/jackson/databind/introspect/AnnotatedClass.class -com/fasterxml/jackson/databind/introspect/AnnotatedClassResolver.class -com/fasterxml/jackson/databind/introspect/AnnotatedConstructor$Serialization.class -com/fasterxml/jackson/databind/introspect/AnnotatedConstructor.class -com/fasterxml/jackson/databind/introspect/AnnotatedCreatorCollector.class -com/fasterxml/jackson/databind/introspect/AnnotatedField$Serialization.class -com/fasterxml/jackson/databind/introspect/AnnotatedField.class -com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector$FieldBuilder.class -com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector.class -com/fasterxml/jackson/databind/introspect/AnnotatedMember.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethod$Serialization.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethod.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector$MethodBuilder.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethodMap.class -com/fasterxml/jackson/databind/introspect/AnnotatedParameter.class -com/fasterxml/jackson/databind/introspect/AnnotatedWithParams.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$EmptyCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$NCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$NoAnnotations.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneAnnotation.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$TwoAnnotations.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationIntrospectorPair.class -com/fasterxml/jackson/databind/introspect/AnnotationMap.class -com/fasterxml/jackson/databind/introspect/BasicBeanDescription.class -com/fasterxml/jackson/databind/introspect/BasicClassIntrospector.class -com/fasterxml/jackson/databind/introspect/BeanPropertyDefinition.class -com/fasterxml/jackson/databind/introspect/ClassIntrospector$MixInResolver.class -com/fasterxml/jackson/databind/introspect/ClassIntrospector.class -com/fasterxml/jackson/databind/introspect/CollectorBase.class -com/fasterxml/jackson/databind/introspect/ConcreteBeanPropertyBase.class -com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector$1.class -com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector.class -com/fasterxml/jackson/databind/introspect/MemberKey.class -com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector$1.class -com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector.class -com/fasterxml/jackson/databind/introspect/ObjectIdInfo.class -com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$1.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$10.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$2.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$3.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$4.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$5.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$6.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$7.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$8.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$9.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$Linked.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$MemberIterator.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$WithMember.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.class -com/fasterxml/jackson/databind/introspect/SimpleMixInResolver.class -com/fasterxml/jackson/databind/introspect/TypeResolutionContext$Basic.class -com/fasterxml/jackson/databind/introspect/TypeResolutionContext.class -com/fasterxml/jackson/databind/introspect/VirtualAnnotatedMember.class -com/fasterxml/jackson/databind/introspect/VisibilityChecker$1.class -com/fasterxml/jackson/databind/introspect/VisibilityChecker$Std.class -com/fasterxml/jackson/databind/introspect/VisibilityChecker.class -com/fasterxml/jackson/databind/introspect/WithMember.class -com/fasterxml/jackson/databind/jsonFormatVisitors/ -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatTypes.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitable.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWithSerializerProvider.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormat.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor.class -com/fasterxml/jackson/databind/jsonschema/ -com/fasterxml/jackson/databind/jsonschema/JsonSchema.class -com/fasterxml/jackson/databind/jsonschema/JsonSerializableSchema.class -com/fasterxml/jackson/databind/jsonschema/SchemaAware.class -com/fasterxml/jackson/databind/jsontype/ -com/fasterxml/jackson/databind/jsontype/NamedType.class -com/fasterxml/jackson/databind/jsontype/SubtypeResolver.class -com/fasterxml/jackson/databind/jsontype/TypeDeserializer$1.class -com/fasterxml/jackson/databind/jsontype/TypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/TypeIdResolver.class -com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.class -com/fasterxml/jackson/databind/jsontype/TypeSerializer$1.class -com/fasterxml/jackson/databind/jsontype/TypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/ -com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsExistingPropertyTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/ClassNameIdResolver.class -com/fasterxml/jackson/databind/jsontype/impl/MinimalClassNameIdResolver.class -com/fasterxml/jackson/databind/jsontype/impl/StdSubtypeResolver.class -com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder$1.class -com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder.class -com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.class -com/fasterxml/jackson/databind/jsontype/impl/TypeDeserializerBase.class -com/fasterxml/jackson/databind/jsontype/impl/TypeIdResolverBase.class -com/fasterxml/jackson/databind/jsontype/impl/TypeNameIdResolver.class -com/fasterxml/jackson/databind/jsontype/impl/TypeSerializerBase.class -com/fasterxml/jackson/databind/module/ -com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.class -com/fasterxml/jackson/databind/module/SimpleDeserializers.class -com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.class -com/fasterxml/jackson/databind/module/SimpleModule.class -com/fasterxml/jackson/databind/module/SimpleSerializers.class -com/fasterxml/jackson/databind/module/SimpleValueInstantiators.class -com/fasterxml/jackson/databind/node/ -com/fasterxml/jackson/databind/node/ArrayNode.class -com/fasterxml/jackson/databind/node/BaseJsonNode.class -com/fasterxml/jackson/databind/node/BigIntegerNode.class -com/fasterxml/jackson/databind/node/BinaryNode.class -com/fasterxml/jackson/databind/node/BooleanNode.class -com/fasterxml/jackson/databind/node/ContainerNode.class -com/fasterxml/jackson/databind/node/DecimalNode.class -com/fasterxml/jackson/databind/node/DoubleNode.class -com/fasterxml/jackson/databind/node/FloatNode.class -com/fasterxml/jackson/databind/node/IntNode.class -com/fasterxml/jackson/databind/node/JsonNodeCreator.class -com/fasterxml/jackson/databind/node/JsonNodeFactory.class -com/fasterxml/jackson/databind/node/JsonNodeType.class -com/fasterxml/jackson/databind/node/LongNode.class -com/fasterxml/jackson/databind/node/MissingNode.class -com/fasterxml/jackson/databind/node/NodeCursor$ArrayCursor.class -com/fasterxml/jackson/databind/node/NodeCursor$ObjectCursor.class -com/fasterxml/jackson/databind/node/NodeCursor$RootCursor.class -com/fasterxml/jackson/databind/node/NodeCursor.class -com/fasterxml/jackson/databind/node/NullNode.class -com/fasterxml/jackson/databind/node/NumericNode.class -com/fasterxml/jackson/databind/node/ObjectNode.class -com/fasterxml/jackson/databind/node/POJONode.class -com/fasterxml/jackson/databind/node/ShortNode.class -com/fasterxml/jackson/databind/node/TextNode.class -com/fasterxml/jackson/databind/node/TreeTraversingParser$1.class -com/fasterxml/jackson/databind/node/TreeTraversingParser.class -com/fasterxml/jackson/databind/node/ValueNode.class -com/fasterxml/jackson/databind/ser/ -com/fasterxml/jackson/databind/ser/AnyGetterWriter.class -com/fasterxml/jackson/databind/ser/BasicSerializerFactory$1.class -com/fasterxml/jackson/databind/ser/BasicSerializerFactory.class -com/fasterxml/jackson/databind/ser/BeanPropertyFilter.class -com/fasterxml/jackson/databind/ser/BeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/BeanSerializer.class -com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.class -com/fasterxml/jackson/databind/ser/BeanSerializerFactory.class -com/fasterxml/jackson/databind/ser/BeanSerializerModifier.class -com/fasterxml/jackson/databind/ser/ContainerSerializer.class -com/fasterxml/jackson/databind/ser/ContextualSerializer.class -com/fasterxml/jackson/databind/ser/DefaultSerializerProvider$Impl.class -com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.class -com/fasterxml/jackson/databind/ser/FilterProvider.class -com/fasterxml/jackson/databind/ser/PropertyBuilder$1.class -com/fasterxml/jackson/databind/ser/PropertyBuilder.class -com/fasterxml/jackson/databind/ser/PropertyFilter.class -com/fasterxml/jackson/databind/ser/PropertyWriter.class -com/fasterxml/jackson/databind/ser/ResolvableSerializer.class -com/fasterxml/jackson/databind/ser/SerializerCache.class -com/fasterxml/jackson/databind/ser/SerializerFactory.class -com/fasterxml/jackson/databind/ser/Serializers$Base.class -com/fasterxml/jackson/databind/ser/Serializers.class -com/fasterxml/jackson/databind/ser/VirtualBeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/ -com/fasterxml/jackson/databind/ser/impl/AttributePropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/BeanAsArraySerializer.class -com/fasterxml/jackson/databind/ser/impl/FailingSerializer.class -com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$MultiView.class -com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$SingleView.class -com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/IndexedListSerializer.class -com/fasterxml/jackson/databind/ser/impl/IndexedStringListSerializer.class -com/fasterxml/jackson/databind/ser/impl/IteratorSerializer.class -com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer$1.class -com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer.class -com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.class -com/fasterxml/jackson/databind/ser/impl/PropertyBasedObjectIdGenerator.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Double.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Empty.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Multi.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$SerializerAndMapResult.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Single.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$TypeAndSerializer.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap.class -com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap$Bucket.class -com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$1.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$FilterExceptFilter.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$SerializeExceptFilter.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.class -com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.class -com/fasterxml/jackson/databind/ser/impl/StringArraySerializer.class -com/fasterxml/jackson/databind/ser/impl/StringCollectionSerializer.class -com/fasterxml/jackson/databind/ser/impl/TypeWrappedSerializer.class -com/fasterxml/jackson/databind/ser/impl/UnknownSerializer.class -com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter$1.class -com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanSerializer.class -com/fasterxml/jackson/databind/ser/impl/WritableObjectId.class -com/fasterxml/jackson/databind/ser/std/ -com/fasterxml/jackson/databind/ser/std/ArraySerializerBase.class -com/fasterxml/jackson/databind/ser/std/AsArraySerializerBase.class -com/fasterxml/jackson/databind/ser/std/AtomicReferenceSerializer.class -com/fasterxml/jackson/databind/ser/std/BeanSerializerBase$1.class -com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.class -com/fasterxml/jackson/databind/ser/std/BooleanSerializer$AsNumber.class -com/fasterxml/jackson/databind/ser/std/BooleanSerializer.class -com/fasterxml/jackson/databind/ser/std/ByteArraySerializer.class -com/fasterxml/jackson/databind/ser/std/ByteBufferSerializer.class -com/fasterxml/jackson/databind/ser/std/CalendarSerializer.class -com/fasterxml/jackson/databind/ser/std/ClassSerializer.class -com/fasterxml/jackson/databind/ser/std/CollectionSerializer.class -com/fasterxml/jackson/databind/ser/std/DateSerializer.class -com/fasterxml/jackson/databind/ser/std/DateTimeSerializerBase.class -com/fasterxml/jackson/databind/ser/std/EnumSerializer.class -com/fasterxml/jackson/databind/ser/std/EnumSetSerializer.class -com/fasterxml/jackson/databind/ser/std/FileSerializer.class -com/fasterxml/jackson/databind/ser/std/InetAddressSerializer.class -com/fasterxml/jackson/databind/ser/std/InetSocketAddressSerializer.class -com/fasterxml/jackson/databind/ser/std/IterableSerializer.class -com/fasterxml/jackson/databind/ser/std/JsonValueSerializer$TypeSerializerRerouter.class -com/fasterxml/jackson/databind/ser/std/JsonValueSerializer.class -com/fasterxml/jackson/databind/ser/std/MapProperty.class -com/fasterxml/jackson/databind/ser/std/MapSerializer$1.class -com/fasterxml/jackson/databind/ser/std/MapSerializer.class -com/fasterxml/jackson/databind/ser/std/NonTypedScalarSerializerBase.class -com/fasterxml/jackson/databind/ser/std/NullSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializer$1.class -com/fasterxml/jackson/databind/ser/std/NumberSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$1.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$Base.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$DoubleSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$FloatSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntLikeSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntegerSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$LongSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$ShortSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers.class -com/fasterxml/jackson/databind/ser/std/ObjectArraySerializer.class -com/fasterxml/jackson/databind/ser/std/RawSerializer.class -com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer$1.class -com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer.class -com/fasterxml/jackson/databind/ser/std/SerializableSerializer.class -com/fasterxml/jackson/databind/ser/std/SqlDateSerializer.class -com/fasterxml/jackson/databind/ser/std/SqlTimeSerializer.class -com/fasterxml/jackson/databind/ser/std/StaticListSerializerBase.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$BooleanArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$CharArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$DoubleArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$FloatArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$IntArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$LongArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$ShortArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$TypedPrimitiveArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers.class -com/fasterxml/jackson/databind/ser/std/StdDelegatingSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicBooleanSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicIntegerSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicLongSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializer.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Default.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Dynamic.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$EnumKeySerializer.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$StringKeySerializer.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers.class -com/fasterxml/jackson/databind/ser/std/StdScalarSerializer.class -com/fasterxml/jackson/databind/ser/std/StdSerializer.class -com/fasterxml/jackson/databind/ser/std/StringSerializer.class -com/fasterxml/jackson/databind/ser/std/TimeZoneSerializer.class -com/fasterxml/jackson/databind/ser/std/ToStringSerializer.class -com/fasterxml/jackson/databind/ser/std/TokenBufferSerializer.class -com/fasterxml/jackson/databind/ser/std/UUIDSerializer.class -com/fasterxml/jackson/databind/type/ -com/fasterxml/jackson/databind/type/ArrayType.class -com/fasterxml/jackson/databind/type/ClassKey.class -com/fasterxml/jackson/databind/type/ClassStack.class -com/fasterxml/jackson/databind/type/CollectionLikeType.class -com/fasterxml/jackson/databind/type/CollectionType.class -com/fasterxml/jackson/databind/type/MapLikeType.class -com/fasterxml/jackson/databind/type/MapType.class -com/fasterxml/jackson/databind/type/PlaceholderForType.class -com/fasterxml/jackson/databind/type/ReferenceType.class -com/fasterxml/jackson/databind/type/ResolvedRecursiveType.class -com/fasterxml/jackson/databind/type/SimpleType.class -com/fasterxml/jackson/databind/type/TypeBase.class -com/fasterxml/jackson/databind/type/TypeBindings$AsKey.class -com/fasterxml/jackson/databind/type/TypeBindings$TypeParamStash.class -com/fasterxml/jackson/databind/type/TypeBindings.class -com/fasterxml/jackson/databind/type/TypeFactory.class -com/fasterxml/jackson/databind/type/TypeModifier.class -com/fasterxml/jackson/databind/type/TypeParser$MyTokenizer.class -com/fasterxml/jackson/databind/type/TypeParser.class -com/fasterxml/jackson/databind/util/ -com/fasterxml/jackson/databind/util/AccessPattern.class -com/fasterxml/jackson/databind/util/Annotations.class -com/fasterxml/jackson/databind/util/ArrayBuilders$1.class -com/fasterxml/jackson/databind/util/ArrayBuilders$BooleanBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$ByteBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$DoubleBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$FloatBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$IntBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$LongBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$ShortBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders.class -com/fasterxml/jackson/databind/util/ArrayIterator.class -com/fasterxml/jackson/databind/util/BeanUtil.class -com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.class -com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.class -com/fasterxml/jackson/databind/util/ClassUtil$Ctor.class -com/fasterxml/jackson/databind/util/ClassUtil$EnumTypeLocator.class -com/fasterxml/jackson/databind/util/ClassUtil.class -com/fasterxml/jackson/databind/util/CompactStringObjectMap.class -com/fasterxml/jackson/databind/util/ConstantValueInstantiator.class -com/fasterxml/jackson/databind/util/Converter$None.class -com/fasterxml/jackson/databind/util/Converter.class -com/fasterxml/jackson/databind/util/EnumResolver.class -com/fasterxml/jackson/databind/util/EnumValues.class -com/fasterxml/jackson/databind/util/ISO8601DateFormat.class -com/fasterxml/jackson/databind/util/ISO8601Utils.class -com/fasterxml/jackson/databind/util/JSONPObject.class -com/fasterxml/jackson/databind/util/JSONWrappedObject.class -com/fasterxml/jackson/databind/util/LRUMap.class -com/fasterxml/jackson/databind/util/LinkedNode.class -com/fasterxml/jackson/databind/util/NameTransformer$1.class -com/fasterxml/jackson/databind/util/NameTransformer$2.class -com/fasterxml/jackson/databind/util/NameTransformer$3.class -com/fasterxml/jackson/databind/util/NameTransformer$Chained.class -com/fasterxml/jackson/databind/util/NameTransformer$NopTransformer.class -com/fasterxml/jackson/databind/util/NameTransformer.class -com/fasterxml/jackson/databind/util/Named.class -com/fasterxml/jackson/databind/util/ObjectBuffer.class -com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder$Node.class -com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.class -com/fasterxml/jackson/databind/util/RawValue.class -com/fasterxml/jackson/databind/util/RootNameLookup.class -com/fasterxml/jackson/databind/util/SimpleBeanPropertyDefinition.class -com/fasterxml/jackson/databind/util/StdConverter.class -com/fasterxml/jackson/databind/util/StdDateFormat.class -com/fasterxml/jackson/databind/util/TokenBuffer$1.class -com/fasterxml/jackson/databind/util/TokenBuffer$Parser.class -com/fasterxml/jackson/databind/util/TokenBuffer$Segment.class -com/fasterxml/jackson/databind/util/TokenBuffer.class -com/fasterxml/jackson/databind/util/TokenBufferReadContext.class -com/fasterxml/jackson/databind/util/TypeKey.class -com/fasterxml/jackson/databind/util/ViewMatcher$Multi.class -com/fasterxml/jackson/databind/util/ViewMatcher$Single.class -com/fasterxml/jackson/databind/util/ViewMatcher.class diff --git a/examples/temp2.txt b/examples/temp2.txt deleted file mode 100644 index 83556ad8..00000000 --- a/examples/temp2.txt +++ /dev/null @@ -1,1917 +0,0 @@ -META-INF/ -META-INF/MANIFEST.MF -LICENSE.md -com/ -com/sendgrid/ -com/sendgrid/SendGridAPI.class -com/sendgrid/SendGrid$1.class -com/sendgrid/APICallback.class -com/sendgrid/SendGrid$2.class -com/sendgrid/SendGrid.class -com/sendgrid/SpamCheckSetting.class -com/sendgrid/Attachments$Builder.class -com/sendgrid/OpenTrackingSetting.class -com/sendgrid/Setting.class -com/sendgrid/GoogleAnalyticsSetting.class -com/sendgrid/ASM.class -com/sendgrid/FooterSetting.class -com/sendgrid/Personalization.class -com/sendgrid/Email.class -com/sendgrid/MailSettings.class -com/sendgrid/BccSettings.class -com/sendgrid/Content.class -com/sendgrid/TrackingSettings.class -com/sendgrid/ClickTrackingSetting.class -com/sendgrid/Attachments.class -com/sendgrid/ContentVerifier.class -com/sendgrid/SubscriptionTrackingSetting.class -com/sendgrid/Mail.class -com/sendgrid/RateLimitException.class -META-INF/maven/ -META-INF/maven/com.sendgrid/ -META-INF/maven/com.sendgrid/sendgrid-java/ -META-INF/maven/com.sendgrid/sendgrid-java/pom.xml -META-INF/maven/com.sendgrid/sendgrid-java/pom.properties -com/sendgrid/Client$1.class -com/sendgrid/Client.class -com/sendgrid/HttpDeleteWithBody.class -com/sendgrid/Method.class -com/sendgrid/Request.class -com/sendgrid/Response.class -com/sendgrid/SendGridResponseHandler.class -org/ -org/apache/ -org/apache/http/ -org/apache/http/message/ -org/apache/http/message/BasicHeaderElementIterator.class -org/apache/http/message/LineParser.class -org/apache/http/message/BasicHttpEntityEnclosingRequest.class -org/apache/http/message/HeaderValueFormatter.class -org/apache/http/message/BasicLineFormatter.class -org/apache/http/message/BasicLineParser.class -org/apache/http/message/HeaderGroup.class -org/apache/http/message/BasicNameValuePair.class -org/apache/http/message/BufferedHeader.class -org/apache/http/message/BasicListHeaderIterator.class -org/apache/http/message/BasicHeader.class -org/apache/http/message/LineFormatter.class -org/apache/http/message/BasicHttpResponse.class -org/apache/http/message/BasicTokenIterator.class -org/apache/http/message/BasicRequestLine.class -org/apache/http/message/ParserCursor.class -org/apache/http/message/BasicHeaderValueParser.class -org/apache/http/message/BasicHeaderValueFormatter.class -org/apache/http/message/BasicHttpRequest.class -org/apache/http/message/HeaderValueParser.class -org/apache/http/message/AbstractHttpMessage.class -org/apache/http/message/TokenParser.class -org/apache/http/message/BasicHeaderIterator.class -org/apache/http/message/BasicHeaderElement.class -org/apache/http/message/BasicStatusLine.class -org/apache/http/concurrent/ -org/apache/http/concurrent/BasicFuture.class -org/apache/http/concurrent/Cancellable.class -org/apache/http/concurrent/FutureCallback.class -org/apache/http/HeaderElement.class -org/apache/http/TruncatedChunkException.class -org/apache/http/ExceptionLogger$1.class -org/apache/http/version.properties -org/apache/http/HeaderElementIterator.class -org/apache/http/ProtocolVersion.class -org/apache/http/ExceptionLogger.class -org/apache/http/HttpRequestFactory.class -org/apache/http/HttpConnection.class -org/apache/http/HttpRequestInterceptor.class -org/apache/http/ContentTooLongException.class -org/apache/http/UnsupportedHttpVersionException.class -org/apache/http/HttpResponseInterceptor.class -org/apache/http/HttpInetConnection.class -org/apache/http/HttpEntity.class -org/apache/http/HttpException.class -org/apache/http/annotation/ -org/apache/http/annotation/Obsolete.class -org/apache/http/annotation/Experimental.class -org/apache/http/annotation/NotThreadSafe.class -org/apache/http/annotation/Immutable.class -org/apache/http/annotation/ThreadSafe.class -org/apache/http/annotation/GuardedBy.class -org/apache/http/Consts.class -org/apache/http/HttpConnectionMetrics.class -org/apache/http/HttpMessage.class -org/apache/http/MethodNotSupportedException.class -org/apache/http/ParseException.class -org/apache/http/params/ -org/apache/http/params/CoreProtocolPNames.class -org/apache/http/params/SyncBasicHttpParams.class -org/apache/http/params/DefaultedHttpParams.class -org/apache/http/params/HttpParams.class -org/apache/http/params/AbstractHttpParams.class -org/apache/http/params/HttpAbstractParamBean.class -org/apache/http/params/HttpConnectionParams.class -org/apache/http/params/BasicHttpParams.class -org/apache/http/params/HttpConnectionParamBean.class -org/apache/http/params/CoreConnectionPNames.class -org/apache/http/params/HttpParamConfig.class -org/apache/http/params/HttpProtocolParamBean.class -org/apache/http/params/HttpProtocolParams.class -org/apache/http/params/HttpParamsNames.class -org/apache/http/ReasonPhraseCatalog.class -org/apache/http/MalformedChunkCodingException.class -org/apache/http/FormattedHeader.class -org/apache/http/HttpResponse.class -org/apache/http/HeaderIterator.class -org/apache/http/HttpHeaders.class -org/apache/http/HttpClientConnection.class -org/apache/http/HttpHost.class -org/apache/http/protocol/ -org/apache/http/protocol/ResponseDate.class -org/apache/http/protocol/ChainBuilder.class -org/apache/http/protocol/HttpDateGenerator.class -org/apache/http/protocol/HttpRequestHandlerMapper.class -org/apache/http/protocol/HTTP.class -org/apache/http/protocol/SyncBasicHttpContext.class -org/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter.class -org/apache/http/protocol/ImmutableHttpProcessor.class -org/apache/http/protocol/BasicHttpContext.class -org/apache/http/protocol/HttpProcessorBuilder.class -org/apache/http/protocol/RequestTargetHost.class -org/apache/http/protocol/ResponseConnControl.class -org/apache/http/protocol/HttpRequestInterceptorList.class -org/apache/http/protocol/HttpRequestExecutor.class -org/apache/http/protocol/RequestUserAgent.class -org/apache/http/protocol/HttpRequestHandlerResolver.class -org/apache/http/protocol/BasicHttpProcessor.class -org/apache/http/protocol/ResponseServer.class -org/apache/http/protocol/ResponseContent.class -org/apache/http/protocol/RequestDate.class -org/apache/http/protocol/HttpService.class -org/apache/http/protocol/HttpContext.class -org/apache/http/protocol/RequestConnControl.class -org/apache/http/protocol/UriHttpRequestHandlerMapper.class -org/apache/http/protocol/UriPatternMatcher.class -org/apache/http/protocol/HttpCoreContext.class -org/apache/http/protocol/HttpProcessor.class -org/apache/http/protocol/RequestExpectContinue.class -org/apache/http/protocol/HttpExpectationVerifier.class -org/apache/http/protocol/HttpRequestHandlerRegistry.class -org/apache/http/protocol/HttpResponseInterceptorList.class -org/apache/http/protocol/HttpRequestHandler.class -org/apache/http/protocol/ExecutionContext.class -org/apache/http/protocol/RequestContent.class -org/apache/http/protocol/DefaultedHttpContext.class -org/apache/http/HttpStatus.class -org/apache/http/TokenIterator.class -org/apache/http/ssl/ -org/apache/http/ssl/SSLContextBuilder$TrustManagerDelegate.class -org/apache/http/ssl/TrustStrategy.class -org/apache/http/ssl/PrivateKeyStrategy.class -org/apache/http/ssl/SSLContextBuilder$KeyManagerDelegate.class -org/apache/http/ssl/SSLContexts.class -org/apache/http/ssl/SSLContextBuilder.class -org/apache/http/ssl/SSLInitializationException.class -org/apache/http/ssl/PrivateKeyDetails.class -org/apache/http/ConnectionReuseStrategy.class -org/apache/http/pool/ -org/apache/http/pool/AbstractConnPool$4.class -org/apache/http/pool/AbstractConnPool$2.class -org/apache/http/pool/PoolEntry.class -org/apache/http/pool/ConnFactory.class -org/apache/http/pool/RouteSpecificPool.class -org/apache/http/pool/AbstractConnPool$3.class -org/apache/http/pool/PoolEntryCallback.class -org/apache/http/pool/AbstractConnPool.class -org/apache/http/pool/ConnPoolControl.class -org/apache/http/pool/PoolStats.class -org/apache/http/pool/AbstractConnPool$1.class -org/apache/http/pool/ConnPool.class -org/apache/http/pool/PoolEntryFuture.class -org/apache/http/config/ -org/apache/http/config/MessageConstraints$Builder.class -org/apache/http/config/ConnectionConfig.class -org/apache/http/config/SocketConfig.class -org/apache/http/config/Registry.class -org/apache/http/config/ConnectionConfig$Builder.class -org/apache/http/config/RegistryBuilder.class -org/apache/http/config/SocketConfig$Builder.class -org/apache/http/config/MessageConstraints.class -org/apache/http/config/Lookup.class -org/apache/http/HttpResponseFactory.class -org/apache/http/HttpRequest.class -org/apache/http/RequestLine.class -org/apache/http/HttpServerConnection.class -org/apache/http/NameValuePair.class -org/apache/http/util/ -org/apache/http/util/LangUtils.class -org/apache/http/util/NetUtils.class -org/apache/http/util/EntityUtils.class -org/apache/http/util/EncodingUtils.class -org/apache/http/util/TextUtils.class -org/apache/http/util/CharsetUtils.class -org/apache/http/util/CharArrayBuffer.class -org/apache/http/util/ByteArrayBuffer.class -org/apache/http/util/Asserts.class -org/apache/http/util/ExceptionUtils.class -org/apache/http/util/Args.class -org/apache/http/util/VersionInfo.class -org/apache/http/HttpVersion.class -org/apache/http/HttpConnectionFactory.class -org/apache/http/impl/ -org/apache/http/impl/DefaultHttpRequestFactory.class -org/apache/http/impl/SocketHttpClientConnection.class -org/apache/http/impl/bootstrap/ -org/apache/http/impl/bootstrap/SSLServerSetupHandler.class -org/apache/http/impl/bootstrap/HttpServer$Status.class -org/apache/http/impl/bootstrap/ThreadFactoryImpl.class -org/apache/http/impl/bootstrap/Worker.class -org/apache/http/impl/bootstrap/RequestListener.class -org/apache/http/impl/bootstrap/ServerBootstrap.class -org/apache/http/impl/bootstrap/HttpServer.class -org/apache/http/impl/SocketHttpServerConnection.class -org/apache/http/impl/BHttpConnectionBase.class -org/apache/http/impl/DefaultConnectionReuseStrategy.class -org/apache/http/impl/DefaultHttpServerConnection.class -org/apache/http/impl/AbstractHttpClientConnection.class -org/apache/http/impl/EnglishReasonPhraseCatalog.class -org/apache/http/impl/DefaultBHttpServerConnection.class -org/apache/http/impl/DefaultHttpClientConnection.class -org/apache/http/impl/pool/ -org/apache/http/impl/pool/BasicConnPool.class -org/apache/http/impl/pool/BasicConnFactory.class -org/apache/http/impl/pool/BasicPoolEntry.class -org/apache/http/impl/DefaultBHttpClientConnectionFactory.class -org/apache/http/impl/DefaultBHttpClientConnection.class -org/apache/http/impl/AbstractHttpServerConnection.class -org/apache/http/impl/io/ -org/apache/http/impl/io/HttpResponseWriter.class -org/apache/http/impl/io/HttpTransportMetricsImpl.class -org/apache/http/impl/io/AbstractSessionInputBuffer.class -org/apache/http/impl/io/DefaultHttpRequestWriter.class -org/apache/http/impl/io/SessionInputBufferImpl.class -org/apache/http/impl/io/ContentLengthOutputStream.class -org/apache/http/impl/io/SocketInputBuffer.class -org/apache/http/impl/io/DefaultHttpResponseWriterFactory.class -org/apache/http/impl/io/DefaultHttpRequestWriterFactory.class -org/apache/http/impl/io/IdentityOutputStream.class -org/apache/http/impl/io/IdentityInputStream.class -org/apache/http/impl/io/SocketOutputBuffer.class -org/apache/http/impl/io/ChunkedOutputStream.class -org/apache/http/impl/io/DefaultHttpResponseParserFactory.class -org/apache/http/impl/io/ContentLengthInputStream.class -org/apache/http/impl/io/HttpRequestWriter.class -org/apache/http/impl/io/DefaultHttpResponseWriter.class -org/apache/http/impl/io/DefaultHttpRequestParserFactory.class -org/apache/http/impl/io/AbstractMessageParser.class -org/apache/http/impl/io/EmptyInputStream.class -org/apache/http/impl/io/DefaultHttpRequestParser.class -org/apache/http/impl/io/SessionOutputBufferImpl.class -org/apache/http/impl/io/HttpRequestParser.class -org/apache/http/impl/io/AbstractSessionOutputBuffer.class -org/apache/http/impl/io/DefaultHttpResponseParser.class -org/apache/http/impl/io/ChunkedInputStream.class -org/apache/http/impl/io/AbstractMessageWriter.class -org/apache/http/impl/io/HttpResponseParser.class -org/apache/http/impl/entity/ -org/apache/http/impl/entity/DisallowIdentityContentLengthStrategy.class -org/apache/http/impl/entity/LaxContentLengthStrategy.class -org/apache/http/impl/entity/StrictContentLengthStrategy.class -org/apache/http/impl/entity/EntityDeserializer.class -org/apache/http/impl/entity/EntitySerializer.class -org/apache/http/impl/DefaultHttpResponseFactory.class -org/apache/http/impl/DefaultBHttpServerConnectionFactory.class -org/apache/http/impl/HttpConnectionMetricsImpl.class -org/apache/http/impl/ConnSupport.class -org/apache/http/impl/NoConnectionReuseStrategy.class -org/apache/http/ConnectionClosedException.class -org/apache/http/StatusLine.class -org/apache/http/io/ -org/apache/http/io/HttpMessageWriterFactory.class -org/apache/http/io/BufferInfo.class -org/apache/http/io/HttpMessageParserFactory.class -org/apache/http/io/HttpTransportMetrics.class -org/apache/http/io/SessionOutputBuffer.class -org/apache/http/io/HttpMessageParser.class -org/apache/http/io/EofSensor.class -org/apache/http/io/HttpMessageWriter.class -org/apache/http/io/SessionInputBuffer.class -org/apache/http/NoHttpResponseException.class -org/apache/http/HttpEntityEnclosingRequest.class -org/apache/http/entity/ -org/apache/http/entity/ContentLengthStrategy.class -org/apache/http/entity/FileEntity.class -org/apache/http/entity/InputStreamEntity.class -org/apache/http/entity/SerializableEntity.class -org/apache/http/entity/StringEntity.class -org/apache/http/entity/HttpEntityWrapper.class -org/apache/http/entity/ContentProducer.class -org/apache/http/entity/BufferedHttpEntity.class -org/apache/http/entity/ByteArrayEntity.class -org/apache/http/entity/EntityTemplate.class -org/apache/http/entity/BasicHttpEntity.class -org/apache/http/entity/ContentType.class -org/apache/http/entity/AbstractHttpEntity.class -org/apache/http/ProtocolException.class -org/apache/http/MessageConstraintException.class -org/apache/http/ExceptionLogger$2.class -org/apache/http/Header.class -META-INF/DEPENDENCIES -META-INF/NOTICE -META-INF/LICENSE -META-INF/maven/org.apache.httpcomponents/ -META-INF/maven/org.apache.httpcomponents/httpcore/ -META-INF/maven/org.apache.httpcomponents/httpcore/pom.xml -META-INF/maven/org.apache.httpcomponents/httpcore/pom.properties -org/apache/http/auth/ -org/apache/http/auth/KerberosCredentials.class -org/apache/http/auth/AuthSchemeRegistry.class -org/apache/http/auth/ChallengeState.class -org/apache/http/auth/NTUserPrincipal.class -org/apache/http/auth/InvalidCredentialsException.class -org/apache/http/auth/AuthSchemeRegistry$1.class -org/apache/http/auth/NTCredentials.class -org/apache/http/auth/AuthScheme.class -org/apache/http/auth/AuthenticationException.class -org/apache/http/auth/params/ -org/apache/http/auth/params/AuthParams.class -org/apache/http/auth/params/AuthParamBean.class -org/apache/http/auth/params/AuthPNames.class -org/apache/http/auth/BasicUserPrincipal.class -org/apache/http/auth/AuthSchemeProvider.class -org/apache/http/auth/ContextAwareAuthScheme.class -org/apache/http/auth/AuthProtocolState.class -org/apache/http/auth/AuthScope.class -org/apache/http/auth/AuthSchemeFactory.class -org/apache/http/auth/AUTH.class -org/apache/http/auth/Credentials.class -org/apache/http/auth/UsernamePasswordCredentials.class -org/apache/http/auth/AuthOption.class -org/apache/http/auth/MalformedChallengeException.class -org/apache/http/auth/AuthState.class -org/apache/http/cookie/ -org/apache/http/cookie/CookieSpecRegistry.class -org/apache/http/cookie/CookieSpec.class -org/apache/http/cookie/CookieRestrictionViolationException.class -org/apache/http/cookie/CookieIdentityComparator.class -org/apache/http/cookie/SM.class -org/apache/http/cookie/CookieOrigin.class -org/apache/http/cookie/CookieAttributeHandler.class -org/apache/http/cookie/SetCookie2.class -org/apache/http/cookie/params/ -org/apache/http/cookie/params/CookieSpecParamBean.class -org/apache/http/cookie/params/CookieSpecPNames.class -org/apache/http/cookie/MalformedCookieException.class -org/apache/http/cookie/ClientCookie.class -org/apache/http/cookie/CommonCookieAttributeHandler.class -org/apache/http/cookie/CookieSpecRegistry$1.class -org/apache/http/cookie/CookiePathComparator.class -org/apache/http/cookie/SetCookie.class -org/apache/http/cookie/Cookie.class -org/apache/http/cookie/CookieSpecProvider.class -org/apache/http/cookie/CookiePriorityComparator.class -org/apache/http/cookie/CookieSpecFactory.class -org/apache/http/client/ -org/apache/http/client/RedirectStrategy.class -org/apache/http/client/ConnectionBackoffStrategy.class -org/apache/http/client/version.properties -org/apache/http/client/AuthenticationStrategy.class -org/apache/http/client/HttpClient.class -org/apache/http/client/methods/ -org/apache/http/client/methods/HttpOptions.class -org/apache/http/client/methods/AbortableHttpRequest.class -org/apache/http/client/methods/HttpRequestBase.class -org/apache/http/client/methods/AbstractExecutionAwareRequest$2.class -org/apache/http/client/methods/RequestBuilder.class -org/apache/http/client/methods/HttpGet.class -org/apache/http/client/methods/HttpPatch.class -org/apache/http/client/methods/HttpDelete.class -org/apache/http/client/methods/HttpUriRequest.class -org/apache/http/client/methods/CloseableHttpResponse.class -org/apache/http/client/methods/HttpRequestWrapper$1.class -org/apache/http/client/methods/RequestBuilder$InternalEntityEclosingRequest.class -org/apache/http/client/methods/HttpRequestWrapper$HttpEntityEnclosingRequestWrapper.class -org/apache/http/client/methods/RequestBuilder$InternalRequest.class -org/apache/http/client/methods/HttpRequestWrapper.class -org/apache/http/client/methods/HttpHead.class -org/apache/http/client/methods/HttpExecutionAware.class -org/apache/http/client/methods/AbstractExecutionAwareRequest.class -org/apache/http/client/methods/Configurable.class -org/apache/http/client/methods/AbstractExecutionAwareRequest$1.class -org/apache/http/client/methods/HttpPost.class -org/apache/http/client/methods/HttpEntityEnclosingRequestBase.class -org/apache/http/client/methods/HttpTrace.class -org/apache/http/client/methods/HttpPut.class -org/apache/http/client/CredentialsProvider.class -org/apache/http/client/UserTokenHandler.class -org/apache/http/client/CookieStore.class -org/apache/http/client/HttpResponseException.class -org/apache/http/client/ClientProtocolException.class -org/apache/http/client/AuthenticationHandler.class -org/apache/http/client/params/ -org/apache/http/client/params/HttpClientParams.class -org/apache/http/client/params/ClientPNames.class -org/apache/http/client/params/ClientParamBean.class -org/apache/http/client/params/CookiePolicy.class -org/apache/http/client/params/AuthPolicy.class -org/apache/http/client/params/HttpClientParamConfig.class -org/apache/http/client/params/AllClientPNames.class -org/apache/http/client/CircularRedirectException.class -org/apache/http/client/utils/ -org/apache/http/client/utils/Punycode.class -org/apache/http/client/utils/Idn.class -org/apache/http/client/utils/HttpClientUtils.class -org/apache/http/client/utils/URIBuilder.class -org/apache/http/client/utils/URIUtils.class -org/apache/http/client/utils/DateUtils$DateFormatHolder.class -org/apache/http/client/utils/URLEncodedUtils.class -org/apache/http/client/utils/JdkIdn.class -org/apache/http/client/utils/CloneUtils.class -org/apache/http/client/utils/DateUtils.class -org/apache/http/client/utils/Rfc3492Idn.class -org/apache/http/client/protocol/ -org/apache/http/client/protocol/RequestAcceptEncoding.class -org/apache/http/client/protocol/ResponseProcessCookies.class -org/apache/http/client/protocol/RequestDefaultHeaders.class -org/apache/http/client/protocol/ResponseContentEncoding$2.class -org/apache/http/client/protocol/ClientContext.class -org/apache/http/client/protocol/ResponseAuthCache.class -org/apache/http/client/protocol/RequestAuthenticationBase$1.class -org/apache/http/client/protocol/RequestTargetAuthentication.class -org/apache/http/client/protocol/RequestProxyAuthentication.class -org/apache/http/client/protocol/RequestClientConnControl.class -org/apache/http/client/protocol/ResponseAuthCache$1.class -org/apache/http/client/protocol/RequestAddCookies.class -org/apache/http/client/protocol/RequestAuthCache.class -org/apache/http/client/protocol/ClientContextConfigurer.class -org/apache/http/client/protocol/ResponseContentEncoding$1.class -org/apache/http/client/protocol/RequestExpectContinue.class -org/apache/http/client/protocol/ResponseContentEncoding.class -org/apache/http/client/protocol/RequestAuthenticationBase.class -org/apache/http/client/protocol/HttpClientContext.class -org/apache/http/client/BackoffManager.class -org/apache/http/client/config/ -org/apache/http/client/config/RequestConfig$Builder.class -org/apache/http/client/config/RequestConfig.class -org/apache/http/client/config/CookieSpecs.class -org/apache/http/client/config/AuthSchemes.class -org/apache/http/client/AuthCache.class -org/apache/http/client/ResponseHandler.class -org/apache/http/client/RedirectException.class -org/apache/http/client/RedirectHandler.class -org/apache/http/client/NonRepeatableRequestException.class -org/apache/http/client/entity/ -org/apache/http/client/entity/DeflateInputStream.class -org/apache/http/client/entity/InputStreamFactory.class -org/apache/http/client/entity/UrlEncodedFormEntity.class -org/apache/http/client/entity/DeflateInputStream$DeflateStream.class -org/apache/http/client/entity/GzipCompressingEntity.class -org/apache/http/client/entity/EntityBuilder.class -org/apache/http/client/entity/LazyDecompressingInputStream.class -org/apache/http/client/entity/DecompressingEntity.class -org/apache/http/client/entity/GzipDecompressingEntity$1.class -org/apache/http/client/entity/DeflateDecompressingEntity$1.class -org/apache/http/client/entity/GzipDecompressingEntity.class -org/apache/http/client/entity/DeflateDecompressingEntity.class -org/apache/http/client/HttpRequestRetryHandler.class -org/apache/http/client/RequestDirector.class -org/apache/http/client/ServiceUnavailableRetryStrategy.class -org/apache/http/conn/ -org/apache/http/conn/OperatedClientConnection.class -org/apache/http/conn/ManagedClientConnection.class -org/apache/http/conn/ConnectionRequest.class -org/apache/http/conn/EofSensorInputStream.class -org/apache/http/conn/ClientConnectionOperator.class -org/apache/http/conn/HttpClientConnectionOperator.class -org/apache/http/conn/BasicManagedEntity.class -org/apache/http/conn/ConnectionKeepAliveStrategy.class -org/apache/http/conn/ManagedHttpClientConnection.class -org/apache/http/conn/BasicEofSensorWatcher.class -org/apache/http/conn/HttpClientConnectionManager.class -org/apache/http/conn/HttpRoutedConnection.class -org/apache/http/conn/EofSensorWatcher.class -org/apache/http/conn/routing/ -org/apache/http/conn/routing/BasicRouteDirector.class -org/apache/http/conn/routing/RouteInfo$LayerType.class -org/apache/http/conn/routing/RouteInfo.class -org/apache/http/conn/routing/RouteTracker.class -org/apache/http/conn/routing/HttpRouteDirector.class -org/apache/http/conn/routing/HttpRoutePlanner.class -org/apache/http/conn/routing/RouteInfo$TunnelType.class -org/apache/http/conn/routing/HttpRoute.class -org/apache/http/conn/SchemePortResolver.class -org/apache/http/conn/ClientConnectionManager.class -org/apache/http/conn/params/ -org/apache/http/conn/params/ConnManagerParamBean.class -org/apache/http/conn/params/ConnRouteParamBean.class -org/apache/http/conn/params/ConnManagerParams$1.class -org/apache/http/conn/params/ConnManagerPNames.class -org/apache/http/conn/params/ConnConnectionParamBean.class -org/apache/http/conn/params/ConnManagerParams.class -org/apache/http/conn/params/ConnPerRouteBean.class -org/apache/http/conn/params/ConnConnectionPNames.class -org/apache/http/conn/params/ConnPerRoute.class -org/apache/http/conn/params/ConnRoutePNames.class -org/apache/http/conn/params/ConnRouteParams.class -org/apache/http/conn/socket/ -org/apache/http/conn/socket/PlainConnectionSocketFactory.class -org/apache/http/conn/socket/ConnectionSocketFactory.class -org/apache/http/conn/socket/LayeredConnectionSocketFactory.class -org/apache/http/conn/ClientConnectionRequest.class -org/apache/http/conn/ssl/ -org/apache/http/conn/ssl/TrustSelfSignedStrategy.class -org/apache/http/conn/ssl/SSLContextBuilder$TrustManagerDelegate.class -org/apache/http/conn/ssl/DefaultHostnameVerifier$1.class -org/apache/http/conn/ssl/DefaultHostnameVerifier$TYPE.class -org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.class -org/apache/http/conn/ssl/TrustStrategy.class -org/apache/http/conn/ssl/PrivateKeyStrategy.class -org/apache/http/conn/ssl/SSLContextBuilder$KeyManagerDelegate.class -org/apache/http/conn/ssl/X509HostnameVerifier.class -org/apache/http/conn/ssl/AbstractVerifier.class -org/apache/http/conn/ssl/SSLSocketFactory.class -org/apache/http/conn/ssl/SSLConnectionSocketFactory.class -org/apache/http/conn/ssl/SSLContexts.class -org/apache/http/conn/ssl/AllowAllHostnameVerifier.class -org/apache/http/conn/ssl/StrictHostnameVerifier.class -org/apache/http/conn/ssl/SSLContextBuilder.class -org/apache/http/conn/ssl/DefaultHostnameVerifier.class -org/apache/http/conn/ssl/SSLInitializationException.class -org/apache/http/conn/ssl/PrivateKeyDetails.class -org/apache/http/conn/ssl/NoopHostnameVerifier.class -org/apache/http/conn/ConnectionPoolTimeoutException.class -org/apache/http/conn/ConnectionReleaseTrigger.class -org/apache/http/conn/ClientConnectionManagerFactory.class -org/apache/http/conn/scheme/ -org/apache/http/conn/scheme/SchemeSocketFactoryAdaptor.class -org/apache/http/conn/scheme/SchemeLayeredSocketFactory.class -org/apache/http/conn/scheme/PlainSocketFactory.class -org/apache/http/conn/scheme/LayeredSocketFactoryAdaptor.class -org/apache/http/conn/scheme/Scheme.class -org/apache/http/conn/scheme/HostNameResolver.class -org/apache/http/conn/scheme/SchemeRegistry.class -org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor2.class -org/apache/http/conn/scheme/SchemeLayeredSocketFactoryAdaptor.class -org/apache/http/conn/scheme/SocketFactory.class -org/apache/http/conn/scheme/SchemeSocketFactory.class -org/apache/http/conn/scheme/SocketFactoryAdaptor.class -org/apache/http/conn/scheme/LayeredSchemeSocketFactory.class -org/apache/http/conn/scheme/LayeredSocketFactory.class -org/apache/http/conn/ConnectTimeoutException.class -org/apache/http/conn/util/ -org/apache/http/conn/util/DomainType.class -org/apache/http/conn/util/InetAddressUtils.class -org/apache/http/conn/util/PublicSuffixList.class -org/apache/http/conn/util/PublicSuffixMatcher.class -org/apache/http/conn/util/PublicSuffixListParser.class -org/apache/http/conn/util/PublicSuffixMatcherLoader.class -org/apache/http/conn/HttpInetSocketAddress.class -org/apache/http/conn/HttpConnectionFactory.class -org/apache/http/conn/HttpHostConnectException.class -org/apache/http/conn/DnsResolver.class -org/apache/http/conn/MultihomePlainSocketFactory.class -org/apache/http/conn/UnsupportedSchemeException.class -org/apache/http/impl/auth/ -org/apache/http/impl/auth/NTLMEngineImpl$CipherGen.class -org/apache/http/impl/auth/NTLMScheme$State.class -org/apache/http/impl/auth/GGSSchemeBase$1.class -org/apache/http/impl/auth/NTLMEngineException.class -org/apache/http/impl/auth/KerberosSchemeFactory.class -org/apache/http/impl/auth/RFC2617Scheme.class -org/apache/http/impl/auth/NTLMScheme.class -org/apache/http/impl/auth/KerberosScheme.class -org/apache/http/impl/auth/HttpEntityDigester.class -org/apache/http/impl/auth/SPNegoScheme.class -org/apache/http/impl/auth/BasicSchemeFactory.class -org/apache/http/impl/auth/NegotiateScheme.class -org/apache/http/impl/auth/NTLMSchemeFactory.class -org/apache/http/impl/auth/NTLMEngineImpl$NTLMMessage.class -org/apache/http/impl/auth/GGSSchemeBase.class -org/apache/http/impl/auth/HttpAuthenticator$1.class -org/apache/http/impl/auth/NTLMEngine.class -org/apache/http/impl/auth/DigestScheme.class -org/apache/http/impl/auth/NTLMEngineImpl.class -org/apache/http/impl/auth/AuthSchemeBase.class -org/apache/http/impl/auth/NTLMEngineImpl$Type3Message.class -org/apache/http/impl/auth/NegotiateSchemeFactory.class -org/apache/http/impl/auth/SpnegoTokenGenerator.class -org/apache/http/impl/auth/NTLMEngineImpl$HMACMD5.class -org/apache/http/impl/auth/HttpAuthenticator.class -org/apache/http/impl/auth/GGSSchemeBase$State.class -org/apache/http/impl/auth/NTLMEngineImpl$MD4.class -org/apache/http/impl/auth/NTLMEngineImpl$Type2Message.class -org/apache/http/impl/auth/DigestSchemeFactory.class -org/apache/http/impl/auth/SPNegoSchemeFactory.class -org/apache/http/impl/auth/NTLMEngineImpl$Type1Message.class -org/apache/http/impl/auth/BasicScheme.class -org/apache/http/impl/auth/UnsupportedDigestAlgorithmException.class -org/apache/http/impl/cookie/ -org/apache/http/impl/cookie/BestMatchSpec.class -org/apache/http/impl/cookie/RFC2965DiscardAttributeHandler.class -org/apache/http/impl/cookie/DefaultCookieSpecProvider$CompatibilityLevel.class -org/apache/http/impl/cookie/BasicClientCookie2.class -org/apache/http/impl/cookie/BasicSecureHandler.class -org/apache/http/impl/cookie/RFC2109Spec.class -org/apache/http/impl/cookie/RFC2965Spec.class -org/apache/http/impl/cookie/PublicSuffixFilter.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider$2.class -org/apache/http/impl/cookie/BasicDomainHandler.class -org/apache/http/impl/cookie/DefaultCookieSpecProvider.class -org/apache/http/impl/cookie/RFC2109VersionHandler.class -org/apache/http/impl/cookie/RFC2109DomainHandler.class -org/apache/http/impl/cookie/BasicMaxAgeHandler.class -org/apache/http/impl/cookie/NetscapeDraftSpec.class -org/apache/http/impl/cookie/LaxExpiresHandler.class -org/apache/http/impl/cookie/BasicExpiresHandler.class -org/apache/http/impl/cookie/BrowserCompatSpec.class -org/apache/http/impl/cookie/RFC2965SpecFactory.class -org/apache/http/impl/cookie/DefaultCookieSpec.class -org/apache/http/impl/cookie/BrowserCompatSpec$1.class -org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.class -org/apache/http/impl/cookie/IgnoreSpec.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider.class -org/apache/http/impl/cookie/BestMatchSpecFactory.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider$CompatibilityLevel.class -org/apache/http/impl/cookie/RFC6265StrictSpec.class -org/apache/http/impl/cookie/RFC2965PortAttributeHandler.class -org/apache/http/impl/cookie/IgnoreSpecProvider.class -org/apache/http/impl/cookie/BasicClientCookie.class -org/apache/http/impl/cookie/NetscapeDraftHeaderParser.class -org/apache/http/impl/cookie/DefaultCookieSpecProvider$1.class -org/apache/http/impl/cookie/BasicPathHandler.class -org/apache/http/impl/cookie/LaxMaxAgeHandler.class -org/apache/http/impl/cookie/RFC6265CookieSpecBase.class -org/apache/http/impl/cookie/RFC2965SpecProvider.class -org/apache/http/impl/cookie/NetscapeDomainHandler.class -org/apache/http/impl/cookie/RFC2965DomainAttributeHandler.class -org/apache/http/impl/cookie/PublicSuffixDomainFilter.class -org/apache/http/impl/cookie/IgnoreSpecFactory.class -org/apache/http/impl/cookie/RFC6265CookieSpecProvider$1.class -org/apache/http/impl/cookie/RFC2965VersionAttributeHandler.class -org/apache/http/impl/cookie/AbstractCookieAttributeHandler.class -org/apache/http/impl/cookie/BrowserCompatSpecFactory.class -org/apache/http/impl/cookie/RFC2109SpecProvider.class -org/apache/http/impl/cookie/BrowserCompatSpecFactory$SecurityLevel.class -org/apache/http/impl/cookie/NetscapeDraftSpecFactory.class -org/apache/http/impl/cookie/CookieSpecBase.class -org/apache/http/impl/cookie/RFC6265LaxSpec.class -org/apache/http/impl/cookie/DateParseException.class -org/apache/http/impl/cookie/RFC2109SpecFactory.class -org/apache/http/impl/cookie/RFC6265CookieSpec.class -org/apache/http/impl/cookie/PublicSuffixListParser.class -org/apache/http/impl/cookie/AbstractCookieSpec.class -org/apache/http/impl/cookie/BasicCommentHandler.class -org/apache/http/impl/cookie/DateUtils.class -org/apache/http/impl/cookie/RFC2965CommentUrlAttributeHandler.class -org/apache/http/impl/cookie/NetscapeDraftSpecProvider.class -org/apache/http/impl/client/ -org/apache/http/impl/client/TargetAuthenticationStrategy.class -org/apache/http/impl/client/LaxRedirectStrategy.class -org/apache/http/impl/client/NoopUserTokenHandler.class -org/apache/http/impl/client/RoutedRequest.class -org/apache/http/impl/client/AuthenticationStrategyImpl.class -org/apache/http/impl/client/MinimalHttpClient$1.class -org/apache/http/impl/client/CloseableHttpResponseProxy.class -org/apache/http/impl/client/DefaultProxyAuthenticationHandler.class -org/apache/http/impl/client/DefaultRedirectStrategy.class -org/apache/http/impl/client/FutureRequestExecutionService.class -org/apache/http/impl/client/FutureRequestExecutionMetrics$DurationCounter.class -org/apache/http/impl/client/HttpClientBuilder.class -org/apache/http/impl/client/AutoRetryHttpClient.class -org/apache/http/impl/client/BasicCredentialsProvider.class -org/apache/http/impl/client/AbstractResponseHandler.class -org/apache/http/impl/client/IdleConnectionEvictor$DefaultThreadFactory.class -org/apache/http/impl/client/RequestWrapper.class -org/apache/http/impl/client/HttpRequestFutureTask.class -org/apache/http/impl/client/ProxyClient.class -org/apache/http/impl/client/ContentEncodingHttpClient.class -org/apache/http/impl/client/RedirectLocations.class -org/apache/http/impl/client/DefaultHttpRequestRetryHandler.class -org/apache/http/impl/client/HttpRequestTaskCallable.class -org/apache/http/impl/client/StandardHttpRequestRetryHandler.class -org/apache/http/impl/client/AIMDBackoffManager.class -org/apache/http/impl/client/AbstractAuthenticationHandler.class -org/apache/http/impl/client/DecompressingHttpClient.class -org/apache/http/impl/client/SystemClock.class -org/apache/http/impl/client/DefaultRedirectStrategyAdaptor.class -org/apache/http/impl/client/EntityEnclosingRequestWrapper$EntityWrapper.class -org/apache/http/impl/client/AbstractHttpClient.class -org/apache/http/impl/client/Clock.class -org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.class -org/apache/http/impl/client/InternalHttpClient$1.class -org/apache/http/impl/client/SystemDefaultHttpClient.class -org/apache/http/impl/client/AuthenticationStrategyAdaptor.class -org/apache/http/impl/client/IdleConnectionEvictor.class -org/apache/http/impl/client/SystemDefaultCredentialsProvider.class -org/apache/http/impl/client/FutureRequestExecutionMetrics.class -org/apache/http/impl/client/InternalHttpClient.class -org/apache/http/impl/client/HttpClientBuilder$2.class -org/apache/http/impl/client/NullBackoffStrategy.class -org/apache/http/impl/client/DefaultBackoffStrategy.class -org/apache/http/impl/client/HttpAuthenticator.class -org/apache/http/impl/client/BasicCookieStore.class -org/apache/http/impl/client/EntityEnclosingRequestWrapper.class -org/apache/http/impl/client/CookieSpecRegistries.class -org/apache/http/impl/client/DefaultClientConnectionReuseStrategy.class -org/apache/http/impl/client/DefaultServiceUnavailableRetryStrategy.class -org/apache/http/impl/client/DefaultRedirectHandler.class -org/apache/http/impl/client/HttpClients.class -org/apache/http/impl/client/CloseableHttpClient.class -org/apache/http/impl/client/TunnelRefusedException.class -org/apache/http/impl/client/MinimalHttpClient.class -org/apache/http/impl/client/BasicAuthCache.class -org/apache/http/impl/client/BasicResponseHandler.class -org/apache/http/impl/client/DefaultUserTokenHandler.class -org/apache/http/impl/client/HttpClientBuilder$1.class -org/apache/http/impl/client/ClientParamsStack.class -org/apache/http/impl/client/DefaultRequestDirector.class -org/apache/http/impl/client/DefaultTargetAuthenticationHandler.class -org/apache/http/impl/client/IdleConnectionEvictor$1.class -org/apache/http/impl/client/DefaultHttpClient.class -org/apache/http/impl/client/ProxyAuthenticationStrategy.class -org/apache/http/impl/execchain/ -org/apache/http/impl/execchain/ServiceUnavailableRetryExec.class -org/apache/http/impl/execchain/RequestEntityProxy.class -org/apache/http/impl/execchain/ProtocolExec.class -org/apache/http/impl/execchain/MinimalClientExec.class -org/apache/http/impl/execchain/MainClientExec.class -org/apache/http/impl/execchain/RedirectExec.class -org/apache/http/impl/execchain/ClientExecChain.class -org/apache/http/impl/execchain/ConnectionHolder.class -org/apache/http/impl/execchain/HttpResponseProxy.class -org/apache/http/impl/execchain/RetryExec.class -org/apache/http/impl/execchain/TunnelRefusedException.class -org/apache/http/impl/execchain/RequestAbortedException.class -org/apache/http/impl/execchain/ResponseEntityProxy.class -org/apache/http/impl/execchain/BackoffStrategyExec.class -org/apache/http/impl/conn/ -org/apache/http/impl/conn/HttpPoolEntry.class -org/apache/http/impl/conn/DefaultClientConnection.class -org/apache/http/impl/conn/CPool.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager.class -org/apache/http/impl/conn/Wire.class -org/apache/http/impl/conn/DefaultHttpClientConnectionOperator.class -org/apache/http/impl/conn/IdleConnectionHandler.class -org/apache/http/impl/conn/ManagedHttpClientConnectionFactory.class -org/apache/http/impl/conn/SystemDefaultRoutePlanner$1.class -org/apache/http/impl/conn/CPoolProxy.class -org/apache/http/impl/conn/DefaultHttpRoutePlanner.class -org/apache/http/impl/conn/PoolingClientConnectionManager.class -org/apache/http/impl/conn/DefaultManagedHttpClientConnection.class -org/apache/http/impl/conn/LoggingSessionInputBuffer.class -org/apache/http/impl/conn/ConnectionShutdownException.class -org/apache/http/impl/conn/LoggingOutputStream.class -org/apache/http/impl/conn/ManagedClientConnectionImpl.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager$ConfigData.class -org/apache/http/impl/conn/DefaultResponseParser.class -org/apache/http/impl/conn/LoggingInputStream.class -org/apache/http/impl/conn/AbstractClientConnAdapter.class -org/apache/http/impl/conn/SystemDefaultRoutePlanner.class -org/apache/http/impl/conn/tsccm/ -org/apache/http/impl/conn/tsccm/ConnPoolByRoute.class -org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager$1.class -org/apache/http/impl/conn/tsccm/RouteSpecificPool.class -org/apache/http/impl/conn/tsccm/ConnPoolByRoute$1.class -org/apache/http/impl/conn/tsccm/PoolEntryRequest.class -org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.class -org/apache/http/impl/conn/tsccm/WaitingThread.class -org/apache/http/impl/conn/tsccm/WaitingThreadAborter.class -org/apache/http/impl/conn/tsccm/RouteSpecificPool$1.class -org/apache/http/impl/conn/tsccm/AbstractConnPool.class -org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.class -org/apache/http/impl/conn/tsccm/BasicPooledConnAdapter.class -org/apache/http/impl/conn/tsccm/BasicPoolEntry.class -org/apache/http/impl/conn/SingleClientConnManager$ConnAdapter.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager$InternalConnectionFactory.class -org/apache/http/impl/conn/DefaultHttpResponseParserFactory.class -org/apache/http/impl/conn/AbstractPoolEntry.class -org/apache/http/impl/conn/ProxySelectorRoutePlanner$1.class -org/apache/http/impl/conn/AbstractPooledConnAdapter.class -org/apache/http/impl/conn/SingleClientConnManager$PoolEntry.class -org/apache/http/impl/conn/HttpConnPool$InternalConnFactory.class -org/apache/http/impl/conn/SchemeRegistryFactory.class -org/apache/http/impl/conn/DefaultClientConnectionOperator.class -org/apache/http/impl/conn/LoggingManagedHttpClientConnection.class -org/apache/http/impl/conn/LoggingSessionOutputBuffer.class -org/apache/http/impl/conn/BasicHttpClientConnectionManager$1.class -org/apache/http/impl/conn/DefaultProxyRoutePlanner.class -org/apache/http/impl/conn/BasicClientConnectionManager$1.class -org/apache/http/impl/conn/PoolingHttpClientConnectionManager$1.class -org/apache/http/impl/conn/BasicHttpClientConnectionManager.class -org/apache/http/impl/conn/PoolingClientConnectionManager$1.class -org/apache/http/impl/conn/IdleConnectionHandler$TimeValues.class -org/apache/http/impl/conn/CPoolEntry.class -org/apache/http/impl/conn/DefaultSchemePortResolver.class -org/apache/http/impl/conn/SingleClientConnManager.class -org/apache/http/impl/conn/DefaultRoutePlanner.class -org/apache/http/impl/conn/InMemoryDnsResolver.class -org/apache/http/impl/conn/DefaultHttpResponseParser.class -org/apache/http/impl/conn/HttpConnPool.class -org/apache/http/impl/conn/BasicClientConnectionManager.class -org/apache/http/impl/conn/SingleClientConnManager$1.class -org/apache/http/impl/conn/ProxySelectorRoutePlanner.class -org/apache/http/impl/conn/SystemDefaultDnsResolver.class -mozilla/ -mozilla/public-suffix-list.txt -META-INF/maven/org.apache.httpcomponents/httpclient/ -META-INF/maven/org.apache.httpcomponents/httpclient/pom.xml -META-INF/maven/org.apache.httpcomponents/httpclient/pom.properties -META-INF/NOTICE.txt -META-INF/LICENSE.txt -org/apache/commons/ -org/apache/commons/logging/ -org/apache/commons/logging/impl/ -org/apache/commons/logging/impl/AvalonLogger.class -org/apache/commons/logging/impl/SimpleLog.class -org/apache/commons/logging/impl/Log4JLogger.class -org/apache/commons/logging/impl/WeakHashtable.class -org/apache/commons/logging/impl/WeakHashtable$1.class -org/apache/commons/logging/impl/Jdk14Logger.class -org/apache/commons/logging/impl/ServletContextCleaner.class -org/apache/commons/logging/impl/WeakHashtable$WeakKey.class -org/apache/commons/logging/impl/NoOpLog.class -org/apache/commons/logging/impl/LogKitLogger.class -org/apache/commons/logging/impl/LogFactoryImpl$3.class -org/apache/commons/logging/impl/LogFactoryImpl$1.class -org/apache/commons/logging/impl/WeakHashtable$Referenced.class -org/apache/commons/logging/impl/SimpleLog$1.class -org/apache/commons/logging/impl/Jdk13LumberjackLogger.class -org/apache/commons/logging/impl/LogFactoryImpl.class -org/apache/commons/logging/impl/LogFactoryImpl$2.class -org/apache/commons/logging/impl/WeakHashtable$Entry.class -org/apache/commons/logging/LogSource.class -org/apache/commons/logging/LogFactory$4.class -org/apache/commons/logging/LogFactory$3.class -org/apache/commons/logging/LogFactory$6.class -org/apache/commons/logging/LogConfigurationException.class -org/apache/commons/logging/LogFactory.class -org/apache/commons/logging/LogFactory$5.class -org/apache/commons/logging/LogFactory$1.class -org/apache/commons/logging/LogFactory$2.class -org/apache/commons/logging/Log.class -META-INF/maven/commons-logging/ -META-INF/maven/commons-logging/commons-logging/ -META-INF/maven/commons-logging/commons-logging/pom.xml -META-INF/maven/commons-logging/commons-logging/pom.properties -org/apache/commons/codec/ -org/apache/commons/codec/binary/ -org/apache/commons/codec/binary/Base32.class -org/apache/commons/codec/binary/Base32InputStream.class -org/apache/commons/codec/binary/Base32OutputStream.class -org/apache/commons/codec/binary/Base64.class -org/apache/commons/codec/binary/Base64InputStream.class -org/apache/commons/codec/binary/Base64OutputStream.class -org/apache/commons/codec/binary/BaseNCodec$Context.class -org/apache/commons/codec/binary/BaseNCodec.class -org/apache/commons/codec/binary/BaseNCodecInputStream.class -org/apache/commons/codec/binary/BaseNCodecOutputStream.class -org/apache/commons/codec/binary/BinaryCodec.class -org/apache/commons/codec/binary/Hex.class -org/apache/commons/codec/binary/StringUtils.class -org/apache/commons/codec/BinaryDecoder.class -org/apache/commons/codec/BinaryEncoder.class -org/apache/commons/codec/CharEncoding.class -org/apache/commons/codec/Charsets.class -org/apache/commons/codec/Decoder.class -org/apache/commons/codec/DecoderException.class -org/apache/commons/codec/digest/ -org/apache/commons/codec/digest/B64.class -org/apache/commons/codec/digest/Crypt.class -org/apache/commons/codec/digest/DigestUtils.class -org/apache/commons/codec/digest/Md5Crypt.class -org/apache/commons/codec/digest/MessageDigestAlgorithms.class -org/apache/commons/codec/digest/Sha2Crypt.class -org/apache/commons/codec/digest/UnixCrypt.class -org/apache/commons/codec/Encoder.class -org/apache/commons/codec/EncoderException.class -org/apache/commons/codec/language/ -org/apache/commons/codec/language/AbstractCaverphone.class -org/apache/commons/codec/language/bm/ -org/apache/commons/codec/language/bm/ash_approx_any.txt -org/apache/commons/codec/language/bm/ash_approx_common.txt -org/apache/commons/codec/language/bm/ash_approx_cyrillic.txt -org/apache/commons/codec/language/bm/ash_approx_english.txt -org/apache/commons/codec/language/bm/ash_approx_french.txt -org/apache/commons/codec/language/bm/ash_approx_german.txt -org/apache/commons/codec/language/bm/ash_approx_hebrew.txt -org/apache/commons/codec/language/bm/ash_approx_hungarian.txt -org/apache/commons/codec/language/bm/ash_approx_polish.txt -org/apache/commons/codec/language/bm/ash_approx_romanian.txt -org/apache/commons/codec/language/bm/ash_approx_russian.txt -org/apache/commons/codec/language/bm/ash_approx_spanish.txt -org/apache/commons/codec/language/bm/ash_exact_any.txt -org/apache/commons/codec/language/bm/ash_exact_approx_common.txt -org/apache/commons/codec/language/bm/ash_exact_common.txt -org/apache/commons/codec/language/bm/ash_exact_cyrillic.txt -org/apache/commons/codec/language/bm/ash_exact_english.txt -org/apache/commons/codec/language/bm/ash_exact_french.txt -org/apache/commons/codec/language/bm/ash_exact_german.txt -org/apache/commons/codec/language/bm/ash_exact_hebrew.txt -org/apache/commons/codec/language/bm/ash_exact_hungarian.txt -org/apache/commons/codec/language/bm/ash_exact_polish.txt -org/apache/commons/codec/language/bm/ash_exact_romanian.txt -org/apache/commons/codec/language/bm/ash_exact_russian.txt -org/apache/commons/codec/language/bm/ash_exact_spanish.txt -org/apache/commons/codec/language/bm/ash_hebrew_common.txt -org/apache/commons/codec/language/bm/ash_languages.txt -org/apache/commons/codec/language/bm/ash_rules_any.txt -org/apache/commons/codec/language/bm/ash_rules_cyrillic.txt -org/apache/commons/codec/language/bm/ash_rules_english.txt -org/apache/commons/codec/language/bm/ash_rules_french.txt -org/apache/commons/codec/language/bm/ash_rules_german.txt -org/apache/commons/codec/language/bm/ash_rules_hebrew.txt -org/apache/commons/codec/language/bm/ash_rules_hungarian.txt -org/apache/commons/codec/language/bm/ash_rules_polish.txt -org/apache/commons/codec/language/bm/ash_rules_romanian.txt -org/apache/commons/codec/language/bm/ash_rules_russian.txt -org/apache/commons/codec/language/bm/ash_rules_spanish.txt -org/apache/commons/codec/language/bm/BeiderMorseEncoder.class -org/apache/commons/codec/language/bm/gen_approx_any.txt -org/apache/commons/codec/language/bm/gen_approx_arabic.txt -org/apache/commons/codec/language/bm/gen_approx_common.txt -org/apache/commons/codec/language/bm/gen_approx_cyrillic.txt -org/apache/commons/codec/language/bm/gen_approx_czech.txt -org/apache/commons/codec/language/bm/gen_approx_dutch.txt -org/apache/commons/codec/language/bm/gen_approx_english.txt -org/apache/commons/codec/language/bm/gen_approx_french.txt -org/apache/commons/codec/language/bm/gen_approx_german.txt -org/apache/commons/codec/language/bm/gen_approx_greek.txt -org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt -org/apache/commons/codec/language/bm/gen_approx_hebrew.txt -org/apache/commons/codec/language/bm/gen_approx_hungarian.txt -org/apache/commons/codec/language/bm/gen_approx_italian.txt -org/apache/commons/codec/language/bm/gen_approx_polish.txt -org/apache/commons/codec/language/bm/gen_approx_portuguese.txt -org/apache/commons/codec/language/bm/gen_approx_romanian.txt -org/apache/commons/codec/language/bm/gen_approx_russian.txt -org/apache/commons/codec/language/bm/gen_approx_spanish.txt -org/apache/commons/codec/language/bm/gen_approx_turkish.txt -org/apache/commons/codec/language/bm/gen_exact_any.txt -org/apache/commons/codec/language/bm/gen_exact_approx_common.txt -org/apache/commons/codec/language/bm/gen_exact_arabic.txt -org/apache/commons/codec/language/bm/gen_exact_common.txt -org/apache/commons/codec/language/bm/gen_exact_cyrillic.txt -org/apache/commons/codec/language/bm/gen_exact_czech.txt -org/apache/commons/codec/language/bm/gen_exact_dutch.txt -org/apache/commons/codec/language/bm/gen_exact_english.txt -org/apache/commons/codec/language/bm/gen_exact_french.txt -org/apache/commons/codec/language/bm/gen_exact_german.txt -org/apache/commons/codec/language/bm/gen_exact_greek.txt -org/apache/commons/codec/language/bm/gen_exact_greeklatin.txt -org/apache/commons/codec/language/bm/gen_exact_hebrew.txt -org/apache/commons/codec/language/bm/gen_exact_hungarian.txt -org/apache/commons/codec/language/bm/gen_exact_italian.txt -org/apache/commons/codec/language/bm/gen_exact_polish.txt -org/apache/commons/codec/language/bm/gen_exact_portuguese.txt -org/apache/commons/codec/language/bm/gen_exact_romanian.txt -org/apache/commons/codec/language/bm/gen_exact_russian.txt -org/apache/commons/codec/language/bm/gen_exact_spanish.txt -org/apache/commons/codec/language/bm/gen_exact_turkish.txt -org/apache/commons/codec/language/bm/gen_hebrew_common.txt -org/apache/commons/codec/language/bm/gen_languages.txt -org/apache/commons/codec/language/bm/gen_rules_any.txt -org/apache/commons/codec/language/bm/gen_rules_arabic.txt -org/apache/commons/codec/language/bm/gen_rules_cyrillic.txt -org/apache/commons/codec/language/bm/gen_rules_czech.txt -org/apache/commons/codec/language/bm/gen_rules_dutch.txt -org/apache/commons/codec/language/bm/gen_rules_english.txt -org/apache/commons/codec/language/bm/gen_rules_french.txt -org/apache/commons/codec/language/bm/gen_rules_german.txt -org/apache/commons/codec/language/bm/gen_rules_greek.txt -org/apache/commons/codec/language/bm/gen_rules_greeklatin.txt -org/apache/commons/codec/language/bm/gen_rules_hebrew.txt -org/apache/commons/codec/language/bm/gen_rules_hungarian.txt -org/apache/commons/codec/language/bm/gen_rules_italian.txt -org/apache/commons/codec/language/bm/gen_rules_polish.txt -org/apache/commons/codec/language/bm/gen_rules_portuguese.txt -org/apache/commons/codec/language/bm/gen_rules_romanian.txt -org/apache/commons/codec/language/bm/gen_rules_russian.txt -org/apache/commons/codec/language/bm/gen_rules_spanish.txt -org/apache/commons/codec/language/bm/gen_rules_turkish.txt -org/apache/commons/codec/language/bm/Lang$1.class -org/apache/commons/codec/language/bm/Lang$LangRule.class -org/apache/commons/codec/language/bm/Lang.class -org/apache/commons/codec/language/bm/lang.txt -org/apache/commons/codec/language/bm/Languages$1.class -org/apache/commons/codec/language/bm/Languages$2.class -org/apache/commons/codec/language/bm/Languages$LanguageSet.class -org/apache/commons/codec/language/bm/Languages$SomeLanguages.class -org/apache/commons/codec/language/bm/Languages.class -org/apache/commons/codec/language/bm/NameType.class -org/apache/commons/codec/language/bm/PhoneticEngine$1.class -org/apache/commons/codec/language/bm/PhoneticEngine$PhonemeBuilder.class -org/apache/commons/codec/language/bm/PhoneticEngine$RulesApplication.class -org/apache/commons/codec/language/bm/PhoneticEngine.class -org/apache/commons/codec/language/bm/ResourceConstants.class -org/apache/commons/codec/language/bm/Rule$1.class -org/apache/commons/codec/language/bm/Rule$10.class -org/apache/commons/codec/language/bm/Rule$2.class -org/apache/commons/codec/language/bm/Rule$3.class -org/apache/commons/codec/language/bm/Rule$4.class -org/apache/commons/codec/language/bm/Rule$5.class -org/apache/commons/codec/language/bm/Rule$6.class -org/apache/commons/codec/language/bm/Rule$7.class -org/apache/commons/codec/language/bm/Rule$8.class -org/apache/commons/codec/language/bm/Rule$9.class -org/apache/commons/codec/language/bm/Rule$Phoneme$1.class -org/apache/commons/codec/language/bm/Rule$Phoneme.class -org/apache/commons/codec/language/bm/Rule$PhonemeExpr.class -org/apache/commons/codec/language/bm/Rule$PhonemeList.class -org/apache/commons/codec/language/bm/Rule$RPattern.class -org/apache/commons/codec/language/bm/Rule.class -org/apache/commons/codec/language/bm/RuleType.class -org/apache/commons/codec/language/bm/sep_approx_any.txt -org/apache/commons/codec/language/bm/sep_approx_common.txt -org/apache/commons/codec/language/bm/sep_approx_french.txt -org/apache/commons/codec/language/bm/sep_approx_hebrew.txt -org/apache/commons/codec/language/bm/sep_approx_italian.txt -org/apache/commons/codec/language/bm/sep_approx_portuguese.txt -org/apache/commons/codec/language/bm/sep_approx_spanish.txt -org/apache/commons/codec/language/bm/sep_exact_any.txt -org/apache/commons/codec/language/bm/sep_exact_approx_common.txt -org/apache/commons/codec/language/bm/sep_exact_common.txt -org/apache/commons/codec/language/bm/sep_exact_french.txt -org/apache/commons/codec/language/bm/sep_exact_hebrew.txt -org/apache/commons/codec/language/bm/sep_exact_italian.txt -org/apache/commons/codec/language/bm/sep_exact_portuguese.txt -org/apache/commons/codec/language/bm/sep_exact_spanish.txt -org/apache/commons/codec/language/bm/sep_hebrew_common.txt -org/apache/commons/codec/language/bm/sep_languages.txt -org/apache/commons/codec/language/bm/sep_rules_any.txt -org/apache/commons/codec/language/bm/sep_rules_french.txt -org/apache/commons/codec/language/bm/sep_rules_hebrew.txt -org/apache/commons/codec/language/bm/sep_rules_italian.txt -org/apache/commons/codec/language/bm/sep_rules_portuguese.txt -org/apache/commons/codec/language/bm/sep_rules_spanish.txt -org/apache/commons/codec/language/Caverphone.class -org/apache/commons/codec/language/Caverphone1.class -org/apache/commons/codec/language/Caverphone2.class -org/apache/commons/codec/language/ColognePhonetic$CologneBuffer.class -org/apache/commons/codec/language/ColognePhonetic$CologneInputBuffer.class -org/apache/commons/codec/language/ColognePhonetic$CologneOutputBuffer.class -org/apache/commons/codec/language/ColognePhonetic.class -org/apache/commons/codec/language/DoubleMetaphone$DoubleMetaphoneResult.class -org/apache/commons/codec/language/DoubleMetaphone.class -org/apache/commons/codec/language/MatchRatingApproachEncoder.class -org/apache/commons/codec/language/Metaphone.class -org/apache/commons/codec/language/Nysiis.class -org/apache/commons/codec/language/RefinedSoundex.class -org/apache/commons/codec/language/Soundex.class -org/apache/commons/codec/language/SoundexUtils.class -org/apache/commons/codec/net/ -org/apache/commons/codec/net/BCodec.class -org/apache/commons/codec/net/QCodec.class -org/apache/commons/codec/net/QuotedPrintableCodec.class -org/apache/commons/codec/net/RFC1522Codec.class -org/apache/commons/codec/net/URLCodec.class -org/apache/commons/codec/net/Utils.class -org/apache/commons/codec/StringDecoder.class -org/apache/commons/codec/StringEncoder.class -org/apache/commons/codec/StringEncoderComparator.class -META-INF/maven/commons-codec/ -META-INF/maven/commons-codec/commons-codec/ -META-INF/maven/commons-codec/commons-codec/pom.xml -META-INF/maven/commons-codec/commons-codec/pom.properties -META-INF/maven/com.fasterxml.jackson.core/ -META-INF/maven/com.fasterxml.jackson.core/jackson-core/ -META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.properties -META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml -META-INF/services/ -META-INF/services/com.fasterxml.jackson.core.JsonFactory -com/fasterxml/ -com/fasterxml/jackson/ -com/fasterxml/jackson/core/ -com/fasterxml/jackson/core/Base64Variant.class -com/fasterxml/jackson/core/Base64Variants.class -com/fasterxml/jackson/core/FormatFeature.class -com/fasterxml/jackson/core/FormatSchema.class -com/fasterxml/jackson/core/JsonEncoding.class -com/fasterxml/jackson/core/JsonFactory$Feature.class -com/fasterxml/jackson/core/JsonFactory.class -com/fasterxml/jackson/core/JsonGenerationException.class -com/fasterxml/jackson/core/JsonGenerator$1.class -com/fasterxml/jackson/core/JsonGenerator$Feature.class -com/fasterxml/jackson/core/JsonGenerator.class -com/fasterxml/jackson/core/JsonLocation.class -com/fasterxml/jackson/core/JsonParseException.class -com/fasterxml/jackson/core/JsonParser$Feature.class -com/fasterxml/jackson/core/JsonParser$NumberType.class -com/fasterxml/jackson/core/JsonParser.class -com/fasterxml/jackson/core/JsonPointer.class -com/fasterxml/jackson/core/JsonProcessingException.class -com/fasterxml/jackson/core/JsonStreamContext.class -com/fasterxml/jackson/core/JsonToken.class -com/fasterxml/jackson/core/JsonTokenId.class -com/fasterxml/jackson/core/JsonpCharacterEscapes.class -com/fasterxml/jackson/core/ObjectCodec.class -com/fasterxml/jackson/core/PrettyPrinter.class -com/fasterxml/jackson/core/SerializableString.class -com/fasterxml/jackson/core/TreeCodec.class -com/fasterxml/jackson/core/TreeNode.class -com/fasterxml/jackson/core/Version.class -com/fasterxml/jackson/core/Versioned.class -com/fasterxml/jackson/core/async/ -com/fasterxml/jackson/core/async/ByteArrayFeeder.class -com/fasterxml/jackson/core/async/ByteBufferFeeder.class -com/fasterxml/jackson/core/async/NonBlockingInputFeeder.class -com/fasterxml/jackson/core/base/ -com/fasterxml/jackson/core/base/GeneratorBase.class -com/fasterxml/jackson/core/base/ParserBase.class -com/fasterxml/jackson/core/base/ParserMinimalBase.class -com/fasterxml/jackson/core/filter/ -com/fasterxml/jackson/core/filter/FilteringGeneratorDelegate.class -com/fasterxml/jackson/core/filter/FilteringParserDelegate.class -com/fasterxml/jackson/core/filter/JsonPointerBasedFilter.class -com/fasterxml/jackson/core/filter/TokenFilter.class -com/fasterxml/jackson/core/filter/TokenFilterContext.class -com/fasterxml/jackson/core/format/ -com/fasterxml/jackson/core/format/DataFormatDetector.class -com/fasterxml/jackson/core/format/DataFormatMatcher.class -com/fasterxml/jackson/core/format/InputAccessor$Std.class -com/fasterxml/jackson/core/format/InputAccessor.class -com/fasterxml/jackson/core/format/MatchStrength.class -com/fasterxml/jackson/core/io/ -com/fasterxml/jackson/core/io/CharTypes.class -com/fasterxml/jackson/core/io/CharacterEscapes.class -com/fasterxml/jackson/core/io/DataOutputAsStream.class -com/fasterxml/jackson/core/io/IOContext.class -com/fasterxml/jackson/core/io/InputDecorator.class -com/fasterxml/jackson/core/io/JsonEOFException.class -com/fasterxml/jackson/core/io/JsonStringEncoder.class -com/fasterxml/jackson/core/io/MergedStream.class -com/fasterxml/jackson/core/io/NumberInput.class -com/fasterxml/jackson/core/io/NumberOutput.class -com/fasterxml/jackson/core/io/OutputDecorator.class -com/fasterxml/jackson/core/io/SegmentedStringWriter.class -com/fasterxml/jackson/core/io/SerializedString.class -com/fasterxml/jackson/core/io/UTF32Reader.class -com/fasterxml/jackson/core/io/UTF8Writer.class -com/fasterxml/jackson/core/json/ -com/fasterxml/jackson/core/json/ByteSourceJsonBootstrapper.class -com/fasterxml/jackson/core/json/DupDetector.class -com/fasterxml/jackson/core/json/JsonGeneratorImpl.class -com/fasterxml/jackson/core/json/JsonReadContext.class -com/fasterxml/jackson/core/json/JsonWriteContext.class -com/fasterxml/jackson/core/json/PackageVersion.class -com/fasterxml/jackson/core/json/ReaderBasedJsonParser.class -com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.class -com/fasterxml/jackson/core/json/UTF8JsonGenerator.class -com/fasterxml/jackson/core/json/UTF8StreamJsonParser.class -com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.class -com/fasterxml/jackson/core/json/async/ -com/fasterxml/jackson/core/json/async/NonBlockingJsonParser.class -com/fasterxml/jackson/core/json/async/NonBlockingJsonParserBase.class -com/fasterxml/jackson/core/sym/ -com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer$TableInfo.class -com/fasterxml/jackson/core/sym/ByteQuadsCanonicalizer.class -com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$Bucket.class -com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer$TableInfo.class -com/fasterxml/jackson/core/sym/CharsToNameCanonicalizer.class -com/fasterxml/jackson/core/sym/Name.class -com/fasterxml/jackson/core/sym/Name1.class -com/fasterxml/jackson/core/sym/Name2.class -com/fasterxml/jackson/core/sym/Name3.class -com/fasterxml/jackson/core/sym/NameN.class -com/fasterxml/jackson/core/type/ -com/fasterxml/jackson/core/type/ResolvedType.class -com/fasterxml/jackson/core/type/TypeReference.class -com/fasterxml/jackson/core/type/WritableTypeId$Inclusion.class -com/fasterxml/jackson/core/type/WritableTypeId.class -com/fasterxml/jackson/core/util/ -com/fasterxml/jackson/core/util/BufferRecycler.class -com/fasterxml/jackson/core/util/BufferRecyclers.class -com/fasterxml/jackson/core/util/ByteArrayBuilder.class -com/fasterxml/jackson/core/util/DefaultIndenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter$FixedSpaceIndenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter$Indenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter$NopIndenter.class -com/fasterxml/jackson/core/util/DefaultPrettyPrinter.class -com/fasterxml/jackson/core/util/Instantiatable.class -com/fasterxml/jackson/core/util/InternCache.class -com/fasterxml/jackson/core/util/JsonGeneratorDelegate.class -com/fasterxml/jackson/core/util/JsonParserDelegate.class -com/fasterxml/jackson/core/util/JsonParserSequence.class -com/fasterxml/jackson/core/util/MinimalPrettyPrinter.class -com/fasterxml/jackson/core/util/RequestPayload.class -com/fasterxml/jackson/core/util/Separators.class -com/fasterxml/jackson/core/util/TextBuffer.class -com/fasterxml/jackson/core/util/ThreadLocalBufferManager$ThreadLocalBufferManagerHolder.class -com/fasterxml/jackson/core/util/ThreadLocalBufferManager.class -com/fasterxml/jackson/core/util/VersionUtil.class -META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/ -META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.properties -META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml -com/fasterxml/jackson/annotation/ -com/fasterxml/jackson/annotation/JacksonAnnotation.class -com/fasterxml/jackson/annotation/JacksonAnnotationValue.class -com/fasterxml/jackson/annotation/JacksonAnnotationsInside.class -com/fasterxml/jackson/annotation/JacksonInject$Value.class -com/fasterxml/jackson/annotation/JacksonInject.class -com/fasterxml/jackson/annotation/JsonAlias.class -com/fasterxml/jackson/annotation/JsonAnyGetter.class -com/fasterxml/jackson/annotation/JsonAnySetter.class -com/fasterxml/jackson/annotation/JsonAutoDetect$1.class -com/fasterxml/jackson/annotation/JsonAutoDetect$Value.class -com/fasterxml/jackson/annotation/JsonAutoDetect$Visibility.class -com/fasterxml/jackson/annotation/JsonAutoDetect.class -com/fasterxml/jackson/annotation/JsonBackReference.class -com/fasterxml/jackson/annotation/JsonClassDescription.class -com/fasterxml/jackson/annotation/JsonCreator$Mode.class -com/fasterxml/jackson/annotation/JsonCreator.class -com/fasterxml/jackson/annotation/JsonEnumDefaultValue.class -com/fasterxml/jackson/annotation/JsonFilter.class -com/fasterxml/jackson/annotation/JsonFormat$Feature.class -com/fasterxml/jackson/annotation/JsonFormat$Features.class -com/fasterxml/jackson/annotation/JsonFormat$Shape.class -com/fasterxml/jackson/annotation/JsonFormat$Value.class -com/fasterxml/jackson/annotation/JsonFormat.class -com/fasterxml/jackson/annotation/JsonGetter.class -com/fasterxml/jackson/annotation/JsonIdentityInfo.class -com/fasterxml/jackson/annotation/JsonIdentityReference.class -com/fasterxml/jackson/annotation/JsonIgnore.class -com/fasterxml/jackson/annotation/JsonIgnoreProperties$Value.class -com/fasterxml/jackson/annotation/JsonIgnoreProperties.class -com/fasterxml/jackson/annotation/JsonIgnoreType.class -com/fasterxml/jackson/annotation/JsonInclude$Include.class -com/fasterxml/jackson/annotation/JsonInclude$Value.class -com/fasterxml/jackson/annotation/JsonInclude.class -com/fasterxml/jackson/annotation/JsonManagedReference.class -com/fasterxml/jackson/annotation/JsonMerge.class -com/fasterxml/jackson/annotation/JsonProperty$Access.class -com/fasterxml/jackson/annotation/JsonProperty.class -com/fasterxml/jackson/annotation/JsonPropertyDescription.class -com/fasterxml/jackson/annotation/JsonPropertyOrder.class -com/fasterxml/jackson/annotation/JsonRawValue.class -com/fasterxml/jackson/annotation/JsonRootName.class -com/fasterxml/jackson/annotation/JsonSetter$Value.class -com/fasterxml/jackson/annotation/JsonSetter.class -com/fasterxml/jackson/annotation/JsonSubTypes$Type.class -com/fasterxml/jackson/annotation/JsonSubTypes.class -com/fasterxml/jackson/annotation/JsonTypeId.class -com/fasterxml/jackson/annotation/JsonTypeInfo$As.class -com/fasterxml/jackson/annotation/JsonTypeInfo$Id.class -com/fasterxml/jackson/annotation/JsonTypeInfo$None.class -com/fasterxml/jackson/annotation/JsonTypeInfo.class -com/fasterxml/jackson/annotation/JsonTypeName.class -com/fasterxml/jackson/annotation/JsonUnwrapped.class -com/fasterxml/jackson/annotation/JsonValue.class -com/fasterxml/jackson/annotation/JsonView.class -com/fasterxml/jackson/annotation/Nulls.class -com/fasterxml/jackson/annotation/ObjectIdGenerator$IdKey.class -com/fasterxml/jackson/annotation/ObjectIdGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$Base.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$IntSequenceGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$None.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$PropertyGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$StringIdGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators$UUIDGenerator.class -com/fasterxml/jackson/annotation/ObjectIdGenerators.class -com/fasterxml/jackson/annotation/ObjectIdResolver.class -com/fasterxml/jackson/annotation/OptBoolean.class -com/fasterxml/jackson/annotation/PropertyAccessor.class -com/fasterxml/jackson/annotation/SimpleObjectIdResolver.class -META-INF/maven/com.fasterxml.jackson.core/jackson-databind/ -META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.properties -META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml -META-INF/services/com.fasterxml.jackson.core.ObjectCodec -com/fasterxml/jackson/databind/ -com/fasterxml/jackson/databind/AbstractTypeResolver.class -com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty$Type.class -com/fasterxml/jackson/databind/AnnotationIntrospector$ReferenceProperty.class -com/fasterxml/jackson/databind/AnnotationIntrospector.class -com/fasterxml/jackson/databind/BeanDescription.class -com/fasterxml/jackson/databind/BeanProperty$Bogus.class -com/fasterxml/jackson/databind/BeanProperty$Std.class -com/fasterxml/jackson/databind/BeanProperty.class -com/fasterxml/jackson/databind/DatabindContext.class -com/fasterxml/jackson/databind/DeserializationConfig.class -com/fasterxml/jackson/databind/DeserializationContext.class -com/fasterxml/jackson/databind/DeserializationFeature.class -com/fasterxml/jackson/databind/InjectableValues$Std.class -com/fasterxml/jackson/databind/InjectableValues.class -com/fasterxml/jackson/databind/JavaType.class -com/fasterxml/jackson/databind/JsonDeserializer$None.class -com/fasterxml/jackson/databind/JsonDeserializer.class -com/fasterxml/jackson/databind/JsonMappingException$Reference.class -com/fasterxml/jackson/databind/JsonMappingException.class -com/fasterxml/jackson/databind/JsonNode$1.class -com/fasterxml/jackson/databind/JsonNode.class -com/fasterxml/jackson/databind/JsonSerializable$Base.class -com/fasterxml/jackson/databind/JsonSerializable.class -com/fasterxml/jackson/databind/JsonSerializer$None.class -com/fasterxml/jackson/databind/JsonSerializer.class -com/fasterxml/jackson/databind/KeyDeserializer$None.class -com/fasterxml/jackson/databind/KeyDeserializer.class -com/fasterxml/jackson/databind/MapperFeature.class -com/fasterxml/jackson/databind/MappingIterator.class -com/fasterxml/jackson/databind/MappingJsonFactory.class -com/fasterxml/jackson/databind/Module$SetupContext.class -com/fasterxml/jackson/databind/Module.class -com/fasterxml/jackson/databind/ObjectMapper$1.class -com/fasterxml/jackson/databind/ObjectMapper$2.class -com/fasterxml/jackson/databind/ObjectMapper$3.class -com/fasterxml/jackson/databind/ObjectMapper$DefaultTypeResolverBuilder.class -com/fasterxml/jackson/databind/ObjectMapper$DefaultTyping.class -com/fasterxml/jackson/databind/ObjectMapper.class -com/fasterxml/jackson/databind/ObjectReader.class -com/fasterxml/jackson/databind/ObjectWriter$GeneratorSettings.class -com/fasterxml/jackson/databind/ObjectWriter$Prefetch.class -com/fasterxml/jackson/databind/ObjectWriter.class -com/fasterxml/jackson/databind/PropertyMetadata$MergeInfo.class -com/fasterxml/jackson/databind/PropertyMetadata.class -com/fasterxml/jackson/databind/PropertyName.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$KebabCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$LowerCaseWithUnderscoresStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$PascalCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$PropertyNamingStrategyBase.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$SnakeCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy$UpperCamelCaseStrategy.class -com/fasterxml/jackson/databind/PropertyNamingStrategy.class -com/fasterxml/jackson/databind/RuntimeJsonMappingException.class -com/fasterxml/jackson/databind/SequenceWriter.class -com/fasterxml/jackson/databind/SerializationConfig.class -com/fasterxml/jackson/databind/SerializationFeature.class -com/fasterxml/jackson/databind/SerializerProvider.class -com/fasterxml/jackson/databind/annotation/ -com/fasterxml/jackson/databind/annotation/JacksonStdImpl.class -com/fasterxml/jackson/databind/annotation/JsonAppend$Attr.class -com/fasterxml/jackson/databind/annotation/JsonAppend$Prop.class -com/fasterxml/jackson/databind/annotation/JsonAppend.class -com/fasterxml/jackson/databind/annotation/JsonDeserialize.class -com/fasterxml/jackson/databind/annotation/JsonNaming.class -com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder$Value.class -com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.class -com/fasterxml/jackson/databind/annotation/JsonSerialize$Inclusion.class -com/fasterxml/jackson/databind/annotation/JsonSerialize$Typing.class -com/fasterxml/jackson/databind/annotation/JsonSerialize.class -com/fasterxml/jackson/databind/annotation/JsonTypeIdResolver.class -com/fasterxml/jackson/databind/annotation/JsonTypeResolver.class -com/fasterxml/jackson/databind/annotation/JsonValueInstantiator.class -com/fasterxml/jackson/databind/annotation/NoClass.class -com/fasterxml/jackson/databind/cfg/ -com/fasterxml/jackson/databind/cfg/BaseSettings.class -com/fasterxml/jackson/databind/cfg/ConfigFeature.class -com/fasterxml/jackson/databind/cfg/ConfigOverride$Empty.class -com/fasterxml/jackson/databind/cfg/ConfigOverride.class -com/fasterxml/jackson/databind/cfg/ConfigOverrides.class -com/fasterxml/jackson/databind/cfg/ContextAttributes$Impl.class -com/fasterxml/jackson/databind/cfg/ContextAttributes.class -com/fasterxml/jackson/databind/cfg/DeserializerFactoryConfig.class -com/fasterxml/jackson/databind/cfg/HandlerInstantiator.class -com/fasterxml/jackson/databind/cfg/MapperConfig.class -com/fasterxml/jackson/databind/cfg/MapperConfigBase.class -com/fasterxml/jackson/databind/cfg/MutableConfigOverride.class -com/fasterxml/jackson/databind/cfg/PackageVersion.class -com/fasterxml/jackson/databind/cfg/SerializerFactoryConfig.class -com/fasterxml/jackson/databind/deser/ -com/fasterxml/jackson/databind/deser/AbstractDeserializer.class -com/fasterxml/jackson/databind/deser/BasicDeserializerFactory$1.class -com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.class -com/fasterxml/jackson/databind/deser/BeanDeserializer$1.class -com/fasterxml/jackson/databind/deser/BeanDeserializer$BeanReferring.class -com/fasterxml/jackson/databind/deser/BeanDeserializer.class -com/fasterxml/jackson/databind/deser/BeanDeserializerBase.class -com/fasterxml/jackson/databind/deser/BeanDeserializerBuilder.class -com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.class -com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.class -com/fasterxml/jackson/databind/deser/BuilderBasedDeserializer.class -com/fasterxml/jackson/databind/deser/ContextualDeserializer.class -com/fasterxml/jackson/databind/deser/ContextualKeyDeserializer.class -com/fasterxml/jackson/databind/deser/CreatorProperty.class -com/fasterxml/jackson/databind/deser/DataFormatReaders$AccessorForReader.class -com/fasterxml/jackson/databind/deser/DataFormatReaders$Match.class -com/fasterxml/jackson/databind/deser/DataFormatReaders.class -com/fasterxml/jackson/databind/deser/DefaultDeserializationContext$Impl.class -com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.class -com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.class -com/fasterxml/jackson/databind/deser/DeserializerCache.class -com/fasterxml/jackson/databind/deser/DeserializerFactory.class -com/fasterxml/jackson/databind/deser/Deserializers$Base.class -com/fasterxml/jackson/databind/deser/Deserializers.class -com/fasterxml/jackson/databind/deser/KeyDeserializers.class -com/fasterxml/jackson/databind/deser/NullValueProvider.class -com/fasterxml/jackson/databind/deser/ResolvableDeserializer.class -com/fasterxml/jackson/databind/deser/SettableAnyProperty$AnySetterReferring.class -com/fasterxml/jackson/databind/deser/SettableAnyProperty.class -com/fasterxml/jackson/databind/deser/SettableBeanProperty$Delegating.class -com/fasterxml/jackson/databind/deser/SettableBeanProperty.class -com/fasterxml/jackson/databind/deser/UnresolvedForwardReference.class -com/fasterxml/jackson/databind/deser/UnresolvedId.class -com/fasterxml/jackson/databind/deser/ValueInstantiator$Base.class -com/fasterxml/jackson/databind/deser/ValueInstantiator$Gettable.class -com/fasterxml/jackson/databind/deser/ValueInstantiator.class -com/fasterxml/jackson/databind/deser/ValueInstantiators$Base.class -com/fasterxml/jackson/databind/deser/ValueInstantiators.class -com/fasterxml/jackson/databind/deser/impl/ -com/fasterxml/jackson/databind/deser/impl/BeanAsArrayBuilderDeserializer.class -com/fasterxml/jackson/databind/deser/impl/BeanAsArrayDeserializer.class -com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.class -com/fasterxml/jackson/databind/deser/impl/CreatorCandidate$Param.class -com/fasterxml/jackson/databind/deser/impl/CreatorCandidate.class -com/fasterxml/jackson/databind/deser/impl/CreatorCollector$StdTypeConstructor.class -com/fasterxml/jackson/databind/deser/impl/CreatorCollector.class -com/fasterxml/jackson/databind/deser/impl/ErrorThrowingDeserializer.class -com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$Builder.class -com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler$ExtTypedProperty.class -com/fasterxml/jackson/databind/deser/impl/ExternalTypeHandler.class -com/fasterxml/jackson/databind/deser/impl/FailingDeserializer.class -com/fasterxml/jackson/databind/deser/impl/FieldProperty.class -com/fasterxml/jackson/databind/deser/impl/InnerClassProperty.class -com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$1.class -com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers$JavaUtilCollectionsConverter.class -com/fasterxml/jackson/databind/deser/impl/JavaUtilCollectionsDeserializers.class -com/fasterxml/jackson/databind/deser/impl/ManagedReferenceProperty.class -com/fasterxml/jackson/databind/deser/impl/MergingSettableBeanProperty.class -com/fasterxml/jackson/databind/deser/impl/MethodProperty.class -com/fasterxml/jackson/databind/deser/impl/NullsAsEmptyProvider.class -com/fasterxml/jackson/databind/deser/impl/NullsConstantProvider.class -com/fasterxml/jackson/databind/deser/impl/NullsFailProvider.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdReader.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty$PropertyReferring.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty.class -com/fasterxml/jackson/databind/deser/impl/ObjectIdValueProperty.class -com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator$CaseInsensitiveMap.class -com/fasterxml/jackson/databind/deser/impl/PropertyBasedCreator.class -com/fasterxml/jackson/databind/deser/impl/PropertyBasedObjectIdGenerator.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue$Any.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue$Map.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue$Regular.class -com/fasterxml/jackson/databind/deser/impl/PropertyValue.class -com/fasterxml/jackson/databind/deser/impl/PropertyValueBuffer.class -com/fasterxml/jackson/databind/deser/impl/ReadableObjectId$Referring.class -com/fasterxml/jackson/databind/deser/impl/ReadableObjectId.class -com/fasterxml/jackson/databind/deser/impl/SetterlessProperty.class -com/fasterxml/jackson/databind/deser/impl/TypeWrappedDeserializer.class -com/fasterxml/jackson/databind/deser/impl/UnwrappedPropertyHandler.class -com/fasterxml/jackson/databind/deser/impl/ValueInjector.class -com/fasterxml/jackson/databind/deser/std/ -com/fasterxml/jackson/databind/deser/std/ArrayBlockingQueueDeserializer.class -com/fasterxml/jackson/databind/deser/std/AtomicBooleanDeserializer.class -com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.class -com/fasterxml/jackson/databind/deser/std/BaseNodeDeserializer.class -com/fasterxml/jackson/databind/deser/std/ByteBufferDeserializer.class -com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferring.class -com/fasterxml/jackson/databind/deser/std/CollectionDeserializer$CollectionReferringAccumulator.class -com/fasterxml/jackson/databind/deser/std/CollectionDeserializer.class -com/fasterxml/jackson/databind/deser/std/ContainerDeserializerBase.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$CalendarDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateBasedDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$DateDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$SqlDateDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers$TimestampDeserializer.class -com/fasterxml/jackson/databind/deser/std/DateDeserializers.class -com/fasterxml/jackson/databind/deser/std/DelegatingDeserializer.class -com/fasterxml/jackson/databind/deser/std/EnumDeserializer.class -com/fasterxml/jackson/databind/deser/std/EnumMapDeserializer.class -com/fasterxml/jackson/databind/deser/std/EnumSetDeserializer.class -com/fasterxml/jackson/databind/deser/std/FactoryBasedEnumDeserializer.class -com/fasterxml/jackson/databind/deser/std/FromStringDeserializer$Std.class -com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.class -com/fasterxml/jackson/databind/deser/std/JdkDeserializers.class -com/fasterxml/jackson/databind/deser/std/JsonLocationInstantiator.class -com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ArrayDeserializer.class -com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer$ObjectDeserializer.class -com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer.class -com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferring.class -com/fasterxml/jackson/databind/deser/std/MapDeserializer$MapReferringAccumulator.class -com/fasterxml/jackson/databind/deser/std/MapDeserializer.class -com/fasterxml/jackson/databind/deser/std/MapEntryDeserializer.class -com/fasterxml/jackson/databind/deser/std/NullifyingDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$1.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigDecimalDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BigIntegerDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$BooleanDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ByteDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$CharacterDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$DoubleDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$FloatDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$IntegerDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$LongDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$NumberDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$PrimitiveOrWrapperDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers$ShortDeserializer.class -com/fasterxml/jackson/databind/deser/std/NumberDeserializers.class -com/fasterxml/jackson/databind/deser/std/ObjectArrayDeserializer.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$BooleanDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ByteDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$CharDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$DoubleDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$FloatDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$IntDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$LongDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers$ShortDeser.class -com/fasterxml/jackson/databind/deser/std/PrimitiveArrayDeserializers.class -com/fasterxml/jackson/databind/deser/std/ReferenceTypeDeserializer.class -com/fasterxml/jackson/databind/deser/std/StackTraceElementDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdDelegatingDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$DelegatingKD.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$EnumKD.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringCtorKeyDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringFactoryKeyDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer$StringKD.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdKeyDeserializers.class -com/fasterxml/jackson/databind/deser/std/StdNodeBasedDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdScalarDeserializer.class -com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.class -com/fasterxml/jackson/databind/deser/std/StringArrayDeserializer.class -com/fasterxml/jackson/databind/deser/std/StringCollectionDeserializer.class -com/fasterxml/jackson/databind/deser/std/StringDeserializer.class -com/fasterxml/jackson/databind/deser/std/ThrowableDeserializer.class -com/fasterxml/jackson/databind/deser/std/TokenBufferDeserializer.class -com/fasterxml/jackson/databind/deser/std/UUIDDeserializer.class -com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer$Vanilla.class -com/fasterxml/jackson/databind/deser/std/UntypedObjectDeserializer.class -com/fasterxml/jackson/databind/exc/ -com/fasterxml/jackson/databind/exc/IgnoredPropertyException.class -com/fasterxml/jackson/databind/exc/InvalidDefinitionException.class -com/fasterxml/jackson/databind/exc/InvalidFormatException.class -com/fasterxml/jackson/databind/exc/InvalidNullException.class -com/fasterxml/jackson/databind/exc/InvalidTypeIdException.class -com/fasterxml/jackson/databind/exc/MismatchedInputException.class -com/fasterxml/jackson/databind/exc/PropertyBindingException.class -com/fasterxml/jackson/databind/exc/UnrecognizedPropertyException.class -com/fasterxml/jackson/databind/ext/ -com/fasterxml/jackson/databind/ext/CoreXMLDeserializers$Std.class -com/fasterxml/jackson/databind/ext/CoreXMLDeserializers.class -com/fasterxml/jackson/databind/ext/CoreXMLSerializers$XMLGregorianCalendarSerializer.class -com/fasterxml/jackson/databind/ext/CoreXMLSerializers.class -com/fasterxml/jackson/databind/ext/DOMDeserializer$DocumentDeserializer.class -com/fasterxml/jackson/databind/ext/DOMDeserializer$NodeDeserializer.class -com/fasterxml/jackson/databind/ext/DOMDeserializer.class -com/fasterxml/jackson/databind/ext/DOMSerializer.class -com/fasterxml/jackson/databind/ext/Java7Support.class -com/fasterxml/jackson/databind/ext/Java7SupportImpl.class -com/fasterxml/jackson/databind/ext/NioPathDeserializer.class -com/fasterxml/jackson/databind/ext/NioPathSerializer.class -com/fasterxml/jackson/databind/ext/OptionalHandlerFactory.class -com/fasterxml/jackson/databind/introspect/ -com/fasterxml/jackson/databind/introspect/Annotated.class -com/fasterxml/jackson/databind/introspect/AnnotatedClass$Creators.class -com/fasterxml/jackson/databind/introspect/AnnotatedClass.class -com/fasterxml/jackson/databind/introspect/AnnotatedClassResolver.class -com/fasterxml/jackson/databind/introspect/AnnotatedConstructor$Serialization.class -com/fasterxml/jackson/databind/introspect/AnnotatedConstructor.class -com/fasterxml/jackson/databind/introspect/AnnotatedCreatorCollector.class -com/fasterxml/jackson/databind/introspect/AnnotatedField$Serialization.class -com/fasterxml/jackson/databind/introspect/AnnotatedField.class -com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector$FieldBuilder.class -com/fasterxml/jackson/databind/introspect/AnnotatedFieldCollector.class -com/fasterxml/jackson/databind/introspect/AnnotatedMember.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethod$Serialization.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethod.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector$MethodBuilder.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethodCollector.class -com/fasterxml/jackson/databind/introspect/AnnotatedMethodMap.class -com/fasterxml/jackson/databind/introspect/AnnotatedParameter.class -com/fasterxml/jackson/databind/introspect/AnnotatedWithParams.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$EmptyCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$NCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$NoAnnotations.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneAnnotation.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$OneCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector$TwoAnnotations.class -com/fasterxml/jackson/databind/introspect/AnnotationCollector.class -com/fasterxml/jackson/databind/introspect/AnnotationIntrospectorPair.class -com/fasterxml/jackson/databind/introspect/AnnotationMap.class -com/fasterxml/jackson/databind/introspect/BasicBeanDescription.class -com/fasterxml/jackson/databind/introspect/BasicClassIntrospector.class -com/fasterxml/jackson/databind/introspect/BeanPropertyDefinition.class -com/fasterxml/jackson/databind/introspect/ClassIntrospector$MixInResolver.class -com/fasterxml/jackson/databind/introspect/ClassIntrospector.class -com/fasterxml/jackson/databind/introspect/CollectorBase.class -com/fasterxml/jackson/databind/introspect/ConcreteBeanPropertyBase.class -com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector$1.class -com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector.class -com/fasterxml/jackson/databind/introspect/MemberKey.class -com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector$1.class -com/fasterxml/jackson/databind/introspect/NopAnnotationIntrospector.class -com/fasterxml/jackson/databind/introspect/ObjectIdInfo.class -com/fasterxml/jackson/databind/introspect/POJOPropertiesCollector.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$1.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$10.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$2.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$3.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$4.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$5.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$6.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$7.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$8.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$9.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$Linked.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$MemberIterator.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder$WithMember.class -com/fasterxml/jackson/databind/introspect/POJOPropertyBuilder.class -com/fasterxml/jackson/databind/introspect/SimpleMixInResolver.class -com/fasterxml/jackson/databind/introspect/TypeResolutionContext$Basic.class -com/fasterxml/jackson/databind/introspect/TypeResolutionContext.class -com/fasterxml/jackson/databind/introspect/VirtualAnnotatedMember.class -com/fasterxml/jackson/databind/introspect/VisibilityChecker$1.class -com/fasterxml/jackson/databind/introspect/VisibilityChecker$Std.class -com/fasterxml/jackson/databind/introspect/VisibilityChecker.class -com/fasterxml/jackson/databind/introspect/WithMember.class -com/fasterxml/jackson/databind/jsonFormatVisitors/ -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonAnyFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonArrayFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonBooleanFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatTypes.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitable.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWithSerializerProvider.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonIntegerFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonMapFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonNumberFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonObjectFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonStringFormatVisitor.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormat.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor$Base.class -com/fasterxml/jackson/databind/jsonFormatVisitors/JsonValueFormatVisitor.class -com/fasterxml/jackson/databind/jsonschema/ -com/fasterxml/jackson/databind/jsonschema/JsonSchema.class -com/fasterxml/jackson/databind/jsonschema/JsonSerializableSchema.class -com/fasterxml/jackson/databind/jsonschema/SchemaAware.class -com/fasterxml/jackson/databind/jsontype/ -com/fasterxml/jackson/databind/jsontype/NamedType.class -com/fasterxml/jackson/databind/jsontype/SubtypeResolver.class -com/fasterxml/jackson/databind/jsontype/TypeDeserializer$1.class -com/fasterxml/jackson/databind/jsontype/TypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/TypeIdResolver.class -com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.class -com/fasterxml/jackson/databind/jsontype/TypeSerializer$1.class -com/fasterxml/jackson/databind/jsontype/TypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/ -com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsArrayTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsExistingPropertyTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsExternalTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsPropertyTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeDeserializer.class -com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeSerializer.class -com/fasterxml/jackson/databind/jsontype/impl/ClassNameIdResolver.class -com/fasterxml/jackson/databind/jsontype/impl/MinimalClassNameIdResolver.class -com/fasterxml/jackson/databind/jsontype/impl/StdSubtypeResolver.class -com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder$1.class -com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder.class -com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.class -com/fasterxml/jackson/databind/jsontype/impl/TypeDeserializerBase.class -com/fasterxml/jackson/databind/jsontype/impl/TypeIdResolverBase.class -com/fasterxml/jackson/databind/jsontype/impl/TypeNameIdResolver.class -com/fasterxml/jackson/databind/jsontype/impl/TypeSerializerBase.class -com/fasterxml/jackson/databind/module/ -com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.class -com/fasterxml/jackson/databind/module/SimpleDeserializers.class -com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.class -com/fasterxml/jackson/databind/module/SimpleModule.class -com/fasterxml/jackson/databind/module/SimpleSerializers.class -com/fasterxml/jackson/databind/module/SimpleValueInstantiators.class -com/fasterxml/jackson/databind/node/ -com/fasterxml/jackson/databind/node/ArrayNode.class -com/fasterxml/jackson/databind/node/BaseJsonNode.class -com/fasterxml/jackson/databind/node/BigIntegerNode.class -com/fasterxml/jackson/databind/node/BinaryNode.class -com/fasterxml/jackson/databind/node/BooleanNode.class -com/fasterxml/jackson/databind/node/ContainerNode.class -com/fasterxml/jackson/databind/node/DecimalNode.class -com/fasterxml/jackson/databind/node/DoubleNode.class -com/fasterxml/jackson/databind/node/FloatNode.class -com/fasterxml/jackson/databind/node/IntNode.class -com/fasterxml/jackson/databind/node/JsonNodeCreator.class -com/fasterxml/jackson/databind/node/JsonNodeFactory.class -com/fasterxml/jackson/databind/node/JsonNodeType.class -com/fasterxml/jackson/databind/node/LongNode.class -com/fasterxml/jackson/databind/node/MissingNode.class -com/fasterxml/jackson/databind/node/NodeCursor$ArrayCursor.class -com/fasterxml/jackson/databind/node/NodeCursor$ObjectCursor.class -com/fasterxml/jackson/databind/node/NodeCursor$RootCursor.class -com/fasterxml/jackson/databind/node/NodeCursor.class -com/fasterxml/jackson/databind/node/NullNode.class -com/fasterxml/jackson/databind/node/NumericNode.class -com/fasterxml/jackson/databind/node/ObjectNode.class -com/fasterxml/jackson/databind/node/POJONode.class -com/fasterxml/jackson/databind/node/ShortNode.class -com/fasterxml/jackson/databind/node/TextNode.class -com/fasterxml/jackson/databind/node/TreeTraversingParser$1.class -com/fasterxml/jackson/databind/node/TreeTraversingParser.class -com/fasterxml/jackson/databind/node/ValueNode.class -com/fasterxml/jackson/databind/ser/ -com/fasterxml/jackson/databind/ser/AnyGetterWriter.class -com/fasterxml/jackson/databind/ser/BasicSerializerFactory$1.class -com/fasterxml/jackson/databind/ser/BasicSerializerFactory.class -com/fasterxml/jackson/databind/ser/BeanPropertyFilter.class -com/fasterxml/jackson/databind/ser/BeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/BeanSerializer.class -com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.class -com/fasterxml/jackson/databind/ser/BeanSerializerFactory.class -com/fasterxml/jackson/databind/ser/BeanSerializerModifier.class -com/fasterxml/jackson/databind/ser/ContainerSerializer.class -com/fasterxml/jackson/databind/ser/ContextualSerializer.class -com/fasterxml/jackson/databind/ser/DefaultSerializerProvider$Impl.class -com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.class -com/fasterxml/jackson/databind/ser/FilterProvider.class -com/fasterxml/jackson/databind/ser/PropertyBuilder$1.class -com/fasterxml/jackson/databind/ser/PropertyBuilder.class -com/fasterxml/jackson/databind/ser/PropertyFilter.class -com/fasterxml/jackson/databind/ser/PropertyWriter.class -com/fasterxml/jackson/databind/ser/ResolvableSerializer.class -com/fasterxml/jackson/databind/ser/SerializerCache.class -com/fasterxml/jackson/databind/ser/SerializerFactory.class -com/fasterxml/jackson/databind/ser/Serializers$Base.class -com/fasterxml/jackson/databind/ser/Serializers.class -com/fasterxml/jackson/databind/ser/VirtualBeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/ -com/fasterxml/jackson/databind/ser/impl/AttributePropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/BeanAsArraySerializer.class -com/fasterxml/jackson/databind/ser/impl/FailingSerializer.class -com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$MultiView.class -com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter$SingleView.class -com/fasterxml/jackson/databind/ser/impl/FilteredBeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/IndexedListSerializer.class -com/fasterxml/jackson/databind/ser/impl/IndexedStringListSerializer.class -com/fasterxml/jackson/databind/ser/impl/IteratorSerializer.class -com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer$1.class -com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer.class -com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.class -com/fasterxml/jackson/databind/ser/impl/PropertyBasedObjectIdGenerator.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Double.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Empty.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Multi.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$SerializerAndMapResult.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$Single.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap$TypeAndSerializer.class -com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap.class -com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap$Bucket.class -com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$1.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$FilterExceptFilter.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter$SerializeExceptFilter.class -com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.class -com/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider.class -com/fasterxml/jackson/databind/ser/impl/StringArraySerializer.class -com/fasterxml/jackson/databind/ser/impl/StringCollectionSerializer.class -com/fasterxml/jackson/databind/ser/impl/TypeWrappedSerializer.class -com/fasterxml/jackson/databind/ser/impl/UnknownSerializer.class -com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter$1.class -com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanPropertyWriter.class -com/fasterxml/jackson/databind/ser/impl/UnwrappingBeanSerializer.class -com/fasterxml/jackson/databind/ser/impl/WritableObjectId.class -com/fasterxml/jackson/databind/ser/std/ -com/fasterxml/jackson/databind/ser/std/ArraySerializerBase.class -com/fasterxml/jackson/databind/ser/std/AsArraySerializerBase.class -com/fasterxml/jackson/databind/ser/std/AtomicReferenceSerializer.class -com/fasterxml/jackson/databind/ser/std/BeanSerializerBase$1.class -com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.class -com/fasterxml/jackson/databind/ser/std/BooleanSerializer$AsNumber.class -com/fasterxml/jackson/databind/ser/std/BooleanSerializer.class -com/fasterxml/jackson/databind/ser/std/ByteArraySerializer.class -com/fasterxml/jackson/databind/ser/std/ByteBufferSerializer.class -com/fasterxml/jackson/databind/ser/std/CalendarSerializer.class -com/fasterxml/jackson/databind/ser/std/ClassSerializer.class -com/fasterxml/jackson/databind/ser/std/CollectionSerializer.class -com/fasterxml/jackson/databind/ser/std/DateSerializer.class -com/fasterxml/jackson/databind/ser/std/DateTimeSerializerBase.class -com/fasterxml/jackson/databind/ser/std/EnumSerializer.class -com/fasterxml/jackson/databind/ser/std/EnumSetSerializer.class -com/fasterxml/jackson/databind/ser/std/FileSerializer.class -com/fasterxml/jackson/databind/ser/std/InetAddressSerializer.class -com/fasterxml/jackson/databind/ser/std/InetSocketAddressSerializer.class -com/fasterxml/jackson/databind/ser/std/IterableSerializer.class -com/fasterxml/jackson/databind/ser/std/JsonValueSerializer$TypeSerializerRerouter.class -com/fasterxml/jackson/databind/ser/std/JsonValueSerializer.class -com/fasterxml/jackson/databind/ser/std/MapProperty.class -com/fasterxml/jackson/databind/ser/std/MapSerializer$1.class -com/fasterxml/jackson/databind/ser/std/MapSerializer.class -com/fasterxml/jackson/databind/ser/std/NonTypedScalarSerializerBase.class -com/fasterxml/jackson/databind/ser/std/NullSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializer$1.class -com/fasterxml/jackson/databind/ser/std/NumberSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$1.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$Base.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$DoubleSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$FloatSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntLikeSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$IntegerSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$LongSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers$ShortSerializer.class -com/fasterxml/jackson/databind/ser/std/NumberSerializers.class -com/fasterxml/jackson/databind/ser/std/ObjectArraySerializer.class -com/fasterxml/jackson/databind/ser/std/RawSerializer.class -com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer$1.class -com/fasterxml/jackson/databind/ser/std/ReferenceTypeSerializer.class -com/fasterxml/jackson/databind/ser/std/SerializableSerializer.class -com/fasterxml/jackson/databind/ser/std/SqlDateSerializer.class -com/fasterxml/jackson/databind/ser/std/SqlTimeSerializer.class -com/fasterxml/jackson/databind/ser/std/StaticListSerializerBase.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$BooleanArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$CharArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$DoubleArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$FloatArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$IntArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$LongArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$ShortArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers$TypedPrimitiveArraySerializer.class -com/fasterxml/jackson/databind/ser/std/StdArraySerializers.class -com/fasterxml/jackson/databind/ser/std/StdDelegatingSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicBooleanSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicIntegerSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers$AtomicLongSerializer.class -com/fasterxml/jackson/databind/ser/std/StdJdkSerializers.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializer.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Default.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$Dynamic.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$EnumKeySerializer.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers$StringKeySerializer.class -com/fasterxml/jackson/databind/ser/std/StdKeySerializers.class -com/fasterxml/jackson/databind/ser/std/StdScalarSerializer.class -com/fasterxml/jackson/databind/ser/std/StdSerializer.class -com/fasterxml/jackson/databind/ser/std/StringSerializer.class -com/fasterxml/jackson/databind/ser/std/TimeZoneSerializer.class -com/fasterxml/jackson/databind/ser/std/ToStringSerializer.class -com/fasterxml/jackson/databind/ser/std/TokenBufferSerializer.class -com/fasterxml/jackson/databind/ser/std/UUIDSerializer.class -com/fasterxml/jackson/databind/type/ -com/fasterxml/jackson/databind/type/ArrayType.class -com/fasterxml/jackson/databind/type/ClassKey.class -com/fasterxml/jackson/databind/type/ClassStack.class -com/fasterxml/jackson/databind/type/CollectionLikeType.class -com/fasterxml/jackson/databind/type/CollectionType.class -com/fasterxml/jackson/databind/type/MapLikeType.class -com/fasterxml/jackson/databind/type/MapType.class -com/fasterxml/jackson/databind/type/PlaceholderForType.class -com/fasterxml/jackson/databind/type/ReferenceType.class -com/fasterxml/jackson/databind/type/ResolvedRecursiveType.class -com/fasterxml/jackson/databind/type/SimpleType.class -com/fasterxml/jackson/databind/type/TypeBase.class -com/fasterxml/jackson/databind/type/TypeBindings$AsKey.class -com/fasterxml/jackson/databind/type/TypeBindings$TypeParamStash.class -com/fasterxml/jackson/databind/type/TypeBindings.class -com/fasterxml/jackson/databind/type/TypeFactory.class -com/fasterxml/jackson/databind/type/TypeModifier.class -com/fasterxml/jackson/databind/type/TypeParser$MyTokenizer.class -com/fasterxml/jackson/databind/type/TypeParser.class -com/fasterxml/jackson/databind/util/ -com/fasterxml/jackson/databind/util/AccessPattern.class -com/fasterxml/jackson/databind/util/Annotations.class -com/fasterxml/jackson/databind/util/ArrayBuilders$1.class -com/fasterxml/jackson/databind/util/ArrayBuilders$BooleanBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$ByteBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$DoubleBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$FloatBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$IntBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$LongBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders$ShortBuilder.class -com/fasterxml/jackson/databind/util/ArrayBuilders.class -com/fasterxml/jackson/databind/util/ArrayIterator.class -com/fasterxml/jackson/databind/util/BeanUtil.class -com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.class -com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.class -com/fasterxml/jackson/databind/util/ClassUtil$Ctor.class -com/fasterxml/jackson/databind/util/ClassUtil$EnumTypeLocator.class -com/fasterxml/jackson/databind/util/ClassUtil.class -com/fasterxml/jackson/databind/util/CompactStringObjectMap.class -com/fasterxml/jackson/databind/util/ConstantValueInstantiator.class -com/fasterxml/jackson/databind/util/Converter$None.class -com/fasterxml/jackson/databind/util/Converter.class -com/fasterxml/jackson/databind/util/EnumResolver.class -com/fasterxml/jackson/databind/util/EnumValues.class -com/fasterxml/jackson/databind/util/ISO8601DateFormat.class -com/fasterxml/jackson/databind/util/ISO8601Utils.class -com/fasterxml/jackson/databind/util/JSONPObject.class -com/fasterxml/jackson/databind/util/JSONWrappedObject.class -com/fasterxml/jackson/databind/util/LRUMap.class -com/fasterxml/jackson/databind/util/LinkedNode.class -com/fasterxml/jackson/databind/util/NameTransformer$1.class -com/fasterxml/jackson/databind/util/NameTransformer$2.class -com/fasterxml/jackson/databind/util/NameTransformer$3.class -com/fasterxml/jackson/databind/util/NameTransformer$Chained.class -com/fasterxml/jackson/databind/util/NameTransformer$NopTransformer.class -com/fasterxml/jackson/databind/util/NameTransformer.class -com/fasterxml/jackson/databind/util/Named.class -com/fasterxml/jackson/databind/util/ObjectBuffer.class -com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder$Node.class -com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.class -com/fasterxml/jackson/databind/util/RawValue.class -com/fasterxml/jackson/databind/util/RootNameLookup.class -com/fasterxml/jackson/databind/util/SimpleBeanPropertyDefinition.class -com/fasterxml/jackson/databind/util/StdConverter.class -com/fasterxml/jackson/databind/util/StdDateFormat.class -com/fasterxml/jackson/databind/util/TokenBuffer$1.class -com/fasterxml/jackson/databind/util/TokenBuffer$Parser.class -com/fasterxml/jackson/databind/util/TokenBuffer$Segment.class -com/fasterxml/jackson/databind/util/TokenBuffer.class -com/fasterxml/jackson/databind/util/TokenBufferReadContext.class -com/fasterxml/jackson/databind/util/TypeKey.class -com/fasterxml/jackson/databind/util/ViewMatcher$Multi.class -com/fasterxml/jackson/databind/util/ViewMatcher$Single.class -com/fasterxml/jackson/databind/util/ViewMatcher.class From 428ffd5444273760b3394cb1fbc5892a9ec7f09e Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Thu, 16 Jul 2020 15:21:09 -0500 Subject: [PATCH 140/288] docs: add multi-recipient examples (#638) We have similar examples in other languages and they provide a clear distinction between the two use cases. --- USE_CASES.md | 2 + .../MultipleEmailsMultipleRecipients.java | 54 +++++++++++++++++++ .../mail/SingleEmailMultipleRecipients.java | 44 +++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 examples/helpers/mail/MultipleEmailsMultipleRecipients.java create mode 100644 examples/helpers/mail/SingleEmailMultipleRecipients.java diff --git a/USE_CASES.md b/USE_CASES.md index 4bea0387..c74b1264 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -3,6 +3,8 @@ This documentation provides examples for specific use cases. Please [open an iss # Use Cases * [Send Mail Examples](examples/helpers/mail/Example.java) + * [Send a Single Email to Multiple Recipients](examples/helpers/mail/SingleEmailMultipleRecipients.java) + * [Send Multiple Emails to Multiple Recipients](examples/helpers/mail/MultipleEmailsMultipleRecipients.java) * [Transactional Templates](#transactional-templates) * [Legacy Templates](#legacy-templates) * [How to Setup a Domain Authentication](#domain-authentication) diff --git a/examples/helpers/mail/MultipleEmailsMultipleRecipients.java b/examples/helpers/mail/MultipleEmailsMultipleRecipients.java new file mode 100644 index 00000000..35fe03b8 --- /dev/null +++ b/examples/helpers/mail/MultipleEmailsMultipleRecipients.java @@ -0,0 +1,54 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; +import com.sendgrid.helpers.mail.Mail; +import com.sendgrid.helpers.mail.objects.Content; +import com.sendgrid.helpers.mail.objects.Email; +import com.sendgrid.helpers.mail.objects.Personalization; + +import java.io.IOException; + +public class MultipleEmailsMultipleRecipients { + + public static void main(String[] args) throws IOException { + final Mail mail = new Mail(); + + mail.setFrom(new Email("test@example.com", "Example User")); + mail.setSubject("Sending with Twilio SendGrid is Fun"); + + // Details on how to send an email with dynamic transactional templates: + // https://sendgrid.com/docs/ui/sending-email/how-to-send-an-email-with-dynamic-transactional-templates/ + mail.setTemplateId("d-12345678901234567890123456789012"); + + final Personalization personalization1 = new Personalization(); + personalization1.addTo(new Email("test1@example.com", "Example User1")); + personalization1.addDynamicTemplateData("name", "Example User1"); + personalization1.addDynamicTemplateData("city", "Denver"); + mail.addPersonalization(personalization1); + + final Personalization personalization2 = new Personalization(); + personalization2.addTo(new Email("test2@example.com", "Example User2")); + personalization2.addDynamicTemplateData("name", "Example User2"); + personalization2.addDynamicTemplateData("city", "San Francisco"); + mail.addPersonalization(personalization2); + + mail.addContent(new Content("text/plain", "and easy to do anywhere, even with Java")); + mail.addContent(new Content("text/html", "and easy to do anywhere, even with Java")); + + send(mail); + } + + private static void send(final Mail mail) throws IOException { + final SendGrid client = new SendGrid(System.getenv("SENDGRID_API_KEY")); + final Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + + final Response response = client.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } +} diff --git a/examples/helpers/mail/SingleEmailMultipleRecipients.java b/examples/helpers/mail/SingleEmailMultipleRecipients.java new file mode 100644 index 00000000..8829124f --- /dev/null +++ b/examples/helpers/mail/SingleEmailMultipleRecipients.java @@ -0,0 +1,44 @@ +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; +import com.sendgrid.helpers.mail.Mail; +import com.sendgrid.helpers.mail.objects.Content; +import com.sendgrid.helpers.mail.objects.Email; +import com.sendgrid.helpers.mail.objects.Personalization; + +import java.io.IOException; + +public class SingleEmailMultipleRecipients { + + public static void main(String[] args) throws IOException { + final Mail mail = new Mail(); + + mail.setFrom(new Email("test@example.com", "Example User")); + mail.setSubject("Sending with Twilio SendGrid is Fun"); + + final Personalization personalization = new Personalization(); + personalization.addTo(new Email("test1@example.com", "Example User1")); + personalization.addTo(new Email("test2@example.com", "Example User2")); + personalization.addTo(new Email("test3@example.com", "Example User3")); + mail.addPersonalization(personalization); + + mail.addContent(new Content("text/plain", "and easy to do anywhere, even with Java")); + mail.addContent(new Content("text/html", "and easy to do anywhere, even with Java")); + + send(mail); + } + + private static void send(final Mail mail) throws IOException { + final SendGrid client = new SendGrid(System.getenv("SENDGRID_API_KEY")); + final Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + + final Response response = client.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } +} From dece530aefb0d1b0ad636101aee199aee1f1c20f Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Mon, 20 Jul 2020 15:32:10 -0700 Subject: [PATCH 141/288] chore: migrate to new default sendgrid-oai branch (#639) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a7e6c434..5db8ceab 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ test-integ: test version ?= latest test-docker: - curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/prism/prism.sh -o prism.sh + curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/main/prism/prism.sh -o prism.sh version=$(version) bash ./prism.sh clean: From 6623bd937da3b168fc6799b029479e9bd73523ed Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 22 Jul 2020 19:00:01 +0000 Subject: [PATCH 142/288] [Librarian] Version Bump --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e767f0a..0306fa78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-07-22] Version 4.6.2 +-------------------------- +**Library - Chore** +- [PR #639](https://github.com/sendgrid/sendgrid-java/pull/639): migrate to new default sendgrid-oai branch. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + +**Library - Docs** +- [PR #638](https://github.com/sendgrid/sendgrid-java/pull/638): add multi-recipient examples. Thanks to [@childish-sambino](https://github.com/childish-sambino)! +- [PR #637](https://github.com/sendgrid/sendgrid-java/pull/637): fix the kitchen sink example and link to it in the use cases doc. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-07-08] Version 4.6.1 -------------------------- **Library - Fix** From 6773207270729d75858fa178f91b98bcdabffd65 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 22 Jul 2020 19:30:05 +0000 Subject: [PATCH 143/288] Release 4.6.2 --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- pom.xml | 8 ++++---- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbdcf01f..b1fbad85 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.1/sendgrid-4.6.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.1/sendgrid-4.6.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.2/sendgrid-4.6.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.2/sendgrid-4.6.2-jar.jar:. Example ``` diff --git a/README.md b/README.md index 955ceadd..2c0df1b6 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.1 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.2 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.1' + implementation 'com.sendgrid:sendgrid-java:4.6.2' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.2/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 378bdea1..5c5249a7 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.1 + 4.6.2 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.1 + 4.6.2 @@ -306,7 +306,7 @@ org.bouncycastle bcprov-jdk15to18 - 1.65 + 1.66 - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 776888d2..b5e7de29 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.1"; + private static final String VERSION = "4.6.2"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 87e2fede..abe8349c 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.1"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.2"); } @Test From fb76fb4f47d5fc6aee69ce44f2943f3d3509e248 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Wed, 22 Jul 2020 14:30:37 -0700 Subject: [PATCH 144/288] chore: use HEAD to refer to default branch name --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5db8ceab..064737ef 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ test-integ: test version ?= latest test-docker: - curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/main/prism/prism.sh -o prism.sh + curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh version=$(version) bash ./prism.sh clean: From 3be0ca5b2f9d5bab9004df7ba74129f197ed83c1 Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Mon, 27 Jul 2020 10:27:07 -0500 Subject: [PATCH 145/288] fix: remove the content verifier (#642) We don't do this in any of the other libraries and it only guards against a specific secret. Multiple customers indicate this check is overly sensitive to legitimate use cases. --- .../helpers/mail/objects/Content.java | 25 +--------- .../com/sendgrid/helpers/ContentTest.java | 48 ------------------- 2 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 src/test/java/com/sendgrid/helpers/ContentTest.java diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java index 0a7a6557..1b333bfe 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Content.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Content.java @@ -4,16 +4,8 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.regex.Pattern; -import java.lang.IllegalArgumentException; - /** - * An object in which you may specify the content of your email. + * An object in which you may specify the content of your email. */ @JsonInclude(Include.NON_DEFAULT) public class Content { @@ -44,7 +36,6 @@ public String getValue() { } public void setValue(String value) { - ContentVerifier.verifyContent(value); this.value = value; } @@ -79,17 +70,3 @@ public boolean equals(Object obj) { return true; } } - -class ContentVerifier { - private static final List FORBIDDEN_PATTERNS = Collections.singletonList( - Pattern.compile(".*SG\\.[a-zA-Z0-9(-|_)]*\\.[a-zA-Z0-9(-|_)]*.*") - ); - - static void verifyContent(String content) { - for (Pattern pattern: FORBIDDEN_PATTERNS) { - if (pattern.matcher(content).matches()) { - throw new IllegalArgumentException("Found a Forbidden Pattern in the content of the email"); - } - } - } -} \ No newline at end of file diff --git a/src/test/java/com/sendgrid/helpers/ContentTest.java b/src/test/java/com/sendgrid/helpers/ContentTest.java deleted file mode 100644 index c83b0d2e..00000000 --- a/src/test/java/com/sendgrid/helpers/ContentTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.sendgrid.helpers; - -import org.junit.Assert; -import org.junit.Before; -import org.junit.Rule; -import org.junit.Test; -import com.sendgrid.helpers.mail.objects.Content; -import org.junit.rules.ExpectedException; - -import java.util.ArrayList; -import java.util.Arrays; - -public class ContentTest { - private Content content; - - @Before - public void setUp() { - this.content = new Content(); - } - - @Rule - public final ExpectedException exception = ExpectedException.none(); - - @Test - public void testForbiddenContentIsRejected() { - - ArrayList sampleApiKeys = new ArrayList<>( - Arrays.asList( - "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", - "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" - ) - - ); - - for (String apiKey: sampleApiKeys) { - exception.expect(IllegalArgumentException.class); - this.content.setValue("My api key is: " + apiKey); - } - } - - @Test - public void testNormalContentIsAllowed() { - String message = "I will not send you my api key!"; - this.content.setValue(message); - Assert.assertEquals(message, this.content.getValue()); - } - -} From eb64c2aeb673384261115dd18ee2348d63157ef6 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 27 Jul 2020 17:11:48 -0500 Subject: [PATCH 146/288] chore: update README to reflect default branch rename --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2c0df1b6..1efc9339 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. +**The default branch name for this repository has been changed to `main` as of 07/27/2020.** + **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** Version 3.X.X of this library provides full support for all Twilio SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint). From 7b036211909200a4ade19440a72a1af2ae4d7743 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Tue, 28 Jul 2020 09:56:36 -0500 Subject: [PATCH 147/288] chore: update CI config to use new default branch name --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7b7c65a3..ff279202 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,11 +15,11 @@ deploy: on: tags: true condition: $version = 8 - branch: master + branch: main notifications: slack: - if: branch = master + if: branch = main on_pull_requests: false on_success: never on_failure: change From 7f5545e679e88bb3f2fd88e4be3f7f4549c54a60 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Tue, 28 Jul 2020 20:57:27 +0200 Subject: [PATCH 148/288] chore: replace `bcprov-jdk15to18` with `bcprov-jdk15on` (#643) By upgrading the `maven-shade-plugin` the `bcprov-jdk15on` artifact (which contains JDK 9+ classes) can also be used when building the project using JDK 8. This change reverts d9f4413707c38cd7c702d04574b207da56343002. Resolves #636. --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 5c5249a7..501c5915 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.2.1 + 3.2.4 @@ -233,7 +233,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.2.1 + 3.2.4 @@ -305,8 +305,8 @@ org.bouncycastle - bcprov-jdk15to18 + bcprov-jdk15on 1.66 - \ No newline at end of file + From 86f864d61a3faccc357954e4778a7bc00714b3c4 Mon Sep 17 00:00:00 2001 From: Robert Olsthoorn Date: Wed, 29 Jul 2020 10:57:10 -0700 Subject: [PATCH 149/288] docs: Update README link to avoid redirection (#390) --- bin/com/sendgrid/helpers/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/com/sendgrid/helpers/README.md b/bin/com/sendgrid/helpers/README.md index 874cc9fb..9b99f325 100644 --- a/bin/com/sendgrid/helpers/README.md +++ b/bin/com/sendgrid/helpers/README.md @@ -16,4 +16,4 @@ javac -classpath ../../build/libs/sendgrid-4.2.1-jar.jar:. Example.java && java ## Usage - See the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples/mail) for a complete working example. -- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/overview.html) \ No newline at end of file +- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html) From 417be238037015c89a7579e8b0cd4cf8130765fd Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Wed, 29 Jul 2020 12:59:29 -0500 Subject: [PATCH 150/288] docs: Update README link to avoid redirection --- src/main/java/com/sendgrid/helpers/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sendgrid/helpers/README.md b/src/main/java/com/sendgrid/helpers/README.md index 874cc9fb..9b99f325 100644 --- a/src/main/java/com/sendgrid/helpers/README.md +++ b/src/main/java/com/sendgrid/helpers/README.md @@ -16,4 +16,4 @@ javac -classpath ../../build/libs/sendgrid-4.2.1-jar.jar:. Example.java && java ## Usage - See the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples/mail) for a complete working example. -- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/overview.html) \ No newline at end of file +- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html) From 195a658b5a99310b00ddd53b00a82cbf140ae97a Mon Sep 17 00:00:00 2001 From: Adams Au Date: Thu, 30 Jul 2020 03:14:38 +0800 Subject: [PATCH 151/288] docs: breakup examples to their own files in examples/user/user.java (#370) --- examples/user/CreateWebhookParseSettings.java | 22 + examples/user/DeleteScheduleSend.java | 21 + examples/user/DeleteWebhookParseSettings.java | 21 + examples/user/GetCreditBalance.java | 21 + examples/user/GetEmailAddress.java | 21 + examples/user/GetEnforedTLS.java | 21 + examples/user/GetProfile.java | 21 + examples/user/GetScheduleSend.java | 21 + examples/user/GetScheduleSendByBatchId.java | 21 + examples/user/GetUserInfo.java | 21 + examples/user/GetUsername.java | 21 + examples/user/GetWebhookEventSettings.java | 21 + .../GetWebhookParseSettingByHostname.java | 21 + examples/user/GetWebhookParseSettings.java | 21 + examples/user/GetWebhookParseStatistics.java | 26 + examples/user/PauseScheduleSend.java | 22 + examples/user/README.md | 50 ++ examples/user/TestWebhookEvent.java | 22 + examples/user/UpdateEmailAddress.java | 22 + examples/user/UpdateEnforcedTLS.java | 22 + examples/user/UpdatePassword.java | 22 + examples/user/UpdateProfile.java | 22 + examples/user/UpdateScheduleSend.java | 22 + examples/user/UpdateUsername.java | 22 + examples/user/UpdateWebhookEventSettings.java | 22 + examples/user/UpdateWebhookParseSettings.java | 22 + examples/user/user.java | 575 ------------------ 27 files changed, 591 insertions(+), 575 deletions(-) create mode 100644 examples/user/CreateWebhookParseSettings.java create mode 100644 examples/user/DeleteScheduleSend.java create mode 100644 examples/user/DeleteWebhookParseSettings.java create mode 100644 examples/user/GetCreditBalance.java create mode 100644 examples/user/GetEmailAddress.java create mode 100644 examples/user/GetEnforedTLS.java create mode 100644 examples/user/GetProfile.java create mode 100644 examples/user/GetScheduleSend.java create mode 100644 examples/user/GetScheduleSendByBatchId.java create mode 100644 examples/user/GetUserInfo.java create mode 100644 examples/user/GetUsername.java create mode 100644 examples/user/GetWebhookEventSettings.java create mode 100644 examples/user/GetWebhookParseSettingByHostname.java create mode 100644 examples/user/GetWebhookParseSettings.java create mode 100644 examples/user/GetWebhookParseStatistics.java create mode 100644 examples/user/PauseScheduleSend.java create mode 100644 examples/user/README.md create mode 100644 examples/user/TestWebhookEvent.java create mode 100644 examples/user/UpdateEmailAddress.java create mode 100644 examples/user/UpdateEnforcedTLS.java create mode 100644 examples/user/UpdatePassword.java create mode 100644 examples/user/UpdateProfile.java create mode 100644 examples/user/UpdateScheduleSend.java create mode 100644 examples/user/UpdateUsername.java create mode 100644 examples/user/UpdateWebhookEventSettings.java create mode 100644 examples/user/UpdateWebhookParseSettings.java delete mode 100644 examples/user/user.java diff --git a/examples/user/CreateWebhookParseSettings.java b/examples/user/CreateWebhookParseSettings.java new file mode 100644 index 00000000..23992ea7 --- /dev/null +++ b/examples/user/CreateWebhookParseSettings.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Create a parse setting +// POST /user/webhooks/parse/settings + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("user/webhooks/parse/settings"); + request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam_check\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/DeleteScheduleSend.java b/examples/user/DeleteScheduleSend.java new file mode 100644 index 00000000..23b9857c --- /dev/null +++ b/examples/user/DeleteScheduleSend.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Delete a cancellation or pause of a scheduled send +// DELETE /user/scheduled_sends/{batch_id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("user/scheduled_sends/{batch_id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/DeleteWebhookParseSettings.java b/examples/user/DeleteWebhookParseSettings.java new file mode 100644 index 00000000..93b8763c --- /dev/null +++ b/examples/user/DeleteWebhookParseSettings.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Delete a parse setting +// DELETE /user/webhooks/parse/settings/{hostname} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.DELETE); + request.setEndpoint("user/webhooks/parse/settings/{hostname}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetCreditBalance.java b/examples/user/GetCreditBalance.java new file mode 100644 index 00000000..c6b9db1e --- /dev/null +++ b/examples/user/GetCreditBalance.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve your credit balance +// GET /user/credits + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/credits"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetEmailAddress.java b/examples/user/GetEmailAddress.java new file mode 100644 index 00000000..7fbccf11 --- /dev/null +++ b/examples/user/GetEmailAddress.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve your account email address +// GET /user/email + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/email"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetEnforedTLS.java b/examples/user/GetEnforedTLS.java new file mode 100644 index 00000000..f5a21969 --- /dev/null +++ b/examples/user/GetEnforedTLS.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve current Enforced TLS settings. +// GET /user/settings/enforced_tls + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/settings/enforced_tls"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetProfile.java b/examples/user/GetProfile.java new file mode 100644 index 00000000..5fd8b541 --- /dev/null +++ b/examples/user/GetProfile.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Get a user's profile +// GET /user/profile + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/profile"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetScheduleSend.java b/examples/user/GetScheduleSend.java new file mode 100644 index 00000000..436dd0d9 --- /dev/null +++ b/examples/user/GetScheduleSend.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve all scheduled sends +// GET /user/scheduled_sends + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/scheduled_sends"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetScheduleSendByBatchId.java b/examples/user/GetScheduleSendByBatchId.java new file mode 100644 index 00000000..48c4e334 --- /dev/null +++ b/examples/user/GetScheduleSendByBatchId.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve scheduled send +// GET /user/scheduled_sends/{batch_id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/scheduled_sends/{batch_id}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetUserInfo.java b/examples/user/GetUserInfo.java new file mode 100644 index 00000000..880f6c5c --- /dev/null +++ b/examples/user/GetUserInfo.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Get a user's account information. +// GET /user/account + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/account"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetUsername.java b/examples/user/GetUsername.java new file mode 100644 index 00000000..e6756311 --- /dev/null +++ b/examples/user/GetUsername.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve your username +// GET /user/username + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/username"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetWebhookEventSettings.java b/examples/user/GetWebhookEventSettings.java new file mode 100644 index 00000000..fe1561c5 --- /dev/null +++ b/examples/user/GetWebhookEventSettings.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve Event Webhook settings +// GET /user/webhooks/event/settings + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/event/settings"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetWebhookParseSettingByHostname.java b/examples/user/GetWebhookParseSettingByHostname.java new file mode 100644 index 00000000..8814de72 --- /dev/null +++ b/examples/user/GetWebhookParseSettingByHostname.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve a specific parse setting +// GET /user/webhooks/parse/settings/{hostname} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/parse/settings/{hostname}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetWebhookParseSettings.java b/examples/user/GetWebhookParseSettings.java new file mode 100644 index 00000000..deb6123c --- /dev/null +++ b/examples/user/GetWebhookParseSettings.java @@ -0,0 +1,21 @@ +////////////////////////////////////////////////////////////////// +// Retrieve all parse settings +// GET /user/webhooks/parse/settings + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/parse/settings"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/GetWebhookParseStatistics.java b/examples/user/GetWebhookParseStatistics.java new file mode 100644 index 00000000..52be567b --- /dev/null +++ b/examples/user/GetWebhookParseStatistics.java @@ -0,0 +1,26 @@ +////////////////////////////////////////////////////////////////// +// Retrieves Inbound Parse Webhook statistics. +// GET /user/webhooks/parse/stats + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("user/webhooks/parse/stats"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "test_string"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("offset", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/PauseScheduleSend.java b/examples/user/PauseScheduleSend.java new file mode 100644 index 00000000..517a8853 --- /dev/null +++ b/examples/user/PauseScheduleSend.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Cancel or pause a scheduled send +// POST /user/scheduled_sends + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("user/scheduled_sends"); + request.setBody("{\"batch_id\":\"YOUR_BATCH_ID\",\"status\":\"pause\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/README.md b/examples/user/README.md new file mode 100644 index 00000000..68e8370d --- /dev/null +++ b/examples/user/README.md @@ -0,0 +1,50 @@ +# User examples + +## Parse Settings Examples +- [Create Webhook Parse Settings](CreateWebhookParseSettings.java) +- [Delete Webhook Parse Settings](DeleteWebhookParseSettings.java) + +## Schedule Send Examples +- [Delete Scheduled Send](DeleteScheduleSend.java) +- [Get Scheduled Send](GetScheduleSend.java) +- [Get Scheduled Send](GetScheduleSendByBatchId.java) +- [Pause Scheduled Send](PauseScheduleSend.java) +- [Update Scheduled Send](UpdateScheduleSend.java) + +## Billing Examples +- [Get Credit Balance](GetCreditBalance.java) + +## Profile Examples + +### Email Address +- [Get Email Address](GetEmailAddress.java) +- [Update Email Address](UpdateEmailAddress.java) + +### Password +- [Update Password](UpdatePassword.java) + +### Profile +- [Get Profile](GetProfile.java) +- [Get User Info](GetUserInfo.java) +- [Update Profile](UpdateProfile.java) + +### Username +- [Get Username](GetUsername.java) +- [Update Username](UpdateUsername.java) + +## Security Settings Examples +- [Get Enforced TLS](GetEnforedTLS.java) +- [Update Enforced TLS](UpdateEnforcedTLS.java) + +## Webhook Settings Examples + +### Event Webhook +- [Test Event Webhook](TestWebhookEvent.java) +- [Get Event Webhook Settings](GetWebhookEventSettings.java) +- [Get Event Webhook Settings by Hostname](GetWebhookParseSettingByHostname.java) +- [Update Event Webhook Settings](UpdateWebhookEventSettings.java) + +## Inbound Parse +- [Get Parse Webhook Settings](GetWebhookParseSettings.java) +- [Get Parse Webhook Settings](GetWebhookParseStatistics.java) +- [Update Parse Webhook Settings](UpdateWebhookParseSettings.java) diff --git a/examples/user/TestWebhookEvent.java b/examples/user/TestWebhookEvent.java new file mode 100644 index 00000000..3dddac20 --- /dev/null +++ b/examples/user/TestWebhookEvent.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Test Event Notification Settings +// POST /user/webhooks/event/test + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("user/webhooks/event/test"); + request.setBody("{\"url\":\"url\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/UpdateEmailAddress.java b/examples/user/UpdateEmailAddress.java new file mode 100644 index 00000000..dc0fd90e --- /dev/null +++ b/examples/user/UpdateEmailAddress.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update your account email address +// PUT /user/email + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PUT); + request.setEndpoint("user/email"); + request.setBody("{\"email\":\"example@example.com\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/UpdateEnforcedTLS.java b/examples/user/UpdateEnforcedTLS.java new file mode 100644 index 00000000..0de1b829 --- /dev/null +++ b/examples/user/UpdateEnforcedTLS.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update Enforced TLS settings +// PATCH /user/settings/enforced_tls + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("user/settings/enforced_tls"); + request.setBody("{\"require_tls\":true,\"require_valid_cert\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/user/UpdatePassword.java b/examples/user/UpdatePassword.java new file mode 100644 index 00000000..b61e2228 --- /dev/null +++ b/examples/user/UpdatePassword.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update your password +// PUT /user/password + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PUT); + request.setEndpoint("user/password"); + request.setBody("{\"new_password\":\"new_password\",\"old_password\":\"old_password\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} diff --git a/examples/user/UpdateProfile.java b/examples/user/UpdateProfile.java new file mode 100644 index 00000000..d86d6523 --- /dev/null +++ b/examples/user/UpdateProfile.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update a user's profile +// PATCH /user/profile + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("user/profile"); + request.setBody("{\"city\":\"Orange\",\"first_name\":\"Example\",\"last_name\":\"User\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/UpdateScheduleSend.java b/examples/user/UpdateScheduleSend.java new file mode 100644 index 00000000..5f8c5d09 --- /dev/null +++ b/examples/user/UpdateScheduleSend.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update user scheduled send information +// PATCH /user/scheduled_sends/{batch_id} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("user/scheduled_sends/{batch_id}"); + request.setBody("{\"status\":\"pause\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/UpdateUsername.java b/examples/user/UpdateUsername.java new file mode 100644 index 00000000..470dfb1a --- /dev/null +++ b/examples/user/UpdateUsername.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update your username +// PUT /user/username + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PUT); + request.setBody("user/username"); + request.setBody("{\"username\":\"test_username\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/UpdateWebhookEventSettings.java b/examples/user/UpdateWebhookEventSettings.java new file mode 100644 index 00000000..13b61488 --- /dev/null +++ b/examples/user/UpdateWebhookEventSettings.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update Event Notification Settings +// PATCH /user/webhooks/event/settings + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("user/webhooks/event/settings"); + request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/UpdateWebhookParseSettings.java b/examples/user/UpdateWebhookParseSettings.java new file mode 100644 index 00000000..bbb0b8f4 --- /dev/null +++ b/examples/user/UpdateWebhookParseSettings.java @@ -0,0 +1,22 @@ +////////////////////////////////////////////////////////////////// +// Update a parse setting +// PATCH /user/webhooks/parse/settings/{hostname} + + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.PATCH); + request.setEndpoint("user/webhooks/parse/settings/{hostname}"); + request.setBody("{\"url\":\"http://newdomain.com/parse\",\"send_raw\":true,\"spam_check\":false}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/user/user.java b/examples/user/user.java deleted file mode 100644 index 9c5ff95c..00000000 --- a/examples/user/user.java +++ /dev/null @@ -1,575 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Get a user's account information. -// GET /user/account - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/account"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve your credit balance -// GET /user/credits - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/credits"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update your account email address -// PUT /user/email - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("user/email"); - request.setBody("{\"email\":\"example@example.com\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve your account email address -// GET /user/email - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/email"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update your password -// PUT /user/password - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PUT); - request.setEndpoint("user/password"); - request.setBody("{\"new_password\":\"new_password\",\"old_password\":\"old_password\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update a user's profile -// PATCH /user/profile - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/profile"); - request.setBody("{\"city\":\"Orange\",\"first_name\":\"Example\",\"last_name\":\"User\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Get a user's profile -// GET /user/profile - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/profile"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Cancel or pause a scheduled send -// POST /user/scheduled_sends - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("user/scheduled_sends"); - request.setBody("{\"batch_id\":\"YOUR_BATCH_ID\",\"status\":\"pause\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all scheduled sends -// GET /user/scheduled_sends - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/scheduled_sends"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update user scheduled send information -// PATCH /user/scheduled_sends/{batch_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/scheduled_sends/{batch_id}"); - request.setBody("{\"status\":\"pause\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve scheduled send -// GET /user/scheduled_sends/{batch_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/scheduled_sends/{batch_id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a cancellation or pause of a scheduled send -// DELETE /user/scheduled_sends/{batch_id} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("user/scheduled_sends/{batch_id}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update Enforced TLS settings -// PATCH /user/settings/enforced_tls - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/settings/enforced_tls"); - request.setBody("{\"require_tls\":true,\"require_valid_cert\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve current Enforced TLS settings. -// GET /user/settings/enforced_tls - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/settings/enforced_tls"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update your username -// PUT /user/username - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PUT); - request.setBody("user/username"); - request.setBody("{\"username\":\"test_username\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve your username -// GET /user/username - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/username"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update Event Notification Settings -// PATCH /user/webhooks/event/settings - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/webhooks/event/settings"); - request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve Event Webhook settings -// GET /user/webhooks/event/settings - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/event/settings"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Test Event Notification Settings -// POST /user/webhooks/event/test - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("user/webhooks/event/test"); - request.setBody("{\"url\":\"url\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Create a parse setting -// POST /user/webhooks/parse/settings - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("user/webhooks/parse/settings"); - request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam_check\":true}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve all parse settings -// GET /user/webhooks/parse/settings - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/parse/settings"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Update a parse setting -// PATCH /user/webhooks/parse/settings/{hostname} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.PATCH); - request.setEndpoint("user/webhooks/parse/settings/{hostname}"); - request.setBody("{\"url\":\"http://newdomain.com/parse\",\"send_raw\":true,\"spam_check\":false}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve a specific parse setting -// GET /user/webhooks/parse/settings/{hostname} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/parse/settings/{hostname}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Delete a parse setting -// DELETE /user/webhooks/parse/settings/{hostname} - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.DELETE); - request.setEndpoint("user/webhooks/parse/settings/{hostname}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieves Inbound Parse Webhook statistics. -// GET /user/webhooks/parse/stats - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("user/webhooks/parse/stats"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "test_string"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("offset", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From 527db212b201fe56feaa192fe105d03d3a47fa44 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 3 Aug 2020 22:30:09 +0000 Subject: [PATCH 152/288] docs: Update templated markdown docs to use new default branch name --- ISSUE_TEMPLATE.md | 6 +++++- PULL_REQUEST_TEMPLATE.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 68630383..78ecfbd3 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,5 +1,9 @@ ### Issue Summary @@ -21,6 +25,6 @@ A summary of the issue and the environment in which it occurs. If suitable, incl ``` ### Technical details: -* sendgrid-java version: +* sendgrid-java version: * java version: diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index 215059a9..a8681802 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -23,7 +23,7 @@ A short description of what this PR does. - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) - [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them - [ ] I have titled the PR appropriately -- [ ] I have updated my branch with the master branch +- [ ] I have updated my branch with the main branch - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added necessary documentation about the functionality in the appropriate .md file - [ ] I have added inline documentation to the code I modified From 915c5ce8ee2aefef13fda586d979faffb0bbd1e6 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 5 Aug 2020 19:24:28 +0000 Subject: [PATCH 153/288] [Librarian] Version Bump --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0306fa78..1d85f90e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,20 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-08-05] Version 4.6.3 +-------------------------- +**Library - Chore** +- [PR #539](https://github.com/sendgrid/sendgrid-java/pull/539): tidied up a little. Thanks to [@RohanTalip](https://github.com/RohanTalip)! + +**Library - Docs** +- [PR #370](https://github.com/sendgrid/sendgrid-java/pull/370): breakup examples to their own files in examples/user/user.java. Thanks to [@rivenhk](https://github.com/rivenhk)! +- [PR #390](https://github.com/sendgrid/sendgrid-java/pull/390): Update README link to avoid redirection. Thanks to [@Rolstenhouse](https://github.com/Rolstenhouse)! + +**Library - Fix** +- [PR #643](https://github.com/sendgrid/sendgrid-java/pull/643): Replace `bcprov-jdk15to18` with `bcprov-jdk15on`. Thanks to [@Stephan202](https://github.com/Stephan202)! +- [PR #642](https://github.com/sendgrid/sendgrid-java/pull/642): remove the content verifier. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-07-22] Version 4.6.2 -------------------------- **Library - Chore** From 7e64e544da77ae06c518cf1353d553f54654e9a1 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 5 Aug 2020 19:57:17 +0000 Subject: [PATCH 154/288] Release 4.6.3 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 8 ++++---- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b1fbad85..ff3ed35e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.2/sendgrid-4.6.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.2/sendgrid-4.6.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.3/sendgrid-4.6.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.3/sendgrid-4.6.3-jar.jar:. Example ``` diff --git a/README.md b/README.md index 1efc9339..58258487 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 07/27/2020.** +**The default branch name for this repository has been changed to `main` as of 4.6.3.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -41,7 +41,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java version Oracle JDK 7, 8 or OpenJDK 7 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.2 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.3 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -69,7 +69,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.2' + implementation 'com.sendgrid:sendgrid-java:4.6.3' } repositories { @@ -88,7 +88,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.2/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.3/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 501c5915..5776278b 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.2 + 4.6.3 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.2 + 4.6.3 @@ -274,7 +274,7 @@ com.sendgrid java-http-client - 4.3.3 + 4.3.4 com.fasterxml.jackson.core @@ -309,4 +309,4 @@ 1.66 - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index b5e7de29..bf3e1957 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.2"; + private static final String VERSION = "4.6.3"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index abe8349c..b1f88f7a 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.2"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.3"); } @Test From db5afa25a73f08c7a3a07e52dbed24660f079abe Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Fri, 7 Aug 2020 12:56:27 -0700 Subject: [PATCH 155/288] chore: update GitHub branch references to use HEAD (#644) --- CHANGELOG.md | 6 ++-- CONTRIBUTING.md | 8 ++--- README.md | 32 +++++++++---------- TROUBLESHOOTING.md | 2 +- USAGE.md | 2 +- USE_CASES.md | 4 +-- bin/com/sendgrid/helpers/README.md | 19 ----------- examples/mail/mail.java | 2 +- pom.xml | 2 +- src/main/java/com/sendgrid/helpers/README.md | 4 +-- twilio_sendgrid_logo.png | Bin 0 -> 14596 bytes 11 files changed, 31 insertions(+), 50 deletions(-) delete mode 100644 bin/com/sendgrid/helpers/README.md create mode 100644 twilio_sendgrid_logo.png diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d85f90e..48fafd67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,7 +114,7 @@ All notable changes to this project will be documented in this file. ## [4.4.0] - 2019-05-20 ### Added -- [PR #500](https://github.com/sendgrid/sendgrid-java/pull/500/files): Update CONTRIBUTING.md - using gitflow workflow, development branch instead of master -- BIG thanks to [Alex](https://github.com/pushkyn) +- [PR #500](https://github.com/sendgrid/sendgrid-java/pull/500/files): Update CONTRIBUTING.md - using gitflow workflow, development branch instead of main -- BIG thanks to [Alex](https://github.com/pushkyn) - [PR #521](https://github.com/sendgrid/sendgrid-java/pull/521/files): Updating prerequisites -- BIG thanks to [Rishabh](https://github.com/Rishabh04-02) - [PR #495](https://github.com/sendgrid/sendgrid-java/pull/495/files): Add ability to impersonate subusers -- BIG thanks to [Rohit Tarachandani](https://github.com/Rohit-T) - [PR #569](https://github.com/sendgrid/sendgrid-java/pull/495/files): Twilio Branding + CLA Policy Update @@ -231,7 +231,7 @@ request.addQueryParam("limit", "1"); ## [3.0.9] - 2016-08-24 ### Added - Table of Contents in the README -- Added a [USE_CASES.md](https://github.com/sendgrid/sendgrid-java/blob/master/USE_CASES.md) section, with the first use case example for transactional templates +- Added a [USE_CASES.md](USE_CASES.md) section, with the first use case example for transactional templates ## [3.0.8] - 2016-08-09 ### Fixed @@ -250,7 +250,7 @@ request.addQueryParam("limit", "1"); ## [3.0.6] - 2016-07-26 ### Added -- [Troubleshooting](https://github.com/sendgrid/sendgrid-python/blob/master/TROUBLESHOOTING.md) section +- [Troubleshooting](TROUBLESHOOTING.md) section ## [3.0.5] - 2016-07-20 ### Added diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ff3ed35e..7218bce9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -88,7 +88,7 @@ source ./sendgrid.env ##### Execute: ##### -See the [examples folder](https://github.com/sendgrid/sendgrid-java/tree/master/examples) to get started quickly. +See the [examples folder](examples) to get started quickly. Check out the documentation for [Web API v3 endpoints](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html). @@ -124,9 +124,9 @@ The interface to the Twilio SendGrid API. All PRs require passing tests before the PR will be reviewed. -All test files are in the [`tests`](https://github.com/sendgrid/sendgrid-java/tree/master/src/test/java/com/sendgrid) directory. +All test files are in the [`tests`](src/test/java/com/sendgrid) directory. -For the purposes of contributing to this repo, please update the [`SendGridTest.java`](https://github.com/sendgrid/sendgrid-java/tree/master/src/test/java/com/sendgrid/SendGridTest.java) file with unit tests as you modify the code. +For the purposes of contributing to this repo, please update the [`SendGridTest.java`](src/test/java/com/sendgrid/SendGridTest.java) file with unit tests as you modify the code. The integration tests require a Twilio SendGrid mock API in order to execute. We've simplified setting this up using Docker to run the tests. You will just need [Docker Desktop](https://docs.docker.com/get-docker/) and `make`. @@ -196,7 +196,7 @@ Please run your code through: ``` 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) - with a clear title and description against the `master` branch. All tests must be passing before we will review the PR. + with a clear title and description against the `main` branch. All tests must be passing before we will review the PR. ## Code Reviews If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, GitHub has some great information on how to review a Pull Request. diff --git a/README.md b/README.md index 58258487..092a8ffb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -![SendGrid Logo](https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png) +![SendGrid Logo](twilio_sendgrid_logo.png) -[![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-java.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-java) +[![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-java.svg?branch=main)](https://travis-ci.org/sendgrid/sendgrid-java) [![Maven Central](https://img.shields.io/maven-central/v/com.sendgrid/sendgrid-java.svg)](http://mvnrepository.com/artifact/com.sendgrid/sendgrid-java) [![Email Notifications Badge](https://dx.sendgrid.com/badge/java)](https://dx.sendgrid.com/newsletter/java) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) @@ -16,7 +16,7 @@ Version 3.X.X of this library provides full support for all Twilio SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint). -This library represents the beginning of a new path for Twilio SendGrid. We want this library to be community driven and Twilio SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/sendgrid/sendgrid-java/issues) and [pull requests](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md) or simply upvote or comment on existing issues or pull requests. +This library represents the beginning of a new path for Twilio SendGrid. We want this library to be community driven and Twilio SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/sendgrid/sendgrid-java/issues) and [pull requests](CONTRIBUTING.md) or simply upvote or comment on existing issues or pull requests. Please browse the rest of this README for further details. @@ -99,7 +99,7 @@ You can just drop the jar file in. It's a fat jar - it has all the dependencies ## Hello Email -The following is the minimum needed code to send an email with the [/mail/send Helper](https://github.com/sendgrid/sendgrid-java/tree/master/src/main/java/com/sendgrid/helpers) ([here](https://github.com/sendgrid/sendgrid-java/blob/master/examples/helpers/mail/Example.java#L30) is a full example): +The following is the minimum needed code to send an email with the [/mail/send Helper](src/main/java/com/sendgrid/helpers) ([here](examples/helpers/mail/Example.java#L30) is a full example): ### With Mail Helper Class @@ -132,11 +132,11 @@ public class Example { } ``` -The `Mail` constructor creates a [personalization object](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/personalizations.html) for you. [Here](https://github.com/sendgrid/sendgrid-java/blob/master/examples/helpers/mail/Example.java#L221) is an example of how to add to it. +The `Mail` constructor creates a [personalization object](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/personalizations.html) for you. [Here](examples/helpers/mail/Example.java#L221) is an example of how to add to it. ### Without Mail Helper Class -The following is the minimum needed code to send an email without the /mail/send Helper ([here](https://github.com/sendgrid/sendgrid-java/blob/master/examples/mail/mail.java#L54) is a full example): +The following is the minimum needed code to send an email without the /mail/send Helper ([here](examples/mail/mail.java#L54) is a full example): ```java import com.sendgrid.*; @@ -189,23 +189,23 @@ public class Example { # Usage - [Twilio SendGrid Docs](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) -- [Library Usage Docs](https://github.com/sendgrid/sendgrid-java/tree/master/USAGE.md) -- [Example Code](https://github.com/sendgrid/sendgrid-java/tree/master/examples) +- [Library Usage Docs](USAGE.md) +- [Example Code](examples) - [How-to: Migration from v2 to v3](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/how_to_migrate_from_v2_to_v3_mail_send.html) -- [v3 Web API Mail Send Helper](https://github.com/sendgrid/sendgrid-java/tree/master/src/main/java/com/sendgrid/helpers) - build a request object payload for a v3 /mail/send API call. +- [v3 Web API Mail Send Helper](src/main/java/com/sendgrid/helpers) - build a request object payload for a v3 /mail/send API call. # Use Cases -[Examples of common API use cases](https://github.com/sendgrid/sendgrid-java/blob/master/USE_CASES.md), such as how to send an email with a transactional template. +[Examples of common API use cases](USE_CASES.md), such as how to send an email with a transactional template. # Announcements Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-java/issues/140). Your support is appreciated! -All updates to this library are documented in our [CHANGELOG](https://github.com/sendgrid/sendgrid-java/blob/master/CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. +All updates to this library are documented in our [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. # Roadmap @@ -215,18 +215,18 @@ If you are interested in the future direction of this project, please take a loo # How to Contribute -We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md) guide for details. +We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](CONTRIBUTING.md) guide for details. Quick links: -- [Feature Request](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#feature-request) -- [Bug Reports](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#submit-a-bug-report) -- [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-java/blob/master/CONTRIBUTING.md#improvements-to-the-codebase) +- [Feature Request](CONTRIBUTING.md#feature-request) +- [Bug Reports](CONTRIBUTING.md#submit-a-bug-report) +- [Improvements to the Codebase](CONTRIBUTING.md#improvements-to-the-codebase) # Troubleshooting -Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-java/blob/master/TROUBLESHOOTING.md) for common library issues. +Please see our [troubleshooting guide](TROUBLESHOOTING.md) for common library issues. # About diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index ed1090d1..bc3b1361 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -60,7 +60,7 @@ You can just drop the jar file in. It's a fat jar - it has all the dependencies ## Versions -We follow the MAJOR.MINOR.PATCH versioning scheme as described by [SemVer.org](http://semver.org). Therefore, we recommend that you always pin (or vendor) the particular version you are working with to your code and never auto-update to the latest version. Especially when there is a MAJOR point release, since that is guaranteed to be a breaking change. Changes are documented in the [CHANGELOG](https://github.com/sendgrid/sendgrid-java/blob/master/CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases) section. +We follow the MAJOR.MINOR.PATCH versioning scheme as described by [SemVer.org](http://semver.org). Therefore, we recommend that you always pin (or vendor) the particular version you are working with to your code and never auto-update to the latest version. Especially when there is a MAJOR point release, since that is guaranteed to be a breaking change. Changes are documented in the [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases) section. ## Environment Variables and Your Twilio SendGrid API Key diff --git a/USAGE.md b/USAGE.md index 155cc1e6..6b0529dc 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2693,7 +2693,7 @@ For more detailed information about how to use the v3 Mail Send endpoint, please ### POST /mail/send -This endpoint has a helper, check it out [here](https://github.com/sendgrid/sendgrid-java/blob/master/src/main/java/com/sendgrid/helpers/README.md). +This endpoint has a helper, check it out [here](src/main/java/com/sendgrid/helpers/README.md). ```java try { diff --git a/USE_CASES.md b/USE_CASES.md index c74b1264..5af8f674 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -223,13 +223,13 @@ public class Example { # How to Setup a Domain Authentication -You can find documentation for how to setup a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/client/USAGE.md#sender-authentication). +You can find documentation for how to setup a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](USAGE.md#sender-authentication). Find more information about all of Twilio SendGrid's authentication related documentation [here](https://sendgrid.com/docs/ui/account-and-settings/). # How to View Email Statistics -You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](https://github.com/sendgrid/sendgrid-java/blob/master/USAGE.md#stats). +You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](USAGE.md#stats). Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as Twilio SendGrid processes your email. diff --git a/bin/com/sendgrid/helpers/README.md b/bin/com/sendgrid/helpers/README.md deleted file mode 100644 index 9b99f325..00000000 --- a/bin/com/sendgrid/helpers/README.md +++ /dev/null @@ -1,19 +0,0 @@ -**This helper allows you to quickly and easily build a Mail object for sending email through Twilio SendGrid.** - -## Dependencies - -- [Jackson](https://github.com/FasterXML/jackson) - -# Quick Start - -Run the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples/mail) (make sure you have set your environment variable to include your SENDGRID_API_KEY). - -```bash -cd examples/mail -javac -classpath ../../build/libs/sendgrid-4.2.1-jar.jar:. Example.java && java -classpath ../examples/jackson-core-2.9.9.jar:../../build/libs/sendgrid-4.1.0-jar.jar:. Example -``` - -## Usage - -- See the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples/mail) for a complete working example. -- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html) diff --git a/examples/mail/mail.java b/examples/mail/mail.java index f35989df..ada390c2 100644 --- a/examples/mail/mail.java +++ b/examples/mail/mail.java @@ -55,7 +55,7 @@ public static void main(String[] args) throws IOException { // v3 Mail Send // POST /mail/send -// This endpoint has a helper, check it out [here](https://github.com/sendgrid/sendgrid-java/blob/master/src/main/java/com/sendgrid/helpers/README.md). +// This endpoint has a helper, check it out [here](https://github.com/sendgrid/sendgrid-java/blob/HEAD/src/main/java/com/sendgrid/helpers/README.md). public class Example { public static void main(String[] args) throws IOException { diff --git a/pom.xml b/pom.xml index 5776278b..cfa43c93 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ The MIT License (MIT) - https://github.com/sendgrid/java-http-client/blob/master/LICENSE + https://github.com/sendgrid/java-http-client/blob/HEAD/LICENSE repo diff --git a/src/main/java/com/sendgrid/helpers/README.md b/src/main/java/com/sendgrid/helpers/README.md index 9b99f325..b9128ff6 100644 --- a/src/main/java/com/sendgrid/helpers/README.md +++ b/src/main/java/com/sendgrid/helpers/README.md @@ -6,7 +6,7 @@ # Quick Start -Run the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples/mail) (make sure you have set your environment variable to include your SENDGRID_API_KEY). +Run the [example](../../../../../../examples/mail) (make sure you have set your environment variable to include your SENDGRID_API_KEY). ```bash cd examples/mail @@ -15,5 +15,5 @@ javac -classpath ../../build/libs/sendgrid-4.2.1-jar.jar:. Example.java && java ## Usage -- See the [example](https://github.com/sendgrid/sendgrid-java/tree/master/examples/mail) for a complete working example. +- See the [example](../../../../../../examples/mail) for a complete working example. - [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html) diff --git a/twilio_sendgrid_logo.png b/twilio_sendgrid_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a4c22239ac0cc70e10a51f828390d713edc8a29b GIT binary patch literal 14596 zcmY+rb8xRQyER$)VFC_ zP*x5W5D>7Im8zzzrkpIdiGv-zk*R~R8NH{S<3BbK5U(fqzowm;s}Z56ovpnKwSkk{GNoLgB`{C}qZ>+um= zy1F`YGcb5~c+h*W&^tI=Ffeg(aWOD5GcYsL{bSI%c-gxedD7Xtko>pE|ED8r=3?S( z<>+eVU{ClTT_a-$H&;Gl;{O=^@Auzvx>}k4|4#NU|C83g1R4G_!oWn&$nd|~|EBW( z2jy09wle$Y{2zUOCf@&I{y*6N`0z6P$Nc{a=D#!jFZ5rk{4l%>|GRAbFtURbT0lS? z=u)CWs-D2txzIVeYJPzH>z&NMFroF>gqd)n(Atcq;HII~wy9*k!yA>|8^$f_G}3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2`Ee{9D*_kBF4GCoYd4q{rkK`DFJQmOuyVy0Y34~(7*4i}rDLG?+8h zSmEeT+?(_4;ZocY_yIxK(+yxk4`64>fCKpv#L4^C8FFD`gKC78<`BQ`*3%()N=vLz zwkx3mN$A>k-;FJ*9hZ5rL$OL1FpRc9Bj6;Q97>j*QeWQ(4fVlj}$5b zhF%7fu~?XbjSu^n8TRKu1rdlVhwkP|MzGxSA9J8+ah+Q>5IzS8ba>Bj!^YTNk&eh} z>H0*VjW%Ie=E!rTnOi}C9kECwnD;Bc?Q#exm&CjBdSe>qAM4Cb2Bh&XYI1v^5Ldfw4?XT2EpIRL;SnVdqQ6%(i9yIwL ntv~W6Y3X9dsR>Z;|A4AGw<(;8DtG?pt)Y~dylAbkVetO}CY4rB literal 0 HcmV?d00001 From 89be5ee274c21e090be0028dde741bf82ad7352d Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Tue, 11 Aug 2020 14:46:33 -0500 Subject: [PATCH 156/288] chore: update supported Java versions to match testing strategy --- CONTRIBUTING.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7218bce9..9ba321ae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,7 +63,7 @@ Please note that we utilize the [Gitflow Workflow](https://www.atlassian.com/git ##### Prerequisites ##### -- Java version Oracle JDK 7, 8 or OpenJDK 7 +- Java 8 or 11 - [java-http-client](https://github.com/sendgrid/java-http-client) ##### Initial setup: ##### diff --git a/README.md b/README.md index 092a8ffb..5a575570 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites -- Java version Oracle JDK 7, 8 or OpenJDK 7 +- Java 8 or 11 - The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.3 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables From fe30aedaeffb654f47154831726e6bce80079bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ros=C3=A1rio=20Pereira=20Fernandes?= Date: Wed, 12 Aug 2020 18:33:05 +0200 Subject: [PATCH 157/288] test: Add spotbugs and checkstyle maven plugins for Travis CI (#496) --- Makefile | 2 +- pom.xml | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 064737ef..82e5c343 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ install: cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar test: - mvn test + mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml test-integ: test diff --git a/pom.xml b/pom.xml index cfa43c93..f91a2e6e 100644 --- a/pom.xml +++ b/pom.xml @@ -259,6 +259,18 @@ + + com.github.spotbugs + spotbugs-maven-plugin + 4.0.4 + + + com.github.spotbugs + spotbugs + 4.0.4 + + +
@@ -309,4 +321,13 @@ 1.66 - \ No newline at end of file + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.0.0 + + + + From e71c7b09936715c4a9e39eb10c620b5a41385b11 Mon Sep 17 00:00:00 2001 From: Dmitriy Danilov Date: Tue, 18 Aug 2020 17:00:15 +0300 Subject: [PATCH 158/288] docs: add contribution guide for first-timers (#491) --- first-timers.md | 77 ++++++++++++++++++++++++++++++++++ static/img/github-fork.png | Bin 0 -> 15189 bytes static/img/github-sign-up.png | Bin 0 -> 116981 bytes 3 files changed, 77 insertions(+) create mode 100644 first-timers.md create mode 100644 static/img/github-fork.png create mode 100644 static/img/github-sign-up.png diff --git a/first-timers.md b/first-timers.md new file mode 100644 index 00000000..846100d7 --- /dev/null +++ b/first-timers.md @@ -0,0 +1,77 @@ +# How To Contribute to SendGrid Repositories via GitHub + Contributing to the SendGrid is easy! All you need to do is find an open issue (see the bottom of this page for a list of repositories containing open issues), fix it and submit a pull request. Once you have submitted your pull request, the team can easily review it before it is merged into the repository. + To make a pull request, follow these steps: + 1. Log into GitHub. If you do not already have a GitHub account, you will have to create one in order to submit a change. Click the Sign up link in the upper right-hand corner to create an account. Enter your username, password, and email address. If you are an employee of SendGrid, please use your full name with your GitHub account and enter SendGrid as your company so we can easily identify you. + + + + 2. __[Fork](https://help.github.com/fork-a-repo/)__ the [sendgrid-java](https://github.com/sendgrid/sendgrid-java) repository: + + + + 3. __Clone__ your fork via the following commands: + + ``` + # Clone your fork of the repo into the current directory + git clone https://github.com/your_username/sendgrid-java + # Navigate to the newly cloned directory + cd sendgrid-java + # Assign the original repo to a remote called "upstream" + git remote add upstream https://github.com/sendgrid/sendgrid-java + ``` + + > Don't forget to replace *your_username* in the URL by your real GitHub username. + + 4. __Create a new topic branch__ (off the main project development branch) to + contain your feature, change, or fix: + +``` + git checkout -b +``` + + 5. __Commit your changes__ in logical chunks. Please adhere to these [git commit + message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) + or your code is unlikely be merged into the main project. Use Git's + [interactive rebase](https://help.github.com/articles/interactive-rebase) + feature to tidy up your commits before making them public. Probably you will also have to create tests (if needed) or create or update the example code that demonstrates the functionality of this change to the code. + 6. __Locally merge (or rebase)__ the upstream development branch into your topic branch: + + ``` + git pull [--rebase] upstream master + ``` + + 7. __Push__ your topic branch up to your fork: + ``` + git push origin + ``` + 8. __[Open a Pull Request](https://help.github.com/articles/creating-a-pull-request/#changing-the-branch-range-and-destination-repository/)__ + with a clear title and description against the `master` branch. All tests must be passing before we will review the PR. + + ### Important notice + Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](./CONTRIBUTING.md) file. + ## Repositories with Open, Easy, Help Wanted, Issue Filters + * [Python SDK](https://github.com/sendgrid/sendgrid-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [PHP SDK](https://github.com/sendgrid/sendgrid-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [C# SDK](https://github.com/sendgrid/sendgrid-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Ruby SDK](https://github.com/sendgrid/sendgrid-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Node.js SDK](https://github.com/sendgrid/sendgrid-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Java SDK](https://github.com/sendgrid/sendgrid-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Go SDK](https://github.com/sendgrid/sendgrid-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Python STMPAPI Client](https://github.com/sendgrid/smtpapi-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [PHP STMPAPI Client](https://github.com/sendgrid/smtpapi-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [C# STMPAPI Client](https://github.com/sendgrid/smtpapi-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Ruby STMPAPI Client](https://github.com/sendgrid/smtpapi-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Node.js STMPAPI Client](https://github.com/sendgrid/smtpapi-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Java STMPAPI Client](https://github.com/sendgrid/smtpapi-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Go STMPAPI Client](https://github.com/sendgrid/smtpapi-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Python HTTP Client](https://github.com/sendgrid/python-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [PHP HTTP Client](https://github.com/sendgrid/php-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [C# HTTP Client](https://github.com/sendgrid/csharp-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Java HTTP Client](https://github.com/sendgrid/java-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Ruby HTTP Client](https://github.com/sendgrid/ruby-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Go HTTP Client](https://github.com/sendgrid/rest/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Node.js HTTP Client](https://github.com/sendgrid/nodejs-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Open Source Data Collector](https://github.com/sendgrid/open-source-library-data-collector/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Open API Definition](https://github.com/sendgrid/sendgrid-oai/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [DX Automator](https://github.com/sendgrid/dx-automator/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Documentation](https://github.com/sendgrid/docs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) \ No newline at end of file diff --git a/static/img/github-fork.png b/static/img/github-fork.png new file mode 100644 index 0000000000000000000000000000000000000000..6503be362193808dc19bce69d8ccdf518d9ef93f GIT binary patch literal 15189 zcmbumWmFwYw=UdRa0>*26Wj^z?!nzHSa4_ImLS31o#5_nA-KC+@P)g>xAwd5J?9(a z{<-6x^m+tEH&iX1pylJ&jUTt0!d(; zMP<|w5D-?j6gMHa7%mc8E~@tCE+AtkGeGs5tBZ@7lS$wtA^?yAGU6g??#m}@AU&+R zC*YhqMiwCkR%Q_i3Jw;obhH)MuEzE01H-NEMNxBUPVUE_9H19aGE(2^6epssF*1?=E`ts&|&`rN^ltNGdkgNf_bN4-8R+T#fv|Pyg%M zcrE~v1Ihkf3iF@BPd}=`{}*LGD#ah6|EcWLH6|u(PWzY-)3rD{s`K*SN?Bh>hS;3E{afw_OJYZH)K}u+{y`(Sxgi|k!q-P z{&-{E(*7(P1tX$v`xI2WWFsITpsqeQ!6EW-Zh|yx48;;&Gmu5RxsB7HSdMCBWTHq(4FwfdXav>=Nx7o4S0&R+%k@ujqbz^=sxm>? zc@c`2)<1o5B20q~J^)Y89U%EL-_9|8V^7P<%2J|v*2DUt{DSg#={d%Ybg>r+B5MWz zVfTX-yQdeYl_1O3jAF9ae`SqyetY? z(>^I7fs-}Rjk@CJwxp3MCZs#cd8%C_l>5?PIxOaL8F)dRErD(vUxW9iib~j+e8C0&O6druu_Tk$X9C)Z${Zg|ae$K|o+_ zZT(%@r>nTr_eC;%?6v9IFjekdPL5JeUY;nAI4MTsOri1Gg=70$rnBy1d@28)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+~CulSsH$wnLgQv@S*xms&WKFt-0<%O-KDYeGEg~zM(F~+QS z#Blr=LbnXg+#OTvLr|vniW&g#A}_2E903J9VCSl($6SRR(ANYItcIi*)iCkGGq{Z6 zXFf95u?uCmMEx;;lTEnWH|%ezTwhnzbU{p|7vIKhyM>caR@dlU5F7FII?NA6z5m1t zWJ#R@#3<~a3|u^W;W->zaawk8Y_sTOP8vLFP?%_`3xM6S88BdXNWbk}vebq@yhod3 z?1)^Cp(yb9c_R11FJBzX0_4o7VB3P@a!wbU z-6wd?hIPRSywCEWz{6EvsMrvj-$Nm8DR?=*wW|>LxL0~Zija8-oT zjU*`oBbvhRYI^Zj|FzEKa0`Uo>^ziYYFu22ITe2p&BPo$WSlKKK25a*l9Jl0_mqWh zr*XXSl}wqe;V)idA)Yf)&He6bQc*Kl=F(5BE7V`;YPY7Ps9m@eQ$(f4Gh2c{!-dS< zA8F(ppF$b13+l^k>(dB$5vtus^Y`*idHni1vQK(YiLrw>y(M;4%`ACAbByZR$gI@` z|C7tfXX}ekGiHZ2@B4GB@mjwB%>TKjWj2a`xU*1X-f)&RnR+qGs!$bAGiA=lZhZaxk@Jf2xin*Rz6ns7rKu zXiMYWH_C+cX6?yVof*E>!*YgsyOIz7$gC(TCq8r~4E=4bGCnB} zy_0a<8ORr7sC}?_nq Oll& Date: Tue, 18 Aug 2020 10:11:14 -0500 Subject: [PATCH 159/288] docs: clean up and reconcile first timers documentation --- first-timers.md => FIRST_TIMERS.md | 108 +++++++++--------- .../helpers/mail/objects/MailSettings.java | 6 +- 2 files changed, 58 insertions(+), 56 deletions(-) rename first-timers.md => FIRST_TIMERS.md (50%) diff --git a/first-timers.md b/FIRST_TIMERS.md similarity index 50% rename from first-timers.md rename to FIRST_TIMERS.md index 846100d7..47cf5425 100644 --- a/first-timers.md +++ b/FIRST_TIMERS.md @@ -1,56 +1,60 @@ -# How To Contribute to SendGrid Repositories via GitHub - Contributing to the SendGrid is easy! All you need to do is find an open issue (see the bottom of this page for a list of repositories containing open issues), fix it and submit a pull request. Once you have submitted your pull request, the team can easily review it before it is merged into the repository. - To make a pull request, follow these steps: - 1. Log into GitHub. If you do not already have a GitHub account, you will have to create one in order to submit a change. Click the Sign up link in the upper right-hand corner to create an account. Enter your username, password, and email address. If you are an employee of SendGrid, please use your full name with your GitHub account and enter SendGrid as your company so we can easily identify you. +# How To Contribute to Twilio SendGrid Repositories via GitHub +Contributing to the Twilio SendGrid repositories is easy! All you need to do is find an open issue (see the bottom of this page for a list of repositories containing open issues), fix it and submit a pull request. Once you have submitted your pull request, the team can easily review it before it is merged into the repository. + +To make a pull request, follow these steps: + +1. Log into GitHub. If you do not already have a GitHub account, you will have to create one in order to submit a change. Click the Sign up link in the upper right-hand corner to create an account. Enter your username, password, and email address. If you are an employee of Twilio SendGrid, please use your full name with your GitHub account and enter Twilio SendGrid as your company so we can easily identify you. - 2. __[Fork](https://help.github.com/fork-a-repo/)__ the [sendgrid-java](https://github.com/sendgrid/sendgrid-java) repository: - - - - 3. __Clone__ your fork via the following commands: - - ``` - # Clone your fork of the repo into the current directory - git clone https://github.com/your_username/sendgrid-java - # Navigate to the newly cloned directory - cd sendgrid-java - # Assign the original repo to a remote called "upstream" - git remote add upstream https://github.com/sendgrid/sendgrid-java - ``` - - > Don't forget to replace *your_username* in the URL by your real GitHub username. - - 4. __Create a new topic branch__ (off the main project development branch) to - contain your feature, change, or fix: - -``` - git checkout -b -``` - - 5. __Commit your changes__ in logical chunks. Please adhere to these [git commit - message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) - or your code is unlikely be merged into the main project. Use Git's - [interactive rebase](https://help.github.com/articles/interactive-rebase) - feature to tidy up your commits before making them public. Probably you will also have to create tests (if needed) or create or update the example code that demonstrates the functionality of this change to the code. - 6. __Locally merge (or rebase)__ the upstream development branch into your topic branch: - - ``` - git pull [--rebase] upstream master - ``` - - 7. __Push__ your topic branch up to your fork: - ``` - git push origin - ``` - 8. __[Open a Pull Request](https://help.github.com/articles/creating-a-pull-request/#changing-the-branch-range-and-destination-repository/)__ - with a clear title and description against the `master` branch. All tests must be passing before we will review the PR. - - ### Important notice - Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](./CONTRIBUTING.md) file. - ## Repositories with Open, Easy, Help Wanted, Issue Filters - * [Python SDK](https://github.com/sendgrid/sendgrid-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +2. __[Fork](https://help.github.com/fork-a-repo/)__ the [sendgrid-java](https://github.com/sendgrid/sendgrid-java) repository: + + + +3. __Clone__ your fork via the following commands: + +```bash +# Clone your fork of the repo into the current directory +git clone https://github.com/your_username/sendgrid-java +# Navigate to the newly cloned directory +cd sendgrid-java +# Assign the original repo to a remote called "upstream" +git remote add upstream https://github.com/sendgrid/sendgrid-java +``` + +> Don't forget to replace *your_username* in the URL by your real GitHub username. + +4. __Create a new topic branch__ (off the main project development branch) to contain your feature, change, or fix: + +```bash +git checkout -b +``` + +5. __Commit your changes__ in logical chunks. + +Please adhere to these [git commit message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) or your code is unlikely be merged into the main project. Use Git's [interactive rebase](https://help.github.com/articles/interactive-rebase) feature to tidy up your commits before making them public. Probably you will also have to create tests (if needed) or create or update the example code that demonstrates the functionality of this change to the code. + +6. __Locally merge (or rebase)__ the upstream development branch into your topic branch: + +```bash +git pull [--rebase] upstream main +``` + +7. __Push__ your topic branch up to your fork: + +```bash +git push origin +``` + +8. __[Open a Pull Request](https://help.github.com/articles/creating-a-pull-request/#changing-the-branch-range-and-destination-repository/)__ with a clear title and description against the `main` branch. All tests must be passing before we will review the PR. + +## Important notice + +Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](CONTRIBUTING.md) file. + +## Repositories with Open, Easy, Help Wanted, Issue Filters + +* [Python SDK](https://github.com/sendgrid/sendgrid-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [PHP SDK](https://github.com/sendgrid/sendgrid-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [C# SDK](https://github.com/sendgrid/sendgrid-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Ruby SDK](https://github.com/sendgrid/sendgrid-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) @@ -70,8 +74,6 @@ * [Java HTTP Client](https://github.com/sendgrid/java-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Ruby HTTP Client](https://github.com/sendgrid/ruby-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Go HTTP Client](https://github.com/sendgrid/rest/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Node.js HTTP Client](https://github.com/sendgrid/nodejs-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Open Source Data Collector](https://github.com/sendgrid/open-source-library-data-collector/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Open API Definition](https://github.com/sendgrid/sendgrid-oai/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [DX Automator](https://github.com/sendgrid/dx-automator/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Documentation](https://github.com/sendgrid/docs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) \ No newline at end of file +* [Documentation](https://github.com/sendgrid/docs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java index bd239880..d83a56b6 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java @@ -59,7 +59,7 @@ public void setBypassListManagement(Setting bypassListManagement) { } /** - * Get the the footer settings that you would like included on every email. + * Get the footer settings that you would like included on every email. * * @return the setting. */ @@ -70,7 +70,7 @@ public FooterSetting getFooterSetting() { } /** - * Set the the footer settings that you would like included on every email. + * Set the footer settings that you would like included on every email. * * @param footerSetting the setting. */ @@ -183,4 +183,4 @@ public boolean equals(Object obj) { } return true; } -} \ No newline at end of file +} From cec18b0563b576e3d4602e737b9b3555a2840705 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 19 Aug 2020 18:54:22 +0000 Subject: [PATCH 160/288] [Librarian] Version Bump --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48fafd67..723ef727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-08-19] Version 4.6.4 +-------------------------- +**Library - Docs** +- [PR #491](https://github.com/sendgrid/sendgrid-java/pull/491): add contribution guide for first-timers. Thanks to [@daniloff200](https://github.com/daniloff200)! + +**Library - Test** +- [PR #496](https://github.com/sendgrid/sendgrid-java/pull/496): Add spotbugs and checkstyle maven plugins for Travis CI. Thanks to [@rosariopfernandes](https://github.com/rosariopfernandes)! + +**Library - Chore** +- [PR #644](https://github.com/sendgrid/sendgrid-java/pull/644): update GitHub branch references to use HEAD. Thanks to [@thinkingserious](https://github.com/thinkingserious)! + + [2020-08-05] Version 4.6.3 -------------------------- **Library - Chore** From c46491045d1da79deaca339259233a7a4c08b947 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 19 Aug 2020 19:52:02 +0000 Subject: [PATCH 161/288] Release 4.6.4 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 8 ++++---- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9ba321ae..b0c84bed 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,7 +101,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.3/sendgrid-4.6.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.3/sendgrid-4.6.3-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.4/sendgrid-4.6.4-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.4/sendgrid-4.6.4-jar.jar:. Example ``` diff --git a/README.md b/README.md index 5a575570..60b09197 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.6.3.** +**The default branch name for this repository has been changed to `main` as of 4.6.4.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -41,7 +41,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.3 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.4 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -69,7 +69,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.3' + implementation 'com.sendgrid:sendgrid-java:4.6.4' } repositories { @@ -88,7 +88,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.3/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.4/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index f91a2e6e..a5498ec4 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.3 + 4.6.4 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.3 + 4.6.4 @@ -286,7 +286,7 @@ com.sendgrid java-http-client - 4.3.4 + 4.3.5 com.fasterxml.jackson.core @@ -330,4 +330,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index bf3e1957..9758f5d8 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.3"; + private static final String VERSION = "4.6.4"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index b1f88f7a..1092fd07 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.3"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.4"); } @Test From 20f389f796dcecb723633551fb0081cea33ad505 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 24 Aug 2020 09:57:48 -0500 Subject: [PATCH 162/288] docs: remove roadmap/milestone sections for CONTRIBUTING and README --- CONTRIBUTING.md | 3 --- README.md | 6 ------ 2 files changed, 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b0c84bed..33c41a89 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,9 +18,6 @@ Hello! Thank you for choosing to help contribute to one of the Twilio SendGrid o - [Creating a Pull Request](#creating-a-pull-request) - [Code Reviews](#code-reviews) - -We use [Milestones](https://github.com/sendgrid/sendgrid-java/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged. - There are a few ways to contribute, which we'll enumerate below: diff --git a/README.md b/README.md index 60b09197..e71eb696 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ We appreciate your continued support, thank you! * [Usage](#usage) * [Use Cases](#use-cases) * [Announcements](#announcements) -* [Roadmap](#roadmap) * [How to Contribute](#contribute) * [Troubleshooting](#troubleshooting) * [About](#about) @@ -207,11 +206,6 @@ Please see our announcement regarding [breaking changes](https://github.com/send All updates to this library are documented in our [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. - -# Roadmap - -If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/sendgrid/sendgrid-java/issues) and [pull requests](https://github.com/sendgrid/sendgrid-java/pulls). We would love to hear your feedback. - # How to Contribute From 9e3cf6eda6a33529d778291d665a2487cd113607 Mon Sep 17 00:00:00 2001 From: Michael Vinicio Date: Thu, 27 Aug 2020 09:14:43 -0600 Subject: [PATCH 163/288] doc: Run *.md documents through Grammer.ly (#477) --- CHANGELOG.md | 10 +- CONTRIBUTING.md | 2 +- TROUBLESHOOTING.md | 4 +- USAGE.md | 482 ++++++++++++++++++++++----------------------- USE_CASES.md | 4 +- 5 files changed, 251 insertions(+), 251 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 723ef727..0728a93f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -152,7 +152,7 @@ all packages were update to match class location -- BIG thanks to [Bojan Trajkov ## [4.2.1] - 2018-05-08 ### Security Fix -- Update to latest Jackson recommended dependency, based on [this article](https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062). +- Update to the latest Jackson recommended dependency, based on [this article](https://medium.com/@cowtowncoder/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062). ## [4.2.0] - 2018-05-04 ### Added @@ -196,7 +196,7 @@ all packages were update to match class location -- BIG thanks to [Bojan Trajkov ## [4.0.0] - 2017-04-18 ### BREAKING CHANGE -- PR #162 Update java http client dependency to [4.1.0 from 2.3.4](https://github.com/sendgrid/java-http-client/releases) +- PR #162 Update java HTTP client dependency to [4.1.0 from 2.3.4](https://github.com/sendgrid/java-http-client/releases) - BIG thanks to [Diego Camargo](https://github.com/belfazt) for the pull request! - The breaking change is that variables that were public are now private and accessible only via getters and setters - The `Request` object attributes are now only accessible through getters/setters @@ -225,7 +225,7 @@ request.addQueryParam("limit", "1"); ## [3.2.1] - 2017-04-13 ### Added - PR #175 -- Simplified `makeCall()` method. +- Simplified method `makeCall()`. - BIG thanks to [Rafał Wrzeszcz](https://github.com/rafalwrzeszcz) for the pull request! ## [3.2.0] - 2017-03-22 @@ -237,7 +237,7 @@ request.addQueryParam("limit", "1"); ## [3.1.0] - 2016-10-11 ### Added - PR #158, Solves #138 -- [Enhancement] allow using custom Client, http proxy support +- [Enhancement] allow using custom Client, HTTP proxy support - BIG thanks to [David Maicher](https://github.com/dmaicher) for the pull request! ## [3.0.9] - 2016-08-24 @@ -273,7 +273,7 @@ request.addQueryParam("limit", "1"); ## [3.0.4] - 2016-07-19 ### Fixed -- [Fix for issue #120](https://github.com/sendgrid/sendgrid-java/issues/120): Unsupported Media Type if subject has letters with accent (like 'é' ) +- [Fix for issue #120](https://github.com/sendgrid/sendgrid-java/issues/120): Unsupported Media Type if the subject has letters with an accent (like 'é' ) - Updated [java-http-client](https://github.com/sendgrid/java-http-client) dependency to [2.3.2](https://github.com/sendgrid/java-http-client/releases/tag/v2.3.2) ## [3.0.3] - 2016-07-12 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 33c41a89..dbfb552d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -40,7 +40,7 @@ A software bug is a demonstrable issue in the code base. In order for us to diag Before you decide to create a new issue, please try the following: 1. Check the GitHub issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post. -2. Update to the latest version of this code and check if issue has already been fixed +2. Update to the latest version of this code and check if the issue has already been fixed 3. Copy and fill in the Bug Report Template we have provided below ### Please use our Bug Report Template diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index bc3b1361..02fba251 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -60,7 +60,7 @@ You can just drop the jar file in. It's a fat jar - it has all the dependencies ## Versions -We follow the MAJOR.MINOR.PATCH versioning scheme as described by [SemVer.org](http://semver.org). Therefore, we recommend that you always pin (or vendor) the particular version you are working with to your code and never auto-update to the latest version. Especially when there is a MAJOR point release, since that is guaranteed to be a breaking change. Changes are documented in the [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases) section. +We follow the MAJOR.MINOR.PATCH versioning scheme as described by [SemVer.org](http://semver.org). Therefore, we recommend that you always pin (or vendor) the particular version you are working with your code and never auto-update to the latest version. Especially when there is a MAJOR point release since that is guaranteed to be a breaking change. Changes are documented in the [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases) section. ## Environment Variables and Your Twilio SendGrid API Key @@ -75,7 +75,7 @@ becomes `"SENDGRID_API_KEY"` -In the first case SENDGRID_API_KEY is in reference to the name of the environment variable, while the second case references the actual Twilio SendGrid API Key. +In the first case, SENDGRID_API_KEY is in reference to the name of the environment variable, while the second case references the actual Twilio SendGrid API Key. ## Using the Package Manager diff --git a/USAGE.md b/USAGE.md index 6b0529dc..08487720 100644 --- a/USAGE.md +++ b/USAGE.md @@ -77,7 +77,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ } catch (IOException ex) { throw ex; } - ``` +``` ## Add one or more IPs to the whitelist **This endpoint allows you to add one or more IP addresses to your IP whitelist.** @@ -105,7 +105,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a list of currently whitelisted IPs **This endpoint allows you to retrieve a list of IP addresses that are currently whitelisted.** @@ -130,7 +130,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ } catch (IOException ex) { throw ex; } - ``` +``` ## Remove one or more IPs from the whitelist **This endpoint allows you to remove one or more IPs from your IP whitelist.** @@ -158,7 +158,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific whitelisted IP **This endpoint allows you to retrieve a specific IP address that has been whitelisted.** @@ -185,7 +185,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ } catch (IOException ex) { throw ex; } - ``` +``` ## Remove a specific IP from the whitelist **This endpoint allows you to remove a specific IP address from your IP whitelist.** @@ -212,7 +212,7 @@ For more information, please see our [User Guide](http://sendgrid.com/docs/User_ } catch (IOException ex) { throw ex; } - ``` +``` # ALERTS @@ -243,7 +243,7 @@ For more information about alerts, please see our [User Guide](https://sendgrid. } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all alerts **This endpoint allows you to retrieve all of your alerts.** @@ -270,7 +270,7 @@ For more information about alerts, please see our [User Guide](https://sendgrid. } catch (IOException ex) { throw ex; } - ``` +``` ## Update an alert **This endpoint allows you to update an alert.** @@ -298,7 +298,7 @@ For more information about alerts, please see our [User Guide](https://sendgrid. } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific alert **This endpoint allows you to retrieve a specific alert.** @@ -325,7 +325,7 @@ For more information about alerts, please see our [User Guide](https://sendgrid. } catch (IOException ex) { throw ex; } - ``` +``` ## Delete an alert **This endpoint allows you to delete an alert.** @@ -352,7 +352,7 @@ For more information about alerts, please see our [User Guide](https://sendgrid. } catch (IOException ex) { throw ex; } - ``` +``` # API KEYS @@ -360,7 +360,7 @@ For more information about alerts, please see our [User Guide](https://sendgrid. **This endpoint allows you to create a new random API Key for the user.** -A JSON request body containing a "name" property is required. If number of maximum keys is reached, HTTP 403 will be returned. +A JSON request body containing a "name" property is required. If the number of maximum keys is reached, HTTP 403 will be returned. There is a limit of 100 API Keys on your account. @@ -385,7 +385,7 @@ See the [API Key Permissions List](https://sendgrid.com/docs/API_Reference/Web_A } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all API Keys belonging to the authenticated user **This endpoint allows you to retrieve all API Keys that belong to the authenticated user.** @@ -409,13 +409,13 @@ The API Keys feature allows customers to be able to generate an API Key credenti } catch (IOException ex) { throw ex; } - ``` +``` ## Update the name & scopes of an API Key **This endpoint allows you to update the name and scopes of a given API key.** A JSON request body with a "name" property is required. -Most provide the list of all the scopes an api key should have. +Most provide the list of all the scopes an API key should have. The API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html). @@ -437,7 +437,7 @@ The API Keys feature allows customers to be able to generate an API Key credenti } catch (IOException ex) { throw ex; } - ``` +``` ## Update API keys **This endpoint allows you to update the name of an existing API Key.** @@ -469,10 +469,10 @@ The API Keys feature allows customers to be able to generate an API Key credenti } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve an existing API Key -**This endpoint allows you to retrieve a single api key.** +**This endpoint allows you to retrieve a single API key.** If the API Key ID does not exist an HTTP 404 will be returned. @@ -492,12 +492,12 @@ If the API Key ID does not exist an HTTP 404 will be returned. } catch (IOException ex) { throw ex; } - ``` +``` ## Delete API keys **This endpoint allows you to revoke an existing API Key.** -Authentications using this API Key will fail after this request is made, with some small propagation delay.If the API Key ID does not exist an HTTP 404 will be returned. +Authentications using this API Key will fail after this request is made, with some small propagation delay. If the API Key ID does not exist an HTTP 404 will be returned. The API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the Twilio SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html). @@ -523,7 +523,7 @@ The API Keys feature allows customers to be able to generate an API Key credenti } catch (IOException ex) { throw ex; } - ``` +``` # ASM @@ -554,7 +554,7 @@ Each user can create up to 25 different suppression groups. } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve information about multiple suppression groups **This endpoint allows you to retrieve information about multiple suppression groups.** @@ -582,7 +582,7 @@ Suppression groups, or [unsubscribe groups](https://sendgrid.com/docs/API_Refere } catch (IOException ex) { throw ex; } - ``` +``` ## Update a suppression group. **This endpoint allows you to update or change a suppression group.** @@ -610,7 +610,7 @@ Each user can create up to 25 different suppression groups. } catch (IOException ex) { throw ex; } - ``` +``` ## Get information on a single suppression group. **This endpoint allows you to retrieve a single suppression group.** @@ -637,7 +637,7 @@ Each user can create up to 25 different suppression groups. } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a suppression group. **This endpoint allows you to delete a suppression group.** @@ -666,7 +666,7 @@ Each user can create up to 25 different suppression groups. } catch (IOException ex) { throw ex; } - ``` +``` ## Add suppressions to a suppression group **This endpoint allows you to add email addresses to an unsubscribe group.** @@ -692,7 +692,7 @@ Suppressions are recipient email addresses that are added to [unsubscribe groups } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all suppressions for a suppression group **This endpoint allows you to retrieve all suppressed email addresses belonging to the given group.** @@ -715,7 +715,7 @@ Suppressions are recipient email addresses that are added to [unsubscribe groups } catch (IOException ex) { throw ex; } - ``` +``` ## Search for suppressions within a group **This endpoint allows you to search a suppression group for multiple suppressions.** @@ -741,7 +741,7 @@ Suppressions are a list of email addresses that will not receive content sent un } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a suppression from a suppression group **This endpoint allows you to remove a suppressed email address from the given suppression group.** @@ -764,7 +764,7 @@ Suppressions are recipient email addresses that are added to [unsubscribe groups } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all suppressions **This endpoint allows you to retrieve a list of all suppressions.** @@ -787,7 +787,7 @@ Suppressions are a list of email addresses that will not receive content sent un } catch (IOException ex) { throw ex; } - ``` +``` ## Add recipient addresses to the global suppression group. **This endpoint allows you to add one or more email addresses to the global suppressions group.** @@ -811,7 +811,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a Global Suppression **This endpoint allows you to retrieve a global suppression. You can also use this endpoint to confirm if an email address is already globally suppressed.** @@ -836,7 +836,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a Global Suppression **This endpoint allows you to remove an email address from the global suppressions group.** @@ -859,7 +859,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all suppression groups for an email address **This endpoint returns the list of all groups that the given email address has been unsubscribed from.** @@ -882,7 +882,7 @@ Suppressions are a list of email addresses that will not receive content sent un } catch (IOException ex) { throw ex; } - ``` +``` # BROWSERS @@ -916,7 +916,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act } catch (IOException ex) { throw ex; } - ``` +``` # CAMPAIGNS @@ -926,7 +926,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act Our Marketing Campaigns API lets you create, manage, send, and schedule campaigns. -Note: In order to send or schedule the campaign, you will be required to provide a subject, sender ID, content (we suggest both html and plain text), and at least one list or segment ID. This information is not required when you create a campaign. +Note: In order to send or schedule the campaign, you will be required to provide a subject, sender ID, content (we suggest both HTML and plain text), and at least one list or segment ID. This information is not required when you create a campaign. For more information: @@ -949,7 +949,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all Campaigns **This endpoint allows you to retrieve a list of all of your campaigns.** @@ -980,7 +980,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Update a Campaign Update a campaign. This is especially useful if you only set up the campaign using POST /campaigns, but didn't set many of the parameters. @@ -1006,7 +1006,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a single campaign **This endpoint allows you to retrieve a specific campaign.** @@ -1033,7 +1033,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a Campaign **This endpoint allows you to delete a specific campaign.** @@ -1060,7 +1060,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Update a Scheduled Campaign **This endpoint allows to you change the scheduled time and date for a campaign to be sent.** @@ -1086,7 +1086,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Schedule a Campaign **This endpoint allows you to schedule a specific date and time for your campaign to be sent.** @@ -1112,7 +1112,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## View Scheduled Time of a Campaign **This endpoint allows you to retrieve the date and time that the given campaign has been scheduled to be sent.** @@ -1137,7 +1137,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Unschedule a Scheduled Campaign **This endpoint allows you to unschedule a campaign that has already been scheduled to be sent.** @@ -1165,7 +1165,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Send a Campaign **This endpoint allows you to immediately send a campaign at the time you make the API call.** @@ -1192,7 +1192,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` ## Send a Test Campaign **This endpoint allows you to send a test campaign.** @@ -1220,7 +1220,7 @@ For more information: } catch (IOException ex) { throw ex; } - ``` +``` # CATEGORIES @@ -1249,7 +1249,7 @@ Categories can help organize your email analytics by enabling you to tag emails } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve Email Statistics for Categories **This endpoint allows you to retrieve all of your email statistics for each of your categories.** @@ -1280,7 +1280,7 @@ Categories allow you to group your emails together according to broad topics tha } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve sums of email stats for each category [Needs: Stats object defined, has category ID?] **This endpoint allows you to retrieve the total sum of each email statistic for every category over the given date range.** @@ -1312,7 +1312,7 @@ Categories allow you to group your emails together according to broad topics tha } catch (IOException ex) { throw ex; } - ``` +``` # CLIENTS @@ -1343,7 +1343,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve stats by a specific client type. **This endpoint allows you to retrieve your email statistics segmented by a specific client type.** @@ -1377,7 +1377,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act } catch (IOException ex) { throw ex; } - ``` +``` # CONTACTDB @@ -1404,7 +1404,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all custom fields **This endpoint allows you to retrieve all custom fields.** @@ -1427,7 +1427,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a Custom Field **This endpoint allows you to retrieve a custom field by ID.** @@ -1450,7 +1450,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a Custom Field **This endpoint allows you to delete a custom field by ID.** @@ -1473,7 +1473,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Create a List **This endpoint allows you to create a list for your recipients.** @@ -1497,7 +1497,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all lists **This endpoint allows you to retrieve all of your recipient lists. If you don't have any lists, an empty array will be returned.** @@ -1520,7 +1520,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Delete Multiple lists **This endpoint allows you to delete multiple recipient lists.** @@ -1544,7 +1544,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Update a List **This endpoint allows you to update the name of one of your recipient lists.** @@ -1569,7 +1569,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a single list This endpoint allows you to retrieve a single recipient list. @@ -1592,7 +1592,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a List **This endpoint allows you to delete a specific recipient list with the given ID.** @@ -1616,7 +1616,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Add Multiple Recipients to a List **This endpoint allows you to add multiple recipients to a list.** @@ -1642,7 +1642,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all recipients on a List **This endpoint allows you to retrieve all recipients on the list with the given ID.** @@ -1667,7 +1667,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Add a Single Recipient to a List **This endpoint allows you to add a single recipient to a list.** @@ -1690,7 +1690,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a Single Recipient from a Single List **This endpoint allows you to delete a single recipient from a list.** @@ -1714,7 +1714,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Update Recipient **This endpoint allows you to update one or more recipients.** @@ -1742,7 +1742,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Add recipients **This endpoint allows you to add a Marketing Campaigns recipient.** @@ -1768,7 +1768,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve recipients **This endpoint allows you to retrieve all of your Marketing Campaigns recipients.** @@ -1796,10 +1796,10 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Delete Recipient -**This endpoint allows you to deletes one or more recipients.** +**This endpoint allows you to delete one or more recipients.** The body of an API call to this endpoint must include an array of recipient IDs of the recipients you want to delete. @@ -1822,7 +1822,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve the count of billable recipients **This endpoint allows you to retrieve the number of Marketing Campaigns recipients that you will be billed for.** @@ -1847,7 +1847,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a Count of Recipients **This endpoint allows you to retrieve the total number of Marketing Campaigns recipients.** @@ -1870,7 +1870,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve recipients matching search criteria **This endpoint allows you to perform a search on all of your Marketing Campaigns recipients.** @@ -1878,11 +1878,11 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp field_name: * is a variable that is substituted for your actual custom field name from your recipient. -* Text fields must be url-encoded. Date fields are searchable only by unix timestamp (e.g. 2/2/2015 becomes 1422835200) +* Text fields must be URL-encoded. Date fields are searchable only by Unix timestamp (e.g. 2/2/2015 becomes 1422835200) * If field_name is a 'reserved' date field, such as created_at or updated_at, the system will internally convert -your epoch time to a date range encompassing the entire day. For example, an epoch time of 1422835600 converts to -Mon, 02 Feb 2015 00:06:40 GMT, but internally the system will search from Mon, 02 Feb 2015 00:00:00 GMT through -Mon, 02 Feb 2015 23:59:59 GMT. + your epoch time to a date range encompassing the entire day. For example, an epoch time of 1422835600 converts to + Mon, 02 Feb 2015 00:06:40 GMT, but internally the system will search from Mon, 02 Feb 2015 00:00:00 GMT through + Mon, 02 Feb 2015 23:59:59 GMT. The contactdb is a database of your contacts for [Twilio SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html). @@ -1903,7 +1903,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a single recipient **This endpoint allows you to retrieve a single recipient by ID from your contact database.** @@ -1926,7 +1926,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a Recipient **This endpoint allows you to delete a single recipient with the given ID from your contact database.** @@ -1949,7 +1949,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve the lists that a recipient is on **This endpoint allows you to retrieve the lists that a given recipient belongs to.** @@ -1974,7 +1974,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve reserved fields **This endpoint allows you to list all fields that are reserved and can't be used for custom field names.** @@ -1997,7 +1997,7 @@ The contactdb is a database of your contacts for [Twilio SendGrid Marketing Camp } catch (IOException ex) { throw ex; } - ``` +``` ## Create a Segment **This endpoint allows you to create a segment.** @@ -2041,7 +2041,7 @@ For more information about segments in Marketing Campaigns, please see our [User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all segments **This endpoint allows you to retrieve all of your segments.** @@ -2066,7 +2066,7 @@ For more information about segments in Marketing Campaigns, please see our [User } catch (IOException ex) { throw ex; } - ``` +``` ## Update a segment **This endpoint allows you to update a segment.** @@ -2093,7 +2093,7 @@ For more information about segments in Marketing Campaigns, please see our [User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a segment **This endpoint allows you to retrieve a single segment with the given ID.** @@ -2119,10 +2119,10 @@ For more information about segments in Marketing Campaigns, please see our [User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a segment -**This endpoint allows you to delete a segment from your recipients database.** +**This endpoint allows you to delete a segment from your recipient's database.** You also have the option to delete all the contacts from your Marketing Campaigns recipient database who were in this segment. @@ -2147,7 +2147,7 @@ For more information about segments in Marketing Campaigns, please see our [User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve recipients on a segment **This endpoint allows you to retrieve all of the recipients in a segment with the given ID.** @@ -2174,7 +2174,7 @@ For more information about segments in Marketing Campaigns, please see our [User } catch (IOException ex) { throw ex; } - ``` +``` # DEVICES @@ -2189,8 +2189,8 @@ For more information about segments in Marketing Campaigns, please see our [User |---|---|---| | Desktop | Email software on desktop computer. | I.E., Outlook, Sparrow, or Apple Mail. | | Webmail | A web-based email client. | I.E., Yahoo, Google, AOL, or Outlook.com. | -| Phone | A smart phone. | iPhone, Android, Blackberry, etc. -| Tablet | A tablet computer. | iPad, android based tablet, etc. | +| Phone | A smartphone. | iPhone, Android, Blackberry, etc. +| Tablet | A tablet computer. | iPad, Android based tablet, etc. | | Other | An unrecognized device. | Advanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html). @@ -2216,7 +2216,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act } catch (IOException ex) { throw ex; } - ``` +``` # GEO @@ -2250,7 +2250,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act } catch (IOException ex) { throw ex; } - ``` +``` # IPS @@ -2258,7 +2258,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act **This endpoint allows you to retrieve a list of all assigned and unassigned IPs.** -Response includes warm up status, pools, assigned subusers, and authorization info. The start_date field corresponds to when warmup started for that IP. +The response includes warm-up status, pools, assigned subusers, and authorization info. The start_date field corresponds to when warmup started for that IP. A single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it. @@ -2283,7 +2283,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all assigned IPs **This endpoint allows you to retrieve only assigned IP addresses.** @@ -2306,7 +2306,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in } catch (IOException ex) { throw ex; } - ``` +``` ## Create an IP pool. **This endpoint allows you to create an IP pool.** @@ -2336,7 +2336,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all IP pools. **This endpoint allows you to retrieve all of your IP pools.** @@ -2363,7 +2363,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu } catch (IOException ex) { throw ex; } - ``` +``` ## Update an IP pools name. **This endpoint allows you to update the name of an IP pool.** @@ -2391,7 +2391,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all IPs in a specified pool. **This endpoint allows you to list all of the IP addresses that are in a specific IP pool.** @@ -2418,7 +2418,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu } catch (IOException ex) { throw ex; } - ``` +``` ## Delete an IP pool. **This endpoint allows you to delete an IP pool.** @@ -2445,7 +2445,7 @@ If an IP pool is NOT specified for an email, it will use any IP available, inclu } catch (IOException ex) { throw ex; } - ``` +``` ## Add an IP address to a pool **This endpoint allows you to add an IP address to an IP pool.** @@ -2471,7 +2471,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in } catch (IOException ex) { throw ex; } - ``` +``` ## Remove an IP address from a pool. **This endpoint allows you to remove an IP address from an IP pool.** @@ -2496,8 +2496,8 @@ A single IP address or a range of IP addresses may be dedicated to an account in } catch (IOException ex) { throw ex; } - ``` -## Add an IP to warmup +``` +## Add an IP to warm up **This endpoint allows you to enter an IP address into warmup mode.** @@ -2522,7 +2522,7 @@ For more general information about warming up IPs, please see our [Classroom](ht } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all IPs currently in warmup **This endpoint allows you to retrieve all of your IP addresses that are currently warming up.** @@ -2547,7 +2547,7 @@ For more general information about warming up IPs, please see our [Classroom](ht } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve warmup status for a specific IP address **This endpoint allows you to retrieve the warmup status for a specific IP address.** @@ -2572,7 +2572,7 @@ For more general information about warming up IPs, please see our [Classroom](ht } catch (IOException ex) { throw ex; } - ``` +``` ## Remove an IP from warmup **This endpoint allows you to remove an IP address from warmup mode.** @@ -2597,7 +2597,7 @@ For more general information about warming up IPs, please see our [Classroom](ht } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all IP pools an IP address belongs to **This endpoint allows you to see which IP pools a particular IP address has been added to.** @@ -2622,7 +2622,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in } catch (IOException ex) { throw ex; } - ``` +``` # MAIL @@ -2630,7 +2630,7 @@ A single IP address or a range of IP addresses may be dedicated to an account in **This endpoint allows you to generate a new batch ID. This batch ID can be associated with scheduled sends via the mail/send endpoint.** -If you set the SMTPAPI header `batch_id`, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at anytime up to 10 minutes before the schedule date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint. +If you set the SMTPAPI header, `batch_id`, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at any time up to 10 minutes before the scheduled date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint. More Information: @@ -2652,12 +2652,12 @@ More Information: } catch (IOException ex) { throw ex; } - ``` +``` ## Validate batch ID **This endpoint allows you to validate a batch ID.** -If you set the SMTPAPI header `batch_id`, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at anytime up to 10 minutes before the schedule date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint. +If you set the SMTPAPI header, `batch_id`, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at any time up to 10 minutes before the scheduled date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint. More Information: @@ -2679,10 +2679,10 @@ More Information: } catch (IOException ex) { throw ex; } - ``` +``` ## v3 Mail Send -This endpoint allows you to send email over Twilio SendGrid's v3 Web API, the most recent version of our API. If you are looking for documentation about the v2 Mail Send endpoint, please see our [v2 API Reference](https://sendgrid.com/docs/API_Reference/Web_API/mail.html). +This endpoint allows you to send an email over Twilio SendGrid's v3 Web API, the most recent version of our API. If you are looking for documentation about the v2 Mail Send endpoint, please see our [v2 API Reference](https://sendgrid.com/docs/API_Reference/Web_API/mail.html). * Top level parameters are referred to as "global". * Individual fields within the personalizations array will override any other global, or message level, parameters that are defined outside of personalizations. @@ -2709,7 +2709,7 @@ This endpoint has a helper, check it out [here](src/main/java/com/sendgrid/helpe } catch (IOException ex) { throw ex; } - ``` +``` # MAIL SETTINGS @@ -2737,7 +2737,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update address whitelist mail settings **This endpoint allows you to update your current email address whitelist settings.** @@ -2763,7 +2763,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve address whitelist mail settings **This endpoint allows you to retrieve your current email address whitelist settings.** @@ -2788,12 +2788,12 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update BCC mail settings **This endpoint allows you to update your current BCC mail settings.** -When the BCC mail setting is enabled, Twilio SendGrid will automatically send a blind carbon copy (BCC) to an address for every email sent without adding that address to the header. Please note that only one email address may be entered in this field, if you wish to distribute BCCs to multiple addresses you will need to create a distribution group or use forwarding rules. +When the BCC mail setting is enabled, Twilio SendGrid will automatically send a blind carbon copy (BCC) to an address for every email sent without adding that address to the header. Please note that only one email address may be entered in this field if you wish to distribute BCCs to multiple addresses you will need to create a distribution group or use forwarding rules. Mail settings allow you to tell Twilio SendGrid specific things to do to every email that you send to your recipients over Twilio SendGrid's [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html). @@ -2814,12 +2814,12 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all BCC mail settings **This endpoint allows you to retrieve your current BCC mail settings.** -When the BCC mail setting is enabled, Twilio SendGrid will automatically send a blind carbon copy (BCC) to an address for every email sent without adding that address to the header. Please note that only one email address may be entered in this field, if you wish to distribute BCCs to multiple addresses you will need to create a distribution group or use forwarding rules. +When the BCC mail setting is enabled, Twilio SendGrid will automatically send a blind carbon copy (BCC) to an address for every email sent without adding that address to the header. Please note that only one email address may be entered in this field if you wish to distribute BCCs to multiple addresses you will need to create a distribution group or use forwarding rules. Mail settings allow you to tell Twilio SendGrid specific things to do to every email that you send to your recipients over Twilio SendGrid's [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html). @@ -2839,7 +2839,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update bounce purge mail settings **This endpoint allows you to update your current bounce purge settings.** @@ -2865,7 +2865,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve bounce purge mail settings **This endpoint allows you to retrieve your current bounce purge settings.** @@ -2890,7 +2890,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update footer mail settings **This endpoint allows you to update your current Footer mail settings.** @@ -2916,7 +2916,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve footer mail settings **This endpoint allows you to retrieve your current Footer mail settings.** @@ -2941,7 +2941,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update forward bounce mail settings **This endpoint allows you to update your current bounce forwarding mail settings.** @@ -2967,7 +2967,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve forward bounce mail settings **This endpoint allows you to retrieve your current bounce forwarding mail settings.** @@ -2992,7 +2992,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update forward spam mail settings **This endpoint allows you to update your current Forward Spam mail settings.** @@ -3018,7 +3018,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve forward spam mail settings **This endpoint allows you to retrieve your current Forward Spam mail settings.** @@ -3043,7 +3043,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update plain content mail settings **This endpoint allows you to update your current Plain Content mail settings.** @@ -3069,7 +3069,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve plain content mail settings **This endpoint allows you to retrieve your current Plain Content mail settings.** @@ -3094,7 +3094,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update spam check mail settings **This endpoint allows you to update your current spam checker mail settings.** @@ -3120,7 +3120,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve spam check mail settings **This endpoint allows you to retrieve your current Spam Checker mail settings.** @@ -3145,7 +3145,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Update template mail settings **This endpoint allows you to update your current legacy email template settings.** @@ -3173,7 +3173,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve legacy template mail settings **This endpoint allows you to retrieve your current legacy email template settings.** @@ -3200,7 +3200,7 @@ Mail settings allow you to tell Twilio SendGrid specific things to do to every e } catch (IOException ex) { throw ex; } - ``` +``` # MAILBOX PROVIDERS @@ -3234,7 +3234,7 @@ Advanced Stats provide a more in-depth view of your email statistics and the act } catch (IOException ex) { throw ex; } - ``` +``` # PARTNER SETTINGS @@ -3262,7 +3262,7 @@ Our partner settings allow you to integrate your Twilio SendGrid account with ou } catch (IOException ex) { throw ex; } - ``` +``` ## Updates New Relic partner settings. **This endpoint allows you to update or change your New Relic partner settings.** @@ -3288,7 +3288,7 @@ By integrating with New Relic, you can send your Twilio SendGrid email statistic } catch (IOException ex) { throw ex; } - ``` +``` ## Returns all New Relic partner settings. **This endpoint allows you to retrieve your current New Relic partner settings.** @@ -3313,7 +3313,7 @@ By integrating with New Relic, you can send your Twilio SendGrid email statistic } catch (IOException ex) { throw ex; } - ``` +``` # SCOPES @@ -3339,7 +3339,7 @@ API Keys can be used to authenticate the use of [Twilio SendGrid's v3 Web API](h } catch (IOException ex) { throw ex; } - ``` +``` # SENDERS @@ -3349,7 +3349,7 @@ API Keys can be used to authenticate the use of [Twilio SendGrid's v3 Web API](h *You may create up to 100 unique sender identities.* -Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise, an email will be sent to the `from.email`. ### POST /senders @@ -3368,12 +3368,12 @@ Sender Identities are required to be verified before use. If your domain has bee } catch (IOException ex) { throw ex; } - ``` +``` ## Get all Sender Identities **This endpoint allows you to retrieve a list of all sender identities that have been created for your account.** -Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise, an email will be sent to the `from.email`. ### GET /senders @@ -3391,12 +3391,12 @@ Sender Identities are required to be verified before use. If your domain has bee } catch (IOException ex) { throw ex; } - ``` +``` ## Update a Sender Identity **This endpoint allows you to update a sender identity.** -Updates to `from.email` require re-verification. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Updates to `from.email` require re-verification. If your domain has been authorized, it will auto verify on creation. Otherwise, an email will be sent to the `from.email`. Partial updates are allowed, but fields that are marked as "required" in the POST (create) endpoint must not be nil if that field is included in the PATCH request. @@ -3417,12 +3417,12 @@ Partial updates are allowed, but fields that are marked as "required" in the POS } catch (IOException ex) { throw ex; } - ``` +``` ## View a Sender Identity **This endpoint allows you to retrieve a specific sender identity.** -Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise, an email will be sent to the `from.email`. ### GET /senders/{sender_id} @@ -3440,12 +3440,12 @@ Sender Identities are required to be verified before use. If your domain has bee } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a Sender Identity **This endpoint allows you to delete one of your sender identities.** -Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise, an email will be sent to the `from.email`. ### DELETE /senders/{sender_id} @@ -3463,12 +3463,12 @@ Sender Identities are required to be verified before use. If your domain has bee } catch (IOException ex) { throw ex; } - ``` +``` ## Resend Sender Identity Verification **This endpoint allows you to resend a sender identity verification email.** -Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise an email will be sent to the `from.email`. +Sender Identities are required to be verified before use. If your domain has been authorized, it will auto verify on creation. Otherwise, an email will be sent to the `from.email`. ### POST /senders/{sender_id}/resend_verification @@ -3486,7 +3486,7 @@ Sender Identities are required to be verified before use. If your domain has bee } catch (IOException ex) { throw ex; } - ``` +``` # SENDER AUTHENTICATION @@ -4288,7 +4288,7 @@ Parent accounts will see aggregated stats for their account and all subuser acco } catch (IOException ex) { throw ex; } - ``` +``` # SUBUSERS @@ -4318,7 +4318,7 @@ For more information about Subusers: } catch (IOException ex) { throw ex; } - ``` +``` ## List all Subusers This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API. @@ -4347,10 +4347,10 @@ For more information about Subusers: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve Subuser Reputations -Subuser sender reputations give a good idea how well a sender is doing with regards to how recipients and recipient servers react to the mail that is being received. When a bounce, spam report, or other negative action happens on a sent email, it will effect your sender rating. +Subuser sender reputations give a good idea how well a sender is doing with regards to how recipients and recipient servers react to the mail that is being received. When a bounce, spam report, or other negative action happens on a sent email, it will affect your sender rating. This endpoint allows you to request the reputations for your subusers. @@ -4371,7 +4371,7 @@ This endpoint allows you to request the reputations for your subusers. } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve email statistics for your subusers. **This endpoint allows you to retrieve the email statistics for the given subusers.** @@ -4404,7 +4404,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve monthly stats for all subusers **This endpoint allows you to retrieve the monthly email statistics for all subusers over the given date range.** @@ -4438,7 +4438,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve the totals for each email statistic metric for all subusers. **This endpoint allows you to retrieve the total sums of each email statistic metric for all subusers over the given date range.** @@ -4471,7 +4471,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ } catch (IOException ex) { throw ex; } - ``` +``` ## Enable/disable a subuser This endpoint allows you to enable or disable a subuser. @@ -4498,7 +4498,7 @@ For more information about Subusers: } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a subuser This endpoint allows you to delete a subuser. This is a permanent action, once deleted a subuser cannot be retrieved. @@ -4524,7 +4524,7 @@ For more information about Subusers: } catch (IOException ex) { throw ex; } - ``` +``` ## Update IPs assigned to a subuser Each subuser should be assigned to an IP address, from which all of this subuser's mail will be sent. Often, this is the same IP as the parent account, but each subuser can have their own, or multiple, IP addresses as well. @@ -4551,7 +4551,7 @@ More information: } catch (IOException ex) { throw ex; } - ``` +``` ## Update Monitor Settings for a subuser Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. @@ -4573,7 +4573,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by } catch (IOException ex) { throw ex; } - ``` +``` ## Create monitor settings Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. @@ -4595,7 +4595,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve monitor settings for a subuser Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. @@ -4616,7 +4616,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by } catch (IOException ex) { throw ex; } - ``` +``` ## Delete monitor settings Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails. @@ -4637,7 +4637,7 @@ Subuser monitor settings allow you to receive a sample of an outgoing message by } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve the monthly email statistics for a single subuser **This endpoint allows you to retrieve the monthly email statistics for a specific subuser.** @@ -4670,7 +4670,7 @@ For more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/ } catch (IOException ex) { throw ex; } - ``` +``` # SUPPRESSION @@ -4702,7 +4702,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete blocks **This endpoint allows you to delete all email addresses on your blocks list.** @@ -4733,7 +4733,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific block **This endpoint allows you to retrieve a specific email address from your blocks list.** @@ -4758,7 +4758,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a specific block **This endpoint allows you to delete a specific email address from your blocks list.** @@ -4783,7 +4783,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all bounces **This endpoint allows you to retrieve all of your bounces.** @@ -4813,7 +4813,7 @@ For more information see: } catch (IOException ex) { throw ex; } - ``` +``` ## Delete bounces **This endpoint allows you to delete all of your bounces. You can also use this endpoint to remove a specific email address from your bounce list.** @@ -4845,7 +4845,7 @@ Note: the `delete_all` and `emails` parameters should be used independently of e } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a Bounce **This endpoint allows you to retrieve a specific bounce for a given email address.** @@ -4874,12 +4874,12 @@ For more information see: } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a bounce **This endpoint allows you to remove an email address from your bounce list.** -Bounces are messages that are returned to the server that sent it. This endpoint allows you to delete a single email addresses from your bounce list. +Bounces are messages that are returned to the server that sent it. This endpoint allows you to delete a single email address from your bounce list. For more information see: @@ -4904,12 +4904,12 @@ For more information see: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all invalid emails **This endpoint allows you to retrieve a list of all invalid email addresses.** -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient's mail server. Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. @@ -4935,7 +4935,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete invalid emails **This endpoint allows you to remove email addresses from your invalid email address list.** @@ -4945,7 +4945,7 @@ There are two options for deleting invalid email addresses: 1) You can delete all invalid email addresses by setting `delete_all` to true in the request body. 2) You can delete some invalid email addresses by specifying certain addresses in an array in the request body. -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient's mail server. Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. @@ -4968,12 +4968,12 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific invalid email **This endpoint allows you to retrieve a specific invalid email addresses.** -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient's mail server. Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. @@ -4995,12 +4995,12 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a specific invalid email **This endpoint allows you to remove a specific email address from the invalid email address list.** -An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipients mail server. +An invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient's mail server. Examples include addresses without the @ sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server. @@ -5022,7 +5022,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific spam report **This endpoint allows you to retrieve a specific spam report.** @@ -5047,7 +5047,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a specific spam report **This endpoint allows you to delete a specific spam report.** @@ -5072,7 +5072,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all spam reports **This endpoint allows you to retrieve all spam reports.** @@ -5101,7 +5101,7 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Delete spam reports **This endpoint allows you to delete your spam reports.** @@ -5132,10 +5132,10 @@ For more information, please see our [User Guide](https://sendgrid.com/docs/User } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all global suppressions -**This endpoint allows you to retrieve a list of all email address that are globally suppressed.** +**This endpoint allows you to retrieve a list of all email addresses that are globally suppressed.** A global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html). @@ -5159,7 +5159,7 @@ A global suppression (or global unsubscribe) is an email address of a recipient } catch (IOException ex) { throw ex; } - ``` +``` # TEMPLATES @@ -5188,7 +5188,7 @@ Transactional templates are templates created specifically for transactional ema } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all transactional templates. **This endpoint allows you to retrieve all transactional templates.** @@ -5213,7 +5213,7 @@ Transactional templates are templates created specifically for transactional ema } catch (IOException ex) { throw ex; } - ``` +``` ## Edit a transactional template. **This endpoint allows you to edit a transactional template.** @@ -5240,7 +5240,7 @@ Transactional templates are templates created specifically for transactional ema } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a single transactional template. **This endpoint allows you to retrieve a single transactional template.** @@ -5266,7 +5266,7 @@ Transactional templates are templates created specifically for transactional ema } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a template. **This endpoint allows you to delete a transactional template.** @@ -5292,7 +5292,7 @@ Transactional templates are templates created specifically for transactional ema } catch (IOException ex) { throw ex; } - ``` +``` ## Create a new transactional template version. **This endpoint allows you to create a new version of a template.** @@ -5319,7 +5319,7 @@ For more information about transactional templates, please see our [User Guide]( } catch (IOException ex) { throw ex; } - ``` +``` ## Edit a transactional template version. **This endpoint allows you to edit a version of one of your transactional templates.** @@ -5351,7 +5351,7 @@ For more information about transactional templates, please see our [User Guide]( } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific transactional template version. **This endpoint allows you to retrieve a specific version of a template.** @@ -5382,7 +5382,7 @@ For more information about transactional templates, please see our [User Guide]( } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a transactional template version. **This endpoint allows you to delete one of your transactional template versions.** @@ -5413,7 +5413,7 @@ For more information about transactional templates, please see our [User Guide]( } catch (IOException ex) { throw ex; } - ``` +``` ## Activate a transactional template version. **This endpoint allows you to activate a version of one of your templates.** @@ -5445,7 +5445,7 @@ For more information about transactional templates, please see our [User Guide]( } catch (IOException ex) { throw ex; } - ``` +``` # TRACKING SETTINGS @@ -5475,7 +5475,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Update Click Tracking Settings **This endpoint allows you to change your current click tracking setting. You can enable, or disable, click tracking using this endpoint.** @@ -5501,7 +5501,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve Click Track Settings **This endpoint allows you to retrieve your current click tracking setting.** @@ -5526,7 +5526,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Update Google Analytics Settings **This endpoint allows you to update your current setting for Google Analytics.** @@ -5556,7 +5556,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve Google Analytics Settings **This endpoint allows you to retrieve your current setting for Google Analytics.** @@ -5585,7 +5585,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Update Open Tracking Settings **This endpoint allows you to update your current settings for open tracking.** @@ -5613,7 +5613,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Get Open Tracking Settings **This endpoint allows you to retrieve your current settings for open tracking.** @@ -5640,7 +5640,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Update Subscription Tracking Settings **This endpoint allows you to update your current settings for subscription tracking.** @@ -5668,7 +5668,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve Subscription Tracking Settings **This endpoint allows you to retrieve your current settings for subscription tracking.** @@ -5695,7 +5695,7 @@ For more information about tracking, please see our [User Guide](https://sendgri } catch (IOException ex) { throw ex; } - ``` +``` # USER @@ -5727,7 +5727,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve your credit balance **This endpoint allows you to retrieve the current credit balance for your account.** @@ -5750,7 +5750,7 @@ Your monthly credit allotment limits the number of emails you may send before in } catch (IOException ex) { throw ex; } - ``` +``` ## Update your account email address **This endpoint allows you to update the email address currently on file for your account.** @@ -5778,7 +5778,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve your account email address **This endpoint allows you to retrieve the email address currently on file for your account.** @@ -5805,7 +5805,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Update your password **This endpoint allows you to update your password.** @@ -5833,7 +5833,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Update a user's profile **This endpoint allows you to update your current profile details.** @@ -5863,7 +5863,7 @@ It should be noted that any one or more of the parameters can be updated via the } catch (IOException ex) { throw ex; } - ``` +``` ## Get a user's profile Keeping your user profile up to date is important. This will help Twilio SendGrid to verify who you are as well as contact you should we need to. @@ -5888,7 +5888,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Cancel or pause a scheduled send **This endpoint allows you to cancel or pause an email that has been scheduled to be sent.** @@ -5896,7 +5896,7 @@ For more information about your user profile: If the maximum number of cancellations/pauses are added, HTTP 400 will be returned. -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends canceled less than 10 minutes before the scheduled time are not guaranteed to be canceled. ### POST /user/scheduled_sends @@ -5915,12 +5915,12 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all scheduled sends **This endpoint allows you to retrieve all cancel/paused scheduled send information.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends canceled less than 10 minutes before the scheduled time are not guaranteed to be canceled. ### GET /user/scheduled_sends @@ -5938,12 +5938,12 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen } catch (IOException ex) { throw ex; } - ``` +``` ## Update user scheduled send information **This endpoint allows you to update the status of a scheduled send for the given `batch_id`.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends canceled less than 10 minutes before the scheduled time are not guaranteed to be canceled. ### PATCH /user/scheduled_sends/{batch_id} @@ -5962,12 +5962,12 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve scheduled send **This endpoint allows you to retrieve the cancel/paused scheduled send information for a specific `batch_id`.** -The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled. +The Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header.Scheduled sends canceled less than 10 minutes before the scheduled time are not guaranteed to be canceled. ### GET /user/scheduled_sends/{batch_id} @@ -5985,7 +5985,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a cancellation or pause of a scheduled send **This endpoint allows you to delete the cancellation/pause of a scheduled send.** @@ -6008,7 +6008,7 @@ The Cancel Scheduled Sends feature allows the customer to cancel a scheduled sen } catch (IOException ex) { throw ex; } - ``` +``` ## Update Enforced TLS settings **This endpoint allows you to update your current Enforced TLS settings.** @@ -6034,7 +6034,7 @@ The Enforced TLS settings specify whether or not the recipient is required to su } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve current Enforced TLS settings. **This endpoint allows you to retrieve your current Enforced TLS settings.** @@ -6059,7 +6059,7 @@ The Enforced TLS settings specify whether or not the recipient is required to su } catch (IOException ex) { throw ex; } - ``` +``` ## Update your username **This endpoint allows you to update the username for your account.** @@ -6087,7 +6087,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve your username **This endpoint allows you to retrieve your current account username.** @@ -6114,7 +6114,7 @@ For more information about your user profile: } catch (IOException ex) { throw ex; } - ``` +``` ## Update Event Notification Settings **This endpoint allows you to update your current event webhook settings.** @@ -6142,7 +6142,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve Event Webhook settings **This endpoint allows you to retrieve your current event webhook settings.** @@ -6169,7 +6169,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete } catch (IOException ex) { throw ex; } - ``` +``` ## Test Event Notification Settings **This endpoint allows you to test your event webhook by sending a fake event notification post to the provided URL.** @@ -6195,7 +6195,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete } catch (IOException ex) { throw ex; } - ``` +``` ## Create a parse setting **This endpoint allows you to create a new inbound parse setting.** @@ -6219,7 +6219,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve all parse settings **This endpoint allows you to retrieve all of your current inbound parse settings.** @@ -6242,7 +6242,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting } catch (IOException ex) { throw ex; } - ``` +``` ## Update a parse setting **This endpoint allows you to update a specific inbound parse setting.** @@ -6266,7 +6266,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieve a specific parse setting **This endpoint allows you to retrieve a specific inbound parse setting.** @@ -6289,7 +6289,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting } catch (IOException ex) { throw ex; } - ``` +``` ## Delete a parse setting **This endpoint allows you to delete a specific inbound parse setting.** @@ -6312,7 +6312,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting } catch (IOException ex) { throw ex; } - ``` +``` ## Retrieves Inbound Parse Webhook statistics. **This endpoint allows you to retrieve the statistics for your Parse Webhook usage.** @@ -6342,4 +6342,4 @@ There are a number of pre-made integrations for the Twilio SendGrid Parse Webhoo } catch (IOException ex) { throw ex; } - ``` +``` diff --git a/USE_CASES.md b/USE_CASES.md index 5af8f674..e2afdb41 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -1,4 +1,4 @@ -This documentation provides examples for specific use cases. Please [open an issue](https://github.com/sendgrid/sendgrid-java/issues) or make a pull request for any use cases you would like us to document here. Thank you! +This document provides examples for specific use cases. Please [open an issue](https://github.com/sendgrid/sendgrid-java/issues) or make a pull request for any use cases you would like us to document here. Thank you! # Use Cases @@ -223,7 +223,7 @@ public class Example { # How to Setup a Domain Authentication -You can find documentation for how to setup a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](USAGE.md#sender-authentication). +You can find documentation for how to set up a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](USAGE.md#sender-authentication). Find more information about all of Twilio SendGrid's authentication related documentation [here](https://sendgrid.com/docs/ui/account-and-settings/). From 36707b71f6ef9c9f9b6a08f86862f40d4ddae028 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Fri, 28 Aug 2020 14:45:36 -0700 Subject: [PATCH 164/288] chore: move encrypted tokens to environment variables --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff279202..54e0417b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,5 +23,4 @@ notifications: on_pull_requests: false on_success: never on_failure: change - rooms: - - secure: q2SEemDXFLu/2G2I7oD02+YsM5Q0G27j+b4P1BcReWqVHhRz9L+iyuYWhIXJ6hW0omL5V2XrZ65uqb4f/SD7b89oXRGToVxfykrBzcas1tqIIp9lldd1u2eMc59zALX4nkTlE0T4UFLwEvoeY8aXoD/dNytSy6M2F5c2nYcmoN0= + rooms: $SLACK_TOKEN From ae6ee304cfe197b3002fef1e14ef1241734dfc16 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Tue, 1 Sep 2020 13:23:02 -0700 Subject: [PATCH 165/288] Revert "chore: move encrypted tokens to environment variables" This reverts commit 36707b71 --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 54e0417b..ff279202 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,4 +23,5 @@ notifications: on_pull_requests: false on_success: never on_failure: change - rooms: $SLACK_TOKEN + rooms: + - secure: q2SEemDXFLu/2G2I7oD02+YsM5Q0G27j+b4P1BcReWqVHhRz9L+iyuYWhIXJ6hW0omL5V2XrZ65uqb4f/SD7b89oXRGToVxfykrBzcas1tqIIp9lldd1u2eMc59zALX4nkTlE0T4UFLwEvoeY8aXoD/dNytSy6M2F5c2nYcmoN0= From 47783ddd1ec52004ce45697a00163b2ac37cf1a1 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 16 Sep 2020 19:52:57 +0000 Subject: [PATCH 166/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0728a93f..cc4e2420 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-09-16] Version 4.6.5 +-------------------------- +**Library - Docs** +- [PR #477](https://github.com/sendgrid/sendgrid-java/pull/477): Run *.md documents through Grammer.ly. Thanks to [@vinird](https://github.com/vinird)! + + [2020-08-19] Version 4.6.4 -------------------------- **Library - Docs** From ad48e143c827e981402a3d14ac4449eb84575402 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 16 Sep 2020 20:09:04 +0000 Subject: [PATCH 167/288] Release 4.6.5 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbfb552d..12132145 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.4/sendgrid-4.6.4-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.4/sendgrid-4.6.4-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.5/sendgrid-4.6.5-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.5/sendgrid-4.6.5-jar.jar:. Example ``` diff --git a/README.md b/README.md index e71eb696..c0189b90 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.6.4.** +**The default branch name for this repository has been changed to `main` as of 4.6.5.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.4 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.5 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.4' + implementation 'com.sendgrid:sendgrid-java:4.6.5' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.4/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.5/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index a5498ec4..5b750743 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.4 + 4.6.5 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.4 + 4.6.5 @@ -286,7 +286,7 @@ com.sendgrid java-http-client - 4.3.5 + 4.3.6 com.fasterxml.jackson.core diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 9758f5d8..f122f3e3 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.4"; + private static final String VERSION = "4.6.5"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 1092fd07..d19796fd 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.4"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.5"); } @Test From 099373157b22525065fe6c7301f297ca90d24f5f Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Thu, 17 Sep 2020 16:51:43 -0500 Subject: [PATCH 168/288] fix: update the eventwebhook sample data, example, tests, and byte handling (#649) --- examples/helpers/eventwebhook/Example.java | 56 +++++--- .../helpers/eventwebhook/EventWebhook.java | 52 +++++--- .../eventwebhook/EventWebhookTest.java | 121 ++++++++++++++++-- 3 files changed, 185 insertions(+), 44 deletions(-) diff --git a/examples/helpers/eventwebhook/Example.java b/examples/helpers/eventwebhook/Example.java index 786d5902..6077736a 100644 --- a/examples/helpers/eventwebhook/Example.java +++ b/examples/helpers/eventwebhook/Example.java @@ -1,27 +1,49 @@ import com.sendgrid.helpers.eventwebhook.EventWebhook; -import java.security.PublicKey; +import com.sendgrid.helpers.eventwebhook.EventWebhookHeader; +import com.twilio.security.RequestValidator; +import com.twilio.twiml.MessagingResponse; +import com.twilio.twiml.messaging.Body; +import com.twilio.twiml.messaging.Message; +import org.bouncycastle.jce.provider.BouncyCastleProvider; +import spark.Route; + import java.security.Security; import java.security.interfaces.ECPublicKey; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.bouncycastle.jce.provider.BouncyCastleProvider; +import java.util.HashMap; +import java.util.Map; -public class Example { +import static spark.Spark.post; +public class Example { public static void main(String[] args) { Security.addProvider(new BouncyCastleProvider()); - try { - String publicKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEDr2LjtURuePQzplybdC+u4CwrqDqBaWjcMMsTbhdbcwHBcepxo7yAQGhHPTnlvFYPAZFceEu/1FwCM/QmGUhA=="; - String payload = "{\"category\":\"example_payload\",\"event\":\"test_event\",\"message_id\":\"message_id\"}"; - String signature = "MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH2j/0="; - String timestamp = "1588788367"; - EventWebhook ew = new EventWebhook(); - ECPublicKey ellipticCurvePublicKey = ew.ConvertPublicKeyToECDSA(publicKey); - boolean valid = ew.VerifySignature(ellipticCurvePublicKey, payload, signature, timestamp); - System.out.println("Valid Signature: " + valid); - } catch (Exception exception) { - Logger.getLogger(Example.class.getName()).log(Level.SEVERE, "something went wrong", exception); - } + final Route webhookHandler = (req, res) -> { + try { + final String publicKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE83T4O/n84iotIvIW4mdBgQ/7dAfSmpqIM8kF9mN1flpVKS3GRqe62gw+2fNNRaINXvVpiglSI8eNEc6wEA3F+g=="; + + final String signature = req.headers(EventWebhookHeader.SIGNATURE.toString()); + final String timestamp = req.headers(EventWebhookHeader.TIMESTAMP.toString()); + final byte[] requestBody = req.bodyAsBytes(); + + final EventWebhook ew = new EventWebhook(); + final ECPublicKey ellipticCurvePublicKey = ew.ConvertPublicKeyToECDSA(publicKey); + final boolean valid = ew.VerifySignature(ellipticCurvePublicKey, requestBody, signature, timestamp); + System.out.println("Valid Signature: " + valid); + + if (valid) { + res.status(204); + } else { + res.status(403); + } + + return null; + } catch (final Exception exception) { + res.status(500); + return exception.toString(); + } + }; + + post("/sendgrid/webhook", webhookHandler); } } diff --git a/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java b/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java index 6e52bd38..0898133b 100644 --- a/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java +++ b/src/main/java/com/sendgrid/helpers/eventwebhook/EventWebhook.java @@ -1,11 +1,8 @@ package com.sendgrid.helpers.eventwebhook; -import java.security.InvalidKeyException; -import java.security.KeyFactory; -import java.security.NoSuchAlgorithmException; -import java.security.NoSuchProviderException; -import java.security.Signature; -import java.security.SignatureException; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.security.*; import java.security.interfaces.ECPublicKey; import java.security.spec.InvalidKeySpecException; import java.security.spec.X509EncodedKeySpec; @@ -19,7 +16,7 @@ public class EventWebhook { /** * Convert the public key string to a ECPublicKey. - * + * * @param publicKey: verification key under Mail Settings * @return a public key using the ECDSA algorithm * @throws NoSuchAlgorithmException @@ -27,17 +24,18 @@ public class EventWebhook { * @throws InvalidKeySpecException */ public java.security.interfaces.ECPublicKey ConvertPublicKeyToECDSA(String publicKey) - throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException { + throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException { byte[] publicKeyInBytes = Base64.getDecoder().decode(publicKey); KeyFactory factory = KeyFactory.getInstance("ECDSA", "BC"); return (ECPublicKey) factory.generatePublic(new X509EncodedKeySpec(publicKeyInBytes)); } + /** * Verify signed event webhook requests. - * + * * @param publicKey: elliptic curve public key - * @param payload: event payload in the request body + * @param payload: event payload string in the request body * @param signature: value obtained from the * 'X-Twilio-Email-Event-Webhook-Signature' header * @param timestamp: value obtained from the @@ -47,20 +45,44 @@ public java.security.interfaces.ECPublicKey ConvertPublicKeyToECDSA(String publi * @throws NoSuchProviderException * @throws InvalidKeyException * @throws SignatureException + * @throws IOException */ public boolean VerifySignature(ECPublicKey publicKey, String payload, String signature, String timestamp) - throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException { + throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException, IOException { + return VerifySignature(publicKey, payload.getBytes(), signature, timestamp); + } + + /** + * Verify signed event webhook requests. + * + * @param publicKey: elliptic curve public key + * @param payload: event payload bytes in the request body + * @param signature: value obtained from the + * 'X-Twilio-Email-Event-Webhook-Signature' header + * @param timestamp: value obtained from the + * 'X-Twilio-Email-Event-Webhook-Timestamp' header + * @return true or false if signature is valid + * @throws NoSuchAlgorithmException + * @throws NoSuchProviderException + * @throws InvalidKeyException + * @throws SignatureException + * @throws IOException + */ + public boolean VerifySignature(ECPublicKey publicKey, byte[] payload, String signature, String timestamp) + throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException, IOException { // prepend the payload with the timestamp - String payloadWithTimestamp = timestamp + payload; + final ByteArrayOutputStream payloadWithTimestamp = new ByteArrayOutputStream(); + payloadWithTimestamp.write(timestamp.getBytes()); + payloadWithTimestamp.write(payload); // create the signature object - Signature signatureObject = Signature.getInstance("SHA256withECDSA", "BC"); + final Signature signatureObject = Signature.getInstance("SHA256withECDSA", "BC"); signatureObject.initVerify(publicKey); - signatureObject.update(payloadWithTimestamp.getBytes()); + signatureObject.update(payloadWithTimestamp.toByteArray()); // decode the signature - byte[] signatureInBytes = Base64.getDecoder().decode(signature); + final byte[] signatureInBytes = Base64.getDecoder().decode(signature); // verify the signature return signatureObject.verify(signatureInBytes); diff --git a/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java b/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java index 434201bb..d73cedbc 100644 --- a/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java +++ b/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java @@ -1,27 +1,124 @@ package com.sendgrid.helpers.eventwebhook; -import java.security.Security; -import java.security.interfaces.ECPublicKey; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.junit.Assert; +import org.junit.BeforeClass; import org.junit.Test; +import java.security.Security; +import java.security.interfaces.ECPublicKey; +import java.util.Collections; +import java.util.List; + public class EventWebhookTest { + private static class Event { + public Event(final String email, + final String event, + final String reason, + final String sgEventId, + final String sgMessageId, + final String smtpId, + final long timestamp) { + this.email = email; + this.event = event; + this.reason = reason; + this.sgEventId = sgEventId; + this.sgMessageId = sgMessageId; + this.smtpId = smtpId; + this.timestamp = timestamp; + } + + public String email; + public String event; + public String reason; + @JsonProperty("sg_event_id") + public String sgEventId; + @JsonProperty("sg_message_id") + public String sgMessageId; + @JsonProperty("smtp-id") + public String smtpId; + @JsonProperty("timestamp") + public long timestamp; + } + + private static final String PUBLIC_KEY = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE83T4O/n84iotIvIW4mdBgQ/7dAfSmpqIM8kF9mN1flpVKS3GRqe62gw+2fNNRaINXvVpiglSI8eNEc6wEA3F+g=="; + private static final String SIGNATURE = "MEUCIGHQVtGj+Y3LkG9fLcxf3qfI10QysgDWmMOVmxG0u6ZUAiEAyBiXDWzM+uOe5W0JuG+luQAbPIqHh89M15TluLtEZtM="; + private static final String TIMESTAMP = "1600112502"; + private static final List EVENTS = Collections.singletonList(new Event( + "hello@world.com", + "dropped", + "Bounced Address", + "ZHJvcC0xMDk5NDkxOS1MUnpYbF9OSFN0T0doUTRrb2ZTbV9BLTA", + "LRzXl_NHStOGhQ4kofSm_A.filterdrecv-p3mdw1-756b745b58-kmzbl-18-5F5FC76C-9.0", + "", + 1600112492)); + + private static String PAYLOAD; + + @BeforeClass + public static void setUp() throws JsonProcessingException { + Security.addProvider(new BouncyCastleProvider()); + + // Be sure to include the trailing carriage return and newline! + PAYLOAD = new ObjectMapper().writeValueAsString(EVENTS) + "\r\n"; + } + @Test public void testVerifySignature() throws Exception { + Assert.assertTrue(verify( + PUBLIC_KEY, + PAYLOAD, + SIGNATURE, + TIMESTAMP + )); + } - Security.addProvider(new BouncyCastleProvider()); + @Test + public void testBadKey() throws Exception { + Assert.assertFalse(verify( + "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEqTxd43gyp8IOEto2LdIfjRQrIbsd4SXZkLW6jDutdhXSJCWHw8REntlo7aNDthvj+y7GjUuFDb/R1NGe1OPzpA==", + PAYLOAD, + SIGNATURE, + TIMESTAMP + )); + } + + @Test + public void testBadPayload() throws Exception { + Assert.assertFalse(verify( + PUBLIC_KEY, + "payload", + SIGNATURE, + TIMESTAMP + )); + } - String testPublicKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEDr2LjtURuePQzplybdC+u4CwrqDqBaWjcMMsTbhdbcwHBcepxo7yAQGhHPTnlvFYPAZFceEu/1FwCM/QmGUhA=="; - String testPayload = "{\"category\":\"example_payload\",\"event\":\"test_event\",\"message_id\":\"message_id\"}"; - String testSignature = "MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH2j/0="; - String testTimestamp = "1588788367"; + @Test + public void testBadSignature() throws Exception { + Assert.assertFalse(verify( + PUBLIC_KEY, + PAYLOAD, + "MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH3j/0=", + TIMESTAMP + )); + } - EventWebhook ew = new EventWebhook(); - ECPublicKey ellipticCurvePublicKey = ew.ConvertPublicKeyToECDSA(testPublicKey); - boolean isValidSignature = ew.VerifySignature(ellipticCurvePublicKey, testPayload, testSignature, - testTimestamp); + @Test + public void testBadTimestamp() throws Exception { + Assert.assertFalse(verify( + PUBLIC_KEY, + PAYLOAD, + SIGNATURE, + "timestamp" + )); + } - Assert.assertTrue(isValidSignature); + private boolean verify(final String publicKey, final String payload, final String signature, final String timestamp) throws Exception { + final EventWebhook ew = new EventWebhook(); + final ECPublicKey ellipticCurvePublicKey = ew.ConvertPublicKeyToECDSA(publicKey); + return ew.VerifySignature(ellipticCurvePublicKey, payload, signature, timestamp); } } From 48264f5076fd471571eda309caba7036974a58cf Mon Sep 17 00:00:00 2001 From: Martin Macko Date: Mon, 21 Sep 2020 16:36:37 +0200 Subject: [PATCH 169/288] docs: Update documentation for GET /templates (#504) --- USAGE.md | 1 + examples/templates/templates.java | 1 + 2 files changed, 2 insertions(+) diff --git a/USAGE.md b/USAGE.md index 08487720..6a482cb4 100644 --- a/USAGE.md +++ b/USAGE.md @@ -5206,6 +5206,7 @@ Transactional templates are templates created specifically for transactional ema Request request = new Request(); request.setMethod(Method.GET); request.setEndpoint("templates"); + request.addQueryParam("generations", "legacy,dynamic") Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); diff --git a/examples/templates/templates.java b/examples/templates/templates.java index a16c4bed..4fcf3886 100644 --- a/examples/templates/templates.java +++ b/examples/templates/templates.java @@ -42,6 +42,7 @@ public static void main(String[] args) throws IOException { Request request = new Request(); request.setMethod(Method.GET); request.setEndpoint("templates"); + request.addQueryParam("generations", "legacy,dynamic") Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); From b7de4b605d01df04e0623784e37bdef911a11ebd Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 21 Sep 2020 10:25:30 -0500 Subject: [PATCH 170/288] docs: update legacy/dynamic transactional template doc links --- USE_CASES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/USE_CASES.md b/USE_CASES.md index e2afdb41..20e9906e 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -14,7 +14,7 @@ This document provides examples for specific use cases. Please [open an issue](h # Transactional Templates -For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html) in the UI or via the API. Following is the template content we used for testing. +For this example, we assume you have created a [dynamic transactional template](https://sendgrid.com/docs/ui/sending-email/how-to-send-an-email-with-dynamic-transactional-templates/) in the UI or via the API. Following is the template content we used for testing. Template ID (replace with your own): @@ -114,7 +114,7 @@ public class Example { # Legacy Templates -For this example, we assume you have created a [legacy template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. +For this example, we assume you have created a [legacy transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html) in the UI or via the API. Following is the template content we used for testing. Template ID (replace with your own): From 5c0f717933d748f4829c12193ba9236fb1e40262 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 28 Sep 2020 20:13:08 +0000 Subject: [PATCH 171/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc4e2420..22a4f43b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-09-28] Version 4.6.6 +-------------------------- +**Library - Docs** +- [PR #504](https://github.com/sendgrid/sendgrid-java/pull/504): Update documentation for GET /templates. Thanks to [@LinkedList](https://github.com/LinkedList)! + +**Library - Fix** +- [PR #649](https://github.com/sendgrid/sendgrid-java/pull/649): update the eventwebhook sample data, example, tests, and byte handling. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + + [2020-09-16] Version 4.6.5 -------------------------- **Library - Docs** From 1eb78b1ed660ef7ef3f70407929573ffef3d8fa5 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 28 Sep 2020 20:49:04 +0000 Subject: [PATCH 172/288] Release 4.6.6 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 12132145..8c16dcc8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.5/sendgrid-4.6.5-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.5/sendgrid-4.6.5-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.6/sendgrid-4.6.6-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.6/sendgrid-4.6.6-jar.jar:. Example ``` diff --git a/README.md b/README.md index c0189b90..583f7245 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.6.5.** +**The default branch name for this repository has been changed to `main` as of 4.6.6.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.5 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.6 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.5' + implementation 'com.sendgrid:sendgrid-java:4.6.6' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.5/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.6/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 5b750743..8d26156c 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.5 + 4.6.6 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.5 + 4.6.6 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index f122f3e3..80a8733d 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.5"; + private static final String VERSION = "4.6.6"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index d19796fd..58e8e375 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.5"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.6"); } @Test From 1d838bd97789444079cc0e8e688532e1e57ac7af Mon Sep 17 00:00:00 2001 From: "Julian J. Maurer" Date: Wed, 30 Sep 2020 01:40:04 +0200 Subject: [PATCH 173/288] docs: reorganize examples (#360) --- examples/categories/README.md | 7 ++ .../categories/RetrieveAllCategories.java | 33 +++++++ .../RetrieveStatisticsForCategories.java | 36 ++++++++ .../categories/RetrieveSumsForCategories.java | 38 ++++++++ examples/categories/categories.java | 91 ------------------- 5 files changed, 114 insertions(+), 91 deletions(-) create mode 100644 examples/categories/README.md create mode 100644 examples/categories/RetrieveAllCategories.java create mode 100644 examples/categories/RetrieveStatisticsForCategories.java create mode 100644 examples/categories/RetrieveSumsForCategories.java delete mode 100644 examples/categories/categories.java diff --git a/examples/categories/README.md b/examples/categories/README.md new file mode 100644 index 00000000..4ac50544 --- /dev/null +++ b/examples/categories/README.md @@ -0,0 +1,7 @@ +![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png) + +This folder contains various examples on using the Categories endpoint of SendGrid with Java: + +* [Retrieve all categories (GET /categories)](RetrieveAllCategories.java) +* [Retrieve Email Statistics for Categories (GET /categories/stats)](RetrieveStatisticsForCategories.java) +* [Retrieve sums of email stats for each category (GET /categories/stats/sums)](RetrieveSumsForCategories.java) \ No newline at end of file diff --git a/examples/categories/RetrieveAllCategories.java b/examples/categories/RetrieveAllCategories.java new file mode 100644 index 00000000..aa1ab2b6 --- /dev/null +++ b/examples/categories/RetrieveAllCategories.java @@ -0,0 +1,33 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve all categories +// GET /categories + + +public class RetrieveAllCategories { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("categories"); + request.addQueryParam("category", "test_string"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/categories/RetrieveStatisticsForCategories.java b/examples/categories/RetrieveStatisticsForCategories.java new file mode 100644 index 00000000..b02cf247 --- /dev/null +++ b/examples/categories/RetrieveStatisticsForCategories.java @@ -0,0 +1,36 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve Email Statistics for Categories +// GET /categories/stats + + +public class RetrieveMailStatisticsForCategories { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("categories/stats"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "1"); + request.addQueryParam("offset", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("categories", "test_string"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/categories/RetrieveSumsForCategories.java b/examples/categories/RetrieveSumsForCategories.java new file mode 100644 index 00000000..a82e8e2d --- /dev/null +++ b/examples/categories/RetrieveSumsForCategories.java @@ -0,0 +1,38 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve sums of email stats for each category [Needs: Stats object defined, has category ID?] +// GET /categories/stats/sums + + +public class RetrieveSumsForCategories { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("categories/stats/sums"); + request.addQueryParam("end_date", "2016-04-01"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("limit", "1"); + request.addQueryParam("sort_by_metric", "test_string"); + request.addQueryParam("offset", "1"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("sort_by_direction", "asc"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} + diff --git a/examples/categories/categories.java b/examples/categories/categories.java deleted file mode 100644 index 7ac73822..00000000 --- a/examples/categories/categories.java +++ /dev/null @@ -1,91 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Retrieve all categories -// GET /categories - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("categories"); - request.addQueryParam("category", "test_string"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve Email Statistics for Categories -// GET /categories/stats - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("categories/stats"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("offset", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("categories", "test_string"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve sums of email stats for each category [Needs: Stats object defined, has category ID?] -// GET /categories/stats/sums - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("categories/stats/sums"); - request.addQueryParam("end_date", "2016-04-01"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("limit", "1"); - request.addQueryParam("sort_by_metric", "test_string"); - request.addQueryParam("offset", "1"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("sort_by_direction", "asc"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From afcd7f5bc91b42c5c5a0ea1d35b9ce45cbc197ee Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 14 Oct 2020 18:21:11 +0000 Subject: [PATCH 174/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22a4f43b..4e22590b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-10-14] Version 4.6.7 +-------------------------- +**Library - Docs** +- [PR #360](https://github.com/sendgrid/sendgrid-java/pull/360): reorganize examples. Thanks to [@derjayjay](https://github.com/derjayjay)! + + [2020-09-28] Version 4.6.6 -------------------------- **Library - Docs** From 8db137f058faaf08c700997e9f533be1c3b123ea Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 14 Oct 2020 19:30:28 +0000 Subject: [PATCH 175/288] Release 4.6.7 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8c16dcc8..0ccdb92b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.6/sendgrid-4.6.6-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.6/sendgrid-4.6.6-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.7/sendgrid-4.6.7-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.7/sendgrid-4.6.7-jar.jar:. Example ``` diff --git a/README.md b/README.md index 583f7245..f0fdb548 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.6.6.** +**The default branch name for this repository has been changed to `main` as of 4.6.7.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.6 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.7 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.6' + implementation 'com.sendgrid:sendgrid-java:4.6.7' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.6/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.7/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 8d26156c..37f5c201 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.6 + 4.6.7 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.6 + 4.6.7 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 80a8733d..ebab63ed 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.6"; + private static final String VERSION = "4.6.7"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 58e8e375..f6556e87 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.6"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.7"); } @Test From 1344f938821fc059b9c22f9ceb9d681eaf5779d2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 14 Oct 2020 17:22:48 -0400 Subject: [PATCH 176/288] chore: fix spelling typos (#650) --- CHANGELOG.md | 2 +- FIRST_TIMERS.md | 14 ++++---- USAGE.md | 36 +++++++++---------- USE_CASES.md | 2 +- examples/accesssettings/Example.java | 2 +- examples/ips/RetrieveAllPools.java | 2 +- ...GetEnforedTLS.java => GetEnforcedTLS.java} | 0 examples/user/README.md | 2 +- .../java/com/sendgrid/RateLimitException.java | 2 +- .../java/com/sendgrid/helpers/mail/Mail.java | 6 ++-- .../helpers/AttachmentBuilderTest.java | 6 ++-- 11 files changed, 37 insertions(+), 37 deletions(-) rename examples/user/{GetEnforedTLS.java => GetEnforcedTLS.java} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e22590b..b4779fe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ All notable changes to this project will be documented in this file. [2020-09-16] Version 4.6.5 -------------------------- **Library - Docs** -- [PR #477](https://github.com/sendgrid/sendgrid-java/pull/477): Run *.md documents through Grammer.ly. Thanks to [@vinird](https://github.com/vinird)! +- [PR #477](https://github.com/sendgrid/sendgrid-java/pull/477): Run *.md documents through Grammar.ly. Thanks to [@vinird](https://github.com/vinird)! [2020-08-19] Version 4.6.4 diff --git a/FIRST_TIMERS.md b/FIRST_TIMERS.md index 47cf5425..9db04724 100644 --- a/FIRST_TIMERS.md +++ b/FIRST_TIMERS.md @@ -61,13 +61,13 @@ Before creating a pull request, make sure that you respect the repository's cons * [Node.js SDK](https://github.com/sendgrid/sendgrid-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Java SDK](https://github.com/sendgrid/sendgrid-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Go SDK](https://github.com/sendgrid/sendgrid-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Python STMPAPI Client](https://github.com/sendgrid/smtpapi-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [PHP STMPAPI Client](https://github.com/sendgrid/smtpapi-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [C# STMPAPI Client](https://github.com/sendgrid/smtpapi-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Ruby STMPAPI Client](https://github.com/sendgrid/smtpapi-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Node.js STMPAPI Client](https://github.com/sendgrid/smtpapi-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Java STMPAPI Client](https://github.com/sendgrid/smtpapi-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Go STMPAPI Client](https://github.com/sendgrid/smtpapi-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Python SMTPAPI Client](https://github.com/sendgrid/smtpapi-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [PHP SMTPAPI Client](https://github.com/sendgrid/smtpapi-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [C# SMTPAPI Client](https://github.com/sendgrid/smtpapi-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Ruby SMTPAPI Client](https://github.com/sendgrid/smtpapi-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Node.js SMTPAPI Client](https://github.com/sendgrid/smtpapi-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Java SMTPAPI Client](https://github.com/sendgrid/smtpapi-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) +* [Go SMTPAPI Client](https://github.com/sendgrid/smtpapi-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [Python HTTP Client](https://github.com/sendgrid/python-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [PHP HTTP Client](https://github.com/sendgrid/php-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) * [C# HTTP Client](https://github.com/sendgrid/csharp-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) diff --git a/USAGE.md b/USAGE.md index 6a482cb4..e5b3e1d2 100644 --- a/USAGE.md +++ b/USAGE.md @@ -546,7 +546,7 @@ Each user can create up to 25 different suppression groups. Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("asm/groups"); - request.setBody("{\"is_default\":true,\"description\":\"Suggestions for products our users might like.\",\"name\":\"Product) Suggestions\"}"; + request.setBody("{\"is_default\":true,\"description\":\"Suggestions for products our users might like.\",\"name\":\"Product) Suggestions\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -941,7 +941,7 @@ For more information: Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("campaigns"); - request.setBody("{\"custom_unsubscribe_url\":\"\",\"html_content\":\"

Check out our) spring line!

\",\"list_ids\":[110,124],\"sender_id\":124451,\"subject\":\"New Products for Spring!\",\"plain_content\":\"Check out our spring line!\",\"suppression_group_id\":42,\"title\":\"March Newsletter\",\"segment_ids\":[110],\"categories\":[\"spring line\"],\"ip_pool\":\"marketing\"}"; + request.setBody("{\"custom_unsubscribe_url\":\"\",\"html_content\":\"

Check out our) spring line!

\",\"list_ids\":[110,124],\"sender_id\":124451,\"subject\":\"New Products for Spring!\",\"plain_content\":\"Check out our spring line!\",\"suppression_group_id\":42,\"title\":\"March Newsletter\",\"segment_ids\":[110],\"categories\":[\"spring line\"],\"ip_pool\":\"marketing\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -998,7 +998,7 @@ For more information: Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("campaigns/{campaign_id}"); - request.setBody("{\"html_content\":\"

Check out our summer line!

\",\"subject\":\"New Products for Summer!\",\"title\":\"May Newsletter\",\"categories\":[\"summer line\"],\"plain_content\":\"Check out our summer line!\"}"; + request.setBody("{\"html_content\":\"

Check out our summer line!

\",\"subject\":\"New Products for Summer!\",\"title\":\"May Newsletter\",\"categories\":[\"summer line\"],\"plain_content\":\"Check out our summer line!\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -1760,7 +1760,7 @@ The Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.co Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("contactdb/recipients"); - request.setBody("[{\"age\":25,\"last_name\":\"User\",\"email\":\"example@example.com\",\"first_name\":\"\"},{\"age\":25,\"last)_name\":\"User\",\"email\":\"example2@example.com\",\"first_name\":\"Example\"}]"; + request.setBody("[{\"age\":25,\"last_name\":\"User\",\"email\":\"example@example.com\",\"first_name\":\"\"},{\"age\":25,\"last)_name\":\"User\",\"email\":\"example2@example.com\",\"first_name\":\"Example\"}]"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -2033,7 +2033,7 @@ For more information about segments in Marketing Campaigns, please see our [User Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("contactdb/segments"); - request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and)_or\":\"\",\"value\":\"Miller\"},{\"operator\":\"gt\",\"field\":\"last_clicked\",\"and_or\":\"and\",\"value\":\"01/02/2015\"},{\"operator\":\"eq\",\"field\":\"clicks.campaign_identifier\",\"and_or\":\"or\",\"value\":\"513\"}],\"name\":\"Last Name Miller\",\"list_id\":4}"; + request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and)_or\":\"\",\"value\":\"Miller\"},{\"operator\":\"gt\",\"field\":\"last_clicked\",\"and_or\":\"and\",\"value\":\"01/02/2015\"},{\"operator\":\"eq\",\"field\":\"clicks.campaign_identifier\",\"and_or\":\"or\",\"value\":\"513\"}],\"name\":\"Last Name Miller\",\"list_id\":4}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -2084,7 +2084,7 @@ For more information about segments in Marketing Campaigns, please see our [User Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("contactdb/segments/{segment_id}"); - request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and)_or\":\"\",\"value\":\"Miller\"}],\"name\":\"The Millers\",\"list_id\":5}"; + request.setBody("{\"conditions\":[{\"operator\":\"eq\",\"field\":\"last_name\",\"and)_or\":\"\",\"value\":\"Miller\"}],\"name\":\"The Millers\",\"list_id\":5}"); request.addQueryParam("segment_id", "test_string"); Response response = sg.api(request); System.out.println(response.getStatusCode()); @@ -2701,7 +2701,7 @@ This endpoint has a helper, check it out [here](src/main/java/com/sendgrid/helpe Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("mail/send"); - request.setBody("{\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\")[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"from\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"attachments\":[{\"name\":\"file1\",\"filename\":\"file1.jpg\",\"content\":\"[BASE64 encoded content block here]\",\"disposition\":\"inline\",\"content_id\":\"ii_139db99fdb5c3704\",\"type\":\"jpg\"}],\"personalizations\":[{\"to\":[{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}],\"cc\":[{\"email\":\"jane.doe@example.com\",\"name\":\"Jane Doe\"}],\"bcc\":[{\"email\":\"sam.doe@example.com\",\"name\":\"Sam Doe\"}],\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\"[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"headers\":{\"X-Accept-Language\":\"en\",\"X-Mailer\":\"MyApp\"},\"send_at\":1409348513,\"substitutions\":{\"type\":\"object\",\"id\":\"substitutions\"},\"subject\":\"Hello, World!\"}],\"subject\":\"Hello, World!\",\"ip_pool_name\":\"[YOUR POOL NAME GOES HERE]\",\"content\":[{\"type\":\"text/html\",\"value\":\"

Hello, world!

\"}],\"headers\":{},\"asm\":{\"groups_to_display\":[1,2,3],\"group_id\":1},\"batch_id\":\"[YOUR BATCH ID GOES HERE]\",\"tracking_settings\":{\"subscription_tracking\":{\"text\":\"If you would like to unsubscribe and stop receiving these emails <% click here %>.\",\"enable\":true,\"html\":\"If you would like to unsubscribe and stop receiving these emails <% clickhere %>.\",\"substitution_tag\":\"<%click here%>\"},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"%opentrack\"},\"click_tracking\":{\"enable\":true,\"enable_text\":true},\"ganalytics\":{\"utm_campaign\":\"[NAME OF YOUR REFERRER SOURCE]\",\"enable\":true,\"utm_name\":\"[NAME OF YOUR CAMPAIGN]\",\"utm_term\":\"[IDENTIFY PAID KEYWORDS HERE]\",\"utm_content\":\"[USE THIS SPACE TO DIFFERENTIATE YOUR EMAIL FROM ADS]\",\"utm_medium\":\"[NAME OF YOUR MARKETING MEDIUM e.g. email]\"}},\"mail_settings\":{\"footer\":{\"text\":\"Thanks,/n The Twilio SendGrid Team\",\"enable\":true,\"html\":\"

Thanks
The Twilio SendGrid Team

\"},\"spam_check\":{\"threshold\":3,\"post_to_url\":\"http://example.com/compliance\",\"enable\":true},\"bypass_list_management\":{\"enable\":true},\"sandbox_mode\":{\"enable\":false},\"bcc\":{\"enable\":true,\"email\":\"ben.doe@example.com\"}},\"reply_to\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"sections\":{\"section\":{\":sectionName2\":\"section 2 text\",\":sectionName1\":\"section 1 text\"}},\"template_id\":\"[YOUR TEMPLATE ID GOES HERE]\",\"categories\":[\"category1\",\"category2\"],\"send_at\":1409348513}"; + request.setBody("{\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\")[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"from\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"attachments\":[{\"name\":\"file1\",\"filename\":\"file1.jpg\",\"content\":\"[BASE64 encoded content block here]\",\"disposition\":\"inline\",\"content_id\":\"ii_139db99fdb5c3704\",\"type\":\"jpg\"}],\"personalizations\":[{\"to\":[{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}],\"cc\":[{\"email\":\"jane.doe@example.com\",\"name\":\"Jane Doe\"}],\"bcc\":[{\"email\":\"sam.doe@example.com\",\"name\":\"Sam Doe\"}],\"custom_args\":{\"New Argument 1\":\"New Value 1\",\"activationAttempt\":\"1\",\"customerAccountNumber\":\"[CUSTOMER ACCOUNT NUMBER GOES HERE]\"},\"headers\":{\"X-Accept-Language\":\"en\",\"X-Mailer\":\"MyApp\"},\"send_at\":1409348513,\"substitutions\":{\"type\":\"object\",\"id\":\"substitutions\"},\"subject\":\"Hello, World!\"}],\"subject\":\"Hello, World!\",\"ip_pool_name\":\"[YOUR POOL NAME GOES HERE]\",\"content\":[{\"type\":\"text/html\",\"value\":\"

Hello, world!

\"}],\"headers\":{},\"asm\":{\"groups_to_display\":[1,2,3],\"group_id\":1},\"batch_id\":\"[YOUR BATCH ID GOES HERE]\",\"tracking_settings\":{\"subscription_tracking\":{\"text\":\"If you would like to unsubscribe and stop receiving these emails <% click here %>.\",\"enable\":true,\"html\":\"If you would like to unsubscribe and stop receiving these emails <% clickhere %>.\",\"substitution_tag\":\"<%click here%>\"},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"%opentrack\"},\"click_tracking\":{\"enable\":true,\"enable_text\":true},\"ganalytics\":{\"utm_campaign\":\"[NAME OF YOUR REFERRER SOURCE]\",\"enable\":true,\"utm_name\":\"[NAME OF YOUR CAMPAIGN]\",\"utm_term\":\"[IDENTIFY PAID KEYWORDS HERE]\",\"utm_content\":\"[USE THIS SPACE TO DIFFERENTIATE YOUR EMAIL FROM ADS]\",\"utm_medium\":\"[NAME OF YOUR MARKETING MEDIUM e.g. email]\"}},\"mail_settings\":{\"footer\":{\"text\":\"Thanks,/n The Twilio SendGrid Team\",\"enable\":true,\"html\":\"

Thanks
The Twilio SendGrid Team

\"},\"spam_check\":{\"threshold\":3,\"post_to_url\":\"http://example.com/compliance\",\"enable\":true},\"bypass_list_management\":{\"enable\":true},\"sandbox_mode\":{\"enable\":false},\"bcc\":{\"enable\":true,\"email\":\"ben.doe@example.com\"}},\"reply_to\":{\"email\":\"sam.smith@example.com\",\"name\":\"Sam Smith\"},\"sections\":{\"section\":{\":sectionName2\":\"section 2 text\",\":sectionName1\":\"section 1 text\"}},\"template_id\":\"[YOUR TEMPLATE ID GOES HERE]\",\"categories\":[\"category1\",\"category2\"],\"send_at\":1409348513}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3360,7 +3360,7 @@ Sender Identities are required to be verified before use. If your domain has bee Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("senders"); - request.setBody("{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example) INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"; + request.setBody("{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example) INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3409,7 +3409,7 @@ Partial updates are allowed, but fields that are marked as "required" in the POS Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("senders/{sender_id}"); - request.setBody("{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example) INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"; + request.setBody("{\"city\":\"Denver\",\"from\":{\"email\":\"from@example.com\",\"name\":\"Example) INC\"},\"zip\":\"80202\",\"country\":\"United States\",\"state\":\"Colorado\",\"address_2\":\"Apt. 456\",\"address\":\"123 Elm St.\",\"reply_to\":{\"email\":\"replyto@example.com\",\"name\":\"Example INC\"},\"nickname\":\"My Sender ID\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3511,7 +3511,7 @@ For more information on domain authentication, please see our [User Guide](https Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("whitelabel/domains"); - request.setBody("{\"automatic)_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"; + request.setBody("{\"automatic)_security\":false,\"username\":\"john@example.com\",\"domain\":\"example.com\",\"default\":true,\"custom_spf\":true,\"ips\":[\"192.168.1.1\",\"192.168.1.2\"],\"subdomain\":\"news\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -3785,7 +3785,7 @@ For more information on domain authentication, please see our [User Guide](https throw ex; } ``` -## Remove an IP from a domain authenticaiton. +## Remove an IP from a domain authentication. **This endpoint allows you to remove a domain's IP address from that domain's authentication.** @@ -4310,7 +4310,7 @@ For more information about Subusers: Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("subusers"); - request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\)":\"John@example.com\"}"; + request.setBody("{\"username\":\"John@example.com\",\"ips\":[\"1.1.1.1\",\"2.2.2.2\"],\"password\":\"johns_password\",\"email\)":\"John@example.com\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5312,7 +5312,7 @@ For more information about transactional templates, please see our [User Guide]( Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("templates/{template_id}/versions"); - request.setBody("{\"name\":\"example_version_name\",\"html_content\":\"<%body%>\",\"plain_content\":\")<%body%>\",\"active\":1,\"template_id\":\"ddb96bbc-9b92-425e-8979-99464621b543\",\"subject\":\"<%subject%>\"}"; + request.setBody("{\"name\":\"example_version_name\",\"html_content\":\"<%body%>\",\"plain_content\":\")<%body%>\",\"active\":1,\"template_id\":\"ddb96bbc-9b92-425e-8979-99464621b543\",\"subject\":\"<%subject%>\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5344,7 +5344,7 @@ For more information about transactional templates, please see our [User Guide]( Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("templates/{template_id}/versions/{version_id}"); - request.setBody("{\"active\":1,\"html_content\":\"<%body%>\",\"subject\":\"<%subject%>\",\"name\":\"updated_example)_name\",\"plain_content\":\"<%body%>\"}"; + request.setBody("{\"active\":1,\"html_content\":\"<%body%>\",\"subject\":\"<%subject%>\",\"name\":\"updated_example)_name\",\"plain_content\":\"<%body%>\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5549,7 +5549,7 @@ For more information about tracking, please see our [User Guide](https://sendgri Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("tracking_settings/google_analytics"); - request.setBody("{\"utm_campaign\":\"website\",\"utm_term\":\"\",\"utm_content\":\"\",\"enabled\":true,\"utm)_source\":\"sendgrid.com\",\"utm_medium\":\"email\"}"; + request.setBody("{\"utm_campaign\":\"website\",\"utm_term\":\"\",\"utm_content\":\"\",\"enabled\":true,\"utm)_source\":\"sendgrid.com\",\"utm_medium\":\"email\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -5661,7 +5661,7 @@ For more information about tracking, please see our [User Guide](https://sendgri Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("tracking_settings/subscription"); - request.setBody("{\"url\":\"url\",\"html_content\":\"html content\",\"enabled\":true,\"landing\":\"landing page) html\",\"replace\":\"replacement tag\",\"plain_content\":\"text content\"}"; + request.setBody("{\"url\":\"url\",\"html_content\":\"html content\",\"enabled\":true,\"landing\":\"landing page) html\",\"replace\":\"replacement tag\",\"plain_content\":\"text content\"}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6135,7 +6135,7 @@ Common uses of this data are to remove unsubscribes, react to spam reports, dete Request request = new Request(); request.setMethod(Method.PATCH); request.setEndpoint("user/webhooks/event/settings"); - request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\)",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"; + request.setBody("{\"group_resubscribe\":true,\"delivered\":true,\"group_unsubscribe\":true,\"spam_report\":true,\"url\":\"url\)",\"enabled\":true,\"bounce\":true,\"deferred\":true,\"unsubscribe\":true,\"dropped\":true,\"open\":true,\"click\":true,\"processed\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); @@ -6212,7 +6212,7 @@ The inbound parse webhook allows you to have incoming emails parsed, extracting Request request = new Request(); request.setMethod(Method.POST); request.setEndpoint("user/webhooks/parse/settings"); - request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam)_check\":true}"; + request.setBody("{\"url\":\"http://email.myhosthame.com\",\"send_raw\":false,\"hostname\":\"myhostname.com\",\"spam)_check\":true}"); Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); diff --git a/USE_CASES.md b/USE_CASES.md index 20e9906e..b9b0613a 100644 --- a/USE_CASES.md +++ b/USE_CASES.md @@ -53,7 +53,7 @@ import java.io.IOException; public class Example { public static void main(String[] args) throws IOException { Mail mail = new Mail(); - mail.setFrom(new Email("teste@example.com")); + mail.setFrom(new Email("tester@example.com")); mail.setTemplateId("d-2c214ac919e84170b21855cc129b4a5f"); Personalization personalization = new Personalization(); diff --git a/examples/accesssettings/Example.java b/examples/accesssettings/Example.java index 6fd33a36..5de41ee0 100644 --- a/examples/accesssettings/Example.java +++ b/examples/accesssettings/Example.java @@ -23,7 +23,7 @@ protected Response execute(Request request) throws IOException { return response; } - protected void printResonseInfo(Response response) { + protected void printResponseInfo(Response response) { System.out.println(response.getStatusCode()); System.out.println(response.getBody()); System.out.println(response.getHeaders()); diff --git a/examples/ips/RetrieveAllPools.java b/examples/ips/RetrieveAllPools.java index 93bf78ec..c6734071 100644 --- a/examples/ips/RetrieveAllPools.java +++ b/examples/ips/RetrieveAllPools.java @@ -13,7 +13,7 @@ // GET /ips/pools -public class RetieveAllIPPools { +public class RetrieveAllIPPools { public static void main(String[] args) throws IOException { try { SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); diff --git a/examples/user/GetEnforedTLS.java b/examples/user/GetEnforcedTLS.java similarity index 100% rename from examples/user/GetEnforedTLS.java rename to examples/user/GetEnforcedTLS.java diff --git a/examples/user/README.md b/examples/user/README.md index 68e8370d..befb7b4f 100644 --- a/examples/user/README.md +++ b/examples/user/README.md @@ -33,7 +33,7 @@ - [Update Username](UpdateUsername.java) ## Security Settings Examples -- [Get Enforced TLS](GetEnforedTLS.java) +- [Get Enforced TLS](GetEnforcedTLS.java) - [Update Enforced TLS](UpdateEnforcedTLS.java) ## Webhook Settings Examples diff --git a/src/main/java/com/sendgrid/RateLimitException.java b/src/main/java/com/sendgrid/RateLimitException.java index 7a2570ac..5f25a075 100644 --- a/src/main/java/com/sendgrid/RateLimitException.java +++ b/src/main/java/com/sendgrid/RateLimitException.java @@ -30,7 +30,7 @@ public Request getRequest() { } /** - * Get the number of times the action was attemted. + * Get the number of times the action was attempted. * * @return the retry count. */ diff --git a/src/main/java/com/sendgrid/helpers/mail/Mail.java b/src/main/java/com/sendgrid/helpers/mail/Mail.java index 24eb19de..ea2b9739 100644 --- a/src/main/java/com/sendgrid/helpers/mail/Mail.java +++ b/src/main/java/com/sendgrid/helpers/mail/Mail.java @@ -236,7 +236,7 @@ public List getPersonalization() { } /** - * Add a personalizaton to the email. + * Add a personalization to the email. * * @param personalization a personalization. */ @@ -506,7 +506,7 @@ public void setReplyTo(Email replyTo) { } /** - * Create a string represenation of the Mail object JSON. + * Create a string representation of the Mail object JSON. * * @return a JSON string. * @throws IOException in case of a JSON marshal error. @@ -521,7 +521,7 @@ public String build() throws IOException { } /** - * Create a string represenation of the Mail object JSON and pretty print it. + * Create a string representation of the Mail object JSON and pretty print it. * * @return a pretty JSON string. * @throws IOException in case of a JSON marshal error. diff --git a/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java b/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java index 3ea3f379..adef08aa 100644 --- a/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java +++ b/src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java @@ -18,18 +18,18 @@ public void testCreateAttachments() { String content = "This test checks if the builder works fine"; InputStream contentStream = new ByteArrayInputStream(content.getBytes(Charset.forName("UTF-8"))); String contentId = "someId"; - String dispositon = "someDisposition"; + String disposition = "someDisposition"; Attachments attachments = new Attachments.Builder(fileName, contentStream) .withType(type) .withContentId(contentId) - .withDisposition(dispositon) + .withDisposition(disposition) .build(); Assert.assertEquals(attachments.getType(), type); Assert.assertEquals(attachments.getFilename(), fileName); Assert.assertEquals(attachments.getContentId(), contentId); - Assert.assertEquals(attachments.getDisposition(), dispositon); + Assert.assertEquals(attachments.getDisposition(), disposition); Assert.assertEquals(attachments.getContent(), Base64.encodeBase64String(content.getBytes(Charset.forName("UTF-8")))); } From 054d4fcc47fa7fd0f8ddfdc089763ac93c410fb6 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 15 Oct 2020 11:48:22 -0400 Subject: [PATCH 177/288] chore: Fix PR link for PRs (#651) --- PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index a8681802..f5af09c3 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -21,7 +21,7 @@ A short description of what this PR does. ### Checklist - [ ] I acknowledge that all my contributions will be made under the project's license - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) -- [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them +- [ ] I have read the [Contribution Guidelines](https://github.com/sendgrid/sendgrid-java/blob/main/CONTRIBUTING.md) and my PR follows them - [ ] I have titled the PR appropriately - [ ] I have updated my branch with the main branch - [ ] I have added tests that prove my fix is effective or that my feature works From 2eb923aef91daf5b370190af04faa149d7156216 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 15 Oct 2020 16:23:12 +0000 Subject: [PATCH 178/288] chore: update template files --- PULL_REQUEST_TEMPLATE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index f5af09c3..1b0763ca 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -19,13 +19,13 @@ Closes #2 A short description of what this PR does. ### Checklist -- [ ] I acknowledge that all my contributions will be made under the project's license +- [x] I acknowledge that all my contributions will be made under the project's license - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) - [ ] I have read the [Contribution Guidelines](https://github.com/sendgrid/sendgrid-java/blob/main/CONTRIBUTING.md) and my PR follows them - [ ] I have titled the PR appropriately - [ ] I have updated my branch with the main branch - [ ] I have added tests that prove my fix is effective or that my feature works -- [ ] I have added necessary documentation about the functionality in the appropriate .md file +- [ ] I have added the necessary documentation about the functionality in the appropriate .md file - [ ] I have added inline documentation to the code I modified If you have questions, please file a [support ticket](https://twilio.com/help/contact), or create a GitHub Issue in this repository. From 0f1a5ff13e8221486cd17b66231a5cf09ac7658c Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 15 Oct 2020 16:33:49 +0000 Subject: [PATCH 179/288] chore: update template files --- PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index 1b0763ca..32f9ee30 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -28,4 +28,4 @@ A short description of what this PR does. - [ ] I have added the necessary documentation about the functionality in the appropriate .md file - [ ] I have added inline documentation to the code I modified -If you have questions, please file a [support ticket](https://twilio.com/help/contact), or create a GitHub Issue in this repository. +If you have questions, please file a [support ticket](https://support.sendgrid.com/hc/en-us), or create a GitHub Issue in this repository. From f6b3386e634462c5bcf4943eff0744f0c2ac5a68 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 15 Oct 2020 21:27:07 +0000 Subject: [PATCH 180/288] chore: update template files --- PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index 32f9ee30..a2fca138 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -28,4 +28,4 @@ A short description of what this PR does. - [ ] I have added the necessary documentation about the functionality in the appropriate .md file - [ ] I have added inline documentation to the code I modified -If you have questions, please file a [support ticket](https://support.sendgrid.com/hc/en-us), or create a GitHub Issue in this repository. +If you have questions, please file a [support ticket](https://support.sendgrid.com), or create a GitHub Issue in this repository. From a38756798b05296db98de1c60ab2ea324612cac0 Mon Sep 17 00:00:00 2001 From: Twilio Date: Tue, 27 Oct 2020 21:32:27 +0000 Subject: [PATCH 181/288] chore: update template files --- LICENSE.md => LICENSE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE.md => LICENSE (100%) diff --git a/LICENSE.md b/LICENSE similarity index 100% rename from LICENSE.md rename to LICENSE From a95ef4836597da18250a834f33308ee9da44bbb7 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Tue, 27 Oct 2020 16:42:34 -0500 Subject: [PATCH 182/288] chore: update license references --- README.md | 4 ++-- pom.xml | 4 ++-- src/test/java/com/sendgrid/LicenseTest.java | 2 +- src/test/java/com/sendgrid/TestRequiredFilesExist.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f0fdb548..3610fb10 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-java.svg)](https://github.com/sendgrid/sendgrid-java/graphs/contributors) [![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-java/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-java) -[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.md) +[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. @@ -233,4 +233,4 @@ If you've instead found a bug in the library or would like new features added, g # License -[The MIT License (MIT)](LICENSE.md) +[The MIT License (MIT)](LICENSE) diff --git a/pom.xml b/pom.xml index 37f5c201..439765b7 100644 --- a/pom.xml +++ b/pom.xml @@ -159,7 +159,7 @@ ${basedir} - LICENSE.md + LICENSE @@ -330,4 +330,4 @@ - \ No newline at end of file + diff --git a/src/test/java/com/sendgrid/LicenseTest.java b/src/test/java/com/sendgrid/LicenseTest.java index 96bf096c..1f96ef70 100644 --- a/src/test/java/com/sendgrid/LicenseTest.java +++ b/src/test/java/com/sendgrid/LicenseTest.java @@ -12,7 +12,7 @@ public class LicenseTest { @Test public void testLicenseShouldHaveCorrectYear() throws IOException { String copyrightText = null; - try (BufferedReader br = new BufferedReader(new FileReader("./LICENSE.md"))) { + try (BufferedReader br = new BufferedReader(new FileReader("./LICENSE"))) { for (String line; (line = br.readLine()) != null; ) { if (line.startsWith("Copyright")) { copyrightText = line; diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index 62eda186..4efc2f04 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -70,10 +70,10 @@ public void checkIssuesTemplateExists() { assertTrue(new File("./ISSUE_TEMPLATE.md").exists()); } - // ./LICENSE.md + // ./LICENSE @Test public void checkLicenseExists() { - assertTrue(new File("./LICENSE.md").exists()); + assertTrue(new File("./LICENSE").exists()); } // ./PULL_REQUEST_TEMPLATE.md From 2844ac05cf6f32a0fe7d7f6ef984133fba13f083 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Fri, 30 Oct 2020 14:17:14 -0700 Subject: [PATCH 183/288] chore: update badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3610fb10..75e809a3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![SendGrid Logo](twilio_sendgrid_logo.png) -[![Travis Badge](https://travis-ci.org/sendgrid/sendgrid-java.svg?branch=main)](https://travis-ci.org/sendgrid/sendgrid-java) +[![Travis Badge](https://travis-ci.com/sendgrid/sendgrid-java.svg?branch=main)](https://travis-ci.com/sendgrid/sendgrid-java) [![Maven Central](https://img.shields.io/maven-central/v/com.sendgrid/sendgrid-java.svg)](http://mvnrepository.com/artifact/com.sendgrid/sendgrid-java) [![Email Notifications Badge](https://dx.sendgrid.com/badge/java)](https://dx.sendgrid.com/newsletter/java) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) From 7cf8b2835d88c3bb3830c8a62a6374b38ab60b37 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 5 Nov 2020 21:41:46 +0000 Subject: [PATCH 184/288] [Librarian] Version Bump --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4779fe9..87888fb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-11-05] Version 4.6.8 +-------------------------- +**Library - Chore** +- [PR #651](https://github.com/sendgrid/sendgrid-java/pull/651): Fix PR link for PRs. Thanks to [@jsoref](https://github.com/jsoref)! +- [PR #650](https://github.com/sendgrid/sendgrid-java/pull/650): fix spelling typos. Thanks to [@jsoref](https://github.com/jsoref)! + + [2020-10-14] Version 4.6.7 -------------------------- **Library - Docs** From ab6708168678b7f7130e363e6f8448b1f0609186 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 5 Nov 2020 21:56:29 +0000 Subject: [PATCH 185/288] Release 4.6.8 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 8 ++++---- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0ccdb92b..cbd779c1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.7/sendgrid-4.6.7-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.7/sendgrid-4.6.7-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.6.8/sendgrid-4.6.8-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.8/sendgrid-4.6.8-jar.jar:. Example ``` diff --git a/README.md b/README.md index 75e809a3..e33997ca 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.6.7.** +**The default branch name for this repository has been changed to `main` as of 4.6.8.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.7 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.8 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.7' + implementation 'com.sendgrid:sendgrid-java:4.6.8' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.7/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.8/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 439765b7..4bc94f9e 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.7 + 4.6.8 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.7 + 4.6.8 @@ -318,7 +318,7 @@ org.bouncycastle bcprov-jdk15on - 1.66 + 1.67 @@ -330,4 +330,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index ebab63ed..8f284f41 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.7"; + private static final String VERSION = "4.6.8"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index f6556e87..e93c1199 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.7"); + Assert.assertEquals(sg.getLibraryVersion(), "4.6.8"); } @Test From 4670d0613242dfa9bf196729898bc1b1b157598d Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 6 Nov 2020 22:49:30 +0300 Subject: [PATCH 186/288] docs: Fix code issues in examples/clients/clients.java (#357) --- examples/clients/GetEmailStatistics.java | 32 ++++++++++ .../GetEmailStatisticsByClientType.java | 32 ++++++++++ examples/clients/README.md | 6 ++ examples/clients/clients.java | 59 ------------------- 4 files changed, 70 insertions(+), 59 deletions(-) create mode 100644 examples/clients/GetEmailStatistics.java create mode 100644 examples/clients/GetEmailStatisticsByClientType.java create mode 100644 examples/clients/README.md delete mode 100644 examples/clients/clients.java diff --git a/examples/clients/GetEmailStatistics.java b/examples/clients/GetEmailStatistics.java new file mode 100644 index 00000000..632c817c --- /dev/null +++ b/examples/clients/GetEmailStatistics.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve email statistics by client type. +// GET /clients/stats + +public class GetEmailStatistics { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("clients/stats"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("end_date", "2016-04-01"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/clients/GetEmailStatisticsByClientType.java b/examples/clients/GetEmailStatisticsByClientType.java new file mode 100644 index 00000000..eef0e2a2 --- /dev/null +++ b/examples/clients/GetEmailStatisticsByClientType.java @@ -0,0 +1,32 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Retrieve stats by a specific client type. +// GET /clients/{client_type}/stats + +public class GetEmailStatisticsByClientType { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint("clients/{client_type}/stats"); + request.addQueryParam("aggregated_by", "day"); + request.addQueryParam("start_date", "2016-01-01"); + request.addQueryParam("end_date", "2016-04-01"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} \ No newline at end of file diff --git a/examples/clients/README.md b/examples/clients/README.md new file mode 100644 index 00000000..0c74bd24 --- /dev/null +++ b/examples/clients/README.md @@ -0,0 +1,6 @@ +![SendGrid Logo](https://github.com/sendgrid/sendgrid-java/blob/main/twilio_sendgrid_logo.png) + +This folder contains various examples on using the CLIENTS endpoint of SendGrid with Java: + +* [Retrieve email statistics by client type (GET /clients/stats)](GetEmailStatistics.java) +* [Retrieve stats by a specific client type (GET /clients/{client_type}/stats)](GetEmailStatisticsByClientType.java) diff --git a/examples/clients/clients.java b/examples/clients/clients.java deleted file mode 100644 index 9b755d86..00000000 --- a/examples/clients/clients.java +++ /dev/null @@ -1,59 +0,0 @@ -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -import com.sendgrid.*; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -////////////////////////////////////////////////////////////////// -// Retrieve email statistics by client type. -// GET /clients/stats - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("clients/stats"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("end_date", "2016-04-01"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - -////////////////////////////////////////////////////////////////// -// Retrieve stats by a specific client type. -// GET /clients/{client_type}/stats - - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.GET); - request.setEndpoint("clients/{client_type}/stats"); - request.addQueryParam("aggregated_by", "day"); - request.addQueryParam("start_date", "2016-01-01"); - request.addQueryParam("end_date", "2016-04-01"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} - From e612f643f632438f9d073588f248f6be4fdce8b8 Mon Sep 17 00:00:00 2001 From: Deepa Panwar Date: Sat, 7 Nov 2020 01:29:53 +0530 Subject: [PATCH 187/288] docs: Save attachment to Dropbox (#304) --- examples/dropbox/UploadToDropBox.java | 63 +++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 examples/dropbox/UploadToDropBox.java diff --git a/examples/dropbox/UploadToDropBox.java b/examples/dropbox/UploadToDropBox.java new file mode 100644 index 00000000..ae21fc76 --- /dev/null +++ b/examples/dropbox/UploadToDropBox.java @@ -0,0 +1,63 @@ +package dropbox; + +import com.dropbox.core.DbxRequestConfig; +import com.dropbox.core.v2.DbxClientV2; +import com.dropbox.core.v2.files.FileMetadata; +import com.sendgrid.Attachments; +import org.apache.commons.codec.binary.Base64; + +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.nio.charset.Charset; +/* + Add Dropbox dependencies for compiling code + Gradle : compile 'com.dropbox.core:dropbox-core-sdk:3.0.5' + maven : + + com.dropbox.core + dropbox-core-sdk + 3.0.5 + + */ +public class UploadToDropBox { + public static void main(String[] args) { + String fileName = "book3.txt"; + String type = "text/plain"; + String content = "This test checks if the builder works fine"; + InputStream contentStream = new ByteArrayInputStream(content.getBytes(Charset.forName("UTF-8"))); + String contentId = "someId"; + String dispositon = "someDisposition"; + String accessToken = "user's access token"; + String path = "/path/to/folder"; + + Attachments attachments = new Attachments.Builder(fileName, contentStream) + .withType(type) + .withContentId(contentId) + .withDisposition(dispositon) + .build(); + String returnPath = uploadToDropbox(attachments, accessToken, path); + System.out.println("Path: " + returnPath); + } + + /** + * Uploads attachment to Dropbox + * + * @param attachments attachment to be uploaded + * @param accessToken user's Dropbox access token + * @param path path of the folder in which attachment needs to be added. Should not end with / + * @return the full path to the uploaded file + */ + private static String uploadToDropbox(Attachments attachments, String accessToken, String path){ + try { + DbxRequestConfig config = DbxRequestConfig.newBuilder("sendgrid/0.1").build(); + DbxClientV2 client = new DbxClientV2(config, accessToken); + FileMetadata uploadedFile = client.files().upload(String.format("%s/%s", path, attachments.getFilename())) + .uploadAndFinish(new ByteArrayInputStream((Base64.decodeBase64(attachments.getContent())))); + return uploadedFile.getPathDisplay(); + }catch(Exception ex) { + throw new RuntimeException("Error while uploading to Dropbox", ex); + } + } + +} + From 8e95e95c4ca57dbc92523b640ac7565540370f0c Mon Sep 17 00:00:00 2001 From: David Eriksson Date: Fri, 6 Nov 2020 21:01:54 +0100 Subject: [PATCH 188/288] docs: Correct number of free emails (#628) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e33997ca..26ee7c3a 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.6.8 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 40,000 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables From 68b230ab238b5b716bc3038a77f2618cf09bd37c Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Fri, 6 Nov 2020 14:05:22 -0600 Subject: [PATCH 189/288] chore: format example --- examples/dropbox/UploadToDropBox.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/examples/dropbox/UploadToDropBox.java b/examples/dropbox/UploadToDropBox.java index ae21fc76..1d729cd1 100644 --- a/examples/dropbox/UploadToDropBox.java +++ b/examples/dropbox/UploadToDropBox.java @@ -9,6 +9,7 @@ import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.Charset; + /* Add Dropbox dependencies for compiling code Gradle : compile 'com.dropbox.core:dropbox-core-sdk:3.0.5' @@ -31,10 +32,10 @@ public static void main(String[] args) { String path = "/path/to/folder"; Attachments attachments = new Attachments.Builder(fileName, contentStream) - .withType(type) - .withContentId(contentId) - .withDisposition(dispositon) - .build(); + .withType(type) + .withContentId(contentId) + .withDisposition(dispositon) + .build(); String returnPath = uploadToDropbox(attachments, accessToken, path); System.out.println("Path: " + returnPath); } @@ -44,20 +45,18 @@ public static void main(String[] args) { * * @param attachments attachment to be uploaded * @param accessToken user's Dropbox access token - * @param path path of the folder in which attachment needs to be added. Should not end with / + * @param path path of the folder in which attachment needs to be added. Should not end with / * @return the full path to the uploaded file */ - private static String uploadToDropbox(Attachments attachments, String accessToken, String path){ + private static String uploadToDropbox(Attachments attachments, String accessToken, String path) { try { DbxRequestConfig config = DbxRequestConfig.newBuilder("sendgrid/0.1").build(); DbxClientV2 client = new DbxClientV2(config, accessToken); FileMetadata uploadedFile = client.files().upload(String.format("%s/%s", path, attachments.getFilename())) - .uploadAndFinish(new ByteArrayInputStream((Base64.decodeBase64(attachments.getContent())))); + .uploadAndFinish(new ByteArrayInputStream((Base64.decodeBase64(attachments.getContent())))); return uploadedFile.getPathDisplay(); - }catch(Exception ex) { + } catch (Exception ex) { throw new RuntimeException("Error while uploading to Dropbox", ex); } } - } - From baad44497006fe17097f0d01e35295fa5a655ec2 Mon Sep 17 00:00:00 2001 From: Clayton Chu Date: Fri, 6 Nov 2020 15:22:53 -0500 Subject: [PATCH 190/288] docs: Fixes Javadoc errors in Attachments.java (#418) --- .../java/com/sendgrid/helpers/mail/objects/Attachments.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java index 9a3ff1b4..873475d7 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Attachments.java @@ -211,6 +211,7 @@ private String encodeToBase64(InputStream content) { * Set the type of this attachment builder. * * @param type the attachment type. + * @return attachment builder object. */ public Builder withType(String type) { this.type = type; @@ -221,6 +222,7 @@ public Builder withType(String type) { * Set the disposition of this attachment builder. * * @param disposition the disposition. + * @return attachment builder object. */ public Builder withDisposition(String disposition) { this.disposition = disposition; @@ -231,6 +233,7 @@ public Builder withDisposition(String disposition) { * Set the content ID of this attachment builder. * * @param contentId the content ID. + * @return attachment builder object. */ public Builder withContentId(String contentId) { this.contentId = contentId; @@ -239,6 +242,7 @@ public Builder withContentId(String contentId) { /** * Construct the attachments object. + * @return the attachments object constructed. */ public Attachments build() { Attachments attachments = new Attachments(); From b417e6c18e157349d8daa191c7554097dcb57ad6 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Fri, 6 Nov 2020 20:36:20 +0000 Subject: [PATCH 191/288] docs: Create use-cases directory (#405) Move each separate use case into their own separate files, linked from the `use-cases` directory. Closes #401. --- USE_CASES.md | 328 --------------------------- use-cases/README.md | 9 + use-cases/domain-authentication.md | 11 + use-cases/email-statistics.md | 5 + use-cases/transactional-templates.md | 107 +++++++++ 5 files changed, 132 insertions(+), 328 deletions(-) delete mode 100644 USE_CASES.md create mode 100644 use-cases/README.md create mode 100644 use-cases/domain-authentication.md create mode 100644 use-cases/email-statistics.md create mode 100644 use-cases/transactional-templates.md diff --git a/USE_CASES.md b/USE_CASES.md deleted file mode 100644 index b9b0613a..00000000 --- a/USE_CASES.md +++ /dev/null @@ -1,328 +0,0 @@ -This document provides examples for specific use cases. Please [open an issue](https://github.com/sendgrid/sendgrid-java/issues) or make a pull request for any use cases you would like us to document here. Thank you! - -# Use Cases - -* [Send Mail Examples](examples/helpers/mail/Example.java) - * [Send a Single Email to Multiple Recipients](examples/helpers/mail/SingleEmailMultipleRecipients.java) - * [Send Multiple Emails to Multiple Recipients](examples/helpers/mail/MultipleEmailsMultipleRecipients.java) -* [Transactional Templates](#transactional-templates) -* [Legacy Templates](#legacy-templates) -* [How to Setup a Domain Authentication](#domain-authentication) -* [How to View Email Statistics](#how-to-view-email-statistics) -* [Send an Email With Twilio Email (Pilot)](#send-an-email-with-twilio-email-pilot) -* [Send an SMS Message](#send-an-sms-message) - -# Transactional Templates - -For this example, we assume you have created a [dynamic transactional template](https://sendgrid.com/docs/ui/sending-email/how-to-send-an-email-with-dynamic-transactional-templates/) in the UI or via the API. Following is the template content we used for testing. - -Template ID (replace with your own): - -```text -d-2c214ac919e84170b21855cc129b4a5f -``` -Email Subject: - -```text -{{subject}} -``` -Template Body: - -```html - - - - - - Hello {{name}}, -

- I'm glad you are trying out the template feature! -

- I hope you are having a great day in {{city}} :) -

- - -``` - -## With Mail Helper Class - -```java -import com.sendgrid.*; -import java.io.IOException; - -public class Example { - public static void main(String[] args) throws IOException { - Mail mail = new Mail(); - mail.setFrom(new Email("tester@example.com")); - mail.setTemplateId("d-2c214ac919e84170b21855cc129b4a5f"); - - Personalization personalization = new Personalization(); - personalization.addDynamicTemplateData("subject", "Testing Templates"); - personalization.addDynamicTemplateData("name", "Example User"); - personalization.addDynamicTemplateData("city", "Denver"); - personalization.addTo(new Email("test@example.com")); - mail.addPersonalization(personalization); - - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - try { - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody(mail.build()); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} -``` - -## Without Mail Helper Class - -```java -import com.sendgrid.*; -import java.io.IOException; - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody("{ - \"from\": {\"email\": \"test@example.com\"}, - \"personalizations\": - [{ - \"to\": [{\"email\": \"test@example.com\"}], - \"dynamic_template_data\": {\"subject\": \"Testing Templates\",\"name\": \"Example User\", \"city\": \"Denver\"} - }], - \"template_id\": \"d-2c214ac919e84170b21855cc129b4a5f\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} -``` - -# Legacy Templates - -For this example, we assume you have created a [legacy transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html) in the UI or via the API. Following is the template content we used for testing. - -Template ID (replace with your own): - -```text -13b8f94f-bcae-4ec6-b752-70d6cb59f932 -``` - -Email Subject: - -```text -<%subject%> -``` - -Template Body: - -```html - - - - - - Hello -name-, -

- I'm glad you are trying out the template feature! -

- <%body%> -

- I hope you are having a great day in -city- :) -

- - -``` - -## With Mail Helper Class - -```java -import com.sendgrid.*; -import java.io.IOException; - -public class Example { - public static void main(String[] args) throws IOException { - Email from = new Email("test@example.com"); - String subject = "I'm replacing the subject tag"; - Email to = new Email("test@example.com"); - Content content = new Content("text/html", "I'm replacing the body tag"); - Mail mail = new Mail(from, subject, to, content); - mail.personalization.get(0).addSubstitution("-name-", "Example User"); - mail.personalization.get(0).addSubstitution("-city-", "Denver"); - mail.setTemplateId("13b8f94f-bcae-4ec6-b752-70d6cb59f932"); - - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - try { - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody(mail.build()); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} -``` - -## Without Mail Helper Class - -```java -import com.sendgrid.*; -import java.io.IOException; - -public class Example { - public static void main(String[] args) throws IOException { - try { - SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); - Request request = new Request(); - request.setMethod(Method.POST); - request.setEndpoint("mail/send"); - request.setBody("{ - \"personalizations\": - [{ - \"to\": [{\"email\": \"test@example.com\"}], - \"substitutions\": {\"-name-\": \"Example User\", \"-city-\": \"Denver\"}, - \"subject\": \"Hello World from the Twilio SendGrid Java Library!\" - }], - \"from\": {\"email\": \"test@example.com\"}, - \"content\": - [{ - \"type\": \"text/html\", - \"value\": \"I'm replacing the body tag\" - }] - ,\"template_id\": \"13b8f94f-bcae-4ec6-b752-70d6cb59f932\"}"); - Response response = sg.api(request); - System.out.println(response.getStatusCode()); - System.out.println(response.getBody()); - System.out.println(response.getHeaders()); - } catch (IOException ex) { - throw ex; - } - } -} -``` - - -# How to Setup a Domain Authentication - -You can find documentation for how to set up a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](USAGE.md#sender-authentication). - -Find more information about all of Twilio SendGrid's authentication related documentation [here](https://sendgrid.com/docs/ui/account-and-settings/). - -# How to View Email Statistics - -You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](USAGE.md#stats). - -Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as Twilio SendGrid processes your email. - -# Send an Email With Twilio Email (Pilot) - -### 1. Obtain a Free Twilio Account - -Sign up for a free Twilio account [here](https://www.twilio.com/try-twilio?source=sendgrid-java). - -### 2. Set Up Your Environment Variables - -The Twilio API allows for authentication using with either an API key/secret or your Account SID/Auth Token. You can create an API key [here](https://twil.io/get-api-key) or obtain your Account SID and Auth Token [here](https://twil.io/console). - -Once you have those, follow the steps below based on your operating system. - -#### Linux/Mac - -```bash -echo "export TWILIO_API_KEY='YOUR_TWILIO_API_KEY'" > twilio.env -echo "export TWILIO_API_SECRET='YOUR_TWILIO_API_SECRET'" >> twilio.env - -# or - -echo "export TWILIO_ACCOUNT_SID='YOUR_TWILIO_ACCOUNT_SID'" > twilio.env -echo "export TWILIO_AUTH_TOKEN='YOUR_TWILIO_AUTH_TOKEN'" >> twilio.env -``` - -Then: - -```bash -echo "twilio.env" >> .gitignore -source ./twilio.env -``` - -#### Windows - -Temporarily set the environment variable (accessible only during the current CLI session): - -```bash -set TWILIO_API_KEY=YOUR_TWILIO_API_KEY -set TWILIO_API_SECRET=YOUR_TWILIO_API_SECRET - -: or - -set TWILIO_ACCOUNT_SID=YOUR_TWILIO_ACCOUNT_SID -set TWILIO_AUTH_TOKEN=YOUR_TWILIO_AUTH_TOKEN -``` - -Or permanently set the environment variable (accessible in all subsequent CLI sessions): - -```bash -setx TWILIO_API_KEY "YOUR_TWILIO_API_KEY" -setx TWILIO_API_SECRET "YOUR_TWILIO_API_SECRET" - -: or - -setx TWILIO_ACCOUNT_SID "YOUR_TWILIO_ACCOUNT_SID" -setx TWILIO_AUTH_TOKEN "YOUR_TWILIO_AUTH_TOKEN" -``` - -### 3. Initialize the Twilio Email Client - -```java -TwilioEmail mailClient = new TwilioEmail(System.getenv("TWILIO_API_KEY"), System.getenv("TWILIO_API_SECRET")); - -// or - -TwilioEmail mailClient = new TwilioEmail(System.getenv("TWILIO_ACCOUNT_SID"), System.getenv("TWILIO_AUTH_TOKEN")); -``` - -This client has the same interface as the `SendGrid` client. - -# Send an SMS Message - -First, follow the above steps for creating a Twilio account and setting up environment variables with the proper credentials. - -Then, install the Twilio Helper Library by following the [installation steps](https://github.com/twilio/twilio-java#installation). - -Finally, send a message. - -```java -String accountSid = System.getenv("TWILIO_ACCOUNT_SID"); -String authToken = System.getenv("TWILIO_AUTH_TOKEN"); - -Twilio.init(accountSid, authToken); - -Message message = Message.creator( - new PhoneNumber("+15558881234"), // To number - new PhoneNumber("+15559994321"), // From number - "Hello world!" // SMS body -).create(); - -System.out.println(message.getSid()); -``` - -For more information, please visit the [Twilio SMS Java documentation](https://www.twilio.com/docs/sms/quickstart/java). diff --git a/use-cases/README.md b/use-cases/README.md new file mode 100644 index 00000000..35fd401d --- /dev/null +++ b/use-cases/README.md @@ -0,0 +1,9 @@ +# Use Cases + +This directory provides examples for specific use cases. + +Please [open an issue](https://github.com/sendgrid/sendgrid-java/issues/new) or make a pull request for any use cases you would like us to document here. Thank you! + +* [Transactional Templates](transactional-templates.md) +* [How to Setup a Domain Authentication](domain-authentication.md) +* [How to View Email Statistics](email-statistics.md) diff --git a/use-cases/domain-authentication.md b/use-cases/domain-authentication.md new file mode 100644 index 00000000..5bc6a750 --- /dev/null +++ b/use-cases/domain-authentication.md @@ -0,0 +1,11 @@ +# How to Setup a Domain Authentication + +You can find documentation for how to set up a domain authentication via the UI [here](https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/) and via API [here](USAGE.md#sender-authentication). + +Find more information about all of Twilio SendGrid's authentication related documentation [here](https://sendgrid.com/docs/ui/account-and-settings/). + +# How to View Email Statistics + +You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](USAGE.md#stats). + +Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as Twilio SendGrid processes your email. diff --git a/use-cases/email-statistics.md b/use-cases/email-statistics.md new file mode 100644 index 00000000..ace54b6a --- /dev/null +++ b/use-cases/email-statistics.md @@ -0,0 +1,5 @@ +# How to View Email Statistics + +You can find documentation for how to view your email statistics via the UI [here](https://app.sendgrid.com/statistics) and via API [here](USAGE.md#stats). + +Alternatively, we can post events to a URL of your choice via our [Event Webhook](https://sendgrid.com/docs/API_Reference/Webhooks/event.html) about events that occur as Twilio SendGrid processes your email. diff --git a/use-cases/transactional-templates.md b/use-cases/transactional-templates.md new file mode 100644 index 00000000..bb908733 --- /dev/null +++ b/use-cases/transactional-templates.md @@ -0,0 +1,107 @@ +# Transactional Templates + +For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. + +Template ID (replace with your own): + +```text +13b8f94f-bcae-4ec6-b752-70d6cb59f932 +``` + +Email Subject: + +```text +<%subject%> +``` + +Template Body: + +```html + + + + + + Hello -name-, +

+ I'm glad you are trying out the template feature! +

+ <%body%> +

+ I hope you are having a great day in -city- :) +

+ + +``` + +## With Mail Helper Class + +```java +import com.sendgrid.*; +import java.io.IOException; + +public class Example { + public static void main(String[] args) throws IOException { + Email from = new Email("test@example.com"); + String subject = "I'm replacing the subject tag"; + Email to = new Email("test@example.com"); + Content content = new Content("text/html", "I'm replacing the body tag"); + Mail mail = new Mail(from, subject, to, content); + mail.personalization.get(0).addSubstitution("-name-", "Example User"); + mail.personalization.get(0).addSubstitution("-city-", "Denver"); + mail.setTemplateId("13b8f94f-bcae-4ec6-b752-70d6cb59f932"); + + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + try { + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` + +## Without Mail Helper Class + +```java +import com.sendgrid.*; +import java.io.IOException; + +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody("{ + \"personalizations\": + [{ + \"to\": [{\"email\": \"test@example.com\"}], + \"substitutions\": {\"-name-\": \"Example User\", \"-city-\": \"Denver\"}, + \"subject\": \"Hello World from the Twilio SendGrid Java Library!\" + }], + \"from\": {\"email\": \"test@example.com\"}, + \"content\": + [{ + \"type\": \"text/html\", + \"value\": \"I'm replacing the body tag\" + }] + ,\"template_id\": \"13b8f94f-bcae-4ec6-b752-70d6cb59f932\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` From fd6919537c9845e9ed1086905eb0e02ffd0e5721 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Fri, 6 Nov 2020 14:43:23 -0600 Subject: [PATCH 192/288] docs: add additional use cases back --- use-cases/README.md | 15 +++-- use-cases/legacy-templates.md | 104 ++++++++++++++++++++++++++++++++++ use-cases/sms.md | 19 +++++++ use-cases/twilio-email.md | 11 ++++ use-cases/twilio-setup.md | 48 ++++++++++++++++ 5 files changed, 193 insertions(+), 4 deletions(-) create mode 100644 use-cases/legacy-templates.md create mode 100644 use-cases/sms.md create mode 100644 use-cases/twilio-email.md create mode 100644 use-cases/twilio-setup.md diff --git a/use-cases/README.md b/use-cases/README.md index 35fd401d..988af54c 100644 --- a/use-cases/README.md +++ b/use-cases/README.md @@ -1,9 +1,16 @@ -# Use Cases - This directory provides examples for specific use cases. -Please [open an issue](https://github.com/sendgrid/sendgrid-java/issues/new) or make a pull request for any use cases you would like us to document here. Thank you! +Please [open an issue](https://github.com/sendgrid/sendgrid-ruby/issues) or [make a pull request](https://github.com/sendgrid/sendgrid-ruby/pulls) for any use cases you would like us to document here. Thank you! +# Email Use Cases * [Transactional Templates](transactional-templates.md) -* [How to Setup a Domain Authentication](domain-authentication.md) +* [Legacy Templates](legacy-templates.md) + +# Twilio Use Cases +* [Twilio Setup](twilio-setup.md) +* [Send an Email With Twilio Email (Pilot)](twilio-email.md) +* [Send an SMS Message](sms.md) + +# Non-Email Use Cases +* [How to Set up a Domain Authentication](domain-authentication.md) * [How to View Email Statistics](email-statistics.md) diff --git a/use-cases/legacy-templates.md b/use-cases/legacy-templates.md new file mode 100644 index 00000000..70239088 --- /dev/null +++ b/use-cases/legacy-templates.md @@ -0,0 +1,104 @@ +# Legacy Templates + +For this example, we assume you have created a [legacy transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html) in the UI or via the API. Following is the template content we used for testing. + +Template ID (replace with your own): + +```text +13b8f94f-bcae-4ec6-b752-70d6cb59f932 +``` + +Email Subject: + +```text +<%subject%> +``` + +Template Body: + +```html + + + + + + Hello -name-, +

+ I'm glad you are trying out the template feature! +

+ <%body%> +

+ I hope you are having a great day in -city- :) +

+ + +``` + +## With Mail Helper Class + +```java +import com.sendgrid.*; +import java.io.IOException; +public class Example { + public static void main(String[] args) throws IOException { + Email from = new Email("test@example.com"); + String subject = "I'm replacing the subject tag"; + Email to = new Email("test@example.com"); + Content content = new Content("text/html", "I'm replacing the body tag"); + Mail mail = new Mail(from, subject, to, content); + mail.personalization.get(0).addSubstitution("-name-", "Example User"); + mail.personalization.get(0).addSubstitution("-city-", "Denver"); + mail.setTemplateId("13b8f94f-bcae-4ec6-b752-70d6cb59f932"); + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + try { + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` + +## Without Mail Helper Class + +```java +import com.sendgrid.*; +import java.io.IOException; +public class Example { + public static void main(String[] args) throws IOException { + try { + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody("{ + \"personalizations\": + [{ + \"to\": [{\"email\": \"test@example.com\"}], + \"substitutions\": {\"-name-\": \"Example User\", \"-city-\": \"Denver\"}, + \"subject\": \"Hello World from the Twilio SendGrid Java Library!\" + }], + \"from\": {\"email\": \"test@example.com\"}, + \"content\": + [{ + \"type\": \"text/html\", + \"value\": \"I'm replacing the body tag\" + }] + ,\"template_id\": \"13b8f94f-bcae-4ec6-b752-70d6cb59f932\"}"); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` diff --git a/use-cases/sms.md b/use-cases/sms.md new file mode 100644 index 00000000..3dfe4cfa --- /dev/null +++ b/use-cases/sms.md @@ -0,0 +1,19 @@ +First, follow the [Twilio Setup](twilio-setup.md) guide for creating a Twilio account and setting up environment variables with the proper credentials. + +Then, install the Twilio Helper Library by following the [installation steps](https://github.com/twilio/twilio-java#installation). + +Finally, send a message. + +```java +String accountSid = System.getenv("TWILIO_ACCOUNT_SID"); +String authToken = System.getenv("TWILIO_AUTH_TOKEN"); +Twilio.init(accountSid, authToken); +Message message = Message.creator( + new PhoneNumber("+15558881234"), // To number + new PhoneNumber("+15559994321"), // From number + "Hello world!" // SMS body +).create(); +System.out.println(message.getSid()); +``` + +For more information, please visit the [Twilio SMS Java documentation](https://www.twilio.com/docs/sms/quickstart/java). diff --git a/use-cases/twilio-email.md b/use-cases/twilio-email.md new file mode 100644 index 00000000..a0227a0f --- /dev/null +++ b/use-cases/twilio-email.md @@ -0,0 +1,11 @@ +First, follow the [Twilio Setup](twilio-setup.md) guide for creating a Twilio account and setting up environment variables with the proper credentials. + +Then, initialize the Twilio Email Client. + +```java +TwilioEmail mailClient = new TwilioEmail(System.getenv("TWILIO_API_KEY"), System.getenv("TWILIO_API_SECRET")); +// or +TwilioEmail mailClient = new TwilioEmail(System.getenv("TWILIO_ACCOUNT_SID"), System.getenv("TWILIO_AUTH_TOKEN")); +``` + +This client has the same interface as the `SendGrid` client. diff --git a/use-cases/twilio-setup.md b/use-cases/twilio-setup.md new file mode 100644 index 00000000..7c3c37fc --- /dev/null +++ b/use-cases/twilio-setup.md @@ -0,0 +1,48 @@ +### 1. Obtain a Free Twilio Account + +Sign up for a free Twilio account [here](https://www.twilio.com/try-twilio?source=sendgrid-java). + +### 2. Set Up Your Environment Variables + +The Twilio API allows for authentication using with either an API key/secret or your Account SID/Auth Token. You can create an API key [here](https://twil.io/get-api-key) or obtain your Account SID and Auth Token [here](https://twil.io/console). + +Once you have those, follow the steps below based on your operating system. + +#### Linux/Mac + +```bash +echo "export TWILIO_API_KEY='YOUR_TWILIO_API_KEY'" > twilio.env +echo "export TWILIO_API_SECRET='YOUR_TWILIO_API_SECRET'" >> twilio.env +# or +echo "export TWILIO_ACCOUNT_SID='YOUR_TWILIO_ACCOUNT_SID'" > twilio.env +echo "export TWILIO_AUTH_TOKEN='YOUR_TWILIO_AUTH_TOKEN'" >> twilio.env +``` + +Then: + +```bash +echo "twilio.env" >> .gitignore +source ./twilio.env +``` + +#### Windows + +Temporarily set the environment variable (accessible only during the current CLI session): + +```bash +set TWILIO_API_KEY=YOUR_TWILIO_API_KEY +set TWILIO_API_SECRET=YOUR_TWILIO_API_SECRET +: or +set TWILIO_ACCOUNT_SID=YOUR_TWILIO_ACCOUNT_SID +set TWILIO_AUTH_TOKEN=YOUR_TWILIO_AUTH_TOKEN +``` + +Or permanently set the environment variable (accessible in all subsequent CLI sessions): + +```bash +setx TWILIO_API_KEY "YOUR_TWILIO_API_KEY" +setx TWILIO_API_SECRET "YOUR_TWILIO_API_SECRET" +: or +setx TWILIO_ACCOUNT_SID "YOUR_TWILIO_ACCOUNT_SID" +setx TWILIO_AUTH_TOKEN "YOUR_TWILIO_AUTH_TOKEN" +``` From e0454aacd20af93640115bfef9b5e5764b672632 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 9 Nov 2020 10:57:15 -0600 Subject: [PATCH 193/288] chore: update required files tests --- .../com/sendgrid/TestRequiredFilesExist.java | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index 4efc2f04..d6e000d0 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -7,21 +7,12 @@ public class TestRequiredFilesExist { - // ./Docker or docker/Docker + // ./Dockerfile @Test public void checkDockerExists() { - boolean dockerExists = new File("./Dockerfile").exists() || - new File("./docker/Dockerfile").exists(); - assertTrue(dockerExists); + assertTrue(new File("./Dockerfile").exists()); } - // // ./docker-compose.yml or ./docker/docker-compose.yml - // @Test public void checkDockerComposeExists() { - // boolean dockerComposeExists = new File("./docker-compose.yml").exists() || - // new File("./docker/docker-compose.yml").exists(); - // assertTrue(dockerComposeExists); - // } - // ./.env_sample @Test public void checkEnvSampleExists() { @@ -99,10 +90,4 @@ public void checkTroubleShootingGuideExists() { public void checkUsageGuideExists() { assertTrue(new File("./USAGE.md").exists()); } - - // ./USE_CASES.md - @Test - public void checkUseCases() { - assertTrue(new File("./USE_CASES.md").exists()); - } } From 461315ce3417505742ad28d51f0a12e2bf365278 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 9 Nov 2020 20:08:31 +0300 Subject: [PATCH 194/288] feat: Add helper for get unassigned IPs (#292) --- .../com/sendgrid/helpers/ips/IPAddress.java | 120 ++++++++++++++++++ .../com/sendgrid/helpers/ips/IPsHelper.java | 47 +++++++ 2 files changed, 167 insertions(+) create mode 100644 src/main/java/com/sendgrid/helpers/ips/IPAddress.java create mode 100644 src/main/java/com/sendgrid/helpers/ips/IPsHelper.java diff --git a/src/main/java/com/sendgrid/helpers/ips/IPAddress.java b/src/main/java/com/sendgrid/helpers/ips/IPAddress.java new file mode 100644 index 00000000..e190cdb9 --- /dev/null +++ b/src/main/java/com/sendgrid/helpers/ips/IPAddress.java @@ -0,0 +1,120 @@ +package com.sendgrid.helpers.ips; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +public class IPAddress { + + /** + * An IP address. + */ + @JsonProperty("ip") + private String ip; + + /** + * The subusers that are able to send email from this IP. + */ + @JsonProperty("subusers") + private List subUsers; + + /** + * The reverse DNS record for this IP address. + */ + @JsonProperty("rdns") + private String rdns; + + /** + * The IP pools that this IP has been added to. + */ + @JsonProperty("pools") + private List pools; + + /** + * Indicates if this IP address is currently warming up. + */ + @JsonProperty("warmup") + private boolean warmup; + + /** + * The date that the IP address was entered into warmup. + */ + @JsonProperty("start_date") + private long startDate; + + /** + * Indicates if this IP address has been whitelabeled. + */ + @JsonProperty("whitelabeled") + private boolean whitelabeled; + + /** + * The date that the IP address was assigned to the user. + */ + @JsonProperty("assigned_at") + private long assignedAt; + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public List getSubUsers() { + return subUsers; + } + + public void setSubUsers(List subUsers) { + this.subUsers = subUsers; + } + + public String getRdns() { + return rdns; + } + + public void setRdns(String rdns) { + this.rdns = rdns; + } + + public List getPools() { + return pools; + } + + public void setPools(List pools) { + this.pools = pools; + } + + public boolean isWarmup() { + return warmup; + } + + public void setWarmup(boolean warmup) { + this.warmup = warmup; + } + + public long getStartDate() { + return startDate; + } + + public void setStartDate(long startDate) { + this.startDate = startDate; + } + + public boolean isWhitelabeled() { + return whitelabeled; + } + + public void setWhitelabeled(boolean whitelabeled) { + this.whitelabeled = whitelabeled; + } + + public long getAssignedAt() { + return assignedAt; + } + + public void setAssignedAt(long assignedAt) { + this.assignedAt = assignedAt; + } +} diff --git a/src/main/java/com/sendgrid/helpers/ips/IPsHelper.java b/src/main/java/com/sendgrid/helpers/ips/IPsHelper.java new file mode 100644 index 00000000..038901e1 --- /dev/null +++ b/src/main/java/com/sendgrid/helpers/ips/IPsHelper.java @@ -0,0 +1,47 @@ +package com.sendgrid.helpers.ips; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.sendgrid.Method; +import com.sendgrid.Request; +import com.sendgrid.Response; +import com.sendgrid.SendGrid; +import org.apache.http.HttpStatus; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Helper class for quick and easy access to the SendGrid IP Addresses API. + */ +public class IPsHelper { + + private static final String ALL_IPS_ENDPOINT = "ips"; + + /** + * Get a list of unassigned IP addresses. + * @param sendGrid a SendGrid client. + * @return a list of unassigned ip addresses if response status is ok (200), otherwise - null + * @throws IOException in case of a network error or json parse error. + */ + public static List getAllUnassignedIPs(SendGrid sendGrid) throws IOException { + Request request = new Request(); + request.setMethod(Method.GET); + request.setEndpoint(ALL_IPS_ENDPOINT); + + Response response = sendGrid.api(request); + if (response != null && response.getStatusCode() == HttpStatus.SC_OK) { + List unassignedIPs = new ArrayList<>(); + List ipAddressList = new ObjectMapper().readValue(response.getBody(), new TypeReference>() {}); + for (IPAddress ipAddress : ipAddressList) { + if (ipAddress.getSubUsers() == null || ipAddress.getSubUsers().size() == 0) { + unassignedIPs.add(ipAddress.getIp()); + } + } + return unassignedIPs; + } + return null; + } + +} From b2db70ee90cc19812f33e765ed7ac64c3c8cdb71 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 18 Nov 2020 08:33:21 -0800 Subject: [PATCH 195/288] docs: Fix broken link in readme (#656) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 26ee7c3a..f42b9e17 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ public class Example { # Use Cases -[Examples of common API use cases](USE_CASES.md), such as how to send an email with a transactional template. +[Examples of common API use cases](use-cases), such as how to send an email with a transactional template. # Announcements From fe0d5749efa4dfa9b13ea8177bf19fb8c4937371 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 Nov 2020 22:12:33 +0000 Subject: [PATCH 196/288] [Librarian] Version Bump --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87888fb5..e029f5d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,20 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-11-18] Version 4.7.0 +-------------------------- +**Library - Docs** +- [PR #656](https://github.com/sendgrid/sendgrid-java/pull/656): Fix broken link in readme. Thanks to [@KakeJopulsky](https://github.com/KakeJopulsky)! +- [PR #405](https://github.com/sendgrid/sendgrid-java/pull/405): Create use-cases directory. Thanks to [@jamietanna](https://github.com/jamietanna)! +- [PR #418](https://github.com/sendgrid/sendgrid-java/pull/418): Fixes Javadoc errors in Attachments.java. Thanks to [@pacbac](https://github.com/pacbac)! +- [PR #628](https://github.com/sendgrid/sendgrid-java/pull/628): Correct number of free emails. Thanks to [@twogood](https://github.com/twogood)! +- [PR #304](https://github.com/sendgrid/sendgrid-java/pull/304): Save attachment to Dropbox. Thanks to [@deepapanwar](https://github.com/deepapanwar)! +- [PR #357](https://github.com/sendgrid/sendgrid-java/pull/357): Fix code issues in examples/clients/clients.java. Thanks to [@pushkyn](https://github.com/pushkyn)! + +**Library - Feature** +- [PR #292](https://github.com/sendgrid/sendgrid-java/pull/292): Add helper for get unassigned IPs. Thanks to [@pushkyn](https://github.com/pushkyn)! + + [2020-11-05] Version 4.6.8 -------------------------- **Library - Chore** From b829f6ec53fcf78bd0f10656fd144d27b0951179 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 Nov 2020 22:33:03 +0000 Subject: [PATCH 197/288] Release 4.7.0 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cbd779c1..913fedee 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.6.8/sendgrid-4.6.8-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.6.8/sendgrid-4.6.8-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.0/sendgrid-4.7.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.0/sendgrid-4.7.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index f42b9e17..889bb68b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.6.8.** +**The default branch name for this repository has been changed to `main` as of 4.7.0.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 40,000 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.7.0 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.6.8' + implementation 'com.sendgrid:sendgrid-java:4.7.0' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.6.8/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.0/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 4bc94f9e..fcd7234c 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.6.8 + 4.7.0 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.6.8 + 4.7.0 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 8f284f41..4aadd3b6 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.6.8"; + private static final String VERSION = "4.7.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index e93c1199..7e94fcfc 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.6.8"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.0"); } @Test From d34ee53d19d7ed521f49c9368256e0b97cb4eb1a Mon Sep 17 00:00:00 2001 From: Pat Putnam Date: Thu, 3 Dec 2020 17:54:04 -0700 Subject: [PATCH 198/288] fix: Utilize headers set on the Request object (#657) --- src/main/java/com/sendgrid/BaseInterface.java | 10 ++-- src/test/java/com/sendgrid/SendGridTest.java | 52 +++++++++++++++++++ 2 files changed, 55 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 4aadd3b6..4dd4ec0e 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -268,13 +268,9 @@ public Response api(final Request request) throws IOException { req.setEndpoint("/" + version + "/" + request.getEndpoint()); req.setBody(request.getBody()); - for (final Map.Entry header : this.requestHeaders.entrySet()) { - req.addHeader(header.getKey(), header.getValue()); - } - - for (final Map.Entry queryParam : request.getQueryParams().entrySet()) { - req.addQueryParam(queryParam.getKey(), queryParam.getValue()); - } + req.getHeaders().putAll(this.requestHeaders); + req.getHeaders().putAll(request.getHeaders()); + req.getQueryParams().putAll(request.getQueryParams()); return makeCall(req); } diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 7e94fcfc..24d62a76 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -3190,4 +3190,56 @@ public void test_get_impersonate_subuser() { sg.removeImpersonateSubuser(); Assert.assertEquals(sg.getImpersonateSubuser(), null); } + + @Test + public void test_sendgrid_object_headers_are_used_in_request() throws IOException { + Client client = mock(Client.class); + SendGrid sg = new SendGrid(SENDGRID_API_KEY, client); + sg.addRequestHeader("set-on-sendgrid", "123"); + + Request request = new Request(); + + sg.api(request); + verify(client).api(argThat((Request req) -> req.getHeaders().containsKey("set-on-sendgrid"))); + } + + @Test + public void test_request_headers_are_used_in_request() throws IOException { + Client client = mock(Client.class); + SendGrid sg = new SendGrid(SENDGRID_API_KEY, client); + + Request request = new Request(); + request.addHeader("set-on-request", "456"); + + sg.api(request); + verify(client).api(argThat((Request req) -> req.getHeaders().containsKey("set-on-request"))); + } + + + @Test + public void test_sendgrid_object_and_request_headers_are_both_used_in_request() throws IOException { + Client client = mock(Client.class); + SendGrid sg = new SendGrid(SENDGRID_API_KEY, client); + sg.addRequestHeader("set-on-sendgrid", "123"); + + Request request = new Request(); + request.addHeader("set-on-request", "456"); + + sg.api(request); + verify(client).api(argThat((Request req) -> + req.getHeaders().containsKey("set-on-sendgrid") && req.getHeaders().containsKey("set-on-request"))); + } + + @Test + public void test_request_headers_override_sendgrid_object_headers() throws IOException { + Client client = mock(Client.class); + SendGrid sg = new SendGrid(SENDGRID_API_KEY, client); + sg.addRequestHeader("set-on-both", "123"); + + Request request = new Request(); + request.addHeader("set-on-both", "456"); + + sg.api(request); + verify(client).api(argThat((Request req) -> req.getHeaders().get("set-on-both").equals("456"))); + } } From f7718731f1eaf097674ce01d74da96f522b10d64 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 16 Dec 2020 22:49:53 +0000 Subject: [PATCH 199/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e029f5d9..79834a22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2020-12-16] Version 4.7.1 +-------------------------- +**Library - Fix** +- [PR #657](https://github.com/sendgrid/sendgrid-java/pull/657): Utilize headers set on the Request object. Thanks to [@prputnam](https://github.com/prputnam)! + + [2020-11-18] Version 4.7.0 -------------------------- **Library - Docs** From 1259edeb8570d9ea9bfdc338d3de7bfb10b62b7e Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 16 Dec 2020 22:49:56 +0000 Subject: [PATCH 200/288] Release 4.7.1 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 913fedee..b091a76e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.0/sendgrid-4.7.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.0/sendgrid-4.7.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.1/sendgrid-4.7.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.1/sendgrid-4.7.1-jar.jar:. Example ``` diff --git a/README.md b/README.md index 889bb68b..3dce3ec9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.7.0.** +**The default branch name for this repository has been changed to `main` as of 4.7.1.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.7.0 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.7.1 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.0' + implementation 'com.sendgrid:sendgrid-java:4.7.1' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.1/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index fcd7234c..88a8dc0d 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.0 + 4.7.1 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.0 + 4.7.1 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 4dd4ec0e..44f36e73 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.0"; + private static final String VERSION = "4.7.1"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 24d62a76..2a855cef 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.1"); } @Test From c156455e485e3368351082a78e980c618ef8d16b Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 6 Jan 2021 18:16:42 +0000 Subject: [PATCH 201/288] chore: update template files --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 29aba592..e5439a92 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2020, Twilio SendGrid, Inc. +Copyright (C) 2021, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in From 7381525d6b8b5f7ada71fd00b30238c5c170def1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Feb 2021 16:42:52 -0800 Subject: [PATCH 202/288] chore: bump jackson.version from 2.10.2 to 2.12.1 (#671) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 88a8dc0d..0c87b741 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 2.10.2 + 2.12.1 https://github.com/sendgrid/sendgrid-java From 1578ffc2e26e4c0ea03a25eeafd5e166011b5599 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 24 Feb 2021 20:06:27 +0000 Subject: [PATCH 203/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79834a22..1fbc6b5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-02-24] Version 4.7.2 +-------------------------- +**Library - Chore** +- [PR #671](https://github.com/sendgrid/sendgrid-java/pull/671): bump jackson.version from 2.10.2 to 2.12.1. Thanks to [@dependabot](https://github.com/dependabot)! + + [2020-12-16] Version 4.7.1 -------------------------- **Library - Fix** From a2b4926ede929f36a3b6e9d9e9fcaba62125ae93 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 24 Feb 2021 20:20:14 +0000 Subject: [PATCH 204/288] Release 4.7.2 --- CONTRIBUTING.md | 2 +- README.md | 8 ++++---- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b091a76e..6e129bad 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.1/sendgrid-4.7.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.1/sendgrid-4.7.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.2/sendgrid-4.7.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.2/sendgrid-4.7.2-jar.jar:. Example ``` diff --git a/README.md b/README.md index 3dce3ec9..fb0335e3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.7.1.** +**The default branch name for this repository has been changed to `main` as of 4.7.2.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.7.1 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.7.2 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.1' + implementation 'com.sendgrid:sendgrid-java:4.7.2' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.2/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 0c87b741..0842ac27 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.1 + 4.7.2 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.1 + 4.7.2 @@ -318,7 +318,7 @@ org.bouncycastle bcprov-jdk15on - 1.67 + 1.68 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 44f36e73..39874e5f 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.1"; + private static final String VERSION = "4.7.2"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 2a855cef..1fbaddd8 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.1"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.2"); } @Test From 25b1a9fa50c733a68b23ba1c0ec917b26bdd47ce Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Mon, 8 Mar 2021 23:26:24 -0800 Subject: [PATCH 205/288] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fb0335e3..720d62e8 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,8 @@ public class Example { # Announcements +Our Developer Experience team is conducting planned maintenance from 03/09/2021 until 03/11/2021. Our next release is scheduled for 03/15/2021. + Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-java/issues/140). Your support is appreciated! All updates to this library are documented in our [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. From e815bb21d73153b131b0a881bdfcd8354ddd4145 Mon Sep 17 00:00:00 2001 From: Twilio Date: Fri, 12 Mar 2021 19:28:15 +0000 Subject: [PATCH 206/288] chore: update template files --- .github/ISSUE_TEMPLATE/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..b24426d0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,10 @@ +contact_links: + - name: Twilio SendGrid Support + url: https://support.sendgrid.com + about: Get Support + - name: Stack Overflow + url: https://stackoverflow.com/questions/tagged/sendgrid-java+or+sendgrid+java + about: Ask questions on Stack Overflow + - name: Documentation + url: https://sendgrid.com/docs/for-developers/ + about: View Reference Documentation From 89e1ccdc689365c41afdd3004fad097edfd9676f Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Mon, 15 Mar 2021 12:49:43 -0700 Subject: [PATCH 207/288] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 720d62e8..fb0335e3 100644 --- a/README.md +++ b/README.md @@ -202,8 +202,6 @@ public class Example { # Announcements -Our Developer Experience team is conducting planned maintenance from 03/09/2021 until 03/11/2021. Our next release is scheduled for 03/15/2021. - Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-java/issues/140). Your support is appreciated! All updates to this library are documented in our [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. From ce541f15010416d28883aa095f6a646947585f0f Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Fri, 23 Apr 2021 11:08:16 -0700 Subject: [PATCH 208/288] chore: rotate key --- .travis.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff279202..062520ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,22 +1,20 @@ language: java jdk: openjdk8 before_install: - - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true +- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true env: - - version=8 - - version=11 +- version=8 +- version=11 script: - - make test-docker - +- make test-docker deploy: - - provider: script - script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease - edge: true - on: - tags: true - condition: $version = 8 - branch: main - +- provider: script + script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease + edge: true + on: + tags: true + condition: "$version = 8" + branch: main notifications: slack: if: branch = main @@ -24,4 +22,4 @@ notifications: on_success: never on_failure: change rooms: - - secure: q2SEemDXFLu/2G2I7oD02+YsM5Q0G27j+b4P1BcReWqVHhRz9L+iyuYWhIXJ6hW0omL5V2XrZ65uqb4f/SD7b89oXRGToVxfykrBzcas1tqIIp9lldd1u2eMc59zALX4nkTlE0T4UFLwEvoeY8aXoD/dNytSy6M2F5c2nYcmoN0= + secure: U60cRCUgX4z+CYZXW/DjNSeCr4rxZVJBjlsGtpzNVWt2Lz7jhx/6Bx/2SChPQt1BR/6RY3kUf1hXAd3vqbwIMjvSFm/HBb4EHEWLAoqVtHjj6p9YZ+NXFzxRrarG3tBB14prRoG2t8TwdcvxnklBOYgUY5PWld3ptp+BG8iyr8A= From 9de3eaeafe4f07682555ec6237bc9bc797c5c53a Mon Sep 17 00:00:00 2001 From: Mikko Date: Fri, 30 Apr 2021 19:18:41 +0300 Subject: [PATCH 209/288] docs: Fix number of free emails in README (#679) Somewhere along the line, the number seems to have been replaced with a version number. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fb0335e3..532515fa 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ We appreciate your continued support, thank you! ## Prerequisites - Java 8 or 11 -- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 4.7.2 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). +- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-java) to send up to 40,000 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-java). ## Setup Environment Variables From 0128ca219befa395ec5cb5cc72878e802bc96cea Mon Sep 17 00:00:00 2001 From: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com> Date: Tue, 11 May 2021 16:49:26 -0600 Subject: [PATCH 210/288] docs: Fix date for main branch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 532515fa..0f1cca27 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ **NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. -**The default branch name for this repository has been changed to `main` as of 4.7.2.** +**The default branch name for this repository has been changed to `main` as of 07/27/2020.** **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** From 5ea0713a2283cc67e543c31f94056658c9bd61ce Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Wed, 16 Jun 2021 16:18:36 -0700 Subject: [PATCH 211/288] update slack token --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 062520ed..f456ed0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ notifications: on_success: never on_failure: change rooms: - secure: U60cRCUgX4z+CYZXW/DjNSeCr4rxZVJBjlsGtpzNVWt2Lz7jhx/6Bx/2SChPQt1BR/6RY3kUf1hXAd3vqbwIMjvSFm/HBb4EHEWLAoqVtHjj6p9YZ+NXFzxRrarG3tBB14prRoG2t8TwdcvxnklBOYgUY5PWld3ptp+BG8iyr8A= + secure: NGGQe8OMWfbAOM6O7odDHtY/UVdqJ6oLQzB96QlTNkGgbyINKdufHxHaiv0SC/w4alUzzs6gw1h2WCpxw1PPl+pnVAeSVLfvRLYQApCGigWF0s5AyfVxtoG7bZOQLhsddC1ldQr12G4zclew+7k+0bgra4ENkbvv1OGiQdPJ08U= From b03272e3af731f7b86aa2eb78f33a80d62d913e4 Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Wed, 16 Jun 2021 17:08:20 -0700 Subject: [PATCH 212/288] chore: add docker credentials to travis --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f456ed0c..5518c0d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,8 @@ env: - version=8 - version=11 script: -- make test-docker +- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + - make test-docker deploy: - provider: script script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease From e3e55d857ca2dc960313e3cbe1440117e9dd2759 Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Wed, 16 Jun 2021 17:10:54 -0700 Subject: [PATCH 213/288] chore: add docker credentials to travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5518c0d2..84f6b2be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,8 @@ env: - version=8 - version=11 script: -- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - - make test-docker +- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin" +- make test-docker deploy: - provider: script script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease From 0812d5c3b1c2556ab531f7cf055538505f9293bb Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Wed, 16 Jun 2021 17:14:53 -0700 Subject: [PATCH 214/288] chore: add docker credentials to travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 84f6b2be..4e3f5b5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ env: - version=8 - version=11 script: -- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin" +- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - make test-docker deploy: - provider: script From 7ee80927a7b59de6cb30170267fdf3cc5e762859 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 30 Jun 2021 19:36:47 +0000 Subject: [PATCH 215/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fbc6b5e..e05c2625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-06-30] Version 4.7.3 +-------------------------- +**Library - Docs** +- [PR #679](https://github.com/sendgrid/sendgrid-java/pull/679): Fix number of free emails in README. Thanks to [@mjjs](https://github.com/mjjs)! + + [2021-02-24] Version 4.7.2 -------------------------- **Library - Chore** From ce785105c95658f321c4138a124b9b14d909da65 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 30 Jun 2021 19:44:27 +0000 Subject: [PATCH 216/288] Release 4.7.3 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6e129bad..a1fc85bd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.2/sendgrid-4.7.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.2/sendgrid-4.7.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.3/sendgrid-4.7.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.3/sendgrid-4.7.3-jar.jar:. Example ``` diff --git a/README.md b/README.md index 0f1cca27..4c5c69d6 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.2' + implementation 'com.sendgrid:sendgrid-java:4.7.3' } repositories { @@ -87,7 +87,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.2/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.3/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 0842ac27..f4052115 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.2 + 4.7.3 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.2 + 4.7.3 @@ -318,7 +318,7 @@ org.bouncycastle bcprov-jdk15on - 1.68 + 1.69 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 39874e5f..18d3b71c 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.2"; + private static final String VERSION = "4.7.3"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 1fbaddd8..27190868 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.2"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.3"); } @Test From 83e57c6c45d6ef32dbcf414a97f9bbcae2a0c544 Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Wed, 21 Jul 2021 15:25:56 -0700 Subject: [PATCH 217/288] Remove newsletter badge --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 4c5c69d6..0668fc8b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Travis Badge](https://travis-ci.com/sendgrid/sendgrid-java.svg?branch=main)](https://travis-ci.com/sendgrid/sendgrid-java) [![Maven Central](https://img.shields.io/maven-central/v/com.sendgrid/sendgrid-java.svg)](http://mvnrepository.com/artifact/com.sendgrid/sendgrid-java) -[![Email Notifications Badge](https://dx.sendgrid.com/badge/java)](https://dx.sendgrid.com/newsletter/java) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-java.svg)](https://github.com/sendgrid/sendgrid-java/graphs/contributors) [![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-java/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-java) From 9bc3c25bdcd6c68983a20560db62d46837f7d059 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Thu, 29 Jul 2021 15:01:21 -0700 Subject: [PATCH 218/288] chore: update travis config --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4e3f5b5c..05841cba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: java jdk: openjdk8 before_install: - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true +- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch || true env: - version=8 - version=11 From ca5c05c9992415d06e413dfe9b88f0855c8dd26d Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Thu, 29 Jul 2021 15:24:53 -0700 Subject: [PATCH 219/288] chore: remove docker credentials for PRs --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 05841cba..9d5fdc9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ env: - version=8 - version=11 script: -- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin +- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin; + fi - make test-docker deploy: - provider: script From 468db091a68176555757c45e11812f77c3b2b3cf Mon Sep 17 00:00:00 2001 From: svcprodsec-sendgrid <70608793+svcprodsec-sendgrid@users.noreply.github.com> Date: Mon, 2 Aug 2021 12:11:55 -0400 Subject: [PATCH 220/288] fix: pom.xml to reduce vulnerabilities (#694) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-1048058 Co-authored-by: snyk-bot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f4052115..d26ae36d 100644 --- a/pom.xml +++ b/pom.xml @@ -286,7 +286,7 @@ com.sendgrid java-http-client - 4.3.6 + 4.3.7 com.fasterxml.jackson.core From 8b41bb94fe6c4ffa4574e1ceb0e22dc128659799 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 11 Aug 2021 16:53:15 +0000 Subject: [PATCH 221/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e05c2625..6385e5bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-08-11] Version 4.7.4 +-------------------------- +**Library - Chore** +- [PR #694](https://github.com/sendgrid/sendgrid-java/pull/694): [Snyk] Security upgrade com.sendgrid:java-http-client from 4.3.6 to 4.3.7. Thanks to [@svcprodsec-sendgrid](https://github.com/svcprodsec-sendgrid)! + + [2021-06-30] Version 4.7.3 -------------------------- **Library - Docs** From c46e5775ae058d7f9b12be5c8e170b97c32e05b9 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 11 Aug 2021 17:04:16 +0000 Subject: [PATCH 222/288] Release 4.7.4 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a1fc85bd..94cf44c0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.3/sendgrid-4.7.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.3/sendgrid-4.7.3-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.4/sendgrid-4.7.4-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.4/sendgrid-4.7.4-jar.jar:. Example ``` diff --git a/README.md b/README.md index 0668fc8b..0d9bb379 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.3' + implementation 'com.sendgrid:sendgrid-java:4.7.4' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.3/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.4/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index d26ae36d..dcf70d0d 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.3 + 4.7.4 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.3 + 4.7.4 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 18d3b71c..bca374f0 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.3"; + private static final String VERSION = "4.7.4"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 27190868..30e4d286 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.3"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.4"); } @Test From 84fe0783ff2437328f1cd3f3a8d4dfa9bf5c6f2d Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Tue, 21 Sep 2021 12:18:33 -0700 Subject: [PATCH 223/288] chore: update docker (#703) --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9d5fdc9d..d4b2a0ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,11 @@ language: java jdk: openjdk8 before_install: +- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" +- sudo apt-get update +- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce +- docker --version - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true - echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch || true env: From bc645f1d40ff68691db4b3c645bd20609bf96bbf Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 22 Sep 2021 20:34:25 +0000 Subject: [PATCH 224/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6385e5bb..104bf3e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-09-22] Version 4.7.5 +-------------------------- +**Library - Chore** +- [PR #703](https://github.com/sendgrid/sendgrid-java/pull/703): update docker. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + + [2021-08-11] Version 4.7.4 -------------------------- **Library - Chore** From d75ac30a74c7240ce717fbd429c1248aed05724b Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 22 Sep 2021 20:44:24 +0000 Subject: [PATCH 225/288] Release 4.7.5 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94cf44c0..38da8a7f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.4/sendgrid-4.7.4-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.4/sendgrid-4.7.4-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.5/sendgrid-4.7.5-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.5/sendgrid-4.7.5-jar.jar:. Example ``` diff --git a/README.md b/README.md index 0d9bb379..c0f85c93 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.4' + implementation 'com.sendgrid:sendgrid-java:4.7.5' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.4/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.5/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index dcf70d0d..a12304dd 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.4 + 4.7.5 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.4 + 4.7.5 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index bca374f0..b2fb04a6 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.4"; + private static final String VERSION = "4.7.5"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 30e4d286..02e22723 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.4"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.5"); } @Test From 470872da6e48e6a80368f697e35c0a7ceb0c1cc4 Mon Sep 17 00:00:00 2001 From: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com> Date: Wed, 29 Sep 2021 15:10:10 -0700 Subject: [PATCH 226/288] docs: update documentation link --- use-cases/transactional-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/use-cases/transactional-templates.md b/use-cases/transactional-templates.md index bb908733..ba2b39e2 100644 --- a/use-cases/transactional-templates.md +++ b/use-cases/transactional-templates.md @@ -1,6 +1,6 @@ # Transactional Templates -For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing. +For this example, we assume you have created a [transactional template](https://docs.sendgrid.com/ui/sending-email/create-and-edit-legacy-transactional-templates). Following is the template content we used for testing. Template ID (replace with your own): From 49e68952346b4a10cfd257eed5915ae535ae0db8 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Fri, 8 Oct 2021 06:52:22 -0700 Subject: [PATCH 227/288] docs: improve signed webhook events docs (#705) --- TROUBLESHOOTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 02fba251..44b5c885 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -18,6 +18,7 @@ If you can't find a solution below, please open an [issue](https://github.com/se - [Using the Package Manager](#using-the-package-manager) - [Android Compatibility](#android-compatibility) - [Viewing the Request Body](#viewing-the-request-body) +- [Verifying Event Webhooks](#signed-webhooks) ## Migrating from v2 to v3 @@ -114,3 +115,15 @@ You can do this right before you call `request.setBody(mail.build())` like so: ```java System.out.println(mail.build()); ``` + + +## Signed Webhook Verification + +Twilio SendGrid's Event Webhook will notify a URL via HTTP POST with information about events that occur as your mail is processed. [This](https://docs.sendgrid.com/for-developers/tracking-events/getting-started-event-webhook-security-features) article covers all you need to know to secure the Event Webhook, allowing you to verify that incoming requests originate from Twilio SendGrid. The sendgrid-java library can help you verify these Signed Event Webhooks. + +You can find the end-to-end usage example [here](examples/helpers/eventwebhook/Example.java) and the tests [here](/src/test/java/com/sendgrid/helpers/eventwebhook/EventWebhookTest.java). + +If you are still having trouble getting the validation to work, follow the following instructions: +- Be sure to use the *raw* payload for validation +- Be sure to include a trailing carriage return and newline in your payload +- In case of multi-event webhooks, make sure you include the trailing newline and carriage return after *each* event From 218f51be349f82011861c4d9262344d2575e3256 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 18 Oct 2021 18:31:16 +0000 Subject: [PATCH 228/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 104bf3e8..95307ff6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-10-18] Version 4.7.6 +-------------------------- +**Library - Docs** +- [PR #705](https://github.com/sendgrid/sendgrid-java/pull/705): improve signed webhook events docs. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)! + + [2021-09-22] Version 4.7.5 -------------------------- **Library - Chore** From bb9c0eab5a4723d04178f7fd2864309862af770d Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 18 Oct 2021 18:40:25 +0000 Subject: [PATCH 229/288] Release 4.7.6 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 38da8a7f..5229ed86 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.5/sendgrid-4.7.5-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.5/sendgrid-4.7.5-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.7.6/sendgrid-4.7.6-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.6/sendgrid-4.7.6-jar.jar:. Example ``` diff --git a/README.md b/README.md index c0f85c93..5acaee3e 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.5' + implementation 'com.sendgrid:sendgrid-java:4.7.6' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.5/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.6/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index a12304dd..4a9f4a00 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.5 + 4.7.6 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.5 + 4.7.6 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index b2fb04a6..31bb9dfa 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.5"; + private static final String VERSION = "4.7.6"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 02e22723..b181589d 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.5"); + Assert.assertEquals(sg.getLibraryVersion(), "4.7.6"); } @Test From a2c71efc7c1513d17e67cf04e414ff7c4c1adee1 Mon Sep 17 00:00:00 2001 From: Bilal Boussayoud Date: Thu, 21 Oct 2021 09:47:43 -0600 Subject: [PATCH 230/288] feat: allow personalization of the From name and email for each email recipient (#706) * feat: allow personalization of the From name and email for email recipients --- examples/helpers/mail/Example.java | 14 ++++-- .../MultipleEmailsMultipleRecipients.java | 1 + .../helpers/mail/objects/Personalization.java | 19 ++++++++ .../java/com/sendgrid/helpers/MailTest.java | 10 +++- use-cases/README.md | 1 + use-cases/personalizations.md | 48 +++++++++++++++++++ 6 files changed, 87 insertions(+), 6 deletions(-) create mode 100644 use-cases/personalizations.md diff --git a/examples/helpers/mail/Example.java b/examples/helpers/mail/Example.java index 8ff7ed42..bffcdfdb 100644 --- a/examples/helpers/mail/Example.java +++ b/examples/helpers/mail/Example.java @@ -57,22 +57,26 @@ public static Mail buildKitchenSink() { to2.setName("Example User"); to2.setEmail("test1@example.com"); personalization2.addTo(to2); + Email fromEmail2 = new Email(); + fromEmail2.setName("Example User"); + fromEmail2.setEmail("test2@example.com"); + personalization2.setFrom(fromEmail2); to2.setName("Example User"); - to2.setEmail("test2@example.com"); + to2.setEmail("test3@example.com"); personalization2.addTo(to2); Email cc2 = new Email(); cc2.setName("Example User"); - cc2.setEmail("test3@example.com"); + cc2.setEmail("test4@example.com"); personalization2.addCc(cc2); cc2.setName("Example User"); - cc2.setEmail("test4@example.com"); + cc2.setEmail("test5@example.com"); personalization2.addCc(cc2); Email bcc2 = new Email(); bcc2.setName("Example User"); - bcc2.setEmail("test5@example.com"); + bcc2.setEmail("test6@example.com"); personalization2.addBcc(bcc2); bcc2.setName("Example User"); - bcc2.setEmail("test6@example.com"); + bcc2.setEmail("test7@example.com"); personalization2.addBcc(bcc2); personalization2.setSubject("Hello World from the Personalized Twilio SendGrid Java Library"); personalization2.addHeader("X-Test", "test"); diff --git a/examples/helpers/mail/MultipleEmailsMultipleRecipients.java b/examples/helpers/mail/MultipleEmailsMultipleRecipients.java index 35fe03b8..e96fca16 100644 --- a/examples/helpers/mail/MultipleEmailsMultipleRecipients.java +++ b/examples/helpers/mail/MultipleEmailsMultipleRecipients.java @@ -29,6 +29,7 @@ public static void main(String[] args) throws IOException { final Personalization personalization2 = new Personalization(); personalization2.addTo(new Email("test2@example.com", "Example User2")); + personalization2.setFrom(new Email("test3@example.com", "Example User3")); personalization2.addDynamicTemplateData("name", "Example User2"); personalization2.addDynamicTemplateData("city", "San Francisco"); mail.addPersonalization(personalization2); diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java index 82cb3de3..16e99005 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/Personalization.java @@ -15,6 +15,9 @@ public class Personalization { @JsonProperty("to") private List tos; + @JsonProperty("from") + private Email from; + @JsonProperty("cc") private List ccs; @@ -59,6 +62,15 @@ public void addTo(Email email) { } } + @JsonProperty("from") + public Email getFrom() { + return from; + } + + public void setFrom(Email email) { + this.from = email; + } + @JsonProperty("cc") public List getCcs() { if (ccs == null) { @@ -260,6 +272,13 @@ public boolean equals(Object obj) { } else if (!tos.equals(other.tos)) { return false; } + if (from == null) { + if (other.from != null) { + return false; + } + } else if (!from.equals(other.from)) { + return false; + } return true; } } diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index bc49a197..9cdc194c 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -78,6 +78,10 @@ public void testKitchenSink() throws IOException { to2.setName("Example User"); to2.setEmail("test@example.com"); personalization2.addTo(to2); + Email fromEmail2 = new Email(); + fromEmail2.setName("Example Sender"); + fromEmail2.setEmail("sender@example.com"); + personalization2.setFrom(fromEmail2); Email cc2 = new Email(); cc2.setName("Example User"); cc2.setEmail("test@example.com"); @@ -110,6 +114,10 @@ public void testKitchenSink() throws IOException { to3.setName("Example User"); to3.setEmail("test@example.com"); personalization3.addTo(to3); + Email fromEmail3 = new Email(); + fromEmail3.setName("Example Sender2"); + fromEmail3.setEmail("sender2@example.com"); + personalization3.setFrom(fromEmail3); Email cc3 = new Email(); cc3.setName("Example User"); cc3.setEmail("test@example.com"); @@ -247,7 +255,7 @@ public void testKitchenSink() throws IOException { replyTo.setEmail("test@example.com"); mail.setReplyTo(replyTo); - Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"items\":[{\"price\":\"$ 59.95\",\"text\":\"New Line Sneakers\"},{\"text\":\"Old Line Sneakers\"}],\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); + Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"from\":{\"name\":\"Example Sender\",\"email\":\"sender@example.com\"},\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"from\":{\"name\":\"Example Sender2\",\"email\":\"sender2@example.com\"},\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"items\":[{\"price\":\"$ 59.95\",\"text\":\"New Line Sneakers\"},{\"text\":\"Old Line Sneakers\"}],\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); } @Test diff --git a/use-cases/README.md b/use-cases/README.md index 988af54c..204d8609 100644 --- a/use-cases/README.md +++ b/use-cases/README.md @@ -5,6 +5,7 @@ Please [open an issue](https://github.com/sendgrid/sendgrid-ruby/issues) or [mak # Email Use Cases * [Transactional Templates](transactional-templates.md) * [Legacy Templates](legacy-templates.md) +* [Personalizations](personalizations.md) # Twilio Use Cases * [Twilio Setup](twilio-setup.md) diff --git a/use-cases/personalizations.md b/use-cases/personalizations.md new file mode 100644 index 00000000..494161d8 --- /dev/null +++ b/use-cases/personalizations.md @@ -0,0 +1,48 @@ +# Personalizations + +This example goes over how to send multiple emails using personalizations with the helper class. + +A similar example can be found in `examples/helpers/mail/MultipleEmailsMultipleRecipients.java`, and further documentation can be found [here](https://docs.sendgrid.com/for-developers/sending-email/personalizations). + +```java +import com.sendgrid.*; +import java.io.IOException; + +public class Example { + public static void main(String[] args) { + final Mail mail = new Mail(); + + // Note that the domain of the from addresses should be the same + mail.setFrom(new Email("test@example.com", "Example User")); + mail.setSubject("I'm the original subject"); + mail.addContent(new Content("text/plain", "and this is some content")); + mail.addContent(new Content("text/html", "and this is some content")); + + final Personalization personalization1 = new Personalization(); + personalization1.addTo(new Email("test1@example.com", "Example User1")); + personalization1.addCc(new Email("test2@example.com", "Example User2")); + mail.addPersonalization(personalization1); + + final Personalization personalization2 = new Personalization(); + personalization2.addTo(new Email("test3@example.com", "Example User3")); + personalization2.setFrom(new Email("test4@example.com", "Example User4")); + personalization2.setSubject(new Subject("I'm the personalized subject")); + personalization2.addBcc(new Email("test5@example.com", "Example User5")); + mail.addPersonalization(personalization2); + + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Request request = new Request(); + try { + request.setMethod(Method.POST); + request.setEndpoint("mail/send"); + request.setBody(mail.build()); + Response response = sg.api(request); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + } catch (IOException ex) { + throw ex; + } + } +} +``` \ No newline at end of file From 7a58fcd4f0dca8c8de984d762bacb88717268753 Mon Sep 17 00:00:00 2001 From: Ethan Lo Date: Mon, 1 Nov 2021 18:20:04 -0400 Subject: [PATCH 231/288] fix: Add missing bypass settings to MailSettings (#707) * Add missing bypass settings to MailSettings --- examples/helpers/mail/Example.java | 11 +++ .../helpers/mail/objects/MailSettings.java | 88 +++++++++++++++++++ .../java/com/sendgrid/helpers/MailTest.java | 11 ++- 3 files changed, 109 insertions(+), 1 deletion(-) diff --git a/examples/helpers/mail/Example.java b/examples/helpers/mail/Example.java index bffcdfdb..174e38ba 100644 --- a/examples/helpers/mail/Example.java +++ b/examples/helpers/mail/Example.java @@ -149,6 +149,17 @@ public static Mail buildKitchenSink() { Setting bypassListManagement = new Setting(); bypassListManagement.setEnable(true); mailSettings.setBypassListManagement(bypassListManagement); + // Note: Bypass Spam, Bounce, and Unsubscribe management cannot + // be combined with Bypass List Management + Setting bypassSpamManagement = new Setting(); + bypassSpamManagement.setEnable(true); + mailSettings.setBypassSpamManagement(bypassSpamManagement); + Setting bypassBounceManagement = new Setting(); + bypassBounceManagement.setEnable(true); + mailSettings.setBypassBounceManagement(bypassBounceManagement); + Setting bypassUnsubscribeManagement = new Setting(); + bypassUnsubscribeManagement.setEnable(true); + mailSettings.setBypassUnsubscribeManagement(bypassUnsubscribeManagement); FooterSetting footerSetting = new FooterSetting(); footerSetting.setEnable(true); footerSetting.setText("Footer Text"); diff --git a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java index d83a56b6..1bad6b09 100644 --- a/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java +++ b/src/main/java/com/sendgrid/helpers/mail/objects/MailSettings.java @@ -18,6 +18,15 @@ public class MailSettings { @JsonProperty("bypass_list_management") private Setting bypassListManagement; + @JsonProperty("bypass_spam_management") + private Setting bypassSpamManagement; + + @JsonProperty("bypass_bounce_management") + private Setting bypassBounceManagement; + + @JsonProperty("bypass_unsubscribe_management") + private Setting bypassUnsubscribeManagement; + @JsonProperty("footer") private FooterSetting footerSetting; @@ -58,6 +67,58 @@ public void setBypassListManagement(Setting bypassListManagement) { this.bypassListManagement = bypassListManagement; } + /** + * Allows you to bypass the spam report list to ensure that the email is delivered to recipients. + * Bounce and unsubscribe lists will still be checked; addresses on these other lists will not + * receive the message. + * + * This filter cannot be combined with the bypass_list_management filter. + * @return the bypass spam setting + */ + + @JsonProperty("bypass_spam_management") + public Setting getBypassSpamManagement() { + return bypassSpamManagement; + } + + public void setBypassSpamManagement(Setting bypassSpamManagement) { + this.bypassSpamManagement = bypassSpamManagement; + } + + /** + * Allows you to bypass the bounce list to ensure that the email is delivered to recipients. + * Spam report and unsubscribe lists will still be checked; addresses on these other lists + * will not receive the message. + * + * This filter cannot be combined with the bypass_list_management filter. + * @return the bypass bounce setting + */ + @JsonProperty("bypass_bounce_management") + public Setting getBypassBounceManagement() { + return bypassBounceManagement; + } + public void setBypassBounceManagement(Setting bypassBounceManagement) { + this.bypassBounceManagement = bypassBounceManagement; + } + + /** + * Allows you to bypass the global unsubscribe list to ensure that the email is delivered + * to recipients. Bounce and spam report lists will still be checked; addresses on these + * other lists will not receive the message. This filter applies only to global unsubscribes + * and will not bypass group unsubscribes. + * + * This filter cannot be combined with the bypass_list_management filter. + * @return the bypass unsubscribe setting + */ + @JsonProperty("bypass_unsubscribe_management") + public Setting getBypassUnsubscribeManagement() { + return bypassUnsubscribeManagement; + } + + public void setBypassUnsubscribeManagement(Setting bypassUnsubscribeManagement) { + this.bypassUnsubscribeManagement = bypassUnsubscribeManagement; + } + /** * Get the footer settings that you would like included on every email. * @@ -128,6 +189,12 @@ public int hashCode() { result = prime * result + ((bccSettings == null) ? 0 : bccSettings.hashCode()); result = prime * result + ((bypassListManagement == null) ? 0 : bypassListManagement.hashCode()); + result = + prime * result + ((bypassSpamManagement == null) ? 0 : bypassSpamManagement.hashCode()); + result = + prime * result + ((bypassBounceManagement == null) ? 0 : bypassBounceManagement.hashCode()); + result = + prime * result + ((bypassUnsubscribeManagement == null) ? 0 : bypassUnsubscribeManagement.hashCode()); result = prime * result + ((footerSetting == null) ? 0 : footerSetting.hashCode()); result = prime * result + ((sandBoxMode == null) ? 0 : sandBoxMode.hashCode()); result = prime * result + ((spamCheckSetting == null) ? 0 : spamCheckSetting.hashCode()); @@ -160,6 +227,27 @@ public boolean equals(Object obj) { } else if (!bypassListManagement.equals(other.bypassListManagement)) { return false; } + if (bypassSpamManagement == null) { + if (other.bypassSpamManagement != null) { + return false; + } + } else if (!bypassSpamManagement.equals(other.bypassSpamManagement)) { + return false; + } + if (bypassBounceManagement == null) { + if (other.bypassBounceManagement != null) { + return false; + } + } else if (!bypassBounceManagement.equals(other.bypassBounceManagement)) { + return false; + } + if (bypassUnsubscribeManagement == null) { + if (other.bypassUnsubscribeManagement != null) { + return false; + } + } else if (!bypassUnsubscribeManagement.equals(other.bypassUnsubscribeManagement)) { + return false; + } if (footerSetting == null) { if (other.footerSetting != null) { return false; diff --git a/src/test/java/com/sendgrid/helpers/MailTest.java b/src/test/java/com/sendgrid/helpers/MailTest.java index 9cdc194c..22c7f8db 100644 --- a/src/test/java/com/sendgrid/helpers/MailTest.java +++ b/src/test/java/com/sendgrid/helpers/MailTest.java @@ -212,7 +212,16 @@ public void testKitchenSink() throws IOException { mailSettings.setSandboxMode(sandBoxMode); Setting bypassListManagement = new Setting(); bypassListManagement.setEnable(true); + Setting bypassSpamManagement = new Setting(); + bypassSpamManagement.setEnable(true); + Setting bypassBounceManagement = new Setting(); + bypassBounceManagement.setEnable(true); + Setting bypassUnsubscribeManagement = new Setting(); + bypassUnsubscribeManagement.setEnable(true); mailSettings.setBypassListManagement(bypassListManagement); + mailSettings.setBypassSpamManagement(bypassSpamManagement); + mailSettings.setBypassBounceManagement(bypassBounceManagement); + mailSettings.setBypassUnsubscribeManagement(bypassUnsubscribeManagement); FooterSetting footerSetting = new FooterSetting(); footerSetting.setEnable(true); footerSetting.setText("Footer Text"); @@ -255,7 +264,7 @@ public void testKitchenSink() throws IOException { replyTo.setEmail("test@example.com"); mail.setReplyTo(replyTo); - Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"from\":{\"name\":\"Example Sender\",\"email\":\"sender@example.com\"},\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"from\":{\"name\":\"Example Sender2\",\"email\":\"sender2@example.com\"},\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"items\":[{\"price\":\"$ 59.95\",\"text\":\"New Line Sneakers\"},{\"text\":\"Old Line Sneakers\"}],\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); + Assert.assertEquals(mail.build(), "{\"from\":{\"name\":\"Example User\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid Java Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"from\":{\"name\":\"Example Sender\",\"email\":\"sender@example.com\"},\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"substitutions\":{\"%city%\":\"Denver\",\"%name%\":\"Example User\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"send_at\":1443636843},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"from\":{\"name\":\"Example Sender2\",\"email\":\"sender2@example.com\"},\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Hello World from the Personalized SendGrid Java Library\",\"headers\":{\"X-Mock\":\"true\",\"X-Test\":\"test\"},\"custom_args\":{\"type\":\"marketing\",\"user_id\":\"343\"},\"dynamic_template_data\":{\"city\":\"Denver\",\"items\":[{\"price\":\"$ 59.95\",\"text\":\"New Line Sneakers\"},{\"text\":\"Old Line Sneakers\"}],\"name\":\"Example User\"},\"send_at\":1443636843}],\"content\":[{\"type\":\"text/plain\",\"value\":\"some text here\"},{\"type\":\"text/html\",\"value\":\"some text here\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"sections\":{\"%section1%\":\"Substitution Text for Section 1\",\"%section2%\":\"Substitution Text for Section 2\"},\"headers\":{\"X-Test1\":\"1\",\"X-Test2\":\"2\"},\"categories\":[\"May\",\"2016\"],\"custom_args\":{\"campaign\":\"welcome\",\"weekday\":\"morning\"},\"send_at\":1443636842,\"asm\":{\"group_id\":99,\"groups_to_display\":[4,5,6,7,8]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"bypass_spam_management\":{\"enable\":true},\"bypass_bounce_management\":{\"enable\":true},\"bypass_unsubscribe_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Footer Text\",\"html\":\"Footer Text\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://spamcatcher.sendgrid.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true,\"enable_text\":false},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"html to insert into the text/html portion of the message\",\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some name\",\"utm_medium\":\"some medium\"}},\"reply_to\":{\"name\":\"Example User\",\"email\":\"test@example.com\"}}"); } @Test From f28554621884c0d44f1dc7564f931a8602aa7346 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 3 Nov 2021 18:51:56 +0000 Subject: [PATCH 232/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95307ff6..a3110c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-11-03] Version 4.8.0 +-------------------------- +**Library - Fix** +- [PR #707](https://github.com/sendgrid/sendgrid-java/pull/707): Add missing bypass settings to MailSettings. Thanks to [@arkitex](https://github.com/arkitex)! + +**Library - Feature** +- [PR #706](https://github.com/sendgrid/sendgrid-java/pull/706): allow personalization of the From name and email for each email recipient. Thanks to [@beebzz](https://github.com/beebzz)! + + [2021-10-18] Version 4.7.6 -------------------------- **Library - Docs** From deffb1a395a6ed043ad78ae4da9dd03b22614e59 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 3 Nov 2021 19:00:15 +0000 Subject: [PATCH 233/288] Release 4.8.0 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5229ed86..f5eeef08 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.7.6/sendgrid-4.7.6-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.7.6/sendgrid-4.7.6-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.8.0/sendgrid-4.8.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.0/sendgrid-4.8.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index 5acaee3e..d8ac5954 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.7.6' + implementation 'com.sendgrid:sendgrid-java:4.8.0' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.7.6/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.0/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 4a9f4a00..3b6a9fc1 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.7.6 + 4.8.0 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.7.6 + 4.8.0 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 31bb9dfa..0165c442 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.7.6"; + private static final String VERSION = "4.8.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index b181589d..cd8b1673 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.7.6"); + Assert.assertEquals(sg.getLibraryVersion(), "4.8.0"); } @Test From 0923ae3ef98517b12e40391ae739446b98dc9f41 Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Fri, 19 Nov 2021 13:04:56 -0800 Subject: [PATCH 234/288] chore: add mvn package to the makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 82e5c343..ee8f4586 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ install: mvn clean install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar +package: + mvn package -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B + test: mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml From 9bdebbe2e066f6b3ea80baf3fdbaeda46b9bc56e Mon Sep 17 00:00:00 2001 From: Jennifer Mah Date: Fri, 19 Nov 2021 14:08:01 -0800 Subject: [PATCH 235/288] chore: add jar copying to make package --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ee8f4586..c9d7fc3c 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ install: package: mvn package -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B + cp target/sendgrid-java-$(VERSION)-shaded.jar sendgrid-java.jar test: mvn test spotbugs:spotbugs checkstyle:check -Dcheckstyle.config.location=google_checks.xml From f6b666c016c7a2ebe9835a36398821a596df9a21 Mon Sep 17 00:00:00 2001 From: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com> Date: Sat, 20 Nov 2021 10:55:44 -0800 Subject: [PATCH 236/288] chore: clean up makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c9d7fc3c..0c93f25f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: install test test-integ test-docker clean +.PHONY: install package test test-integ test-docker clean VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | grep -e '^[^\[]') install: From c655b128c935d0a7a69035954765a5e364640e5d Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Tue, 30 Nov 2021 15:31:08 -0800 Subject: [PATCH 237/288] chore: migrate to github actions (#709) --- .codeclimate.yml | 8 --- .github/workflows/release.yml | 50 +++++++++++++++++++ .github/workflows/test.yml | 42 ++++++++++++++++ .maven.xml | 24 --------- .travis.yml | 34 ------------- README.md | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 8 +-- .../com/sendgrid/TestRequiredFilesExist.java | 12 ----- 8 files changed, 97 insertions(+), 83 deletions(-) delete mode 100644 .codeclimate.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/test.yml delete mode 100644 .maven.xml delete mode 100644 .travis.yml diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 5b82009c..00000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -plugins: - checkstyle: - enabled: true - fixme: - enabled: true - pmd: - enabled: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..d4317b90 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,50 @@ +name: Release +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Sonatype Maven + uses: actions/setup-java@v2 + with: + java-version: 8 + distribution: temurin + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE + + - run: mvn install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V + - name: Publish to Maven + env: + MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + run: mvn clean deploy -DskipTests=true -B -U -Prelease + + notify-on-failure: + name: Slack notify on failure + if: ${{ failure() }} + needs: [release] + runs-on: ubuntu-latest + steps: + - uses: rtCamp/action-slack-notify@v2 + env: + SLACK_COLOR: 'danger' + SLACK_ICON_EMOJI: ':github:' + SLACK_MESSAGE: ${{ format('Failed to release {1}{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} + SLACK_TITLE: Release Failure + SLACK_USERNAME: GitHub Actions + SLACK_MSG_AUTHOR: twilio-dx + SLACK_FOOTER: Posted automatically using GitHub Actions + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + MSG_MINIMAL: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..d981dca6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: Tests +on: + push: + branches: [ '*' ] + pull_request: + branches: [ main ] + schedule: + # Run automatically at 8AM PST Monday-Friday + - cron: '0 15 * * 1-5' + workflow_dispatch: + +jobs: + test: + name: Test + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + matrix: + java: [8, 11] + steps: + - uses: actions/checkout@v2 + + - name: Run Unit Tests + run: make test-docker version=${{ matrix.java }} + + notify-on-failure: + name: Slack notify on failure + if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} + needs: [test] + runs-on: ubuntu-latest + steps: + - uses: rtCamp/action-slack-notify@v2 + env: + SLACK_COLOR: ${{ needs.test.status }} + SLACK_ICON_EMOJI: ':github:' + SLACK_MESSAGE: ${{ format('Build {2} in {1} failed{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} + SLACK_TITLE: Build Failure + SLACK_USERNAME: GitHub Actions + SLACK_MSG_AUTHOR: twilio-dx + SLACK_FOOTER: Posted automatically using GitHub Actions + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + MSG_MINIMAL: true diff --git a/.maven.xml b/.maven.xml deleted file mode 100644 index bef1ab68..00000000 --- a/.maven.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - ossrh - ${env.SONATYPE_USERNAME} - ${env.SONATYPE_PASSWORD} - - - - - - ossrh - - true - - - ${env.GPG_EXECUTABLE} - ${env.GPG_PASSPHRASE} - - - - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d4b2a0ac..00000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: java -jdk: openjdk8 -before_install: -- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - -- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -- sudo apt-get update -- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce -- docker --version -- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true -- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch || true -env: -- version=8 -- version=11 -script: -- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin; - fi -- make test-docker -deploy: -- provider: script - script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease - edge: true - on: - tags: true - condition: "$version = 8" - branch: main -notifications: - slack: - if: branch = main - on_pull_requests: false - on_success: never - on_failure: change - rooms: - secure: NGGQe8OMWfbAOM6O7odDHtY/UVdqJ6oLQzB96QlTNkGgbyINKdufHxHaiv0SC/w4alUzzs6gw1h2WCpxw1PPl+pnVAeSVLfvRLYQApCGigWF0s5AyfVxtoG7bZOQLhsddC1ldQr12G4zclew+7k+0bgra4ENkbvv1OGiQdPJ08U= diff --git a/README.md b/README.md index d8ac5954..4b140912 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![SendGrid Logo](twilio_sendgrid_logo.png) -[![Travis Badge](https://travis-ci.com/sendgrid/sendgrid-java.svg?branch=main)](https://travis-ci.com/sendgrid/sendgrid-java) +[![BuildStatus](https://github.com/sendgrid/sendgrid-java/actions/workflows/test.yml/badge.svg)](https://github.com/sendgrid/sendgrid-java/actions/workflows/test.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.sendgrid/sendgrid-java.svg)](http://mvnrepository.com/artifact/com.sendgrid/sendgrid-java) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-java.svg)](https://github.com/sendgrid/sendgrid-java/graphs/contributors) diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index cd8b1673..089c4a11 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -2193,25 +2193,25 @@ public void test_suppression_invalid_emails__email__delete() throws IOException } @Test - public void test_suppression_spam_report__email__get() throws IOException { + public void test_suppression_spam_reports__email__get() throws IOException { SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "200"); Request request = new Request(); request.setMethod(Method.GET); - request.setEndpoint("suppression/spam_report/{email}"); + request.setEndpoint("suppression/spam_reports/{email}"); Response response = sg.api(request); Assert.assertEquals(200, response.getStatusCode()); } @Test - public void test_suppression_spam_report__email__delete() throws IOException { + public void test_suppression_spam_reports__email__delete() throws IOException { SendGrid sg = new SendGrid("SENDGRID_API_KEY"); sg.addRequestHeader("X-Mock", "204"); Request request = new Request(); request.setMethod(Method.DELETE); - request.setEndpoint("suppression/spam_report/{email}"); + request.setEndpoint("suppression/spam_reports/{email}"); Response response = sg.api(request); Assert.assertEquals(204, response.getStatusCode()); } diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index d6e000d0..71209ea1 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -25,18 +25,6 @@ public void checkGitIgnoreExists() { assertTrue(new File("./.gitignore").exists()); } - // ./.travis.yml - @Test - public void checkTravisExists() { - assertTrue(new File("./.travis.yml").exists()); - } - - // ./.codeclimate.yml - @Test - public void checkCodeClimateExists() { - assertTrue(new File("./.codeclimate.yml").exists()); - } - // ./CHANGELOG.md @Test public void checkChangelogExists() { From 230dfc42dfbbe0be6bacc6ef4bbe53d3454763fe Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Wed, 1 Dec 2021 11:47:20 -0800 Subject: [PATCH 238/288] chore: fix pom for release (#710) --- pom.xml | 42 +++++++++--------------------------------- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/pom.xml b/pom.xml index 3b6a9fc1..a4189221 100644 --- a/pom.xml +++ b/pom.xml @@ -29,38 +29,6 @@ 4.8.0 - - gpg - - false - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - - ${gpg.keyname} - ${gpg.passphrase} - - --pinentry-mode - loopback - - - - - - release @@ -118,6 +86,14 @@ sign + + ${gpg.keyname} + ${gpg.passphrase} + + --pinentry-mode + loopback + + @@ -330,4 +306,4 @@ - \ No newline at end of file + From d52063285c7be507c511c101be1826d104ba4b1e Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 1 Dec 2021 21:44:52 +0000 Subject: [PATCH 239/288] [Librarian] Version Bump --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3110c8b..41ca85ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +[2021-12-01] Version 4.8.1 +-------------------------- +**Library - Chore** +- [PR #710](https://github.com/sendgrid/sendgrid-java/pull/710): fix pom for release. Thanks to [@eshanholtz](https://github.com/eshanholtz)! +- [PR #709](https://github.com/sendgrid/sendgrid-java/pull/709): migrate to github actions. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + + [2021-11-03] Version 4.8.0 -------------------------- **Library - Fix** From dd2cc8066575b213a0be5ee548ca58cfe416213e Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 1 Dec 2021 22:15:33 +0000 Subject: [PATCH 240/288] Release 4.8.1 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 10 +++++----- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f5eeef08..0f00dcd1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.8.0/sendgrid-4.8.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.0/sendgrid-4.8.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.8.1/sendgrid-4.8.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.1/sendgrid-4.8.1-jar.jar:. Example ``` diff --git a/README.md b/README.md index 4b140912..500bcf5b 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.8.0' + implementation 'com.sendgrid:sendgrid-java:4.8.1' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.1/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index a4189221..875499e4 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.8.0 + 4.8.1 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.8.0 + 4.8.1 @@ -262,7 +262,7 @@ com.sendgrid java-http-client - 4.3.7 + 4.3.8 com.fasterxml.jackson.core @@ -294,7 +294,7 @@ org.bouncycastle bcprov-jdk15on - 1.69 + 1.70 @@ -306,4 +306,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 0165c442..e1014b33 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.8.0"; + private static final String VERSION = "4.8.1"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 089c4a11..395e360d 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.8.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.8.1"); } @Test From c49aa563676bbc4c85eb17791b3fe2214eaf6d76 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Thu, 16 Dec 2021 14:12:06 -0600 Subject: [PATCH 241/288] chore: update slack notification color --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4317b90..eac26805 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: steps: - uses: rtCamp/action-slack-notify@v2 env: - SLACK_COLOR: 'danger' + SLACK_COLOR: failure SLACK_ICON_EMOJI: ':github:' SLACK_MESSAGE: ${{ format('Failed to release {1}{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} SLACK_TITLE: Release Failure diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d981dca6..ba2528f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: steps: - uses: rtCamp/action-slack-notify@v2 env: - SLACK_COLOR: ${{ needs.test.status }} + SLACK_COLOR: failure SLACK_ICON_EMOJI: ':github:' SLACK_MESSAGE: ${{ format('Build {2} in {1} failed{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} SLACK_TITLE: Build Failure From f461b4d40333cd89038ed4a292037fea5638181b Mon Sep 17 00:00:00 2001 From: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:06:31 -0700 Subject: [PATCH 242/288] chore: update license year (#712) --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index e5439a92..5db04ff6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2021, Twilio SendGrid, Inc. +Copyright (C) 2022, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in From 471509748cc81af48dbb2ca49a07276769a95f7e Mon Sep 17 00:00:00 2001 From: Bilal Boussayoud Date: Fri, 7 Jan 2022 10:59:23 -0700 Subject: [PATCH 243/288] fix: fix sendgrid-java unit tests (#713) * switch to non-SAN cert for unit tests --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0c93f25f..5bd698c8 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ test-integ: test version ?= latest test-docker: - curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh + curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism-java.sh -o prism.sh version=$(version) bash ./prism.sh clean: From 7ec917cfd88e7834cf30b45f12838fe74dae9a0a Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 12 Jan 2022 20:25:58 +0000 Subject: [PATCH 244/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41ca85ef..3f06eeb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2022-01-12] Version 4.8.2 +-------------------------- +**Library - Fix** +- [PR #713](https://github.com/sendgrid/sendgrid-java/pull/713): fix sendgrid-java unit tests. Thanks to [@beebzz](https://github.com/beebzz)! + +**Library - Chore** +- [PR #712](https://github.com/sendgrid/sendgrid-java/pull/712): update license year. Thanks to [@JenniferMah](https://github.com/JenniferMah)! + + [2021-12-01] Version 4.8.1 -------------------------- **Library - Chore** From b91aae4859893636fd4a06593490086c00ae87b9 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 12 Jan 2022 20:30:05 +0000 Subject: [PATCH 245/288] Release 4.8.2 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0f00dcd1..c229cbe3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.8.1/sendgrid-4.8.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.1/sendgrid-4.8.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.8.2/sendgrid-4.8.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.2/sendgrid-4.8.2-jar.jar:. Example ``` diff --git a/README.md b/README.md index 500bcf5b..47542863 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.8.1' + implementation 'com.sendgrid:sendgrid-java:4.8.2' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.2/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 875499e4..fce0c0e8 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.8.1 + 4.8.2 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.8.1 + 4.8.2 @@ -262,7 +262,7 @@ com.sendgrid java-http-client - 4.3.8 + 4.3.9 com.fasterxml.jackson.core diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index e1014b33..40ebdf75 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.8.1"; + private static final String VERSION = "4.8.2"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 395e360d..d5053449 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.8.1"); + Assert.assertEquals(sg.getLibraryVersion(), "4.8.2"); } @Test From 3633b3886ffa4a795639547d5304a9e43debdad4 Mon Sep 17 00:00:00 2001 From: Hunga1 Date: Thu, 3 Feb 2022 13:27:27 -0700 Subject: [PATCH 246/288] chore: merge test and deploy workflows (#715) --- .../{release.yml => test-and-deploy.yml} | 40 ++++++++++++++---- .github/workflows/test.yml | 42 ------------------- README.md | 2 +- 3 files changed, 32 insertions(+), 52 deletions(-) rename .github/workflows/{release.yml => test-and-deploy.yml} (55%) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/test-and-deploy.yml similarity index 55% rename from .github/workflows/release.yml rename to .github/workflows/test-and-deploy.yml index eac26805..8ac8e2c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/test-and-deploy.yml @@ -1,15 +1,37 @@ -name: Release +name: Test and Deploy on: push: - tags: - - '*' + branches: [ '*' ] + tags: [ '*' ] + pull_request: + branches: [ main ] + schedule: + # Run automatically at 8AM PST Monday-Friday + - cron: '0 15 * * 1-5' workflow_dispatch: jobs: - release: - name: Release + test: + name: Test runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + matrix: + java: [8, 11] steps: + - name: Checkout sendgrid-java + - uses: actions/checkout@v2 + + - name: Run Unit Tests + run: make test-docker version=${{ matrix.java }} + + deploy: + name: Deploy + if: success() && github.ref_type == 'tag' + needs: [ test ] + runs-on: ubuntu-latest + steps: + - name: Checkout sendgrid-java - uses: actions/checkout@v2 - name: Set up Sonatype Maven @@ -33,16 +55,16 @@ jobs: notify-on-failure: name: Slack notify on failure - if: ${{ failure() }} - needs: [release] + if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') + needs: [ test, deploy ] runs-on: ubuntu-latest steps: - uses: rtCamp/action-slack-notify@v2 env: SLACK_COLOR: failure SLACK_ICON_EMOJI: ':github:' - SLACK_MESSAGE: ${{ format('Failed to release {1}{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} - SLACK_TITLE: Release Failure + SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }} + SLACK_TITLE: Action Failure - ${{ github.repository }} SLACK_USERNAME: GitHub Actions SLACK_MSG_AUTHOR: twilio-dx SLACK_FOOTER: Posted automatically using GitHub Actions diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index ba2528f3..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Tests -on: - push: - branches: [ '*' ] - pull_request: - branches: [ main ] - schedule: - # Run automatically at 8AM PST Monday-Friday - - cron: '0 15 * * 1-5' - workflow_dispatch: - -jobs: - test: - name: Test - runs-on: ubuntu-latest - timeout-minutes: 20 - strategy: - matrix: - java: [8, 11] - steps: - - uses: actions/checkout@v2 - - - name: Run Unit Tests - run: make test-docker version=${{ matrix.java }} - - notify-on-failure: - name: Slack notify on failure - if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} - needs: [test] - runs-on: ubuntu-latest - steps: - - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_COLOR: failure - SLACK_ICON_EMOJI: ':github:' - SLACK_MESSAGE: ${{ format('Build {2} in {1} failed{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }} - SLACK_TITLE: Build Failure - SLACK_USERNAME: GitHub Actions - SLACK_MSG_AUTHOR: twilio-dx - SLACK_FOOTER: Posted automatically using GitHub Actions - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - MSG_MINIMAL: true diff --git a/README.md b/README.md index 47542863..f7d63183 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![SendGrid Logo](twilio_sendgrid_logo.png) -[![BuildStatus](https://github.com/sendgrid/sendgrid-java/actions/workflows/test.yml/badge.svg)](https://github.com/sendgrid/sendgrid-java/actions/workflows/test.yml) +[![BuildStatus](https://github.com/sendgrid/sendgrid-java/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/sendgrid/sendgrid-java/actions/workflows/test-and-deploy.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.sendgrid/sendgrid-java.svg)](http://mvnrepository.com/artifact/com.sendgrid/sendgrid-java) [![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid) [![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-java.svg)](https://github.com/sendgrid/sendgrid-java/graphs/contributors) From 99028bae4fed2c4c1cc0915f8119327e86c5b41f Mon Sep 17 00:00:00 2001 From: childish-sambino Date: Thu, 3 Feb 2022 14:29:07 -0600 Subject: [PATCH 247/288] fix: correct workflow --- .github/workflows/test-and-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 8ac8e2c3..6bac4240 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -20,7 +20,7 @@ jobs: java: [8, 11] steps: - name: Checkout sendgrid-java - - uses: actions/checkout@v2 + uses: actions/checkout@v2 - name: Run Unit Tests run: make test-docker version=${{ matrix.java }} @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sendgrid-java - - uses: actions/checkout@v2 + uses: actions/checkout@v2 - name: Set up Sonatype Maven uses: actions/setup-java@v2 From 9ca89c8b0ded8471764c744cd09306764b8107d7 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Thu, 3 Feb 2022 16:57:31 -0600 Subject: [PATCH 248/288] chore: add gh release to workflow (#716) * chore: add gh release to workflow --- .github/workflows/test-and-deploy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 6bac4240..f7bf0466 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -45,7 +45,17 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE - - run: mvn install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V + - name: Install dependencies and Build Release Artifacts + run: make install + + - name: Create GitHub Release + uses: sendgrid/dx-automator/actions/release@main + with: + assets: sendgrid-java.jar + footer: '**[Maven](https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java/${version})**' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish to Maven env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} From 844318b3e53629b086016cadd184b6a06a894d50 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 7 Feb 2022 12:50:41 -0600 Subject: [PATCH 249/288] fix: only do a Docker Login if the secrets are available --- .github/workflows/test-and-deploy.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index f7bf0466..b339136c 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -17,11 +17,20 @@ jobs: timeout-minutes: 20 strategy: matrix: - java: [8, 11] + java: [ 8, 11 ] + env: + DOCKER_LOGIN: ${{ secrets.DOCKER_USERNAME && secrets.DOCKER_AUTH_TOKEN }} steps: - name: Checkout sendgrid-java uses: actions/checkout@v2 + - name: Login to Docker Hub + if: env.DOCKER_LOGIN + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_AUTH_TOKEN }} + - name: Run Unit Tests run: make test-docker version=${{ matrix.java }} From bafc24ca17f4c2533c667e76e3b56776375e3096 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 9 Feb 2022 23:50:25 +0000 Subject: [PATCH 250/288] [Librarian] Version Bump --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f06eeb7..77196788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +[2022-02-09] Version 4.8.3 +-------------------------- +**Library - Chore** +- [PR #716](https://github.com/sendgrid/sendgrid-java/pull/716): add gh release to workflow. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)! +- [PR #715](https://github.com/sendgrid/sendgrid-java/pull/715): merge test and deploy workflows. Thanks to [@Hunga1](https://github.com/Hunga1)! + + [2022-01-12] Version 4.8.2 -------------------------- **Library - Fix** From 780ca3dbd5372ee9b0e01d0b6bf787dc4e2dcff9 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 9 Feb 2022 23:51:05 +0000 Subject: [PATCH 251/288] Release 4.8.3 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c229cbe3..aa3bdabe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.8.2/sendgrid-4.8.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.2/sendgrid-4.8.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.8.3/sendgrid-4.8.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.3/sendgrid-4.8.3-jar.jar:. Example ``` diff --git a/README.md b/README.md index f7d63183..28a7e5e9 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.8.2' + implementation 'com.sendgrid:sendgrid-java:4.8.3' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.2/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.3/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index fce0c0e8..63af227d 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.8.2 + 4.8.3 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.8.2 + 4.8.3 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 40ebdf75..312225d3 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.8.2"; + private static final String VERSION = "4.8.3"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index d5053449..a3ddfa0d 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.8.2"); + Assert.assertEquals(sg.getLibraryVersion(), "4.8.3"); } @Test From 1ca4a0855f9b65d5ff8090fa1b9aef8d0e671667 Mon Sep 17 00:00:00 2001 From: Jennifer Mah <42650198+JenniferMah@users.noreply.github.com> Date: Thu, 24 Feb 2022 14:20:19 -0800 Subject: [PATCH 252/288] feat: add GH action to update dependencies (#717) --- .github/workflows/update-dependencies.yml | 52 +++++++++++++++++++++++ Makefile | 5 ++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update-dependencies.yml diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 00000000..d2e4152c --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -0,0 +1,52 @@ +name: Update dependencies +on: + schedule: + # Run automatically at 7AM PST Tuesday + - cron: '0 14 * * 2' + workflow_dispatch: + +jobs: + update-dependencies-and-test: + name: Update Dependencies & Test + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + max-parallel: 1 + matrix: + java: [ 8, 11 ] + + steps: + - name: Checkout sendgrid-java + uses: actions/checkout@v2 + + - name: Updating semver dependencies + run: make update-deps + + - name: Run Unit Tests + run: make test-docker version=${{ matrix.java }} + + - name: Add & Commit + if: matrix.java == '11' + uses: EndBug/add-and-commit@v8.0.2 + with: + add: 'pom.xml' + default_author: 'github_actions' + message: 'chore: update sendgrid-java dependencies' + + notify-on-failure: + name: Slack notify on failure + if: failure() + needs: [ update-dependencies-and-test ] + runs-on: ubuntu-latest + steps: + - uses: rtCamp/action-slack-notify@v2 + env: + SLACK_COLOR: failure + SLACK_ICON_EMOJI: ':github:' + SLACK_MESSAGE: ${{ format('Update dependencies *{0}*, {1}/{2}/actions/runs/{3}', needs.update-dependencies-and-test.result, github.server_url, github.repository, github.run_id) }} + SLACK_TITLE: Action Failure - ${{ github.repository }} + SLACK_USERNAME: GitHub Actions + SLACK_MSG_AUTHOR: twilio-dx + SLACK_FOOTER: Posted automatically using GitHub Actions + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + MSG_MINIMAL: true diff --git a/Makefile b/Makefile index 5bd698c8..3983b6aa 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: install package test test-integ test-docker clean +.PHONY: install package test test-integ test-docker update-deps clean VERSION := $(shell mvn help:evaluate -Dexpression=project.version --batch-mode | grep -e '^[^\[]') install: @@ -20,5 +20,8 @@ test-docker: curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism-java.sh -o prism.sh version=$(version) bash ./prism.sh +update-deps: + mvn versions:use-latest-releases versions:commit -DallowMajorUpdates=false + clean: mvn clean From 9a0631828b754d9ecb6155a90baabdd284468918 Mon Sep 17 00:00:00 2001 From: Elise Shanholtz Date: Mon, 28 Feb 2022 12:40:14 -0800 Subject: [PATCH 253/288] chore: push Datadog Release Metric upon deploy success (#721) --- .github/workflows/test-and-deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index b339136c..b8d847f2 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -72,6 +72,11 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} run: mvn clean deploy -DskipTests=true -B -U -Prelease + - name: Submit metric to Datadog + uses: sendgrid/dx-automator/actions/datadog-release-metric@main + env: + DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} + notify-on-failure: name: Slack notify on failure if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') From 2e0344acd4348bce5783cc5edad36e8e77eecb6d Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 9 Mar 2022 12:21:55 -0800 Subject: [PATCH 254/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77196788..56c2628a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2022-03-09] Version 4.9.0 +-------------------------- +**Library - Chore** +- [PR #721](https://github.com/sendgrid/sendgrid-java/pull/721): push Datadog Release Metric upon deploy success. Thanks to [@eshanholtz](https://github.com/eshanholtz)! + +**Library - Feature** +- [PR #717](https://github.com/sendgrid/sendgrid-java/pull/717): add GH action to update dependencies. Thanks to [@JenniferMah](https://github.com/JenniferMah)! + + [2022-02-09] Version 4.8.3 -------------------------- **Library - Chore** From f158675d27e4150311ef370ae30e3a446b67871d Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 9 Mar 2022 12:21:55 -0800 Subject: [PATCH 255/288] Release 4.9.0 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aa3bdabe..de6286e2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.8.3/sendgrid-4.8.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.8.3/sendgrid-4.8.3-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.9.0/sendgrid-4.9.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.0/sendgrid-4.9.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index 28a7e5e9..5d9f56e1 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.8.3' + implementation 'com.sendgrid:sendgrid-java:4.9.0' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.8.3/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.0/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 63af227d..e3d792f2 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.8.3 + 4.9.0 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.8.3 + 4.9.0 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 312225d3..07db9f28 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.8.3"; + private static final String VERSION = "4.9.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index a3ddfa0d..d55ece2b 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.8.3"); + Assert.assertEquals(sg.getLibraryVersion(), "4.9.0"); } @Test From d86854c296659df53bc809ae04f228a7fa65ef27 Mon Sep 17 00:00:00 2001 From: svcprodsec-sendgrid <70608793+svcprodsec-sendgrid@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:41:06 -0400 Subject: [PATCH 256/288] chore: Security upgrade com.fasterxml.jackson.core:jackson-databind from 2.12.1 to 2.13.0 (#723) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e3d792f2..511082f4 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 2.12.1 + 2.13.0 https://github.com/sendgrid/sendgrid-java From 599814a9a58da2b7834c6b27a1de9ddc263e7643 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 23 Mar 2022 11:35:53 -0700 Subject: [PATCH 257/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56c2628a..58a316c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2022-03-23] Version 4.9.1 +-------------------------- +**Library - Chore** +- [PR #723](https://github.com/sendgrid/sendgrid-java/pull/723): Security upgrade com.fasterxml.jackson.core:jackson-databind from 2.12.1 to 2.13.0. Thanks to [@svcprodsec-sendgrid](https://github.com/svcprodsec-sendgrid)! + + [2022-03-09] Version 4.9.0 -------------------------- **Library - Chore** From 5015d5343b593080dfb916e29537b6c00982a283 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 23 Mar 2022 11:35:53 -0700 Subject: [PATCH 258/288] Release 4.9.1 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index de6286e2..73f9578f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,7 +98,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.9.0/sendgrid-4.9.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.0/sendgrid-4.9.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.9.1/sendgrid-4.9.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.1/sendgrid-4.9.1-jar.jar:. Example ``` diff --git a/README.md b/README.md index 5d9f56e1..090fa97d 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.9.0' + implementation 'com.sendgrid:sendgrid-java:4.9.1' } repositories { @@ -86,7 +86,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.1/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 511082f4..ed93d8c9 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.9.0 + 4.9.1 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.9.0 + 4.9.1 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 07db9f28..74c50fec 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.9.0"; + private static final String VERSION = "4.9.1"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index d55ece2b..73d1614d 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.9.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.9.1"); } @Test From 29b64073c6d94504b63d085bde496e2510663b5a Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Thu, 24 Mar 2022 10:48:12 -0500 Subject: [PATCH 259/288] chore: remove outdated announcements --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 090fa97d..f9e0ea41 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,6 @@ [![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-java/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-java) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) -**NEW:** Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. - -**The default branch name for this repository has been changed to `main` as of 07/27/2020.** - **This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via Java.** Version 3.X.X of this library provides full support for all Twilio SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint). @@ -201,9 +197,7 @@ public class Example { # Announcements -Please see our announcement regarding [breaking changes](https://github.com/sendgrid/sendgrid-java/issues/140). Your support is appreciated! - -All updates to this library are documented in our [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/java) for releases and breaking changes. +All updates to this library are documented in our [CHANGELOG](CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-java/releases). # How to Contribute From c868b731e63cdf3b34f4fbaa77a71a5cd7f7f705 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Fri, 25 Mar 2022 13:39:51 -0500 Subject: [PATCH 260/288] feat: add PR title validation --- .github/workflows/pr-lint.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pr-lint.yml diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml new file mode 100644 index 00000000..8388f21e --- /dev/null +++ b/.github/workflows/pr-lint.yml @@ -0,0 +1,15 @@ +name: Lint PR +on: + pull_request_target: + types: [ opened, edited, reopened ] + +jobs: + validate: + name: Validate title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v4 + with: + types: chore docs fix feat test + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From ec53072c17fc6c8a2c6664c46025f8c741bbdb41 Mon Sep 17 00:00:00 2001 From: Bilal Boussayoud Date: Fri, 25 Mar 2022 15:27:37 -0600 Subject: [PATCH 261/288] fix: override default gh token (#725) * fix: override default gh token --- .github/workflows/update-dependencies.yml | 2 ++ pom.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index d2e4152c..eea77a93 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -28,6 +28,8 @@ jobs: - name: Add & Commit if: matrix.java == '11' uses: EndBug/add-and-commit@v8.0.2 + env: + GITHUB_TOKEN: ${{ secrets.SG_JAVA_GITHUB_TOKEN }} with: add: 'pom.xml' default_author: 'github_actions' diff --git a/pom.xml b/pom.xml index ed93d8c9..3b221e3f 100644 --- a/pom.xml +++ b/pom.xml @@ -262,7 +262,7 @@ com.sendgrid java-http-client - 4.3.9 + 4.5.0 com.fasterxml.jackson.core From f370ca940014d4cc8ef731aaeed98f6e25c9be1b Mon Sep 17 00:00:00 2001 From: tomoyaY Date: Mon, 28 Mar 2022 23:13:44 +0900 Subject: [PATCH 262/288] chore: security upgrade jackson-databind from 2.13.0 to 2.13.2 (#726) --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3b221e3f..04d0d5bb 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 2.13.0 + 2.13.2 https://github.com/sendgrid/sendgrid-java @@ -306,4 +306,4 @@ - \ No newline at end of file + From 87d006f9efc13839d98147a36c6d6ce81a7f02e7 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Thu, 21 Apr 2022 14:44:34 -0500 Subject: [PATCH 263/288] test: lint PRs on synchronize events Since synchronize events clears the status checks, it needs to be re-run. --- .github/workflows/pr-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 8388f21e..dc7af3d3 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -1,7 +1,7 @@ name: Lint PR on: pull_request_target: - types: [ opened, edited, reopened ] + types: [ opened, edited, synchronize, reopened ] jobs: validate: From 4c33cea86b07c1dda49ec10ac92d455a24cb384b Mon Sep 17 00:00:00 2001 From: "Gareth Paul Jones (GPJ)" Date: Mon, 9 May 2022 10:08:59 -0700 Subject: [PATCH 264/288] docs: Modify README.md in alignment with SendGrid Support (#732) --- .github/ISSUE_TEMPLATE/config.yml | 10 ------- CONTRIBUTING.md | 29 ------------------ ISSUE_TEMPLATE.md | 30 ------------------- PULL_REQUEST_TEMPLATE.md | 2 +- README.md | 10 +++---- .../com/sendgrid/TestRequiredFilesExist.java | 6 ---- 6 files changed, 6 insertions(+), 81 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index b24426d0..00000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,10 +0,0 @@ -contact_links: - - name: Twilio SendGrid Support - url: https://support.sendgrid.com - about: Get Support - - name: Stack Overflow - url: https://stackoverflow.com/questions/tagged/sendgrid-java+or+sendgrid+java - about: Ask questions on Stack Overflow - - name: Documentation - url: https://sendgrid.com/docs/for-developers/ - about: View Reference Documentation diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73f9578f..d9f0088d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,8 +3,6 @@ Hello! Thank you for choosing to help contribute to one of the Twilio SendGrid o **All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.** - [Feature Request](#feature-request) -- [Submit a Bug Report](#submit-a-bug-report) - - [Please use our Bug Report Template](#please-use-our-bug-report-template) - [Improvements to the Codebase](#improvements-to-the-codebase) - [Development Environment](#development-environment) - [Install and Run Locally](#install-and-run-locally) @@ -20,33 +18,6 @@ Hello! Thank you for choosing to help contribute to one of the Twilio SendGrid o There are a few ways to contribute, which we'll enumerate below: - -## Feature Request - -If you'd like to make a feature request, please read this section. - -The GitHub issue tracker is the preferred channel for library feature requests, but please respect the following restrictions: - -- Please **search for existing issues** in order to ensure we don't have duplicate bugs/feature requests. -- Please be respectful and considerate of others when commenting on issues - - -## Submit a Bug Report - -Note: DO NOT include your credentials in ANY code examples, descriptions, or media you make public. - -A software bug is a demonstrable issue in the code base. In order for us to diagnose the issue and respond as quickly as possible, please add as much detail as possible into your bug report. - -Before you decide to create a new issue, please try the following: - -1. Check the GitHub issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post. -2. Update to the latest version of this code and check if the issue has already been fixed -3. Copy and fill in the Bug Report Template we have provided below - -### Please use our Bug Report Template - -In order to make the process easier, we've included a [sample bug report template](ISSUE_TEMPLATE.md). - ## Improvements to the Codebase diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md deleted file mode 100644 index 78ecfbd3..00000000 --- a/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,30 +0,0 @@ - - -### Issue Summary -A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, or code examples. - -### Steps to Reproduce -1. This is the first step -2. This is the second step -3. Further steps, etc. - -### Code Snippet -```java -# paste code here -``` - -### Exception/Log -``` -# paste exception/log here -``` - -### Technical details: -* sendgrid-java version: -* java version: - diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index a2fca138..52d4bd95 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -28,4 +28,4 @@ A short description of what this PR does. - [ ] I have added the necessary documentation about the functionality in the appropriate .md file - [ ] I have added inline documentation to the code I modified -If you have questions, please file a [support ticket](https://support.sendgrid.com), or create a GitHub Issue in this repository. +If you have questions, please file a [support ticket](https://support.sendgrid.com). diff --git a/README.md b/README.md index f9e0ea41..e17f6191 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,7 @@ Version 3.X.X of this library provides full support for all Twilio SendGrid [Web This library represents the beginning of a new path for Twilio SendGrid. We want this library to be community driven and Twilio SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/sendgrid/sendgrid-java/issues) and [pull requests](CONTRIBUTING.md) or simply upvote or comment on existing issues or pull requests. -Please browse the rest of this README for further details. - -We appreciate your continued support, thank you! +**If you need help using SendGrid, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).** # Table of Contents @@ -27,6 +25,7 @@ We appreciate your continued support, thank you! * [How to Contribute](#contribute) * [Troubleshooting](#troubleshooting) * [About](#about) +* [Support](#support) * [License](#license) @@ -220,9 +219,10 @@ Please see our [troubleshooting guide](TROUBLESHOOTING.md) for common library is sendgrid-java is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-java are trademarks of Twilio SendGrid, Inc. -If you need help installing or using the library, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com). + +# Support -If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo! +If you need help installing or using the library, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com). # License diff --git a/src/test/java/com/sendgrid/TestRequiredFilesExist.java b/src/test/java/com/sendgrid/TestRequiredFilesExist.java index 71209ea1..7675c8a2 100644 --- a/src/test/java/com/sendgrid/TestRequiredFilesExist.java +++ b/src/test/java/com/sendgrid/TestRequiredFilesExist.java @@ -43,12 +43,6 @@ public void checkContributingGuideExists() { assertTrue(new File("./CONTRIBUTING.md").exists()); } - // ./ISSUE_TEMPLATE.md - @Test - public void checkIssuesTemplateExists() { - assertTrue(new File("./ISSUE_TEMPLATE.md").exists()); - } - // ./LICENSE @Test public void checkLicenseExists() { From d27207e880c6e60dcdbad668ad2f5e09c38eb81a Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Thu, 12 May 2022 10:28:28 -0500 Subject: [PATCH 265/288] chore: drop the issue links from FIRST_TIMERS doc --- FIRST_TIMERS.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/FIRST_TIMERS.md b/FIRST_TIMERS.md index 9db04724..667746df 100644 --- a/FIRST_TIMERS.md +++ b/FIRST_TIMERS.md @@ -51,29 +51,3 @@ git push origin ## Important notice Before creating a pull request, make sure that you respect the repository's constraints regarding contributions. You can find them in the [CONTRIBUTING.md](CONTRIBUTING.md) file. - -## Repositories with Open, Easy, Help Wanted, Issue Filters - -* [Python SDK](https://github.com/sendgrid/sendgrid-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [PHP SDK](https://github.com/sendgrid/sendgrid-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [C# SDK](https://github.com/sendgrid/sendgrid-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Ruby SDK](https://github.com/sendgrid/sendgrid-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Node.js SDK](https://github.com/sendgrid/sendgrid-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Java SDK](https://github.com/sendgrid/sendgrid-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Go SDK](https://github.com/sendgrid/sendgrid-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Python SMTPAPI Client](https://github.com/sendgrid/smtpapi-python/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [PHP SMTPAPI Client](https://github.com/sendgrid/smtpapi-php/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [C# SMTPAPI Client](https://github.com/sendgrid/smtpapi-csharp/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Ruby SMTPAPI Client](https://github.com/sendgrid/smtpapi-ruby/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Node.js SMTPAPI Client](https://github.com/sendgrid/smtpapi-nodejs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Java SMTPAPI Client](https://github.com/sendgrid/smtpapi-java/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Go SMTPAPI Client](https://github.com/sendgrid/smtpapi-go/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Python HTTP Client](https://github.com/sendgrid/python-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [PHP HTTP Client](https://github.com/sendgrid/php-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [C# HTTP Client](https://github.com/sendgrid/csharp-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Java HTTP Client](https://github.com/sendgrid/java-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Ruby HTTP Client](https://github.com/sendgrid/ruby-http-client/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Go HTTP Client](https://github.com/sendgrid/rest/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Open API Definition](https://github.com/sendgrid/sendgrid-oai/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [DX Automator](https://github.com/sendgrid/dx-automator/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) -* [Documentation](https://github.com/sendgrid/docs/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22difficulty%3A+easy%22+label%3A%22status%3A+help+wanted%22) From 5aa5da2111c886bac0a03e5b4c2c87df63f5e806 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 May 2022 13:35:23 -0700 Subject: [PATCH 266/288] [Librarian] Version Bump --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58a316c6..49c043fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Change Log All notable changes to this project will be documented in this file. +[2022-05-18] Version 4.9.2 +-------------------------- +**Library - Docs** +- [PR #732](https://github.com/sendgrid/sendgrid-java/pull/732): Modify README.md in alignment with SendGrid Support. Thanks to [@garethpaul](https://github.com/garethpaul)! + +**Library - Chore** +- [PR #726](https://github.com/sendgrid/sendgrid-java/pull/726): security upgrade jackson-databind from 2.13.0 to 2.13.2. Thanks to [@tomoyaY](https://github.com/tomoyaY)! + +**Library - Fix** +- [PR #725](https://github.com/sendgrid/sendgrid-java/pull/725): override default gh token. Thanks to [@beebzz](https://github.com/beebzz)! + + [2022-03-23] Version 4.9.1 -------------------------- **Library - Chore** From 873f34586d322fd9953edfd46bf41b45787c115b Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 May 2022 13:35:23 -0700 Subject: [PATCH 267/288] Release 4.9.2 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d9f0088d..077202cf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.9.1/sendgrid-4.9.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.1/sendgrid-4.9.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.9.2/sendgrid-4.9.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.2/sendgrid-4.9.2-jar.jar:. Example ``` diff --git a/README.md b/README.md index e17f6191..94c401cc 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.9.1' + implementation 'com.sendgrid:sendgrid-java:4.9.2' } repositories { @@ -81,7 +81,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.2/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index 04d0d5bb..df870530 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.9.1 + 4.9.2 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.9.1 + 4.9.2 @@ -306,4 +306,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 74c50fec..1c8302ab 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.9.1"; + private static final String VERSION = "4.9.2"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 73d1614d..415c7d81 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.9.1"); + Assert.assertEquals(sg.getLibraryVersion(), "4.9.2"); } @Test From 61c4d5dc4dadfbc0abf8ced5dbd1a66e7bbbb0ae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jun 2022 08:51:15 -0500 Subject: [PATCH 268/288] chore: bump jackson-databind from 2.13.2 to 2.13.3 (#727) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index df870530..b05e4fcf 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - 2.13.2 + 2.13.3 https://github.com/sendgrid/sendgrid-java From cae0040abebb97f5d37aae60d2687d86118cef25 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 29 Jun 2022 11:49:59 -0700 Subject: [PATCH 269/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49c043fa..6a8840b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2022-06-29] Version 4.9.3 +-------------------------- +**Library - Chore** +- [PR #727](https://github.com/sendgrid/sendgrid-java/pull/727): bump jackson-databind from 2.13.2 to 2.13.3. Thanks to [@dependabot](https://github.com/dependabot)! + + [2022-05-18] Version 4.9.2 -------------------------- **Library - Docs** From 6b7fd6226e2e734ae05c69762528bc00d7ac4377 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 29 Jun 2022 11:49:59 -0700 Subject: [PATCH 270/288] Release 4.9.3 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 077202cf..139b3656 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.9.2/sendgrid-4.9.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.2/sendgrid-4.9.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.9.3/sendgrid-4.9.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.3/sendgrid-4.9.3-jar.jar:. Example ``` diff --git a/README.md b/README.md index 94c401cc..fc60fb70 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.9.2' + implementation 'com.sendgrid:sendgrid-java:4.9.3' } repositories { @@ -81,7 +81,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.2/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.3/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index b05e4fcf..ef5d65c2 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.9.2 + 4.9.3 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.9.2 + 4.9.3 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 1c8302ab..0a812c19 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.9.2"; + private static final String VERSION = "4.9.3"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 415c7d81..2ac11fdb 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.9.2"); + Assert.assertEquals(sg.getLibraryVersion(), "4.9.3"); } @Test From 12a2ce039559a9568908314802f21ba55123e649 Mon Sep 17 00:00:00 2001 From: Raghav Katyal Date: Wed, 6 Jul 2022 16:15:04 -0700 Subject: [PATCH 271/288] Adding misc as PR type (#735) --- .github/workflows/pr-lint.yml | 2 +- PULL_REQUEST_TEMPLATE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index dc7af3d3..2f5232b0 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -10,6 +10,6 @@ jobs: steps: - uses: amannn/action-semantic-pull-request@v4 with: - types: chore docs fix feat test + types: chore docs fix feat test misc env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md index 52d4bd95..c15ea433 100644 --- a/PULL_REQUEST_TEMPLATE.md +++ b/PULL_REQUEST_TEMPLATE.md @@ -3,7 +3,7 @@ We appreciate the effort for this pull request but before that please make sure Please format the PR title appropriately based on the type of change: [!]: -Where is one of: docs, chore, feat, fix, test. +Where is one of: docs, chore, feat, fix, test, misc. Add a '!' after the type for breaking changes (e.g. feat!: new breaking feature). **All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.** From 146bfee5b200d2658206b09ff2a0f4f1c6e2e55c Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Tue, 3 Jan 2023 09:09:34 -0600 Subject: [PATCH 272/288] docs: updated the year in the license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 5db04ff6..3154774a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2022, Twilio SendGrid, Inc. +Copyright (C) 2023, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in From 040d916d6b8cb2adf106ab6b910a1e00a85112af Mon Sep 17 00:00:00 2001 From: shrutiburman <87537688+shrutiburman@users.noreply.github.com> Date: Fri, 3 Nov 2023 00:22:24 +0530 Subject: [PATCH 273/288] feat: Add data residency for eu and global regions (#743) --- examples/dataresidency/setregion.java | 77 +++++++++++++++++++ src/main/java/com/sendgrid/BaseInterface.java | 25 ++++++ src/test/java/com/sendgrid/SendGridTest.java | 46 +++++++++++ 3 files changed, 148 insertions(+) create mode 100644 examples/dataresidency/setregion.java diff --git a/examples/dataresidency/setregion.java b/examples/dataresidency/setregion.java new file mode 100644 index 00000000..5dc42150 --- /dev/null +++ b/examples/dataresidency/setregion.java @@ -0,0 +1,77 @@ +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +import com.sendgrid.*; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +////////////////////////////////////////////////////////////////// +// Set data residency to navigate to a region/edge. +// Currently supported: "global", "eu" + + +public class Example { + public static void main(String[] args) throws IOException { + try { + + final Mail helloWorld = buildHelloEmail(); + + Request request = new Request(); + request.setEndpoint("mail/send"); + request.setBody(helloWorld.build()); + request.setMethod(Method.POST); + + // sending to global data residency + Sendgrid sg = buildSendgridObj("global"); + Response response = sg.api(request); + System.out.println("Sending to hostname: " + sg.getHost()); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + + // sending to EU data residency + Sendgrid sg = buildSendgridObj("eu"); + Response response = sg.api(request); + System.out.println("Sending to hostname: " + sg.getHost()); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + + // not configuring any region defaults to global + Sendgrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + Response response = sg.api(request); + System.out.println("Sending to hostname: " + sg.getHost()); + System.out.println(response.getStatusCode()); + System.out.println(response.getBody()); + System.out.println(response.getHeaders()); + + } catch (IOException ex) { + throw ex; + } + } + + public static Mail buildHelloEmail() { + Email from = new Email("test@example.com"); + String subject = "Hello World from the Twilio SendGrid Java Library"; + Email to = new Email("test@example.com"); + Content content = new Content("text/plain", "some text here"); + // Note that when you use this constructor an initial personalization object + // is created for you. It can be accessed via + // mail.personalization.get(0) as it is a List object + Mail mail = new Mail(from, subject, to, content); + Email email = new Email("test2@example.com"); + mail.personalization.get(0).addTo(email); + + return mail; + } + + public static Sendgrid buildSendgridObj(String region){ + SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY")); + sg.setDataResidency(region); + return sg; + + } +} + diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 0a812c19..bef1814f 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -17,6 +17,13 @@ public abstract class BaseInterface implements SendGridAPI { private static final int RATE_LIMIT_RESPONSE_CODE = 429; private static final int THREAD_POOL_SIZE = 8; + private static final Map allowedRegionsHostMap; + static { + //todo: change this to Map.of() when we've moved on from Java 8 + allowedRegionsHostMap = new HashMap<>(); + allowedRegionsHostMap.put("eu", "api.eu.sendgrid.com"); + allowedRegionsHostMap.put("global", "api.sendgrid.com"); + } private ExecutorService pool; /** @@ -336,4 +343,22 @@ public void run() { } }); } + + /* + * Client libraries contain setters for specifying region/edge. + * This allows support global and eu regions only. This set will likely expand in the future. + * Global should be the default + * Global region means the message should be sent through: + * HTTP: api.sendgrid.com + * EU region means the message should be sent through: + * HTTP: api.eu.sendgrid.com +*/ + public void setDataResidency(String region){ + if (allowedRegionsHostMap.containsKey(region)){ + this.host = allowedRegionsHostMap.get(region); + } + else{ + throw new IllegalArgumentException("region can only be \"eu\" or \"global\""); + } + } } diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 2ac11fdb..00f66799 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -3242,4 +3242,50 @@ public void test_request_headers_override_sendgrid_object_headers() throws IOExc sg.api(request); verify(client).api(argThat((Request req) -> req.getHeaders().get("set-on-both").equals("456"))); } + + @Test + public void testSetResidency_happy_path_eu() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setDataResidency("eu"); + Assert.assertEquals(sg.getHost(), "api.eu.sendgrid.com"); + } + @Test + public void testSetResidency_happy_path_global() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setDataResidency("global"); + Assert.assertEquals(sg.getHost(), "api.sendgrid.com"); + } + + + @Test + public void testSetResidency_override_host() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setHost("api.new.com"); + sg.setDataResidency("eu"); + Assert.assertEquals(sg.getHost(), "api.eu.sendgrid.com"); + } + + @Test + public void testsetResidency_override_data_residency() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setDataResidency("eu"); + sg.setHost("api.new.com"); + Assert.assertEquals(sg.getHost(), "api.new.com"); + } + + @Test (expected = IllegalArgumentException.class) + public void testsetResidency_incorrect_region() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setDataResidency("foo"); + } + @Test (expected = IllegalArgumentException.class) + public void testsetResidency_null_region(){ + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + sg.setDataResidency(""); + } + @Test + public void testsetResidency_default_region() { + SendGrid sg = new SendGrid(SENDGRID_API_KEY); + Assert.assertEquals(sg.getHost(), "api.sendgrid.com"); + } } From c81da35c271eab19f2cf63d7d8560926dc045a10 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 6 Nov 2023 14:44:09 +0000 Subject: [PATCH 274/288] [Librarian] Version Bump --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a8840b0..a7293f35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Change Log All notable changes to this project will be documented in this file. +[2023-11-06] Version 4.10.0 +--------------------------- +**Library - Feature** +- [PR #743](https://github.com/sendgrid/sendgrid-java/pull/743): Add data residency for eu and global regions. Thanks to [@shrutiburman](https://github.com/shrutiburman)! + +**Library - Test** +- [PR #735](https://github.com/sendgrid/sendgrid-java/pull/735): Adding misc as PR type. Thanks to [@rakatyal](https://github.com/rakatyal)! + + [2022-06-29] Version 4.9.3 -------------------------- **Library - Chore** From 1ed873276731f12a71d0011dcf88804dca97e8ea Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 6 Nov 2023 14:44:09 +0000 Subject: [PATCH 275/288] Release 4.10.0 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 4 ++-- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 139b3656..77fc2389 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.9.3/sendgrid-4.9.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.9.3/sendgrid-4.9.3-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.10.0/sendgrid-4.10.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.0/sendgrid-4.10.0-jar.jar:. Example ``` diff --git a/README.md b/README.md index fc60fb70..64a8aee5 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.9.3' + implementation 'com.sendgrid:sendgrid-java:4.10.0' } repositories { @@ -81,7 +81,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.9.3/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.0/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index ef5d65c2..bb404261 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.9.3 + 4.10.0 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.9.3 + 4.10.0 diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index bef1814f..163490a9 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.9.3"; + private static final String VERSION = "4.10.0"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 00f66799..6e137eb8 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.9.3"); + Assert.assertEquals(sg.getLibraryVersion(), "4.10.0"); } @Test From d4d332faa34abf02c657c74842e496a8024a865a Mon Sep 17 00:00:00 2001 From: kebeda Date: Wed, 8 Nov 2023 06:21:13 -0600 Subject: [PATCH 276/288] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20chore(deps):=20?= =?UTF-8?q?updates=20bouncy=20castle=20to=201.75=20(latest=201.7x)=20(#741?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This mitigates CVE-2023-33201. ref. https://github.com/bcgit/bc-java/wiki/CVE-2023-33201 Co-authored-by: shrutiburman <87537688+shrutiburman@users.noreply.github.com> --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index bb404261..ee6657ae 100644 --- a/pom.xml +++ b/pom.xml @@ -293,8 +293,8 @@
org.bouncycastle - bcprov-jdk15on - 1.70 + bcprov-jdk18on + 1.75 @@ -306,4 +306,4 @@ - \ No newline at end of file + From 8c5607f9dc1d566956d2d1ecea3738feb4549283 Mon Sep 17 00:00:00 2001 From: Matt Dziuban Date: Wed, 8 Nov 2023 08:44:57 -0500 Subject: [PATCH 277/288] Update bouncycastle to latest 1.76 (#744) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ee6657ae..c131cfa5 100644 --- a/pom.xml +++ b/pom.xml @@ -294,7 +294,7 @@ org.bouncycastle bcprov-jdk18on - 1.75 + 1.76 From 1692a4ed9115af6de0c4dcb055370931b2fe4ebe Mon Sep 17 00:00:00 2001 From: Twilio Date: Fri, 17 Nov 2023 10:32:39 +0000 Subject: [PATCH 278/288] [Librarian] Version Bump --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7293f35..50e27d1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. +[2023-11-17] Version 4.10.1 +--------------------------- +**Library - Chore** +- [PR #744](https://github.com/sendgrid/sendgrid-java/pull/744): updates bouncy castle to 1.76 (latest 1.7x). Thanks to [@mrdziuban](https://github.com/mrdziuban)! +- [PR #741](https://github.com/sendgrid/sendgrid-java/pull/741): updates bouncy castle to 1.75 (latest 1.7x). Thanks to [@kebeda](https://github.com/kebeda)! + + [2023-11-06] Version 4.10.0 --------------------------- **Library - Feature** From 511e7f7f09db9fdaed832b49f779d53a7f54781f Mon Sep 17 00:00:00 2001 From: Twilio Date: Fri, 17 Nov 2023 10:32:39 +0000 Subject: [PATCH 279/288] Release 4.10.1 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 77fc2389..78483f31 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.10.0/sendgrid-4.10.0-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.0/sendgrid-4.10.0-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.10.1/sendgrid-4.10.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.1/sendgrid-4.10.1-jar.jar:. Example ``` diff --git a/README.md b/README.md index 64a8aee5..b3a3851b 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.10.0' + implementation 'com.sendgrid:sendgrid-java:4.10.1' } repositories { @@ -81,7 +81,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.0/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.1/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index c131cfa5..742055bb 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.10.0 + 4.10.1 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.10.0 + 4.10.1 @@ -306,4 +306,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 163490a9..9be558c4 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.10.0"; + private static final String VERSION = "4.10.1"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 6e137eb8..84d4c19d 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.10.0"); + Assert.assertEquals(sg.getLibraryVersion(), "4.10.1"); } @Test From e5443e3213fcfa982bf56365fc7511afe58af9ea Mon Sep 17 00:00:00 2001 From: Shubham Date: Thu, 18 Jan 2024 14:04:18 +0530 Subject: [PATCH 280/288] chore: update jackson version and licence year (#745) * chore: upgraded the jackson version to 2.14.0 * chore: changed licence year to 2024 --- LICENSE | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 3154774a..d703157e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2023, Twilio SendGrid, Inc. +Copyright (C) 2024, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/pom.xml b/pom.xml index 742055bb..ca72a7aa 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@
- 2.13.3 + 2.14.0 https://github.com/sendgrid/sendgrid-java @@ -306,4 +306,4 @@ - \ No newline at end of file + From e9d0e9d4f475630b2a734afdc307484dbb283c0d Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 14 Feb 2024 08:35:49 +0000 Subject: [PATCH 281/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e27d1f..0afa2205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2024-02-14] Version 4.10.2 +--------------------------- +**Library - Chore** +- [PR #745](https://github.com/sendgrid/sendgrid-java/pull/745): update jackson version and licence year. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! + + [2023-11-17] Version 4.10.1 --------------------------- **Library - Chore** From 472b4df35a719b99db96e8e0a8bf1ea552feb686 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 14 Feb 2024 08:35:49 +0000 Subject: [PATCH 282/288] Release 4.10.2 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 78483f31..a5973600 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.10.1/sendgrid-4.10.1-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.1/sendgrid-4.10.1-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.10.2/sendgrid-4.10.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.2/sendgrid-4.10.2-jar.jar:. Example ``` diff --git a/README.md b/README.md index b3a3851b..f1f3a0b8 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.10.1' + implementation 'com.sendgrid:sendgrid-java:4.10.2' } repositories { @@ -81,7 +81,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.1/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.2/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index ca72a7aa..541f1964 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.10.1 + 4.10.2 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.10.1 + 4.10.2 @@ -306,4 +306,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 9be558c4..100f235c 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.10.1"; + private static final String VERSION = "4.10.2"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 84d4c19d..9c0d3063 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.10.1"); + Assert.assertEquals(sg.getLibraryVersion(), "4.10.2"); } @Test From 8e59d61b8778b975129261075efe69022415bb9c Mon Sep 17 00:00:00 2001 From: Shubham Date: Tue, 10 Sep 2024 10:33:34 +0530 Subject: [PATCH 283/288] chore: move Bouncy Castle dependency to test scope (#767) * chore: install docker-compose * make bouncycastle test scope --- .github/workflows/test-and-deploy.yml | 5 +++++ pom.xml | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index b8d847f2..111591a6 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -31,6 +31,11 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_AUTH_TOKEN }} + - name: Install Docker Compose + run: | + sudo apt-get update + sudo apt-get install -y docker-compose + - name: Run Unit Tests run: make test-docker version=${{ matrix.java }} diff --git a/pom.xml b/pom.xml index 541f1964..ea11d878 100644 --- a/pom.xml +++ b/pom.xml @@ -294,7 +294,8 @@ org.bouncycastle bcprov-jdk18on - 1.76 + 1.78.1 + test @@ -306,4 +307,4 @@ - \ No newline at end of file + From ff848fb6f1f001dffc582c9aff2cd2ce2e571eef Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 Sep 2024 13:17:43 +0000 Subject: [PATCH 284/288] [Librarian] Version Bump --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0afa2205..0419d039 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log All notable changes to this project will be documented in this file. +[2024-09-18] Version 4.10.3 +--------------------------- +**Library - Chore** +- [PR #767](https://github.com/sendgrid/sendgrid-java/pull/767): move Bouncy Castle dependency to test scope. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! + + [2024-02-14] Version 4.10.2 --------------------------- **Library - Chore** From 352d3538b187b76ba227ad1968fafbe20469e187 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 18 Sep 2024 13:17:43 +0000 Subject: [PATCH 285/288] Release 4.10.3 --- CONTRIBUTING.md | 2 +- README.md | 4 ++-- pom.xml | 6 +++--- src/main/java/com/sendgrid/BaseInterface.java | 2 +- src/test/java/com/sendgrid/SendGridTest.java | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a5973600..c97a921f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ touch Example.java Add the example you want to test to Example.java, including the headers at the top of the file. ``` bash -javac -classpath ../repo/com/sendgrid/4.10.2/sendgrid-4.10.2-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.2/sendgrid-4.10.2-jar.jar:. Example +javac -classpath ../repo/com/sendgrid/4.10.3/sendgrid-4.10.3-jar.jar:. Example.java && java -classpath ../repo/com/sendgrid/4.10.3/sendgrid-4.10.3-jar.jar:. Example ``` diff --git a/README.md b/README.md index f1f3a0b8..090a0536 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your build.gradle file in the root of your project. ... dependencies { ... - implementation 'com.sendgrid:sendgrid-java:4.10.2' + implementation 'com.sendgrid:sendgrid-java:4.10.3' } repositories { @@ -81,7 +81,7 @@ mvn install You can just drop the jar file in. It's a fat jar - it has all the dependencies built in. -[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.2/sendgrid-java.jar) +[sendgrid-java.jar](https://github.com/sendgrid/sendgrid-java/releases/download/4.10.3/sendgrid-java.jar) ## Dependencies diff --git a/pom.xml b/pom.xml index ea11d878..dad3a41a 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ com.sendgrid sendgrid-java Twilio SendGrid Java helper library - 4.10.2 + 4.10.3 This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java. https://github.com/sendgrid/sendgrid-java @@ -26,7 +26,7 @@ https://github.com/sendgrid/sendgrid-java scm:git:git@github.com:sendgrid/sendgrid-java.git scm:git:git@github.com:sendgrid/sendgrid-java.git - 4.10.2 + 4.10.3 @@ -307,4 +307,4 @@ - + \ No newline at end of file diff --git a/src/main/java/com/sendgrid/BaseInterface.java b/src/main/java/com/sendgrid/BaseInterface.java index 100f235c..7a45cda4 100644 --- a/src/main/java/com/sendgrid/BaseInterface.java +++ b/src/main/java/com/sendgrid/BaseInterface.java @@ -11,7 +11,7 @@ */ public abstract class BaseInterface implements SendGridAPI { - private static final String VERSION = "4.10.2"; + private static final String VERSION = "4.10.3"; private static final String USER_AGENT = "sendgrid/" + VERSION + ";java"; private static final int RATE_LIMIT_RESPONSE_CODE = 429; diff --git a/src/test/java/com/sendgrid/SendGridTest.java b/src/test/java/com/sendgrid/SendGridTest.java index 9c0d3063..8737cbb2 100644 --- a/src/test/java/com/sendgrid/SendGridTest.java +++ b/src/test/java/com/sendgrid/SendGridTest.java @@ -43,7 +43,7 @@ public void testConstructWithClient() throws IOException { @Test public void testLibraryVersion() { SendGrid sg = new SendGrid(SENDGRID_API_KEY); - Assert.assertEquals(sg.getLibraryVersion(), "4.10.2"); + Assert.assertEquals(sg.getLibraryVersion(), "4.10.3"); } @Test From fa9bb12f73d2dfc10c7ea5a41bc2850be6fdd962 Mon Sep 17 00:00:00 2001 From: sbansla <104902068+sbansla@users.noreply.github.com> Date: Mon, 30 Jun 2025 13:19:45 +0530 Subject: [PATCH 286/288] chore: migrate ossrh to central publishing repo (#777) * chore: migrate ossrh to central publishing repo * updated license versiob --- LICENSE | 2 +- pom.xml | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/LICENSE b/LICENSE index d703157e..126ceb1a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2024, Twilio SendGrid, Inc. +Copyright (C) 2025, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/pom.xml b/pom.xml index dad3a41a..0d8ec8ef 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,6 @@ 4.0.0 - - org.sonatype.oss - oss-parent - 7 - com.sendgrid sendgrid-java Twilio SendGrid Java helper library @@ -39,14 +34,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://oss.sonatype.org/ - true + central + true From 9f65fcf2109ca7860d6b8a1428da346fec555413 Mon Sep 17 00:00:00 2001 From: sbansla <104902068+sbansla@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:53:01 +0530 Subject: [PATCH 287/288] chore: Migrate ossrh to central (#778) * changing server-id to central --- .github/workflows/test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 111591a6..0a31274e 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -53,7 +53,7 @@ jobs: with: java-version: 8 distribution: temurin - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} From b1ace7e6941de6d3acdcfdc7eb0a91e0076c6466 Mon Sep 17 00:00:00 2001 From: kridai Date: Wed, 7 Oct 2026 13:29:07 +0530 Subject: [PATCH 288/288] chore: harden GitHub Actions for platform compliance (#785) * chore: harden GitHub Actions for platform compliance - Pin all actions to commit SHAs and add per-job permissions - Run jobs on ubuntu-x64 with a repository_owner guard - Replace amannn/action-semantic-pull-request with twilio/sdk-actions/semantic-pr-title - Replace sendgrid/dx-automator release action with twilio/sdk-actions/github-release - Comment out Slack failure notifications and the Datadog release metric - Remove update-dependencies workflow in favour of Dependabot (maven + github-actions) Co-Authored-By: Claude Opus 5.5 * chore: update LICENSE year so LicenseTest passes Co-Authored-By: Claude Opus 5.5 * fix: replace docker/login-action with CLI login The sendgrid org allowlist only permits GitHub-owned actions, so docker/login-action caused a startup_failure for the whole workflow. Co-Authored-By: Claude Opus 5.5 * test: vendor the Prism mock server used by make test-docker (#786) make test-docker downloaded and ran a script from sendgrid/sendgrid-oai@HEAD, which is no longer publicly readable, so 231 of 255 SendGridTest tests could not run. The setup now lives in mock-server/ with everything pinned: - Prism v2.0.17 binary verified by sha256; spec vendored from sendgrid-oai commit eb7a825b (the commit the old script pinned) - nginx and debian base images pinned by digest - Dockerfile moved from the removed openjdk images to maven:3.9-eclipse-temurin - --exit-code-from helper-runner so a failing test fails the make target Co-authored-by: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .github/dependabot.yml | 10 + .github/workflows/pr-lint.yml | 19 +- .github/workflows/test-and-deploy.yml | 80 +- .github/workflows/update-dependencies.yml | 54 - Dockerfile | 21 +- LICENSE | 2 +- Makefile | 8 +- mock-server/Dockerfile.prism | 19 + mock-server/README.md | 15 + mock-server/docker-compose.yml | 33 + mock-server/nginx/cert.crt | 23 + mock-server/nginx/cert.key | 28 + mock-server/nginx/nginx.conf | 18 + mock-server/oai_stoplight.json | 30770 ++++++++++++++++++++ 14 files changed, 30988 insertions(+), 112 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/update-dependencies.yml create mode 100644 mock-server/Dockerfile.prism create mode 100644 mock-server/README.md create mode 100644 mock-server/docker-compose.yml create mode 100644 mock-server/nginx/cert.crt create mode 100644 mock-server/nginx/cert.key create mode 100644 mock-server/nginx/nginx.conf create mode 100644 mock-server/oai_stoplight.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..c9b2105b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 2f5232b0..c4d56936 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -3,13 +3,22 @@ on: pull_request_target: types: [ opened, edited, synchronize, reopened ] +permissions: + contents: read + pull-requests: read + jobs: validate: name: Validate title - runs-on: ubuntu-latest + runs-on: ubuntu-x64 steps: - - uses: amannn/action-semantic-pull-request@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - uses: twilio/sdk-actions/semantic-pr-title@09631bfa50f14d276170d45bc4f49a80da201cc6 # main @ 09631bf — sdk-actions#10; repin to the v1.1.0 tag once cut with: - types: chore docs fix feat test misc - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + types: | + chore + docs + fix + feat + misc + test diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 0a31274e..16035326 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -13,8 +13,11 @@ on: jobs: test: name: Test - runs-on: ubuntu-latest + runs-on: ubuntu-x64 + if: github.repository_owner == 'sendgrid' timeout-minutes: 20 + permissions: + contents: read strategy: matrix: java: [ 8, 11 ] @@ -22,14 +25,15 @@ jobs: DOCKER_LOGIN: ${{ secrets.DOCKER_USERNAME && secrets.DOCKER_AUTH_TOKEN }} steps: - name: Checkout sendgrid-java - uses: actions/checkout@v2 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + # Plain CLI login: docker/login-action is not on this org's action allowlist. - name: Login to Docker Hub if: env.DOCKER_LOGIN - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_AUTH_TOKEN }} + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_AUTH_TOKEN: ${{ secrets.DOCKER_AUTH_TOKEN }} + run: echo "$DOCKER_AUTH_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin - name: Install Docker Compose run: | @@ -41,17 +45,22 @@ jobs: deploy: name: Deploy - if: success() && github.ref_type == 'tag' + if: success() && github.ref_type == 'tag' && github.repository_owner == 'sendgrid' needs: [ test ] - runs-on: ubuntu-latest + runs-on: ubuntu-x64 + permissions: + contents: write steps: - name: Checkout sendgrid-java - uses: actions/checkout@v2 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + # The release action verifies refs/tags/ in the local clone. + fetch-depth: 0 - name: Set up Sonatype Maven - uses: actions/setup-java@v2 + uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 with: - java-version: 8 + java-version: '8' distribution: temurin server-id: central server-username: MAVEN_USERNAME @@ -63,12 +72,11 @@ jobs: run: make install - name: Create GitHub Release - uses: sendgrid/dx-automator/actions/release@main + uses: twilio/sdk-actions/github-release@9b1c3222c9ffe38aadedb11c5b9f5a172b5e9951 # v1 with: assets: sendgrid-java.jar - footer: '**[Maven](https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java/${version})**' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + changelog-file: CHANGELOG.md + footer: '**[Maven](https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java/${{ github.ref_name }})**' - name: Publish to Maven env: @@ -77,25 +85,25 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} run: mvn clean deploy -DskipTests=true -B -U -Prelease - - name: Submit metric to Datadog - uses: sendgrid/dx-automator/actions/datadog-release-metric@main - env: - DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} +# - name: Submit metric to Datadog +# uses: sendgrid/dx-automator/actions/datadog-release-metric@08b601b726671445abc798ed59881766ec8fefc6 # main +# env: +# DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} - notify-on-failure: - name: Slack notify on failure - if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') - needs: [ test, deploy ] - runs-on: ubuntu-latest - steps: - - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_COLOR: failure - SLACK_ICON_EMOJI: ':github:' - SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }} - SLACK_TITLE: Action Failure - ${{ github.repository }} - SLACK_USERNAME: GitHub Actions - SLACK_MSG_AUTHOR: twilio-dx - SLACK_FOOTER: Posted automatically using GitHub Actions - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - MSG_MINIMAL: true +# notify-on-failure: +# name: Slack notify on failure +# if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') +# needs: [ test, deploy ] +# runs-on: ubuntu-x64 +# steps: +# - uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2.3.3 +# env: +# SLACK_COLOR: failure +# SLACK_ICON_EMOJI: ':github:' +# SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }} +# SLACK_TITLE: Action Failure - ${{ github.repository }} +# SLACK_USERNAME: GitHub Actions +# SLACK_MSG_AUTHOR: twilio-dx +# SLACK_FOOTER: Posted automatically using GitHub Actions +# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} +# MSG_MINIMAL: true diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml deleted file mode 100644 index eea77a93..00000000 --- a/.github/workflows/update-dependencies.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Update dependencies -on: - schedule: - # Run automatically at 7AM PST Tuesday - - cron: '0 14 * * 2' - workflow_dispatch: - -jobs: - update-dependencies-and-test: - name: Update Dependencies & Test - runs-on: ubuntu-latest - timeout-minutes: 20 - strategy: - max-parallel: 1 - matrix: - java: [ 8, 11 ] - - steps: - - name: Checkout sendgrid-java - uses: actions/checkout@v2 - - - name: Updating semver dependencies - run: make update-deps - - - name: Run Unit Tests - run: make test-docker version=${{ matrix.java }} - - - name: Add & Commit - if: matrix.java == '11' - uses: EndBug/add-and-commit@v8.0.2 - env: - GITHUB_TOKEN: ${{ secrets.SG_JAVA_GITHUB_TOKEN }} - with: - add: 'pom.xml' - default_author: 'github_actions' - message: 'chore: update sendgrid-java dependencies' - - notify-on-failure: - name: Slack notify on failure - if: failure() - needs: [ update-dependencies-and-test ] - runs-on: ubuntu-latest - steps: - - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_COLOR: failure - SLACK_ICON_EMOJI: ':github:' - SLACK_MESSAGE: ${{ format('Update dependencies *{0}*, {1}/{2}/actions/runs/{3}', needs.update-dependencies-and-test.result, github.server_url, github.repository, github.run_id) }} - SLACK_TITLE: Action Failure - ${{ github.repository }} - SLACK_USERNAME: GitHub Actions - SLACK_MSG_AUTHOR: twilio-dx - SLACK_FOOTER: Posted automatically using GitHub Actions - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - MSG_MINIMAL: true diff --git a/Dockerfile b/Dockerfile index 6587fff8..81359dbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,14 @@ -ARG version=latest -FROM openjdk:$version +ARG version=8 +FROM maven:3.9-eclipse-temurin-${version} -# version <= 11 RUN apt-get update \ - && apt-get install -y make maven || true -COPY prism/prism/nginx/cert.crt /usr/local/share/ca-certificates/cert.crt -RUN update-ca-certificates || true + && apt-get install -y --no-install-recommends make \ + && rm -rf /var/lib/apt/lists/* -# version > 11 -RUN yum update -y \ - && yum install -y make wget || true -RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \ - && yum install -y maven || true -RUN keytool -import -trustcacerts -cacerts -storepass changeit -noprompt \ - -alias api.sendgrid.com -file /usr/local/share/ca-certificates/cert.crt || true +# Trust the mock server's api.sendgrid.com certificate (see mock-server/). +COPY mock-server/nginx/cert.crt /tmp/api.sendgrid.com.crt +RUN keytool -importcert -noprompt -storepass changeit -alias api.sendgrid.com \ + -file /tmp/api.sendgrid.com.crt -keystore "$(find "$JAVA_HOME" -name cacerts | head -1)" WORKDIR /app COPY . . diff --git a/LICENSE b/LICENSE index 126ceb1a..fa5602b2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2025, Twilio SendGrid, Inc. +Copyright (C) 2026, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/Makefile b/Makefile index 3983b6aa..ee256419 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,12 @@ test: test-integ: test -version ?= latest +version ?= 8 +COMPOSE := $(shell docker compose version >/dev/null 2>&1 && echo "docker compose" || echo "docker-compose") test-docker: - curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism-java.sh -o prism.sh - version=$(version) bash ./prism.sh + version=$(version) $(COMPOSE) -f mock-server/docker-compose.yml up --build --force-recreate \ + --abort-on-container-exit --exit-code-from helper-runner --remove-orphans; \ + status=$$?; version=$(version) $(COMPOSE) -f mock-server/docker-compose.yml down --remove-orphans; exit $$status update-deps: mvn versions:use-latest-releases versions:commit -DallowMajorUpdates=false diff --git a/mock-server/Dockerfile.prism b/mock-server/Dockerfile.prism new file mode 100644 index 00000000..dac986df --- /dev/null +++ b/mock-server/Dockerfile.prism @@ -0,0 +1,19 @@ +# Prism mock of the SendGrid v3 API, used by `make test-docker`. +# Everything is pinned: the base image by digest, the Prism binary by sha256, +# and the spec is vendored (see README.md in this directory). +FROM debian:bookworm-slim@sha256:7c7b2c966bc9ee8cedfeef67e0e279108992c77681fa595db4a9d65c06ccc587 + +ARG PRISM_VERSION=v2.0.17 +ARG PRISM_SHA256=80f37c2aedab2035a20e6025ac552908bce9e5d64a9338a48434e604e5590731 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl ca-certificates \ + && curl -fsSL "https://github.com/stoplightio/prism/releases/download/${PRISM_VERSION}/prism_linux_amd64" -o /usr/local/bin/prism \ + && echo "${PRISM_SHA256} /usr/local/bin/prism" | sha256sum -c - \ + && chmod +x /usr/local/bin/prism \ + && apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* + +COPY oai_stoplight.json /oai_stoplight.json + +EXPOSE 4010 +CMD ["prism", "--port", "4010", "mock", "--spec", "/oai_stoplight.json"] diff --git a/mock-server/README.md b/mock-server/README.md new file mode 100644 index 00000000..d8958259 --- /dev/null +++ b/mock-server/README.md @@ -0,0 +1,15 @@ +# Mock SendGrid API for tests + +`make test-docker` runs the test suite against a local mock of `api.sendgrid.com`: + +- **prism**: [Prism](https://github.com/stoplightio/prism) v2.0.17 mocking `oai_stoplight.json`. + The binary's sha256 is checked in `Dockerfile.prism`. +- **nginx**: answers TLS as `api.sendgrid.com` with the self-signed test certificate in + `nginx/` and proxies to prism. The certificate and key exist only for this mock. +- **helper-runner**: the repo's root `Dockerfile`, which trusts that certificate and runs + `make test-integ`. + +`oai_stoplight.json` is vendored from `sendgrid/sendgrid-oai` at commit +`eb7a825bf06dfec7da2622735c5334c0d35da9fa`, the same commit the previous +remote `prism-java.sh` script pinned. These files used to be downloaded at test time +from that repository, which is no longer publicly readable. diff --git a/mock-server/docker-compose.yml b/mock-server/docker-compose.yml new file mode 100644 index 00000000..6254c457 --- /dev/null +++ b/mock-server/docker-compose.yml @@ -0,0 +1,33 @@ +# Runs the test suite against a local mock of api.sendgrid.com: +# helper-runner -> nginx (TLS as api.sendgrid.com) -> prism (mock of the v3 spec) +services: + helper-runner: + build: + context: .. + args: + - version=${version:-8} + command: make test-integ + depends_on: + nginx: + condition: service_healthy + nginx: + image: nginx:1.27-alpine@sha256:65645c7bb6a0661892a8b03b89d0743208a18dd2f3f17a54ef4b76fb8e2f2a10 + networks: + default: + aliases: + - api.sendgrid.com + volumes: + - ./nginx:/etc/nginx:ro + depends_on: + - prism + healthcheck: + # 2xx-4xx means nginx is up and prism answered; 502 means prism isn't ready yet. + test: ["CMD-SHELL", "wget -S -O /dev/null http://127.0.0.1/ 2>&1 | grep -qE '^ HTTP/1\\.[01] [1-4][0-9][0-9]'"] + interval: 2s + timeout: 2s + retries: 30 + prism: + platform: linux/amd64 + build: + context: . + dockerfile: Dockerfile.prism diff --git a/mock-server/nginx/cert.crt b/mock-server/nginx/cert.crt new file mode 100644 index 00000000..4ba1597c --- /dev/null +++ b/mock-server/nginx/cert.crt @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIIDyDCCArACCQDoRrX2g0xuUDANBgkqhkiG9w0BAQsFADCBpDELMAkGA1UEBhMC +VVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNVBAcMDVNhbiBGcmFuY2lzY28x +DzANBgNVBAoMBlR3aWxpbzERMA8GA1UECwwIU2VuZEdyaWQxGTAXBgNVBAMMEGFw +aS5zZW5kZ3JpZC5jb20xKTAnBgkqhk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A95YZieGPKYxoF6AkB0I1C +9RcmCQkkJZnCRCJX +-----END CERTIFICATE----- diff --git a/mock-server/nginx/cert.key b/mock-server/nginx/cert.key new file mode 100644 index 00000000..69f0fcb5 --- /dev/null +++ b/mock-server/nginx/cert.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCZL3FDgPX2NDZj +K4XM3vOT3FFZ46KXtvOQ6SAUIKqWE8LO5iUyqAPUXsiZw2hdsXDXezyT/XzFarEH +KcWC2aeK4Wb9/iDyIB94GffmLWDcF/Rukb2BafqH91fdhduDSeXR75sxAbi4PSBx +zJID9W3pjpOyGC7qlWj7IyJYSpBFrS2CqvZZnw1TRs6ulDNT1s6u8rGta92YjEhg +6am3LBNdbe8uLrcukTaLLl09YU7gkJEFzTZdnzgHkSFt9W2iM1sV21bq6u39WStZ +u3XxsVyh4zfDr8dtrwwX7Pw41LxCMP0JFeV40oMxUua8SZYvRHE7gfU/c7tqv+89 +p8QOhs8ZAgMBAAECggEASPrwVD/Bbu3LJ44ZrdReaYhifZfU48D244gdj1lMzDlX +62h8OlkPkgMiQRd2xoR+BTsiTkNLSWaeNpJxFfkKOEFQ5xtGqPQi6f49O71M0y7a +dj8a8OgDwvlVNCXMwgzX4B/uaPewAJ6msXDL8/Tey5Hwzb11xK8wF83SVAwaFgdB +2eY+crgF9biRiRsX+J6uqqHd4RM37IyQ133voTFBho48h3ORgo4WYu5tsHbwKvGC +pNDtvuvuwkvp6JuI0A1hr3j+/5981n+4w+rnyORliJmxjTYUzhrJ3UXjlXd9gInj +6tgKEnyq4j78MRp1VrFTPze3XOgMbhVflpLz22rWsQKBgQDJheFTI255UP+9c82B +KovkEtWNMwZwxiwmxPzapuUsg+OyJ7rNACuT+kRNkbQovC19nVG6NvwWs7A32Jjt +YHBmAepnh1a1p4NXkKEtwe/28nEnoKsv/Iaw7fIffr6gAdnlv8NV0K8WrnCuWUJ7 +qgKrHSqXdf2k/yxdCi8gQDzaPQKBgQDCmGwAS9LCOJWBfn7UkSc9aOf7z6ZDcWJw +smzWJ5zMNEwv4F4D7OO+4JpLoaKyu5jfllXMIELPWfC8J/+RsyDyEe1CED9pxIbJ +NBhfwJtwriolypXrkkCiRBRjG2Jg5NGdRRNjTbqtct83PxX5HcEjk09JFl2FNp7D ++ma0dpxCDQKBgFLVPurnc29WRehfgycGj/2taC3jvU/5hQhii/RsCWMkyyDdh8Df +wwnOIuknbMAZqTEqyv8ZvsCuF069Lw7TRyAGxYzMam28bxY9EqM2RiZhPPWm6vaM +e+iZxZ4AgOZQHHp9OhM59d4C0bo4YkVmejZPhMRA8YMyh8+ucfR1sw2ZAoGADPLp +lOd2wdfUEwbg17JFAzAc58O8k5ZS757f4SxHocsFGtZ6SxaTXRtDCS9bTTtwg8hU +Mz4eU//vJgYfWomp8pHA0PmVzqr2MSNXT9/YOBpO0a72ZPOZe3K+TI4A8OOpEycK +kDwW5P3U3q9C/g290Wk3CG0Fkhy9WdsqxG10Hm0CgYBhw64ATDSZ45KIJUF46HRa +RAY6oO5z2w2BeEpFugkFaMoziQocudeTMvE+QWneYLs7Tdzip+qbNVXJi6jAfpQQ +H3z2Bm34QvnuXuM1oWL2l7o10X35BHR0B6+IyL3Z/PHUusO51S+rNGPyKr63TXYI +Ucx/inqVBb7oeKlSHYmA1w== +-----END PRIVATE KEY----- diff --git a/mock-server/nginx/nginx.conf b/mock-server/nginx/nginx.conf new file mode 100644 index 00000000..7ac954c1 --- /dev/null +++ b/mock-server/nginx/nginx.conf @@ -0,0 +1,18 @@ +events {} +http { + proxy_buffering off; + server { + listen 80; + listen 443 ssl; + + ssl_certificate /etc/nginx/cert.crt; + ssl_certificate_key /etc/nginx/cert.key; + + location / { + proxy_pass http://prism:4010; + proxy_ignore_client_abort on; + } + } + + client_max_body_size 0; +} diff --git a/mock-server/oai_stoplight.json b/mock-server/oai_stoplight.json new file mode 100644 index 00000000..8e4ce52c --- /dev/null +++ b/mock-server/oai_stoplight.json @@ -0,0 +1,30770 @@ +{ + "swagger": "2.0", + "info": { + "version": "3.0", + "title": "SendGrid v3 API Documentation", + "description": "# The SendGrid Web API V3 Documentation\n\nThis is the entirety of the documented v3 endpoints. We have updated all the descriptions, parameters, requests, and responses.\n\n## Authentication \n\nEvery endpoint requires Authentication in the form of an Authorization Header:\n\nAuthorization: Bearer API_KEY" + }, + "host": "api.sendgrid.com", + "basePath": "/v3", + "schemes": [ + "http", + "https" + ], + "securityDefinitions": { + "Authorization": { + "name": "Authorization", + "type": "apiKey", + "in": "header" + } + }, + "paths": { + "/mail/send": { + "post": { + "operationId": "POST_mail-send", + "summary": "v3 Mail Send", + "tags": [ + "Mail Send" + ], + "description": "This endpoint allows you to send email over SendGrid’s v3 Web API, the most recent version of our API. If you are looking for documentation about the v2 Mail Send endpoint, please see our [v2 API Reference](https://sendgrid.com/docs/API_Reference/Web_API/mail.html).\n\n* Top level parameters are referred to as \"global\".\n* Individual fields within the personalizations array will override any other global, or “message level”, parameters that are defined outside of personalizations.\n \n**SendGrid provides libraries to help you quickly and easily integrate with the v3 Web API in 7 different languages: [C#](https://github.com/sendgrid/sendgrid-csharp), [Go](https://github.com/sendgrid/sendgrid-go), [Java](https://github.com/sendgrid/sendgrid-java), [Node JS](https://github.com/sendgrid/sendgrid-nodejs), [PHP](https://github.com/sendgrid/sendgrid-php), [Python](https://github.com/sendgrid/sendgrid-python), and [Ruby](https://github.com/sendgrid/sendgrid-ruby).**\n\n\nFor more detailed information about how to use the v3 Mail Send endpoint, please visit our [Classroom](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "personalizations": { + "type": "array", + "description": "An array of messages and their metadata. Each object within personalizations can be thought of as an envelope - it defines who should receive an individual message and how that message should be handled.", + "uniqueItems": false, + "maxItems": 1000, + "items": { + "type": "object", + "properties": { + "to": { + "type": "array", + "description": "An array of recipients. Each object within this array may contain the name, but must always contain the email, of a recipient.", + "minItems": 1, + "maxItems": 1000, + "items": { + "$ref": "#/definitions/email_object" + } + }, + "cc": { + "type": "array", + "description": "An array of recipients who will receive a copy of your email. Each object within this array may contain the name, but must always contain the email, of a recipient.", + "maxItems": 1000, + "items": { + "$ref": "#/definitions/email_object" + } + }, + "bcc": { + "type": "array", + "description": "An array of recipients who will receive a blind carbon copy of your email. Each object within this array may contain the name, but must always contain the email, of a recipient.", + "maxItems": 1000, + "items": { + "$ref": "#/definitions/email_object" + } + }, + "subject": { + "type": "string", + "description": "The subject of your email. Char length requirements, according to the RFC - http://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit#answer-1592310", + "minLength": 1 + }, + "headers": { + "type": "object", + "description": "A collection of JSON key/value pairs allowing you to specify specific handling instructions for your email. You may not overwrite the following headers: x-sg-id, x-sg-eid, received, dkim-signature, Content-Type, Content-Transfer-Encoding, To, From, Subject, Reply-To, CC, BCC" + }, + "substitutions": { + "type": "object", + "description": "A collection of key/value pairs following the pattern \"substitution_tag\":\"value to substitute\". All are assumed to be strings. These substitutions will apply to the text and html content of the body of your email, in addition to the `subject` and `reply-to` parameters.", + "maxProperties": 10000 + }, + "custom_args": { + "type": "object", + "description": "Values that are specific to this personalization that will be carried along with the email and its activity data. Substitutions will not be made on custom arguments, so any string that is entered into this parameter will be assumed to be the custom argument that you would like to be used. May not exceed 10,000 bytes." + }, + "send_at": { + "type": "integer", + "description": "A unix timestamp allowing you to specify when you want your email to be delivered. Scheduling more than 72 hours in advance is forbidden." + } + }, + "required": [ + "to" + ] + } + }, + "from": { + "$ref": "#/definitions/email_object" + }, + "reply_to": { + "$ref": "#/definitions/email_object" + }, + "subject": { + "type": "string", + "description": "The global, or “message level”, subject of your email. This may be overridden by personalizations[x].subject.", + "minLength": 1 + }, + "content": { + "type": "array", + "description": "An array in which you may specify the content of your email. You can include multiple mime types of content, but you must specify at least one mime type. To include more than one mime type, simply add another object to the array containing the `type` and `value` parameters.", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The mime type of the content you are including in your email. For example, “text/plain” or “text/html”.", + "minLength": 1 + }, + "value": { + "type": "string", + "description": "The actual content of the specified mime type that you are including in your email.", + "minLength": 1 + } + }, + "required": [ + "type", + "value" + ] + } + }, + "attachments": { + "type": "array", + "description": "An array of objects in which you can specify any attachments you want to include.", + "items": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The Base64 encoded content of the attachment.", + "minLength": 1 + }, + "type": { + "type": "string", + "description": "The mime type of the content you are attaching. For example, “text/plain” or “text/html”.", + "minLength": 1 + }, + "filename": { + "type": "string", + "description": "The filename of the attachment." + }, + "disposition": { + "type": "string", + "default": "attachment", + "description": "The content-disposition of the attachment specifying how you would like the attachment to be displayed. For example, “inline” results in the attached file being displayed automatically within the message while “attachment” results in the attached file requiring some action to be taken before it is displayed (e.g. opening or downloading the file).", + "enum": [ + "inline", + "attachment" + ] + }, + "content_id": { + "type": "string", + "description": "The content id for the attachment. This is used when the disposition is set to “inline” and the attachment is an image, allowing the file to be displayed within the body of your email." + } + }, + "required": [ + "content", + "filename" + ] + } + }, + "template_id": { + "type": "string", + "description": "The id of a template that you would like to use. If you use a template that contains a subject and content (either text or html), you do not need to specify those at the personalizations nor message level. " + }, + "sections": { + "type": "object", + "description": "An object of key/value pairs that define block sections of code to be used as substitutions." + }, + "headers": { + "type": "object", + "description": "An object containing key/value pairs of header names and the value to substitute for them. You must ensure these are properly encoded if they contain unicode characters. Must not be one of the reserved headers." + }, + "categories": { + "type": "array", + "description": "An array of category names for this message. Each category name may not exceed 255 characters. ", + "uniqueItems": true, + "maxItems": 10, + "items": { + "type": "string", + "maxLength": 255 + } + }, + "custom_args": { + "type": "object", + "description": "Values that are specific to the entire send that will be carried along with the email and its activity data. Substitutions will not be made on custom arguments, so any string that is entered into this parameter will be assumed to be the custom argument that you would like to be used. This parameter is overridden by personalizations[x].custom_args if that parameter has been defined. Total custom args size may not exceed 10,000 bytes." + }, + "send_at": { + "type": "integer", + "description": "A unix timestamp allowing you to specify when you want your email to be delivered. This may be overridden by the personalizations[x].send_at parameter. Scheduling more ta 72 hours in advance is forbidden." + }, + "batch_id": { + "type": "string", + "description": "This ID represents a batch of emails to be sent at the same time. Including a batch_id in your request allows you include this email in that batch, and also enables you to cancel or pause the delivery of that batch. For more information, see https://sendgrid.com/docs/API_Reference/Web_API_v3/cancel_schedule_send.html " + }, + "asm": { + "type": "object", + "description": "An object allowing you to specify how to handle unsubscribes.", + "properties": { + "group_id": { + "type": "integer", + "description": "The unsubscribe group to associate with this email." + }, + "groups_to_display": { + "type": "array", + "description": "An array containing the unsubscribe groups that you would like to be displayed on the unsubscribe preferences page.", + "maxItems": 25, + "items": { + "type": "integer" + } + } + }, + "required": [ + "group_id" + ] + }, + "ip_pool_name": { + "type": "string", + "description": "The IP Pool that you would like to send this email from.", + "minLength": 2, + "maxLength": 64 + }, + "mail_settings": { + "type": "object", + "description": "A collection of different mail settings that you can use to specify how you would like this email to be handled.", + "properties": { + "bcc": { + "type": "object", + "description": "This allows you to have a blind carbon copy automatically sent to the specified email address for every email that is sent.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "email": { + "type": "string", + "description": "The email address that you would like to receive the BCC.", + "format": "email" + } + } + }, + "bypass_list_management": { + "type": "object", + "description": "Allows you to bypass all unsubscribe groups and suppressions to ensure that the email is delivered to every single recipient. This should only be used in emergencies when it is absolutely necessary that every recipient receives your email.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + } + } + }, + "footer": { + "type": "object", + "description": "The default footer that you would like included on every email.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "text": { + "type": "string", + "description": "The plain text content of your footer." + }, + "html": { + "type": "string", + "description": "The HTML content of your footer." + } + } + }, + "sandbox_mode": { + "type": "object", + "description": "This allows you to send a test email to ensure that your request body is valid and formatted correctly.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + } + } + }, + "spam_check": { + "type": "object", + "description": "This allows you to test the content of your email for spam.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "threshold": { + "type": "integer", + "description": "The threshold used to determine if your content qualifies as spam on a scale from 1 to 10, with 10 being most strict, or most likely to be considered as spam.", + "minimum": 1, + "maximum": 10 + }, + "post_to_url": { + "type": "string", + "description": "An Inbound Parse URL that you would like a copy of your email along with the spam report to be sent to." + } + } + } + } + }, + "tracking_settings": { + "type": "object", + "description": "Settings to determine how you would like to track the metrics of how your recipients interact with your email.", + "properties": { + "click_tracking": { + "type": "object", + "description": "Allows you to track whether a recipient clicked a link in your email.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "enable_text": { + "type": "boolean", + "description": "Indicates if this setting should be included in the text/plain portion of your email." + } + } + }, + "open_tracking": { + "type": "object", + "description": "Allows you to track whether the email was opened or not, but including a single pixel image in the body of the content. When the pixel is loaded, we can log that the email was opened.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "substitution_tag": { + "type": "string", + "description": "Allows you to specify a substitution tag that you can insert in the body of your email at a location that you desire. This tag will be replaced by the open tracking pixel." + } + } + }, + "subscription_tracking": { + "type": "object", + "description": "Allows you to insert a subscription management link at the bottom of the text and html bodies of your email. If you would like to specify the location of the link within your email, you may use the substitution_tag.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "text": { + "type": "string", + "description": "Text to be appended to the email, with the subscription tracking link. You may control where the link is by using the tag <% %>" + }, + "html": { + "type": "string", + "description": "HTML to be appended to the email, with the subscription tracking link. You may control where the link is by using the tag <% %>" + }, + "substitution_tag": { + "type": "string", + "description": "A tag that will be replaced with the unsubscribe URL. for example: [unsubscribe_url]. If this parameter is used, it will override both the `text` and `html` parameters. The URL of the link will be placed at the substitution tag’s location, with no additional formatting." + } + } + }, + "ganalytics": { + "type": "object", + "description": "Allows you to enable tracking provided by Google Analytics.", + "properties": { + "enable": { + "type": "boolean", + "description": "Indicates if this setting is enabled." + }, + "utm_source": { + "type": "string", + "description": "Name of the referrer source. (e.g. Google, SomeDomain.com, or Marketing Email)" + }, + "utm_medium": { + "type": "string", + "description": "Name of the marketing medium. (e.g. Email)" + }, + "utm_term": { + "type": "string", + "description": "Used to identify any paid keywords.\t" + }, + "utm_content": { + "type": "string", + "description": "Used to differentiate your campaign from advertisements.\t" + }, + "utm_campaign": { + "type": "string", + "description": "The name of the campaign.\t" + } + } + } + } + } + }, + "required": [ + "personalizations", + "from", + "subject", + "content" + ], + "example": { + "personalizations": [ + { + "to": [ + { + "email": "john.doe@example.com", + "name": "John Doe" + } + ], + "subject": "Hello, World!" + } + ], + "from": { + "email": "sam.smith@example.com", + "name": "Sam Smith" + }, + "reply_to": { + "email": "sam.smith@example.com", + "name": "Sam Smith" + }, + "subject": "Hello, World!", + "content": [ + { + "type": "text/html", + "value": "

Hello, world!

" + } + ] + } + } + } + ], + "responses": { + "202": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/errors" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/errors" + } + }, + "413": { + "description": "", + "schema": { + "$ref": "#/definitions/errors" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_mail-send", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + } + }, + "/alerts": { + "post": { + "operationId": "POST_alerts", + "summary": "Create a new Alert", + "tags": [ + "Alerts" + ], + "description": "**This endpoint allows you to create a new alert.**\n\nAlerts allow you to specify an email address to receive notifications regarding your email usage or statistics. There are two types of alerts that can be created with this endpoint:\n\n* `usage_limit` allows you to set the threshold at which an alert will be sent.\n* `stats_notification` allows you to set how frequently you would like to receive email statistics reports. For example, \"daily\", \"weekly\", or \"monthly\".\n\nFor more information about alerts, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/alerts.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of alert you want to create. Can be either usage_limit or stats_notification.\nExample: usage_limit", + "enum": [ + "stats_notification", + "usage_limit" + ] + }, + "email_to": { + "type": [ + "string", + "null" + ], + "description": "The email address the alert will be sent to.\nExample: test@example.com" + }, + "frequency": { + "type": "string", + "description": "Required for stats_notification. How frequently the alert will be sent.\nExample: daily" + }, + "percentage": { + "type": "integer", + "description": "Required for usage_alert. When this usage threshold is reached, the alert will be sent.\nExample: 90" + } + }, + "required": [ + "type", + "email_to" + ], + "example": { + "type": "stats_notification", + "email_to": "example@example.com", + "frequency": "daily" + } + } + }, + { + "name": "Authorization", + "in": "header", + "type": "string" + }, + { + "name": "on-behalf-of", + "in": "header", + "type": "string" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was created." + }, + "email_to": { + "type": "string", + "description": "The email address that the alert will be sent to." + }, + "frequency": { + "type": "string", + "description": "If the alert is of type stats_notification, this indicates how frequently the stats notifications will be sent. For example, \"daily\", \"weekly\", or \"monthly\"." + }, + "id": { + "type": "integer", + "description": "The ID of the alert." + }, + "type": { + "type": "string", + "description": "The type of alert." + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was last modified." + }, + "percentage": { + "type": "integer", + "description": "\"If the alert is of type usage_limit, this indicates the percentage of email usage that must be reached before the alert will be sent." + } + }, + "required": [ + "created_at", + "email_to", + "id", + "type", + "updated_at" + ] + }, + "examples": { + "application/json": { + "created_at": 1451520930, + "email_to": "test@example.com", + "frequency": "daily", + "id": 48, + "type": "stats_notification", + "updated_at": 1451520930 + } + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_alerts", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "get": { + "operationId": "GET_alerts", + "summary": "Retrieve all alerts", + "tags": [ + "Alerts" + ], + "description": "**This endpoint allows you to retieve all of your alerts.**\n\nAlerts allow you to specify an email address to receive notifications regarding your email usage or statistics. \n* Usage alerts allow you to set the threshold at which an alert will be sent.\n* Stats notifications allow you to set how frequently you would like to receive email statistics reports. For example, \"daily\", \"weekly\", or \"monthly\".\n\nFor more information about alerts, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/alerts.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "name": "Authorization", + "in": "header", + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "description": "The list of alerts.", + "items": { + "type": "object", + "properties": { + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was created." + }, + "email_to": { + "type": "string", + "description": "The email address that the alert will be sent to." + }, + "id": { + "type": "integer", + "description": "The ID of the alert." + }, + "percentage": { + "type": "integer", + "description": "If the alert is of type usage_limit, this indicates the percentage of email usage that must be reached before the alert will be sent." + }, + "type": { + "type": "string", + "description": "The type of alert.", + "enum": [ + "usage_limit", + "stats_notification" + ] + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was last modified." + }, + "frequency": { + "type": "string", + "description": "If the alert is of type stats_notification, this indicates how frequently the stats notifications will be sent. For example, \"daily\", \"weekly\", or \"monthly\"." + } + }, + "required": [ + "created_at", + "email_to", + "id", + "type" + ] + } + }, + "examples": { + "application/json": [ + { + "created_at": 1451498784, + "email_to": "example1@example.com", + "id": 46, + "percentage": 90, + "type": "usage_limit", + "updated_at": 1451498784 + }, + { + "created_at": 1451498812, + "email_to": "example2@example.com", + "frequency": "monthly", + "id": 47, + "type": "stats_notification", + "updated_at": 1451498812 + }, + { + "created_at": 1451520930, + "email_to": "example3@example.com", + "frequency": "daily", + "id": 48, + "type": "stats_notification", + "updated_at": 1451520930 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_alerts", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/alerts/{alert_id}": { + "parameters": [ + { + "name": "alert_id", + "in": "path", + "description": "The ID of the alert you would like to retrieve.", + "required": true, + "type": "integer" + } + ], + "get": { + "operationId": "GET_alerts-alert_id", + "summary": "Retrieve a specific alert", + "tags": [ + "Alerts" + ], + "description": "**This endpoint allows you to retrieve a specific alert.**\n\nAlerts allow you to specify an email address to receive notifications regarding your email usage or statistics. \n* Usage alerts allow you to set the threshold at which an alert will be sent.\n* Stats notifications allow you to set how frequently you would like to receive email statistics reports. For example, \"daily\", \"weekly\", or \"monthly\".\n\nFor more information about alerts, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/alerts.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "Authorization", + "in": "header", + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was created." + }, + "email_to": { + "type": "string", + "description": "The email address that the alert will be sent to." + }, + "frequency": { + "type": "string", + "description": "If the alert is of type stats_notification, this indicates how frequently the stats notifications will be sent. For example: \"daily\", \"weekly\", or \"monthly\"." + }, + "id": { + "type": "integer", + "description": "The ID of the alert." + }, + "type": { + "type": "string", + "description": "The type of alert.", + "enum": [ + "usage_alert", + "stats_notification" + ] + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was last modified." + }, + "percentage": { + "type": "integer", + "description": "If the alert is of type usage_limit, this indicates the percentage of email usage that must be reached before the alert will be sent." + } + }, + "required": [ + "created_at", + "email_to", + "id", + "type", + "updated_at" + ] + }, + "examples": { + "application/json": { + "created_at": 1451520930, + "email_to": "example@example.com", + "frequency": "daily", + "id": 48, + "type": "stats_notification", + "updated_at": 1451520930 + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_alerts-alertid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_alerts-alert_id", + "summary": "Delete an alert", + "tags": [ + "Alerts" + ], + "description": "**This endpoint allows you to delete an alert.**\n\nAlerts allow you to specify an email address to receive notifications regarding your email usage or statistics. \n* Usage alerts allow you to set the threshold at which an alert will be sent.\n* Stats notifications allow you to set how frequently you would like to receive email statistics reports. For example, \"daily\", \"weekly\", or \"monthly\".\n\nFor more information about alerts, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/alerts.html).", + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_alerts-alertid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_alerts-alert_id", + "summary": "Update an alert", + "tags": [ + "Alerts" + ], + "description": "**This endpoint allows you to update an alert.**\n\nAlerts allow you to specify an email address to receive notifications regarding your email usage or statistics. \n* Usage alerts allow you to set the threshold at which an alert will be sent.\n* Stats notifications allow you to set how frequently you would like to receive email statistics reports. For example, \"daily\", \"weekly\", or \"monthly\".\n\nFor more information about alerts, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/alerts.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "email_to": { + "type": "string", + "description": "The new email address you want your alert to be sent to.\nExample: test@example.com" + }, + "frequency": { + "type": "string", + "description": "The new frequency at which to send the stats_notification alert.\nExample: monthly" + }, + "percentage": { + "type": "integer", + "description": "The new percentage threshold at which the usage_limit alert will be sent.\nExample: 90" + } + }, + "example": { + "email_to": "example@example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was created." + }, + "email_to": { + "type": "string", + "description": "The email address that the alert will be sent to." + }, + "frequency": { + "type": "string", + "description": "If the alert is of type stats_notification, this indicates how frequently the stats notifications will be sent. For example: \"daily\", \"weekly\", or \"monthly\"." + }, + "id": { + "type": "integer", + "description": "The ID of the alert." + }, + "type": { + "type": "string", + "description": "The type of alert.", + "enum": [ + "usage_alert", + "stats_notification" + ] + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the alert was last modified." + }, + "percentage": { + "type": "integer", + "description": "If the alert is of type usage_limit, this indicates the percentage of email usage that must be reached before the alert will be sent." + } + }, + "required": [ + "created_at", + "email_to", + "id", + "type", + "updated_at" + ] + }, + "examples": { + "application/json": { + "created_at": 1451520930, + "email_to": "example@example.com", + "frequency": "daily", + "id": 48, + "type": "stats_notification", + "updated_at": 1451522691 + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_alerts-alertid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/api_keys": { + "get": { + "operationId": "GET_api_keys", + "summary": "Retrieve all API Keys belonging to the authenticated user", + "tags": [ + "API Keys" + ], + "description": "**This endpoint allows you to retrieve all API Keys that belong to the authenticated user.**\n\nThe API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/definitions/api_key_name_id" + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "name": "API Key Name", + "api_key_id": "some-apikey-id" + }, + { + "name": "API Key Name 2", + "api_key_id": "another-apikey-id" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_apikeys", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "post": { + "operationId": "create-api-keys", + "summary": "Create API keys", + "tags": [ + "API Keys" + ], + "description": "**This endpoint allows you to create a new random API Key for the user.**\n\nA JSON request body containing a \"name\" property is required. If number of maximum keys is reached, HTTP 403 will be returned.\n\nThere is a limit of 100 API Keys on your account.\n\nThe API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html).\n\nSee the [API Key Permissions List](https://sendgrid.com/docs/API_Reference/Web_API_v3/API_Keys/api_key_permissions_list.html) for a list of all available scopes.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name you will use to describe this API Key." + }, + "scopes": { + "type": "array", + "description": "The individual permissions that you are giving to this API Key.", + "items": { + "type": "string" + } + }, + "sample": { + "type": "string" + } + }, + "required": [ + "name" + ], + "example": { + "name": "My API Key", + "scopes": [ + "mail.send", + "alerts.create", + "alerts.read" + ], + "sample": "data" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "api_key": { + "type": "string" + }, + "api_key_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "examples": { + "application/json": { + "api_key": "SG.xxxxxxxx.yyyyyyyy", + "api_key_id": "xxxxxxxx", + "name": "My API Key", + "scopes": [ + "mail.send", + "alerts.create", + "alerts.read" + ] + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "name", + "message": "missing required argument" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "403": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "Cannot create more than 100 API Keys" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "create-api-keys", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 201, + "enabled": false, + "dynamic": false + } + } + } + }, + "/api_keys/{api_key_id}": { + "parameters": [ + { + "name": "api_key_id", + "in": "path", + "description": "The ID of the API Key for which you are requesting information.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_api_keys-api_key_id", + "summary": "Retrieve an existing API Key", + "tags": [ + "API Keys" + ], + "description": "**This endpoint allows you to retrieve a single api key.**\n\nIf the API Key ID does not exist an HTTP 404 will be returned.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/definitions/api_key_name_id_scopes" + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "name": "API Key Name", + "api_key_id": "some-apikey-id" + }, + { + "name": "API Key Name 2", + "api_key_id": "another-apikey-id" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "Unexpected error in API call. See HTTP response body for details.", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "unable to find API Key" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_apikeys-apikeyid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_api_keys-api_key_id", + "summary": "Delete API keys", + "tags": [ + "API Keys" + ], + "description": "**This endpoint allows you to revoke an existing API Key**\n\nAuthentications using this API Key will fail after this request is made, with some small propogation delay.If the API Key ID does not exist an HTTP 404 will be returned.\n\nThe API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html).\n\n## URI Parameters\n\n| URI Parameter | Type | Required? | Description |\n|---|---|---|---|\n|api_key_id |string | required | The ID of the API Key you are deleting.|", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + }, + "examples": { + "application/json": null + } + }, + "404": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "unable to find API Key" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_apikeys-apikeyid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_api_keys-api_key_id", + "summary": "Update API keys", + "tags": [ + "API Keys" + ], + "description": "**This endpoint allows you to update the name of an existing API Key.**\n\nA JSON request body with a \"name\" property is required.\n\nThe API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html).\n\n## URI Parameters\n\n| URI Parameter | Type | Required? | Description |\n|---|---|---|---|\n|api_key_id |string | required | The ID of the API Key you are updating.|", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The new name of the API Key." + } + }, + "example": { + "name": "A New Hope" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/api_key_name_id" + }, + "examples": { + "application/json": { + "api_key_id": "qfTQ6KG0QBiwWdJ0-pCLCA", + "name": "A New Hope" + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_apikeys-apikeyid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "put": { + "operationId": "PUT_api_keys-api_key_id", + "summary": "Update the name & scopes of an API Key", + "tags": [ + "API Keys" + ], + "description": "**This endpoint allows you to update the name and scopes of a given API key.**\n\nA JSON request body with a \"name\" property is required.\nMost provide the list of all the scopes an api key should have.\n\nThe API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "example": { + "name": "A New Hope", + "scopes": [ + "user.profile.read", + "user.profile.update" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/api_key_name_id_scopes" + }, + "examples": { + "application/json": { + "api_key_id": "qfTQ6KG0QBiwWdJ0-pCLCA", + "name": "A New Hope", + "scopes": [ + "user.profile.read", + "user.profile.update" + ] + } + } + }, + "400": { + "description": "Unexpected error in API call. See HTTP response body for details.", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "expected JSON request body with 'name' property" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "type": "object" + } + }, + "404": { + "description": "Unexpected error in API call. See HTTP response body for details.", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "unable to find API Key to update" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PUT_apikeys-apikeyid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + } + }, + "/suppression/blocks": { + "get": { + "operationId": "GET_suppression-blocks", + "summary": "Retrieve all blocks", + "tags": [ + "Blocks API" + ], + "description": "**This endpoint allows you to retrieve a list of all email addresses that are currently on your blocks list.**\n\nThere are several causes for [blocked](https://sendgrid.com/docs/Glossary/blocks.html) emails: for example, your mail server IP address is on an ISP blacklist, or blocked by an ISP, or if the receiving server flags the message content.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_time", + "in": "query", + "description": "Refers start of the time range in unix timestamp when a blocked email was created (inclusive).", + "type": "integer" + }, + { + "name": "end_time", + "in": "query", + "description": "Refers end of the time range in unix timestamp when a blocked email was created (inclusive).", + "type": "integer" + }, + { + "name": "limit", + "in": "query", + "description": "Limit the number of results to be displayed per page.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list to begin displaying results.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp indicating when the email address was added to the blocks list." + }, + "email": { + "type": "string", + "description": "The email address that was added to the block list." + }, + "reason": { + "type": "string", + "description": "An explanation for the reason of the block." + }, + "status": { + "type": "string", + "description": "The status of the block." + } + }, + "required": [ + "created", + "email", + "reason", + "status" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1443651154, + "email": "example@example.com", + "reason": "error dialing remote address: dial tcp 10.57.152.165:25: no route to host", + "status": "4.0.0" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-blocks", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-blocks", + "summary": "Delete blocks", + "tags": [ + "Blocks API" + ], + "description": "**This endpoint allows you to delete all email addresses on your blocks list.**\n\nThere are two options for deleting blocked emails: \n\n1. You can delete all blocked emails by setting `delete_all` to true in the request body. \n2. You can delete some blocked emails by specifying the email addresses in an array in the request body.\n\n[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "delete_all": { + "type": "boolean", + "description": "Indicates if you want to delete all blocked email addresses." + }, + "emails": { + "type": "array", + "description": "The specific blocked email addresses that you want to delete.", + "items": { + "type": "string" + } + } + }, + "example": { + "delete_all": false, + "emails": [ + "example1@example.com", + "example2@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_suppression-blocks", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/suppression/blocks/{email}": { + "parameters": [ + { + "name": "email", + "in": "path", + "description": "The email address of the specific block.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_suppression-blocks-email", + "summary": "Retrieve a specific block", + "tags": [ + "Blocks API" + ], + "description": "**This endpoint allows you to retrieve a specific email address from your blocks list.**\n\n[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp indicating when the block was created." + }, + "email": { + "type": "string", + "description": "The email address of the recipient that was blocked." + }, + "reason": { + "type": "string", + "description": "The reason why the email was blocked." + }, + "status": { + "type": "string", + "description": "The status of the block." + } + }, + "required": [ + "created", + "email", + "reason" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1443651154, + "email": "example@example.com", + "reason": "error dialing remote address: dial tcp 10.57.152.165:25: no route to host", + "status": "4.0.0" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-blocks-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-blocks-email", + "summary": "Delete a specific block", + "tags": [ + "Blocks API" + ], + "description": "**This endpoint allows you to delete a specific email address from your blocks list.**\n\n[Blocks](https://sendgrid.com/docs/Glossary/blocks.html) happen when your message was rejected for a reason related to the message, not the recipient address. This can happen when your mail server IP address has been added to a blacklist or blocked by an ISP, or if the message content is flagged by a filter on the receiving server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/blocks.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "x-stoplight": { + "id": "DELETE_suppression-blocks-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/scopes": { + "get": { + "operationId": "GET_scopes", + "summary": "Retrieve a list of scopes for which this user has access.", + "tags": [ + "API Key Permissions" + ], + "description": "**This endpoint returns a list of all scopes that this user has access to.**\n\nAPI Keys can be used to authenticate the use of [SendGrid’s v3 Web API](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html), or the [Mail API Endpoint](https://sendgrid.com/docs/API_Reference/Web_API/mail.html). API Keys may be assigned certain permissions, or scopes, that limit which API endpoints they are able to access. For a more detailed explanation of how you can use API Key permissios, please visit our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/api_keys.html#-API-Key-Permissions) or [Classroom](https://sendgrid.com/docs/Classroom/Basics/API/api_key_permissions.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "description": "The list of scopes for which this user has access.", + "uniqueItems": true, + "items": { + "type": "string" + } + } + }, + "required": [ + "scopes" + ] + }, + "examples": { + "application/json": { + "scopes": [ + "mail.send", + "alerts.create", + "alerts.read" + ] + } + } + }, + "401": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "This 401 response indicates that the user making the call doesn't have the authorization to view the list of scopes.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "null", + "description": "This empty field is returned instead of the list of scopes if the user making the call doesn't have the authorization required." + }, + "message": { + "type": "string", + "description": "Explains why the scopes cannot be returned." + } + }, + "required": [ + "message" + ] + } + } + }, + "required": [ + "errors" + ] + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_scopes", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + } + }, + "/suppression/bounces": { + "get": { + "operationId": "GET_suppression-bounces", + "summary": "Retrieve all bounces", + "tags": [ + "Bounces API" + ], + "description": "**This endpoint allows you to retrieve all of your bounces.**\n\nA bounced email is when the message is undeliverable and then returned to the server that sent it. \n\nFor more information see: \n\n* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information\n* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_time", + "in": "query", + "description": "Refers start of the time range in unix timestamp when a bounce was created (inclusive).", + "type": "integer" + }, + { + "name": "end_time", + "in": "query", + "description": "Refers end of the time range in unix timestamp when a bounce was created (inclusive).", + "type": "integer" + }, + { + "name": "Accept", + "in": "header", + "required": true, + "type": "string", + "default": "application/json" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "number" + }, + "email": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "examples": { + "application/json": [ + { + "created": 1250337600, + "email": "example@example.com", + "reason": "550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/answer/6596 o186si2389584ioe.63 - gsmtp ", + "status": "5.1.1" + }, + { + "created": 1250337600, + "email": "example@example.com", + "reason": "550 5.1.1 : Recipient address rejected: User unknown in virtual alias table ", + "status": "5.1.1" + } + ] + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-bounces", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-bounces", + "summary": "Delete bounces", + "tags": [ + "Bounces API" + ], + "description": "**This endpoint allows you to delete all of your bounces. You can also use this endpoint to remove a specific email address from your bounce list.**\n\nA bounced email is when the message is undeliverable and then returned to the server that sent it.\n\nFor more information see: \n\n* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information\n* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html)\n* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html)\n\nNote: the `delete_all` and `emails` parameters should be used independently of each other as they have different purposes.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "delete_all": { + "type": "boolean", + "description": "This parameter allows you to delete **every** email in your bounce list. This should not be used with the emails parameter." + }, + "emails": { + "type": "array", + "description": "Delete multiple emails from your bounce list at the same time. This should not be used with the delete_all parameter.", + "items": { + "type": "string" + } + } + }, + "example": { + "delete_all": true, + "emails": [ + "example@example.com", + "example2@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_suppression-bounces", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/suppression/bounces/{email}": { + "parameters": [ + { + "name": "email", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_suppression-bounces-email", + "summary": "Retrieve a Bounce", + "tags": [ + "Bounces API" + ], + "description": "**This endpoint allows you to retrieve a specific bounce for a given email address.**\n\nA bounced email is when the message is undeliverable and then returned to the server that sent it.\n\nFor more information see: \n\n* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information\n* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html)\n* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer" + }, + "email": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + }, + "examples": { + "application/json": [ + { + "created": 1443651125, + "email": "bounce1@test.com", + "reason": "550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/answer/6596 o186si2389584ioe.63 - gsmtp ", + "status": "5.1.1" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-bounces-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-bounces-email", + "summary": "Delete a bounce", + "tags": [ + "Bounces API" + ], + "description": "**This endpoint allows you to remove an email address from your bounce list.**\n\nA bounced email is when the message is undeliverable and then returned to the server that sent it. This endpoint allows you to delete a single email addresses from your bounce list. \n\nFor more information see: \n\n* [User Guide > Bounces](https://sendgrid.com/docs/User_Guide/Suppressions/bounces.html) for more information\n* [Glossary > Bounces](https://sendgrid.com/docs/Glossary/Bounces.html)\n* [Classroom > List Scrubbing Guide](https://sendgrid.com/docs/Classroom/Deliver/list_scrubbing.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "email_address", + "in": "query", + "description": "The email address you would like to remove from the bounce list.", + "required": true, + "type": "string", + "format": "email" + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_suppression-bounces-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/campaigns": { + "post": { + "operationId": "POST_campaigns", + "summary": "Create a Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to create a campaign.**\n\nOur Marketing Campaigns API lets you create, manage, send, and schedule campaigns.\n\nNote: In order to send or schedule the campaign, you will be required to provide a subject, sender ID, content (we suggest both html and plain text), and at least one list or segment ID. This information is not required when you create a campaign.\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/campaign_request", + "example": { + "title": "March Newsletter", + "subject": "New Products for Spring!", + "sender_id": 124451, + "list_ids": [ + 110, + 124 + ], + "segment_ids": [ + 110 + ], + "categories": [ + "spring line" + ], + "suppression_group_id": 42, + "custom_unsubscribe_url": "", + "ip_pool": "marketing", + "html_content": "

Check out our spring line!

", + "plain_content": "Check out our spring line!" + } + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/campaign_response" + }, + "examples": { + "application/json": { + "id": 986724, + "title": "March Newsletter", + "subject": "New Products for Spring!", + "sender_id": 124451, + "list_ids": [ + 110, + 124 + ], + "segment_ids": [ + 110 + ], + "categories": [ + "spring line" + ], + "suppression_group_id": 42, + "custom_unsubscribe_url": "", + "ip_pool": "marketing", + "html_content": "

Check out our spring line!

", + "plain_content": "Check out our spring line!", + "status": "Draft" + } + } + }, + "400": { + "description": "\"title\": \"title can't be blank\"\n\"title\": \"title is too long (maximum is 100 characters)\"\n\"categories\": \"categories exceeds 10 category limit\"\n\"html_content\": \"html_content exceeds the 1MB limit\"\n\"plain_content\": \"plain_content exceeds the 1MB limit\"\n\"sender_id\": \"sender_id does not exist\"\n\"sender_id\": \"sender_id is not a verified sender identity\"\n\"list_ids\": \"list_ids do not all exist\"\n\"segment_ids\": \"segment_ids do not all exist\"\n\"ip_pool\": \"The ip pool you provided is invalid\"\n\"suppression_group_id\": \"suppression_group_id does not exist\"\n\"unsubscribes\": \"Either suppression_group_id or custom_unsubscribe_url may be set/used, but not both. Please remove one before setting the other.\"\n\"\": \"The JSON you have submitted cannot be parsed.\"\n\"\": \"You've reached your limit of 250 campaigns. Please delete one or more and try again.\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "title", + "message": "title can't be blank" + }, + { + "field": "title", + "message": "title is too long (maximum is 100 characters)" + }, + { + "field": "categories", + "message": "categories exceeds 10 category limit" + }, + { + "field": "html_content", + "message": "html_content exceeds the 1MB limit" + }, + { + "field": "plain_content", + "message": "plain_content exceeds the 1MB limit" + }, + { + "field": "sender_id", + "message": "sender_id does not exist" + }, + { + "field": "sender_id", + "message": "sender_id is not a verified sender identity" + }, + { + "field": "list_ids", + "message": "list_ids do not all exist" + }, + { + "field": "segment_ids", + "message": "segment_ids do not all exist" + }, + { + "field": "ip_pool", + "message": "The ip pool you provided is invalid" + }, + { + "field": "suppression_group_id", + "message": "suppression_group_id does not exist" + }, + { + "field": "unsubscribes", + "message": "Either suppression_group_id or custom_unsubscribe_url may be set/used, but not both. Please remove one before setting the other." + }, + { + "field": null, + "message": "The JSON you have submitted cannot be parsed." + }, + { + "field": null, + "message": "You've reached your limit of 250 campaigns. Please delete one or more and try again." + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_campaigns", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "get": { + "operationId": "GET_campaigns", + "summary": "Retrieve all Campaigns", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to retrieve a list of all of your campaigns.**\n\nReturns campaigns in reverse order they were created (newest first).\n\nReturns an empty array if no campaigns exist.\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of results you would like to receive at a time.", + "type": "integer", + "default": 10 + }, + { + "name": "offset", + "in": "query", + "description": "The index of the first campaign to return, where 0 is the first campaign.", + "type": "integer", + "default": 0 + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "custom_unsubscribe_url": { + "type": "string" + }, + "html_content": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "ip_pool": { + "type": "string" + }, + "list_ids": { + "type": "array", + "items": { + "type": "integer" + } + }, + "plain_content": { + "type": "string" + }, + "segment_ids": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sender_id": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "suppression_group_id": { + "type": "integer" + }, + "title": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "categories": [ + "spring line" + ], + "custom_unsubscribe_url": "", + "html_content": "

Check out our spring line!

", + "id": 986724, + "ip_pool": "marketing", + "list_ids": [ + 110 + ], + "plain_content": "Check out our spring line!", + "segment_ids": [ + 110 + ], + "sender_id": 124451, + "status": "Draft", + "subject": "New Products for Spring!", + "suppression_group_id": 42, + "title": "March Newsletter" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_campaigns", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/campaigns/{campaign_id}": { + "parameters": [ + { + "name": "campaign_id", + "in": "path", + "description": "The id of the campaign you would like to retrieve.", + "required": true, + "type": "integer" + } + ], + "get": { + "operationId": "GET_campaigns-campaign_id", + "summary": "Retrieve a single campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to retrieve a specific campaign.**\n\nOur Marketing Campaigns API lets you create, manage, send, and schedule campaigns.\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "custom_unsubscribe_url": { + "type": "string" + }, + "html_content": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "ip_pool": { + "type": "string" + }, + "list_ids": { + "type": "array", + "items": { + "type": "integer" + } + }, + "plain_content": { + "type": "string" + }, + "segment_ids": { + "type": "array", + "items": { + "type": "integer" + } + }, + "sender_id": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "suppression_group_id": { + "type": "integer" + }, + "title": { + "type": "string" + } + } + }, + "examples": { + "application/json": { + "categories": [ + "spring line" + ], + "custom_unsubscribe_url": "", + "html_content": "

Check out our spring line!

", + "id": 986724, + "ip_pool": "marketing", + "list_ids": [ + 110 + ], + "plain_content": "Check out our spring line!", + "segment_ids": [ + 110 + ], + "sender_id": 124451, + "status": "Draft", + "subject": "New Products for Spring!", + "suppression_group_id": 42, + "title": "March Newsletter" + } + } + }, + "401": { + "description": "", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_campaigns-campaignid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_campaigns-campaign_id", + "summary": "Delete a Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to delete a specific campaign.**\n\nOur Marketing Campaigns API lets you create, manage, send, and schedule campaigns.\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "401": { + "description": "", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_campaigns-campaignid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + }, + "patch": { + "operationId": "PATCH_campaigns-campaign_id", + "summary": "Update a Campaign", + "tags": [ + "Campaigns API" + ], + "description": "Update a campaign. This is especially useful if you only set up the campaign using POST /campaigns, but didn't set many of the parameters.\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "title": "Update a Campaign request", + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the campaign." + }, + "subject": { + "type": "string", + "description": "The subject line for your campaign." + }, + "categories": { + "type": "array", + "description": "The categories you want to tag on this campaign.", + "items": { + "type": "string" + } + }, + "html_content": { + "type": "string", + "description": "The HTML content of this campaign." + }, + "plain_content": { + "type": "string", + "description": "The plain content of this campaign." + } + }, + "required": [ + "title", + "subject", + "categories", + "html_content", + "plain_content" + ], + "example": { + "title": "May Newsletter", + "subject": "New Products for Summer!", + "categories": [ + "summer line" + ], + "html_content": "

Check out our summer line!

", + "plain_content": "Check out our summer line!" + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/campaign_response" + }, + "examples": { + "application/json": { + "id": 986724, + "title": "May Newsletter", + "subject": "New Products for Summer!", + "sender_id": 124451, + "list_ids": [ + 110, + 124 + ], + "segment_ids": [ + 110 + ], + "categories": [ + "summer line" + ], + "suppression_group_id": 42, + "custom_unsubscribe_url": "", + "ip_pool": "marketing", + "html_content": "

Check out our summer line!

", + "plain_content": "Check out our summer line!", + "status": "Draft" + } + } + }, + "400": { + "description": "\"title\": \"title can't be blank\"\n\"title\": \"title is too long (maximum is 100 characters)\"\n\"categories\": \"categories exceeds 10 category limit\"\n\"html_content\": \"html_content exceeds the 1MB limit\"\n\"plain_content\": \"plain_content exceeds the 1MB limit\"\n\"sender_id\": \"sender_id does not exist\"\n\"sender_id\": \"sender_id is not a verified sender identity\"\n\"list_ids\": \"list_ids do not all exist\"\n\"segment_ids\": \"segment_ids do not all exist\"\n\"ip_pool\": \"The ip pool you provided is invalid\"\n\"suppression_group_id\": \"suppression_group_id does not exist\"\n\"unsubscribes\": \"Either suppression_group_id or custom_unsubscribe_url may be set/used, but not both. Please remove one before setting the other.\"\n\"\": \"The JSON you have submitted cannot be parsed.\"", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "title", + "message": "title can't be blank" + }, + { + "field": "title", + "message": "title is too long (maximum is 100 characters)" + }, + { + "field": "categories", + "message": "categories exceeds 10 category limit" + }, + { + "field": "html_content", + "message": "html_content exceeds the 1MB limit" + }, + { + "field": "plain_content", + "message": "plain_content exceeds the 1MB limit" + }, + { + "field": "sender_id", + "message": "sender_id does not exist" + }, + { + "field": "sender_id", + "message": "sender_id is not a verified sender identity" + }, + { + "field": "list_ids", + "message": "list_ids do not all exist" + }, + { + "field": "segment_ids", + "message": "segment_ids do not all exist" + }, + { + "field": "ip_pool", + "message": "The ip pool you provided is invalid" + }, + { + "field": "suppression_group_id", + "message": "suppression_group_id does not exist" + }, + { + "field": "unsubscribes", + "message": "Either suppression_group_id or custom_unsubscribe_url may be set/used, but not both. Please remove one before setting the other." + }, + { + "field": null, + "message": "The JSON you have submitted cannot be parsed." + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "403": { + "description": "\"\": \"You may only update a campaign when it is in draft mode.\"", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "You may only update a campaign when it is in draft mode." + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_campaigns-campaignid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + } + }, + "/campaigns/{campaign_id}/schedules/now": { + "parameters": [ + { + "name": "campaign_id", + "in": "path", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_campaigns-campaign_id-schedules-now", + "summary": "Send a Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to immediately send a campaign at the time you make the API call.**\n\nNormally a POST would have a request body, but since this endpoint is telling us to send a resource that is already created, a request body is not needed.\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "title": "Send a Campaign response", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "status": { + "type": "string" + } + }, + "required": [ + "id", + "status" + ] + }, + "examples": { + "application/json": { + "id": 1234, + "status": "Scheduled" + } + } + }, + "400": { + "description": "\"subject\": \"subject can't be blank\"\n\"sender_id\": \"sender_id can't be blank\"\n\"plain_content\": \"plain_content can't be blank, please provide plain text or html content\"\n\"list_ids\": \"You must select at least 1 segment or 1 list to send to.\"\n\"unsubscribe_tag\": \"An [unsubscribe] tag in both your html and plain content is required to send a campaign.\"\n\"suppression_group_id\": \"Either a suppression_group_id or custom_unsubscribe_url is required to send a campaign.\"\n\"\": \"You do not have enough credits to send this campaign. Upgrade your plan to send more: https://app.sendgrid.com/settings/billing\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "subject", + "message": "subject can't be blank" + }, + { + "field": "sender_id", + "message": "sender_id can't be blank" + }, + { + "field": "plain_content", + "message": "plain_content can't be blank, please provide plain text or html content" + }, + { + "field": "list_id", + "message": "You must select at least 1 segment or 1 list to send to." + }, + { + "field": "unsubscribe_tag", + "message": "An [unsubscribe] tag in both your html and plain content is required to send a campaign." + }, + { + "field": "suppression_group_id", + "message": "Either a suppression_group_id or custom_unsubscribe_url is required to send a campaign." + }, + { + "field": null, + "message": "You do not have enough credits to send this campaign. Upgrade your plan to send more: https://app.sendgrid.com/settings/billing" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "403": { + "description": "\"\": \"You may only send a campaign when it is in draft mode.\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "You may only send a campaign when it is in draft mode." + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_campaigns-campaignid-schedules-now", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/campaigns/{campaign_id}/schedules": { + "parameters": [ + { + "name": "campaign_id", + "in": "path", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_campaigns-campaign_id-schedules", + "summary": "Schedule a Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to schedule a specific date and time for your campaign to be sent.**\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "title": "Schedule a Campaign request", + "type": "object", + "properties": { + "send_at": { + "type": "integer", + "description": "The unix timestamp for the date and time you would like your campaign to be sent out." + } + }, + "required": [ + "send_at" + ], + "example": { + "send_at": 1489771528 + } + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "title": "Schedule a Campaign response", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The campaign ID." + }, + "send_at": { + "type": "integer", + "description": "The date time you scheduled your campaign to be sent." + }, + "status": { + "type": "string", + "description": "The status of your campaign.", + "enum": [ + "Scheduled" + ] + } + }, + "required": [ + "id", + "send_at", + "status" + ] + }, + "examples": { + "application/json": { + "id": 1234, + "send_at": 1489771528, + "status": "Scheduled" + } + } + }, + "400": { + "description": "\"subject\": \"subject can't be blank\"\n\"sender_id\": \"sender_id can't be blank\"\n\"plain_content\": \"plain_content can't be blank, please provide plain text or html content\"\n\"list_ids\": \"You must select at least 1 segment or 1 list to send to.\"\n\"send_at\": \"Please choose a future time for sending your campaign.\"\n\"unsubscribe_tag\": \"An [unsubscribe] tag in both your html and plain content is required to send a campaign.\"\n\"suppression_group_id\": \"Either a suppression_group_id or custom_unsubscribe_url is required to send a campaign.\"\n\"\": \"The JSON you have submitted cannot be parsed.\"\n\"\":\"You do not have enough credits to send this campaign. Upgrade your plan to send more: https://app.sendgrid.com/settings/billing\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "subject", + "message": "subject can't be blank" + }, + { + "field": "sender_id", + "message": "sender_id can't be blank" + }, + { + "field": "plain_content", + "message": "plain_content can't be blank, please provide plain text or html content" + }, + { + "field": "list_id", + "message": "You must select at least 1 segment or 1 list to send to." + }, + { + "field": "unsubscribe_tag", + "message": "An [unsubscribe] tag in both your html and plain content is required to send a campaign." + }, + { + "field": "suppression_group_id", + "message": "Either a suppression_group_id or custom_unsubscribe_url is required to send a campaign." + }, + { + "field": null, + "message": "You do not have enough credits to send this campaign. Upgrade your plan to send more: https://app.sendgrid.com/settings/billing" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "403": { + "description": "\"\": \"You cannot POST to a campaign that has already sent or scheduled. However you can update a scheduled campaign with a PATCH.\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "You cannot POST to a campaign that has already sent or scheduled. However you can update a scheduled campaign with a PATCH." + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_campaigns-campaignid-schedules", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_campaigns-campaign_id-schedules", + "summary": "Update a Scheduled Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows to you change the scheduled time and date for a campaign to be sent.**\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "title": "Update a Scheduled Campaign request", + "type": "object", + "properties": { + "send_at": { + "type": "integer", + "format": "int64" + } + }, + "required": [ + "send_at" + ], + "example": { + "send_at": 1489451436 + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "Update a Scheduled Campaign response", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The campaign ID" + }, + "send_at": { + "type": "integer", + "description": "The unix timestamp to send the campaign." + }, + "status": { + "type": "string", + "description": "The status of the schedule." + } + }, + "required": [ + "id", + "send_at", + "status" + ] + } + }, + "400": { + "description": "\"\": \"The JSON you have submitted cannot be parsed.\"\n\"send_at\": \"Please choose a future time for sending your campaign.\"\n\"\":\"You do not have enough credits to send this campaign. Upgrade your plan to send more: https://app.sendgrid.com/settings/billing\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "send_at", + "message": "Please choose a future time for sending your campaign." + }, + { + "field": null, + "message": "The JSON you have submitted cannot be parsed." + }, + { + "field": null, + "message": "You do not have enough credits to send this campaign. Upgrade your plan to send https://app.sendgrid.com/settings/billing" + } + ] + } + } + }, + "403": { + "description": "\"send_at\": \"You cannot update the send_at value of non-scheduled campaign.\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "send_at", + "message": "You cannot update the send_at value of non-scheduled campaign." + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_campaigns-campaignid-schedules", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + }, + "get": { + "operationId": "GET_campaigns-campaign_id-schedules", + "summary": "View Scheduled Time of a Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to retrieve the date and time that the given campaign has been scheduled to be sent.**\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "View Scheduled Time of a Campaign response", + "type": "object", + "properties": { + "send_at": { + "type": "integer", + "format": "int64" + } + }, + "required": [ + "send_at" + ] + }, + "examples": { + "application/json": { + "send_at": 1490778528 + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_campaigns-campaignid-schedules", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_campaigns-campaign_id-schedules", + "summary": "Unschedule a Scheduled Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to unschedule a campaign that has already been scheduled to be sent.**\n\nA successful unschedule will return a 204.\nIf the specified campaign is in the process of being sent, the only option is to cancel (a different method).\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "403": { + "description": "\"\": \"This campaign is already In Progress.\"\n\"\": \"This campaign is already Sent.\"\n\"\": \"This campaign is already Paused.\"\n\"\": \"This campaign is already Canceled.\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "This campaign is already In Progress." + }, + { + "field": null, + "message": "This campaign is already Sent." + }, + { + "field": null, + "message": "This campaign is already Paused." + }, + { + "field": null, + "message": "This campaign is already Canceled." + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_campaigns-campaignid-schedules", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + } + }, + "/campaigns/{campaign_id}/schedules/test": { + "parameters": [ + { + "name": "campaign_id", + "in": "path", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_campaigns-campaign_id-schedules-test", + "summary": "Send a Test Campaign", + "tags": [ + "Campaigns API" + ], + "description": "**This endpoint allows you to send a test campaign.**\n\nTo send to multiple addresses, use an array for the JSON \"to\" value [\"one@address\",\"two@address\"]\n\nFor more information:\n\n* [User Guide > Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "to": { + "type": "string", + "description": "The email address that should receive the test campaign.", + "format": "email" + } + }, + "required": [ + "to" + ], + "example": { + "to": "your.email@example.com" + } + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "title": "Send a Test Campaign request", + "type": "object", + "properties": { + "to": { + "type": "string" + } + }, + "required": [ + "to" + ] + } + }, + "400": { + "description": "\"\": \"The JSON you have submitted cannot be parsed.\"\n\"to\": \"Please provide an email address to which the test should be sent.\"\n\"to\": \"You can only send tests to 10 addresses at a time.\"\n\"subject\": \"Please add a subject to your campaign before sending a test.\"\n\"plain_content\": \"Plain content and html content can't both be blank. Please set one of these values before sending a test.\"\n\"sender_id\": \"Please assign a sender identity to your campaign before sending a test.\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "send_at", + "message": "Please choose a future time for sending your campaign." + }, + { + "field": null, + "message": "The JSON you have submitted cannot be parsed." + }, + { + "field": null, + "message": "You do not have enough credits to send this campaign. Upgrade your plan to send more: https://app.sendgrid.com/settings/billing" + } + ] + } + } + }, + "404": { + "description": "\"\": \"not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_campaigns-campaignid-schedules-test", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + } + }, + "/mail/batch": { + "post": { + "operationId": "POST_mail-batch", + "summary": "Create a batch ID", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to generate a new batch ID. This batch ID can be associated with scheduled sends via the mail/send endpoint.**\n\nIf you set the SMTPAPI header `batch_id`, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at anytime up to 10 minutes before the schedule date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint. \n\nMore Information:\n\n* [Scheduling Parameters > Batch ID](https://sendgrid.com/docs/API_Reference/SMTP_API/scheduling_parameters.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_batch_id" + }, + "examples": { + "application/json": { + "batch_id": "YOUR_BATCH_ID" + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_mail-batch", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/mail/batch/{batch_id}": { + "parameters": [ + { + "name": "batch_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_mail-batch-batch_id", + "summary": "Validate batch ID", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to validate a batch ID.**\n\nIf you set the SMTPAPI header `batch_id`, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at anytime up to 10 minutes before the schedule date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint. \n\nMore Information:\n\n* [Scheduling Parameters > Batch ID](https://sendgrid.com/docs/API_Reference/SMTP_API/scheduling_parameters.html)", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_batch_id" + }, + "examples": { + "application/json": { + "batch_id": "HkJ5yLYULb7Rj8GKSx7u025ouWVlMgAi" + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "invalid batch id" + } + ] + } + } + }, + "401": { + "description": "Unexpected error in API call. See HTTP response body for details.", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mail-batch-batchid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/user/scheduled_sends": { + "post": { + "operationId": "POST_user-scheduled_sends", + "summary": "Cancel or pause a scheduled send", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to cancel or pause an email that has been scheduled to be sent.**\n\nIf the maximum number of cancellations/pauses are added, HTTP 400 will\nbe returned.\n\nThe Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header. Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "title": "Cancel or pause a scheduled send request", + "type": "object", + "properties": { + "batch_id": { + "type": "string", + "description": "The batch ID is the identifier that your scheduled mail sends share.", + "pattern": "^[a-zA-Z0-9]" + }, + "status": { + "type": "string", + "default": "pause", + "description": "The status of the send you would like to implement. This can be pause or cancel. To delete a pause or cancel status see DELETE /v3/user/scheduled_sends/{batch_id}", + "enum": [ + "pause", + "cancel" + ] + } + }, + "required": [ + "batch_id", + "status" + ], + "example": { + "batch_id": "YOUR_BATCH_ID", + "status": "pause" + } + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/user_scheduled_send_status" + } + }, + "400": { + "description": "\"\" : \"max limit reached\"\n\"batch_id\" : \"invalid batch id\"\n\"batch_id\" : \"a status for this batch id exists, try PATCH to update the status\"", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "max limit reached" + }, + { + "field": "batch_id", + "message": "invalid batch id" + }, + { + "field": "batch_id", + "message": "a status for this batch id exists, try PATCH to update the status" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_user-scheduledsends", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_user-scheduled_sends", + "summary": "Retrieve all scheduled sends", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to retrieve all cancel/paused scheduled send information.**\n\nThe Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header. Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/user_scheduled_send_status" + } + }, + "examples": { + "application/json": [ + { + "batch_id": "YzJlNTkxMmEtOWM3Ny0xMWU1LTkwM2UtNTI1NDAwNmQzZmYzLTVlM2NhNWIwYg", + "status": "cancel" + }, + { + "batch_id": "UtNTI1NDAwNmQzZmYzLTVlM2NhNWIwYgYzJlNTkxMmEtOWM3Ny0xMWU1LTkwM2", + "status": "cancel" + } + ] + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-scheduledsends", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/user/scheduled_sends/{batch_id}": { + "parameters": [ + { + "name": "batch_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_user-scheduled_sends-batch_id", + "summary": "Retrieve scheduled send", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to retrieve the cancel/paused scheduled send information for a specific `batch_id`.**\n\nThe Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header. Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "title": "Retrieve scheduled send response", + "items": { + "$ref": "#/definitions/user_scheduled_send_status" + } + }, + "examples": { + "application/json": [ + { + "batch_id": "HkJ5yLYULb7Rj8GKSx7u025ouWVlMgAi", + "status": "cancel" + }, + { + "batch_id": "IbLdyLYULb7Rj8GKSx7u025ouWVlAiMg", + "status": "pause" + } + ] + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-scheduledsends-batchid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_user-scheduled_sends-batch_id", + "summary": "Update user scheduled send information", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to update the status of a scheduled send for the given `batch_id`.**\n\nThe Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header. Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status you would like the scheduled send to have.", + "enum": [ + "cancel", + "pause" + ] + } + }, + "required": [ + "status" + ], + "example": { + "status": "pause" + } + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "status", + "message": "status must be either cancel or pause" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"\" : \"batch id not found\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "batch id not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_user-scheduledsends-batchid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_user-scheduled_sends-batch_id", + "summary": "Delete a cancellation or pause of a scheduled send", + "tags": [ + "Cancel Scheduled Sends" + ], + "description": "**This endpoint allows you to delete the cancellation/pause of a scheduled send.**\n\nThe Cancel Scheduled Sends feature allows the customer to cancel a scheduled send based on a Batch ID included in the SMTPAPI header. Scheduled sends cancelled less than 10 minutes before the scheduled time are not guaranteed to be cancelled.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "batch id not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_user-scheduledsends-batchid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/categories": { + "get": { + "operationId": "GET_categories", + "summary": "Retrieve all categories", + "tags": [ + "Categories" + ], + "description": "**This endpoint allows you to retrieve a list of all of your categories.**\n\nCategories can help organize your email analytics by enabling you to “tag” emails by type or broad topic. You can define your own custom categories. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/categories.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of categories to display per page.", + "type": "integer", + "default": 50 + }, + { + "name": "category", + "in": "query", + "description": "Allows you to perform a prefix search on this particular category.", + "type": "string" + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list that you would like to begin displaying results.", + "type": "integer", + "default": 0 + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "A category used to group emails by broad topic." + } + }, + "required": [ + "category" + ] + } + }, + "examples": { + "application/json": [ + { + "category": "category 1" + }, + { + "category": "category 2" + } + ] + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The error returned.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "message": { + "type": "string", + "description": "A message explaining why your categories could not be retrieved." + } + }, + "required": [ + "field", + "message" + ] + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "sort_by", + "message": "invalid sort value" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_categories", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/categories/stats/sums": { + "get": { + "operationId": "GET_categories-stats-sums", + "summary": "Retrieve sums of email stats for each category [Needs: Stats object defined, has category ID?]", + "tags": [ + "Categories" + ], + "description": "**This endpoint allows you to retrieve the total sum of each email statistic for every category over the given date range.**\n\nIf you do not define any query parameters, this endpoint will return a sum for each category in groups of 10.\n\nCategories allow you to group your emails together according to broad topics that you define. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/categories.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "sort_by_metric", + "in": "query", + "description": "The metric that you want to sort by. Must be a single metric.", + "required": false, + "type": "string", + "default": "delivered" + }, + { + "name": "sort_by_direction", + "in": "query", + "description": "The direction you want to sort.", + "required": false, + "type": "string", + "default": "desc", + "enum": [ + "desc", + "asc" + ] + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Limits the number of results returned.", + "required": false, + "type": "integer", + "default": 5 + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list to begin retrieving results.", + "required": false, + "type": "integer", + "default": 0 + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/category_stats" + }, + "examples": { + "application/json": { + "date": "2015-01-01", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 20, + "deferred": 0, + "delivered": 20, + "invalid_emails": 0, + "opens": 20, + "processed": 0, + "requests": 20, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 20, + "unique_opens": 20, + "unsubscribe_drops": 0, + "unsubscribes": 20 + }, + "name": "cat1", + "type": "category" + }, + { + "metrics": { + "blocks": 1, + "bounce_drops": 0, + "bounces": 0, + "clicks": 19, + "deferred": 0, + "delivered": 19, + "invalid_emails": 0, + "opens": 19, + "processed": 0, + "requests": 20, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 19, + "unique_opens": 19, + "unsubscribe_drops": 0, + "unsubscribes": 19 + }, + "name": "cat2", + "type": "category" + }, + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 5, + "deferred": 0, + "delivered": 5, + "invalid_emails": 0, + "opens": 5, + "processed": 0, + "requests": 5, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 5, + "unique_opens": 5, + "unsubscribe_drops": 0, + "unsubscribes": 5 + }, + "name": "cat3", + "type": "category" + }, + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 6, + "deferred": 0, + "delivered": 5, + "invalid_emails": 0, + "opens": 6, + "processed": 0, + "requests": 5, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 5, + "unique_opens": 5, + "unsubscribe_drops": 0, + "unsubscribes": 6 + }, + "name": "cat4", + "type": "category" + }, + { + "metrics": { + "blocks": 10, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 10, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + }, + "name": "cat5", + "type": "category" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_categories-stats-sums", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/categories/stats": { + "get": { + "operationId": "GET_categories-stats", + "summary": "Retrieve Email Statistics for Categories", + "tags": [ + "Categories" + ], + "description": "**This endpoint allows you to retrieve all of your email statistics for each of your categories.**\n\nIf you do not define any query parameters, this endpoint will return a sum for each category in groups of 10.\n\nCategories allow you to group your emails together according to broad topics that you define. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/categories.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "categories", + "in": "query", + "description": "The individual categories that you want to retrieve statistics for. You may include up to 10 different categories.", + "required": true, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "The number of results to include.", + "required": false, + "type": "integer", + "default": 500, + "maximum": 500 + }, + { + "name": "offset", + "in": "query", + "description": "The number of results to skip.", + "required": false, + "type": "integer" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/category_stats" + } + }, + "examples": { + "application/json": [ + { + "date": "2015-10-01", + "stats": [ + { + "type": "category", + "name": "docs", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + }, + { + "type": "category", + "name": "mattscategory", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-01", + "stats": [ + { + "type": "category", + "name": "docs", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + }, + { + "type": "category", + "name": "mattscategory", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_categories-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/contactdb/custom_fields": { + "post": { + "operationId": "POST_contactdb-custom_fields", + "summary": "Create a Custom Field", + "tags": [ + "Contacts API - Custom Fields" + ], + "description": "**This endpoint allows you to create a custom field.**\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "example": { + "name": "pet", + "type": "text" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "examples": { + "application/json": { + "id": 1, + "name": "pet", + "type": "text" + } + } + }, + "400": { + "description": "\"\" : \"Returned if request body is invalid JSON\"\n\"type\" : \"Returned if custom field type is invalid or not provided\"\n\"name\" : \"Returned if custom field name is not provided\"", + "schema": { + "$ref": "#/definitions/errors" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "Returned if request body is invalid JSON" + }, + { + "field": "type", + "message": "Returned if custom field type is invalid or not provided" + }, + { + "field": "name", + "message": "Returned if custom field name is not provided" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_contactdb-customfields", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_contactdb-custom_fields", + "summary": "Retrieve all custom fields", + "tags": [ + "Contacts API - Custom Fields" + ], + "description": "**This endpoint allows you to retrieve all custom fields.** \n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "List All Custom Fields response", + "type": "object", + "properties": { + "custom_fields": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_custom_field_with_id" + } + } + }, + "required": [ + "custom_fields" + ] + }, + "examples": { + "application/json": { + "custom_fields": [ + { + "id": 6234, + "name": "age", + "type": "number" + }, + { + "id": 6233, + "name": "country", + "type": "text" + }, + { + "id": 6235, + "name": "favorite_color", + "type": "text" + }, + { + "id": 6239, + "name": "fname", + "type": "text" + }, + { + "id": 6240, + "name": "lname", + "type": "text" + }, + { + "id": 49439, + "name": "pet", + "type": "text" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-customfields", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/custom_fields/{custom_field_id}": { + "parameters": [ + { + "name": "custom_field_id", + "in": "path", + "description": "The ID of the custom field that you want to retrieve.", + "required": true, + "type": "integer" + } + ], + "get": { + "operationId": "GET_contactdb-custom_fields-custom_field_id", + "summary": "Retrieve a Custom Field", + "tags": [ + "Contacts API - Custom Fields" + ], + "description": "**This endpoint allows you to retrieve a custom field by ID.**\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_custom_field_with_id" + }, + "examples": { + "application/json": { + "id": 1, + "name": "pet", + "type": "text" + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "invalid id" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"custom_field_id\" : \"Returned if custom_field_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Custom field ID does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-customfields-customfieldid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-custom_fields-custom_field_id", + "summary": "Delete a Custom Field", + "tags": [ + "Contacts API - Custom Fields" + ], + "description": "**This endpoint allows you to delete a custom field by ID.**\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "202": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "message": "Custom Field delete is processing." + } + } + }, + "400": { + "description": "\"id\" : \"Returned if custom_field_id is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Custom field in use by one or more segment conditions" + }, + { + "message": "Custom field ID does not exist" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"custom_field_id\" : \"Returned if custom_field_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Custom field ID does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-customfields-customfieldid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/reserved_fields": { + "get": { + "operationId": "GET_contactdb-reserved_fields", + "summary": "Retrieve reserved fields", + "tags": [ + "Contacts API - Custom Fields" + ], + "description": "**This endpoint allows you to list all fields that are reserved and can't be used for custom field names.**\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "List fields that are reserved and can't be used for custom field names. response", + "type": "object", + "properties": { + "reserved_fields": { + "type": "array", + "description": "The reserved fields that are already set up within custom fields.", + "items": { + "$ref": "#/definitions/contactdb_custom_field" + } + } + }, + "required": [ + "reserved_fields" + ] + }, + "examples": { + "application/json": { + "reserved_fields": [ + { + "name": "first_name", + "type": "text" + }, + { + "name": "last_name", + "type": "text" + }, + { + "name": "email", + "type": "text" + }, + { + "name": "created_at", + "type": "date" + }, + { + "name": "updated_at", + "type": "date" + }, + { + "name": "last_emailed", + "type": "date" + }, + { + "name": "last_clicked", + "type": "date" + }, + { + "name": "last_opened", + "type": "date" + }, + { + "name": "my_custom_field", + "type": "text" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-reservedfields", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/lists": { + "post": { + "operationId": "POST_contactdb-lists", + "summary": "Create a List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to create a list for your recipients.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "title": "Create a List request", + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ], + "example": { + "name": "your list name" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_list" + }, + "examples": { + "application/json": { + "id": 1, + "name": "your list name", + "recipient_count": 0 + } + } + }, + "400": { + "description": "\"name\" : \"Returned if list name is a duplicate of an existing list or segment\"\n\"name\" : \"Returned if list name is not a string\"\n\"\" : \"Returned if request body is invalid JSON\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "Returned if request body is invalid JSON" + }, + { + "field": "name", + "message": "Returned if list name is not a string" + }, + { + "field": "name", + "message": "Returned if list name is a duplicate of an existing list or segment" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_contactdb-lists", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + }, + "get": { + "operationId": "GET_contactdb-lists", + "summary": "Retrieve all lists", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to retrieve all of your recipient lists. If you don't have any lists, an empty array will be returned.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "List All Lists response", + "type": "object", + "properties": { + "lists": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_list" + } + } + }, + "required": [ + "lists" + ] + }, + "examples": { + "application/json": { + "lists": [ + { + "id": 1, + "name": "the jones", + "recipient_count": 1 + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-lists", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-lists", + "summary": "Delete Multiple lists", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to delete multiple recipient lists.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "array", + "items": { + "type": "integer" + }, + "example": [ + 1, + 2, + 3, + 4 + ] + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "\"id\" : \"Returned if all list ids are not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "list id was invalid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-lists", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/lists/{list_id}": { + "parameters": [ + { + "name": "list_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_contactdb-lists-list_id", + "summary": "Retrieve a single list", + "tags": [ + "Contacts API - Lists" + ], + "description": "This endpoint allows you to retrieve a single recipient list.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "list_id", + "in": "query", + "description": "The ID of the list to retrieve.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_list" + }, + "examples": { + "application/json": { + "id": 1, + "name": "listname", + "recipient_count": 0 + } + } + }, + "400": { + "description": "\"list_id\" : \"Returned if list_id is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "invalid id" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"list_id\" : \"Returned if list_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "List ID does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-lists-listid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_contactdb-lists-list_id", + "summary": "Update a List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to update the name of one of your recipient lists.**\n\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "list_id", + "in": "query", + "description": "The ID of the list you are updating.", + "required": true, + "type": "integer" + }, + { + "name": "body", + "in": "body", + "schema": { + "title": "Update a List request", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The new name for your list. " + } + }, + "required": [ + "name" + ], + "example": { + "name": "newlistname" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the list" + }, + "name": { + "type": "string", + "description": "The new name for the list" + }, + "recipient_count": { + "type": "integer", + "description": "The number of recipients on the list" + } + } + }, + "examples": { + "application/json": { + "id": 1234, + "name": "2016 iPhone Users", + "recipient_count": 0 + } + } + }, + "400": { + "description": "\"name\" : \"Returned if list name is a duplicate of existing list or segment\"\n\"name\" : \"Returned if list name is invalid or not provided\"\n\"list_id\" : \"Returned if list_id is not valid\"\n\"\" : \"Returned if request body is invalid JSON\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "invalid id" + } + ] + } + } + }, + "404": { + "description": "\"list_id\" : \"Returned if list_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "List ID does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_contactdb-lists-listid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-lists-list_id", + "summary": "Delete a List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to delete a specific recipient list with the given ID.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "delete_contacts", + "in": "query", + "description": "Adds the ability to delete all contacts on the list in addition to deleting the list.", + "type": "boolean", + "enum": [ + true, + false + ] + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "202": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "\"list_id\" : \"Returned if list_id is not valid\"\n\"delete_contacts\" : \"Returned if delete_contacts is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "delete_contacts", + "message": "delete_contacts not a bool" + }, + { + "field": "list_id", + "message": "Returned if list_id is not valid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"list_id\" : \"Returned if list_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "List not found: 5" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-lists-listid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/lists/{list_id}/recipients": { + "parameters": [ + { + "name": "list_id", + "in": "path", + "description": "The id of the list of recipients you want to retrieve.", + "required": true, + "type": "integer" + } + ], + "get": { + "operationId": "GET_contactdb-lists-list_id-recipients", + "summary": "Retrieve all recipients on a List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to retrieve all recipients on the list with the given ID.** \n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "page", + "in": "query", + "description": "Page index of first recipient to return (must be a positive integer)", + "required": false, + "type": "integer" + }, + { + "name": "page_size", + "in": "query", + "description": "Number of recipients to return at a time (must be a positive integer between 1 and 1000)", + "required": false, + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_recipient" + } + } + } + }, + "examples": { + "application/json": { + "recipients": [ + { + "created_at": 1433348344, + "custom_fields": [ + { + "id": 6234, + "name": "age", + "type": "number", + "value": null + }, + { + "id": 6233, + "name": "country", + "type": "text", + "value": null + }, + { + "id": 6235, + "name": "fname", + "type": "text", + "value": "Example" + }, + { + "id": 6239, + "name": "lname", + "type": "text", + "value": "User" + }, + { + "id": 6240, + "name": "lname", + "type": "text", + "value": null + } + ], + "email": "example@example.com", + "first_name": "Example", + "id": "ZGVWfyZWsuYmFpbmVzQHNlbmRmCmLkLmNv==", + "last_clicked": 1438616117, + "last_emailed": 1438613272, + "last_name": "User", + "last_opened": 1438616109, + "updated_at": 1438616119 + } + ] + } + } + }, + "400": { + "description": "\"list_id\" : \"Returned if list_id is not a valid integer\"\n\"page\" : \"Returned if page is not a valid integer\"\n\"page\" : \"Returned if page is less than 1\"\n\"page_size\" : \"Returned if page_size is not a valid integer\"\n\"page_size\" : \"Returned if page_size is less than 1 or greater than 1000\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "Returned if list_id is not a valid integer" + }, + { + "field": "page", + "message": "Returned if page is not a valid integer" + }, + { + "field": "page", + "message": "Returned if page is less than 1" + }, + { + "field": "page_size", + "message": "Returned if page_size is not a valid integer" + }, + { + "field": "page_size", + "message": "Returned if page_size is less than 1 or greater than 1000" + } + ] + } + } + }, + "404": { + "description": "\"list_id\" : \"Returned if list_id does not exist\"", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "Returned if list_id is invalid" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-lists-listid-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "post": { + "operationId": "POST_contactdb-lists-list_id-recipients", + "summary": "Add Multiple Recipients to a List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to add multiple recipients to a list.**\n\nAdds existing recipients to a list, passing in the recipient IDs to add. Recipient IDs should be passed exactly as they are returned from recipient endpoints.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "recipient_id1", + "recipient_id2" + ] + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "\"list_id\" : \"Returned if list_id is not a valid integer\"\n\"\" : \"Returned if no valid recipient ids were passed\"\n\"\" : \"Returned if no recipients were added\"\n\"\" : \"Returned if request body is invalid JSON\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "list_id is invalid" + }, + { + "field": "recipient_id", + "message": "no valid recipients were provided" + }, + { + "field": null, + "message": "no recipients were added" + }, + { + "field": null, + "message": "request body is invalid JSON" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"list_id\": \"Returned if list_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "list_id does not exist" + }, + { + "field": "recipient_id", + "message": "recipient_id does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_contactdb-lists-listid-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/lists/{list_id}/recipients/{recipient_id}": { + "parameters": [ + { + "name": "list_id", + "in": "path", + "description": "The ID of the list that you want to add the recipient to.", + "required": true, + "type": "integer" + }, + { + "name": "recipient_id", + "in": "path", + "description": "The ID of the recipient you are adding to the list.", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_contactdb-lists-list_id-recipients-recipient_id", + "summary": "Add a Single Recipient to a List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to add a single recipient to a list.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "\"list_id\" : \"Returned if list_id is invalid\"\n\"recipient_id\" : \"Returned if recipient_id is invalid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "Returned if list_id is invalid" + }, + { + "field": "recipient_id", + "message": "Returned if recipient_id is invalid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"list_id\" : \"Returned if list_id does not exist\"\n\"recipient_id\" : \"Returned if recipient_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "Returned if list_id does not exist" + }, + { + "field": "recipient_id", + "message": "Returned if recipient_id does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_contactdb-lists-listid-recipients-recipientid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-lists-list_id-recipients-recipient_id", + "summary": "Delete a Single Recipient from a Single List", + "tags": [ + "Contacts API - Lists" + ], + "description": "**This endpoint allows you to delete a single recipient from a list.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "list_id", + "in": "query", + "description": "The ID of the list you are taking this recipient away from.", + "required": true, + "type": "integer" + }, + { + "name": "recipient_id", + "in": "query", + "description": "The ID of the recipient to take off the list.", + "required": true, + "type": "integer" + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "\"list_id\" : \"Returned if list_id is not valid\"\n\"recipient_id\" : \"Returned if recipient_id is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "Returned if list_id is invalid" + }, + { + "field": "recipient_id", + "message": "no valid recipients were provided" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"list_id\" : \"Returned if list_id does not exist\"\n\"recipient_id\" : \"Returned if recipient_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "list_id", + "message": "Returned if list_id does not exist" + }, + { + "field": "recipient_id", + "message": "Returned if recipient_id does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-lists-listid-recipients-recipientid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/status": { + "get": { + "operationId": "GET_contactdb-status", + "summary": "Get Contact Upload Status", + "tags": [ + "Contacts API - Recipients" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "status": [ + { + "id": "worker_delay", + "value": "delayed" + }, + { + "id": "worker_delay_seconds", + "value": "75.0" + } + ] + } + } + } + }, + "x-stoplight": { + "id": "GET_contactdb-status", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/contactdb/recipients": { + "post": { + "operationId": "POST_contactdb-recipients", + "summary": "Add recipients", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to add a Marketing Campaigns recipient.**\n\nYou can add custom field data as a parameter on this endpoint. We have provided an example using some of the default custom fields SendGrid provides.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The email address of the recipient.", + "format": "email" + }, + "first_name": { + "type": "string", + "description": "The first name of the recipient." + }, + "last_name": { + "type": "string", + "description": "The last name of the recipient." + }, + "age": { + "type": "integer" + } + }, + "required": [ + "email" + ] + }, + "example": [ + { + "email": "example@example.com", + "first_name": "", + "last_name": "User", + "age": 25 + }, + { + "email": "example2@example.com", + "first_name": "Example", + "last_name": "User", + "age": 25 + } + ] + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_recipient_response" + }, + "examples": { + "application/json": { + "error_count": 1, + "error_indices": [ + 2 + ], + "new_count": 2, + "persisted_recipients": [ + "YUBh", + "bWlsbGVyQG1pbGxlci50ZXN0" + ], + "updated_count": 0, + "errors": [ + { + "message": "Invalid email.", + "error_indices": [ + 2 + ] + } + ] + } + } + }, + "400": { + "description": "\"\" : \"Returned if request body is not valid json\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "Request body is not valid json" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_contactdb-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_contactdb-recipients", + "summary": "Update Recipient", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to update one or more recipients.**\n\nThe body of an API call to this endpoint must include an array of one or more recipient objects.\n\nIt is of note that you can add custom field data as parameters on recipient objects. We have provided an example using some of the default custom fields SendGrid provides.\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "last_name": { + "type": "string", + "description": "The last name of the recipient. This is one of the default custom fields." + }, + "first_name": { + "type": "string", + "description": "The first name of the recipient. This is one of the default custom fields." + } + }, + "required": [ + "email" + ] + }, + "example": [ + { + "email": "jones@example.com", + "last_name": "Jones", + "first_name": "Guy" + } + ] + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_recipient_response" + } + }, + "400": { + "description": "\"\" : \"Returned if request body is not valid json\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "Request body is not valid json" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_contactdb-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-recipients", + "summary": "Delete Recipient", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to deletes one or more recipients.**\n\nThe body of an API call to this endpoint must include an array of recipient IDs of the recipients you want to delete.\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "recipient_id1", + "recipient_id2" + ] + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object" + } + }, + "400": { + "description": "\"\" : \"Returned if no recipients are deleted\"\n\"\" : \"Returned if all of the provided recipient ids are invalid\"\n\"\" : \"Returned if request body is not valid json\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "No recipient ids provided" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_contactdb-recipients", + "summary": "Retrieve recipients", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to retrieve all of your Marketing Campaigns recipients.**\n\nBatch deletion of a page makes it possible to receive an empty page of recipients before reaching the end of\nthe list of recipients. To avoid this issue; iterate over pages until a 404 is retrieved.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "page", + "in": "query", + "description": "Page index of first recipients to return (must be a positive integer)", + "type": "integer" + }, + { + "name": "page_size", + "in": "query", + "description": "Number of recipients to return at a time (must be a positive integer between 1 and 1000)", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "List Recipients response", + "type": "object", + "properties": { + "recipients": { + "type": "array", + "items": { + "type": "object" + } + } + }, + "required": [ + "recipients" + ] + } + }, + "400": { + "description": "\"page\" : \"Returned if page is not a valid integer\"\n\"page\" : \"Returned if page is less than 1\"\n\"page_size\" : \"Returned if page_size is not a valid integer\"\n\"page_size\" : \"Returned if page_size is less than 1 or greater than 1000\"", + "schema": { + "type": "object" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/recipients/{recipient_id}": { + "parameters": [ + { + "name": "recipient_id", + "in": "path", + "description": "The ID of the recipient that you want to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_contactdb-recipients-recipient_id", + "summary": "Retrieve a single recipient", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to retrieve a single recipient by ID from your contact database.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_recipient" + } + }, + "400": { + "description": "\"recipient_id\" : \"Returned if recipient_id is not valid\"", + "schema": { + "type": "object" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"recipient_id\" : \"Returned if record for recipient id does not exist\"", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-recipients-recipientid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-recipients-recipient_id", + "summary": "Delete a Recipient", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to delete a single recipient with the given ID from your contact database.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + }, + "400": { + "description": "\"recipient_id\" : \"Returned if recipient_id is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "recipient not found" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"recipient_id\" : \"Returned if record for recipient id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "recipient_id is not valid" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-recipients-recipientid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/recipients/{recipient_id}/lists": { + "parameters": [ + { + "name": "recipient_id", + "in": "path", + "description": "The ID of the recipient for whom you are retrieving lists.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_contactdb-recipients-recipient_id-lists", + "summary": "Retrieve the lists that a recipient is on", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to retrieve the lists that a given recipient belongs to.**\n\nEach recipient can be on many lists. This endpoint gives you all of the lists that any one recipient has been added to.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "lists": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_list" + } + } + } + }, + "examples": { + "application/json": { + "lists": [ + { + "id": 1234, + "name": "Example list", + "recipient_count": 42 + } + ] + } + } + }, + "400": { + "description": "\"recipient_id\" : \"Returned if recipient_id is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "recipient ID is invalid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"recipient_id\" : \"Returned if record for the recipient id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "recipient id not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-recipients-recipientid-lists", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/recipients/billable_count": { + "get": { + "operationId": "GET_contactdb-recipients-billable_count", + "summary": "Retrieve the count of billable recipients", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to retrieve the number of Marketing Campaigns recipients that you will be billed for.**\n\nYou are billed for marketing campaigns based on the highest number of recipients you have had in your account at one time. This endpoint will allow you to know the current billable count value.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_recipient_count" + }, + "examples": { + "application/json": { + "recipient_count": 1234 + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-recipients-billablecount", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/contactdb/recipients/count": { + "get": { + "operationId": "GET_contactdb-recipients-count", + "summary": "Retrieve a Count of Recipients", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to retrieve the total number of Marketing Campaigns recipients.**\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_recipient_count" + }, + "examples": { + "application/json": { + "recipient_count": 1234 + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-recipients-count", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/recipients/search": { + "get": { + "operationId": "GET_contactdb-recipients-search", + "summary": "Retrieve recipients matching search criteria", + "tags": [ + "Contacts API - Recipients" + ], + "description": "**This endpoint allows you to perform a search on all of your Marketing Campaigns recipients.**\n\nfield_name:\n\n* is a variable that is substituted for your actual custom field name from your recipient.\n* Text fields must be url-encoded. Date fields are searchable only by unix timestamp (e.g. 2/2/2015 becomes 1422835200)\n* If field_name is a 'reserved' date field, such as created_at or updated_at, the system will internally convert\nyour epoch time to a date range encompassing the entire day. For example, an epoch time of 1422835600 converts to\nMon, 02 Feb 2015 00:06:40 GMT, but internally the system will search from Mon, 02 Feb 2015 00:00:00 GMT through\nMon, 02 Feb 2015 23:59:59 GMT.\n\nThe contactdb is a database of your contacts for [SendGrid Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "{field_name}", + "in": "query", + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_recipient" + } + } + } + }, + "examples": { + "application/json": { + "recipients": [ + { + "created_at": 1422313607, + "email": "jones@example.com", + "first_name": null, + "id": "YUBh", + "last_clicked": null, + "last_emailed": null, + "last_name": "Jones", + "last_opened": null, + "updated_at": 1422313790, + "custom_fields": [ + { + "id": 23, + "name": "pet", + "value": "Fluffy", + "type": "text" + } + ] + } + ] + } + } + }, + "400": { + "description": "\"\" : \"Returned if no search params are specified\"\n\"field\" : \"Returned if the provided field is invalid or does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "The following parameters are not custom fields or reserved fields: [{field_name}]" + }, + { + "message": "No search params are specified" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-recipients-search", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/contactdb/segments": { + "post": { + "operationId": "POST_contactdb-segments", + "summary": "Create a Segment", + "tags": [ + "Contacts API - Segments" + ], + "description": "**This endpoint allows you to create a segment.**\n\nAll recipients in your contactdb will be added or removed automatically depending on whether they match the criteria for this segment.\n\nList Id:\n\n* Send this to segment from an existing list\n* Don't send this in order to segment from your entire contactdb.\n\nValid operators for create and update depend on the type of the field you are segmenting: \n\n* **Dates:** \"eq\", \"ne\", \"lt\" (before), \"gt\" (after) \n* **Text:** \"contains\", \"eq\" (is - matches the full field), \"ne\" (is not - matches any field where the entire field is not the condition value) \n* **Numbers:** \"eq\", \"lt\", \"gt\" \n* **Email Clicks and Opens:** \"eq\" (opened), \"ne\" (not opened) \n\nSegment conditions using \"eq\" or \"ne\" for email clicks and opens should provide a \"field\" of either *clicks.campaign_identifier* or *opens.campaign_identifier*. The condition value should be a string containing the id of a completed campaign. \n\nSegments may contain multiple condtions, joined by an \"and\" or \"or\" in the \"and_or\" field. The first condition in the conditions list must have an empty \"and_or\", and subsequent conditions must all specify an \"and_or\".\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.\n\nFor more information about segments in Marketing Campaigns, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/lists.html#-Create-a-Segment).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/contactdb_segments", + "example": { + "name": "Last Name Miller", + "list_id": 4, + "conditions": [ + { + "field": "last_name", + "value": "Miller", + "operator": "eq", + "and_or": "" + }, + { + "field": "last_clicked", + "value": "01/02/2015", + "operator": "gt", + "and_or": "and" + }, + { + "field": "clicks.campaign_identifier", + "value": "513", + "operator": "eq", + "and_or": "or" + } + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_segments_with_id" + }, + "examples": { + "application/json": { + "id": 1, + "name": "Last Name Miller", + "list_id": 4, + "conditions": [ + { + "field": "last_name", + "value": "Miller", + "operator": "eq", + "and_or": "" + }, + { + "field": "last_clicked", + "value": "01/02/2015", + "operator": "gt", + "and_or": "and" + }, + { + "field": "clicks.campaign_identifier", + "value": "513", + "operator": "eq", + "and_or": "or" + } + ], + "recipient_count": 0 + } + } + }, + "400": { + "description": "\"name\" : \"Returned if the name is not valid\"\n\"list_id\" : \"Returned if the list_id is not valid\"\n\"and_or\" : \"Returned if and_or and set value is not passed into the request body\"\n\"and_or\" : \"Returned if and_or is set on the only condition passed\"\n\"and_or\" : \"Returned if and_or is set on all conditions\"\n\"and_or\" : \"Returned if and_or is not set on more than one condition and less than all conditions\"\n\"operator\" : \"Returned if operator and set value is not passed into the request body\"\n\"value\" : \"Returned if value and set value is not passed into the request body\"\n\"field\" : \"Returned if field and set value is not passed into the request body\"\n\"\" : \"Returned if request body is not valid json\"\n\"\" : \"Returned if invalid value is passed into one of the request body parameters\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "request body is not valid json" + }, + { + "message": "invalid value is passed into one of the request body parameters" + }, + { + "field": "field", + "message": "field and set value is not passed into the request body" + }, + { + "field": "value", + "message": "value and set value is not passed into the request body" + }, + { + "field": "operator", + "message": "operator and set value is not passed into the request body" + }, + { + "field": "and_or", + "message": "and_or is not set on more than one condition and less than all conditions" + }, + { + "field": "and_or", + "message": "and_or is set on all conditions" + }, + { + "field": "and_or", + "message": "and_or is set on the only condition passed" + }, + { + "field": "and_or", + "message": "and_or and set value is not passed into the request body" + }, + { + "field": "list_id", + "message": "the list_id is not valid" + }, + { + "field": "name", + "message": "the name is not valid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_contactdb-segments", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_contactdb-segments", + "summary": "Retrieve all segments", + "tags": [ + "Contacts API - Segments" + ], + "description": "**This endpoint allows you to retrieve all of your segments.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.\n\nFor more information about segments in Marketing Campaigns, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/lists.html#-Create-a-Segment).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "List All Segments response", + "type": "object", + "properties": { + "segments": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_segments" + } + } + }, + "required": [ + "segments" + ] + }, + "examples": { + "application/json": { + "segments": [ + { + "id": 1234, + "name": "Age segments < 25", + "conditions": [ + { + "field": "age", + "value": "25", + "operator": "lt" + } + ], + "recipient_count": 8 + }, + { + "id": 2345, + "name": "email address - gmail", + "conditions": [ + { + "field": "email", + "value": "@gmail.com", + "operator": "contains" + } + ], + "recipient_count": 0 + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-segments", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + } + }, + "/contactdb/segments/{segment_id}": { + "parameters": [ + { + "name": "segment_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_contactdb-segments-segment_id", + "summary": "Retrieve a segment", + "tags": [ + "Contacts API - Segments" + ], + "description": "**This endpoint allows you to retrieve a single segment with the given ID.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.\n\nFor more information about segments in Marketing Campaigns, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/lists.html#-Create-a-Segment).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "segment_id", + "in": "query", + "description": "The ID of the segment you want to request.", + "required": true, + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_segments" + }, + "examples": { + "application/json": { + "id": 1, + "name": "Last Name Miller", + "list_id": 4, + "conditions": [ + { + "field": "last_name", + "value": "Miller", + "operator": "eq", + "and_or": "" + } + ], + "recipient_count": 1 + } + } + }, + "400": { + "description": "\"segment_id\" : \"Returned if segment_id is not valid\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "if segment_id is not valid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"segment_id\" : \"Returned if segment_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "segment_id not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-segments-segmentid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "patch": { + "operationId": "PATCH_contactdb-segments-segment_id", + "summary": "Update a segment", + "tags": [ + "Contacts API - Segments" + ], + "description": "**This endpoint allows you to update a segment.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.\n\nFor more information about segments in Marketing Campaigns, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/lists.html#-Create-a-Segment).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "segment_id", + "in": "query", + "description": "The ID of the segment you are updating.", + "type": "string" + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "list_id": { + "type": "number", + "description": "The list ID you would like this segment to be built from." + }, + "conditions": { + "type": "array", + "description": "The conditions by which this segment should be created.", + "items": { + "$ref": "#/definitions/contactdb_segments_conditions" + } + } + }, + "required": [ + "name" + ], + "example": { + "name": "The Millers", + "list_id": 5, + "conditions": [ + { + "field": "last_name", + "value": "Miller", + "operator": "eq", + "and_or": "" + } + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/contactdb_segments" + }, + "examples": { + "application/json": { + "id": 5, + "name": "The Millers", + "list_id": 5, + "conditions": [ + { + "field": "last_name", + "value": "Miller", + "operator": "eq", + "and_or": "" + } + ], + "recipient_count": 1 + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "request body is not valid json" + }, + { + "message": "invalid value is passed into one of the request body parameters" + }, + { + "segment_id": "segment_id", + "message": "segment id is not valid" + }, + { + "field": "field", + "message": "field and set value is not passed into the request body" + }, + { + "field": "value", + "message": "value and set value is not passed into the request body" + }, + { + "field": "operator", + "message": "operator and set value is not passed into the request body" + }, + { + "field": "and_or", + "message": "and_or is not set on more than one condition and less than all conditions" + }, + { + "field": "and_or", + "message": "and_or is set on all conditions" + }, + { + "field": "and_or", + "message": "and_or is set on the only condition passed" + }, + { + "field": "and_or", + "message": "and_or and set value is not passed into the request body" + }, + { + "field": "list_id", + "message": "the list_id is not valid" + }, + { + "field": "name", + "message": "the name is not valid" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_contactdb-segments-segmentid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "dynamic": false, + "enabled": false + } + } + }, + "delete": { + "operationId": "DELETE_contactdb-segments-segment_id", + "summary": "Delete a segment", + "tags": [ + "Contacts API - Segments" + ], + "description": "**This endpoint allows you to delete a segment from your recipients database.**\n\nYou also have the option to delete all the contacts from your Marketing Campaigns recipient database who were in this segment.\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.\n\nFor more information about segments in Marketing Campaigns, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/lists.html#-Create-a-Segment).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "delete_contacts", + "in": "query", + "description": "True to delete all contacts matching the segment in addition to deleting the segment", + "type": "boolean" + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + }, + "400": { + "description": "\"segment_id\" : \"Returned if segment_id is not valid\"\n\"delete_contacts\" : \"Returned if delete_contacts is not a valid boolean\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "segment_id", + "message": "Returned if segment_id is not valid" + }, + { + "field": "delete_contacts", + "message": "Returned if delete_contacts is not a valid boolean" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"segment_id\" : \"Returned if segment_id does not exist\"", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "segment_id", + "message": "segment_id does not exist" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_contactdb-segments-segmentid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + } + }, + "/contactdb/segments/{segment_id}/recipients": { + "parameters": [ + { + "name": "segment_id", + "in": "path", + "description": "The ID of the segment from which you want to retrieve recipients.", + "required": true, + "type": "integer" + } + ], + "get": { + "operationId": "GET_contactdb-segments-segment_id-recipients", + "summary": "Retrieve recipients on a segment", + "tags": [ + "Contacts API - Segments" + ], + "description": "**This endpoint allows you to retrieve all of the recipients in a segment with the given ID.**\n\nThe Contacts API helps you manage your [Marketing Campaigns](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/index.html) recipients.\n\nFor more information about segments in Marketing Campaigns, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/lists.html#-Create-a-Segment).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "page", + "in": "query", + "type": "integer" + }, + { + "name": "page_size", + "in": "query", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "List Recipients On a Segment response", + "type": "object", + "properties": { + "recipients": { + "type": "array", + "items": { + "$ref": "#/definitions/contactdb_recipient" + } + } + }, + "required": [ + "recipients" + ] + }, + "examples": { + "application/json": { + "recipients": [ + { + "created_at": 1422313607, + "email": "jones@example.com", + "first_name": null, + "id": "YUBh", + "last_clicked": null, + "last_emailed": null, + "last_name": "Jones", + "last_opened": null, + "updated_at": 1422313790, + "custom_fields": [ + { + "id": 23, + "name": "pet", + "value": "Indiana", + "type": "text" + } + ] + } + ] + } + } + }, + "400": { + "description": "\"page\" : \"Returned if page is not a valid integer\"\n\"page\" : \"Returned if page is less than 1\"\n\"page_size\" : \"Returned if page_size is not a valid integer\"", + "schema": { + "type": "object" + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "\"segment_id\" : \"Returned if segment_id is not valid\"\n\"segment_id\" : \"Returned if segment_id does not exist\"", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_contactdb-segments-segmentid-recipients", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/suppression/invalid_emails": { + "get": { + "operationId": "GET_suppression-invalid_emails", + "summary": "Retrieve all invalid emails", + "tags": [ + "Invalid Emails API" + ], + "description": "**This endpoint allows you to retrieve a list of all invalid email addresses.**\n\nAn invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient’s mail server.\n\nExamples include addresses without the “@” sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_time", + "in": "query", + "description": "Refers start of the time range in unix timestamp when an invalid email was created (inclusive).", + "type": "integer" + }, + { + "name": "end_time", + "in": "query", + "description": "Refers end of the time range in unix timestamp when an invalid email was created (inclusive).", + "type": "integer" + }, + { + "name": "limit", + "in": "query", + "description": "Limit the number of results to be displayed per page.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "Paging offset. The point in the list to begin displaying results.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "description": "The list of invalid email addresses.", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp indicating when the email address was added to the invalid emails list." + }, + "email": { + "type": "string", + "description": "The email address that was marked as invalid." + }, + "reason": { + "type": "string", + "description": "The reason that the email address was marked as invalid." + } + }, + "required": [ + "created", + "email", + "reason" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1449953655, + "email": "user1@example.com", + "reason": "Mail domain mentioned in email address is unknown" + }, + { + "created": 1449939373, + "email": "user1@example.com", + "reason": "Mail domain mentioned in email address is unknown" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-invalidemails", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-invalid_emails", + "summary": "Delete invalid emails", + "tags": [ + "Invalid Emails API" + ], + "description": "**This endpoint allows you to remove email addresses from your invalid email address list.**\n\nThere are two options for deleting invalid email addresses: \n\n1) You can delete all invalid email addresses by setting `delete_all` to true in the request body.\n2) You can delete some invalid email addresses by specifying certain addresses in an array in the request body.\n\nAn invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient’s mail server.\n\nExamples include addresses without the “@” sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "delete_all": { + "type": "boolean", + "description": "Indicates if you want to remove all email address from the invalid emails list." + }, + "emails": { + "type": "array", + "description": "The list of specific email addresses that you want to remove.", + "items": { + "type": "string" + } + } + }, + "example": { + "delete_all": false, + "emails": [ + "example1@example.com", + "example2@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_suppression-invalidemails", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/suppression/invalid_emails/{email}": { + "parameters": [ + { + "name": "email", + "in": "path", + "description": "The specific email address of the invalid email entry that you want to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_suppression-invalid_emails-email", + "summary": "Retrieve a specific invalid email", + "tags": [ + "Invalid Emails API" + ], + "description": "**This endpoint allows you to retrieve a specific invalid email addresses.**\n\nAn invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient’s mail server.\n\nExamples include addresses without the “@” sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp indicating when the email address was added to the invalid emails list." + }, + "email": { + "type": "string", + "description": "The email address that was marked as invalid." + }, + "reason": { + "type": "string", + "description": "A reason explaining why the email address was marked as invalid." + } + }, + "required": [ + "created", + "email", + "reason" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1454433146, + "email": "test1@example.com", + "reason": "Mail domain mentioned in email address is unknown" + } + ] + } + } + }, + "x-stoplight": { + "id": "GET_suppression-invalidemails-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-invalid_emails-email", + "summary": "Delete a specific invalid email", + "tags": [ + "Invalid Emails API" + ], + "description": "**This endpoint allows you to remove a specific email address from the invalid email address list.**\n\nAn invalid email occurs when you attempt to send email to an address that is formatted in a manner that does not meet internet email format standards or the email does not exist at the recipient’s mail server.\n\nExamples include addresses without the “@” sign or addresses that include certain special characters and/or spaces. This response can come from our own server or the recipient mail server.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/invalid_emails.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "x-stoplight": { + "id": "DELETE_suppression-invalidemails-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/access_settings/activity": { + "get": { + "operationId": "GET_access_settings-activity", + "summary": "Retrieve all recent access attempts", + "tags": [ + "IP Access Management" + ], + "description": "**This endpoint allows you to retrieve a list of all of the IP addresses that recently attempted to access your account either through the User Interface or the API.**\n\nIP Access Management allows you to control which IP addresses can be used to access your account, either through the User Interface or the API. There is no limit to the number of IP addresses that you can add to your whitelist. It is possible to remove your own IP address from the whitelist, thus preventing yourself from accessing your account.\n\nFor more information, please see our [User Guide](http://sendgrid.com/docs/User_Guide/Settings/ip_access_management.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Limits the number of IPs to return.", + "type": "integer", + "default": 20 + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "type": "object", + "properties": { + "allowed": { + "type": "boolean" + }, + "auth_method": { + "type": "string" + }, + "first_at": { + "type": "integer" + }, + "ip": { + "type": "string" + }, + "last_at": { + "type": "integer" + }, + "location": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "allowed": false, + "auth_method": "basic", + "first_at": 1444087966, + "ip": "1.1.1.1", + "last_at": 1444406672, + "location": "Australia" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_accesssettings-activity", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + } + }, + "/access_settings/whitelist": { + "get": { + "operationId": "GET_access_settings-whitelist", + "summary": "Retrieve a list of currently whitelisted IPs", + "tags": [ + "IP Access Management" + ], + "description": "**This endpoint allows you to retrieve a list of IP addresses that are currently whitelisted.**\n\nIP Access Management allows you to control which IP addresses can be used to access your account, either through the User Interface or the API. There is no limit to the number of IP addresses that you can add to your whitelist. It is possible to remove your own IP address from the whitelist, thus preventing yourself from accessing your account.\n\nFor more information, please see our [User Guide](http://sendgrid.com/docs/User_Guide/Settings/ip_access_management.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "description": "An array listing all of your whitelisted IPs.", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the whitelisted IP." + }, + "ip": { + "type": "string", + "description": "The whitelisted IP." + }, + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the IP was whitelisted." + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the IPs whitelisting status was most recently updated." + } + }, + "required": [ + "id", + "ip", + "created_at", + "updated_at" + ] + } + } + }, + "required": [ + "result" + ] + }, + "examples": { + "application/json": { + "result": [ + { + "id": 1, + "ip": "192.168.1.1/32", + "created_at": 1441824715, + "updated_at": 1441824715 + }, + { + "id": 2, + "ip": "192.168.1.2/32", + "created_at": 1441824715, + "updated_at": 1441824715 + }, + { + "id": 3, + "ip": "192.168.1.3/32", + "created_at": 1441824715, + "updated_at": 1441824715 + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_accesssettings-whitelist", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "post": { + "operationId": "POST_access_settings-whitelist", + "summary": "Add one or more IPs to the whitelist", + "tags": [ + "IP Access Management" + ], + "description": "**This endpoint allows you to add one or more IP addresses to your IP whitelist.**\n\nWhen adding an IP to your whitelist, include the IP address in an array. You can whitelist one IP at a time, or you can whitelist multiple IPs at once.\n\nIP Access Management allows you to control which IP addresses can be used to access your account, either through the User Interface or the API. There is no limit to the number of IP addresses that you can add to your whitelist. It is possible to remove your own IP address from the whitelist, thus preventing yourself from accessing your account.\n\nFor more information, please see our [User Guide](http://sendgrid.com/docs/User_Guide/Settings/ip_access_management.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "ips": { + "type": "array", + "description": "An array containing the IP(s) you want to whitelist.", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "An IP address that you want to whitelist." + } + }, + "required": [ + "ip" + ] + } + } + }, + "required": [ + "ips" + ], + "example": { + "ips": [ + { + "ip": "192.168.1.1" + }, + { + "ip": "192.*.*.*" + }, + { + "ip": "192.168.1.3/32" + } + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "description": "An array listing all of your whitelisted IPs.", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the whitelisted IP." + }, + "ip": { + "type": "string", + "description": "The whitelisted IP." + }, + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the IP was whitelisted." + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the IPs whitelisting status was most recently updated." + } + }, + "required": [ + "id", + "ip", + "created_at", + "updated_at" + ] + } + } + }, + "required": [ + "result" + ] + }, + "examples": { + "application/json": { + "result": [ + { + "id": 1, + "ip": "192.168.1.1/32", + "created_at": 1441824715, + "updated_at": 1441824715 + }, + { + "id": 2, + "ip": "192.0.0.0/8", + "created_at": 1441824715, + "updated_at": 1441824715 + }, + { + "id": 3, + "ip": "192.168.1.3/32", + "created_at": 1441824715, + "updated_at": 1441824715 + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_accesssettings-whitelist", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_access_settings-whitelist", + "summary": "Remove one or more IPs from the whitelist", + "tags": [ + "IP Access Management" + ], + "description": "**This endpoint allows you to remove one or more IPs from your IP whitelist.**\n\nYou can remove one IP at a time, or you can remove multiple IP addresses.\n\nIP Access Management allows you to control which IP addresses can be used to access your account, either through the User Interface or the API. There is no limit to the number of IP addresses that you can add to your whitelist. It is possible to remove your own IP address from the whitelist, thus preventing yourself from accessing your account.\n\nFor more information, please see our [User Guide](http://sendgrid.com/docs/User_Guide/Settings/ip_access_management.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "description": "An array of the IDs of the IP address that you want to remove from your whitelist.", + "items": { + "type": "integer" + } + } + }, + "example": { + "ids": [ + 1, + 2, + 3 + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_accesssettings-whitelist", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/access_settings/whitelist/{rule_id}": { + "parameters": [ + { + "name": "rule_id", + "in": "path", + "description": "The ID of the whitelisted IP address that you want to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_access_settings-whitelist-rule_id", + "summary": "Retrieve a specific whitelisted IP", + "tags": [ + "IP Access Management" + ], + "description": "**This endpoint allows you to retreive a specific IP address that has been whitelisted.**\n\nYou must include the ID for the specific IP address you want to retrieve in your call.\n\nIP Access Management allows you to control which IP addresses can be used to access your account, either through the User Interface or the API. There is no limit to the number of IP addresses that you can add to your whitelist. It is possible to remove your own IP address from the whitelist, thus preventing yourself from accessing your account.\n\nFor more information, please see our [User Guide](http://sendgrid.com/docs/User_Guide/Settings/ip_access_management.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the IP address." + }, + "ip": { + "type": "string", + "description": "The IP address." + }, + "created_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the IP was whitelisted." + }, + "updated_at": { + "type": "integer", + "description": "A Unix timestamp indicating when the IP address was last updated." + } + }, + "required": [ + "id", + "ip", + "created_at", + "updated_at" + ] + }, + "examples": { + "application/json": { + "id": 1, + "ip": "192.168.1.1", + "created_at": 1441824715, + "updated_at": 1441824715 + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_accesssettings-whitelist-ruleid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_access_settings-whitelist-rule_id", + "summary": "Remove a specific IP from the whitelist", + "tags": [ + "IP Access Management" + ], + "description": "**This endpoint allows you to remove a specific IP address from your IP whitelist.**\n\nWhen removing a specific IP address from your whitelist, you must include the ID in your call.\n\nIP Access Management allows you to control which IP addresses can be used to access your account, either through the User Interface or the API. There is no limit to the number of IP addresses that you can add to your whitelist. It is possible to remove your own IP address from the whitelist, thus preventing yourself from accessing your account.\n\nFor more information, please see our [User Guide](http://sendgrid.com/docs/User_Guide/Settings/ip_access_management.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_accesssettings-whitelist-ruleid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/ips": { + "post": { + "operationId": "POST_ips", + "summary": "Add IPs", + "tags": [ + "IP Addresses" + ], + "description": "This endpoint is for adding a(n) IP Address(es) to your account.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "The amount of IPs to add to the account." + }, + "subusers": { + "type": "array", + "description": "Array of usernames to be assigned a send IP.", + "items": { + "type": "string" + } + }, + "warmup": { + "type": "boolean", + "default": false, + "description": "Whether or not to warmup the IPs being added." + } + }, + "required": [ + "count" + ], + "example": { + "count": 90323478, + "subusers": [ + "subuser1", + "subuser2" + ], + "warmup": true, + "user_can_send": true + } + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "ips": { + "type": "array", + "description": "List of IP objects.", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "IP added to account." + }, + "subusers": { + "type": "array", + "description": "Array of usernames assigned a send IP.", + "items": { + "type": "string" + } + } + }, + "required": [ + "ip", + "subusers" + ] + } + }, + "remaining_ips": { + "type": "integer", + "description": "The number of IPs that can still be added to the user." + }, + "warmup": { + "type": "boolean", + "description": "Whether or not the IPs are being warmed up." + } + }, + "required": [ + "ips", + "remaining_ips", + "warmup" + ] + }, + "examples": { + "application/json": { + "ips": [ + { + "ip": "1.2.3.4", + "subusers": [ + "user", + "subuser1" + ] + }, + { + "ip": "1.2.3.5", + "subusers": [ + "user", + "subuser1" + ] + } + ], + "remaining_ips": 1, + "warmup": true + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/errors" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "one or more subusers do not belong to this user" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "get": { + "operationId": "GET_ips", + "summary": "Retrieve all IP addresses", + "tags": [ + "IP Addresses" + ], + "description": "**This endpoint allows you to retrieve a list of all assigned and unassigned IPs.**\n\nResponse includes warm up status, pools, assigned subusers, and whitelabel info. The start_date field corresponds to when warmup started for that IP.\n\nA single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "ip", + "in": "query", + "description": "The IP address to get", + "type": "string" + }, + { + "name": "exclude_whitelabels", + "in": "query", + "description": "Should we exclude whitelabels?", + "type": "boolean" + }, + { + "name": "limit", + "in": "query", + "description": "The number of IPs you want returned at the same time.", + "type": "integer", + "default": 10 + }, + { + "name": "offset", + "in": "query", + "description": "The offset for the number of IPs that you are requesting.", + "type": "integer", + "default": 0 + }, + { + "name": "subuser", + "in": "query", + "description": "The subuser you are requesting for.", + "type": "string" + }, + { + "name": "sort_by_direction", + "in": "query", + "description": "The direction to sort the results.", + "type": "string", + "enum": [ + "desc", + "asc" + ] + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "An IP address." + }, + "subusers": { + "type": "array", + "description": "The subusers that are able to send email from this IP.", + "items": { + "type": "string" + } + }, + "rdns": { + "type": "string", + "description": "The reverse DNS record for this IP address." + }, + "pools": { + "type": "array", + "description": "The IP pools that this IP has been added to.", + "items": { + "type": "string" + } + }, + "warmup": { + "type": "boolean", + "description": "Indicates if this IP address is currently warming up." + }, + "start_date": { + "type": [ + "number", + "null" + ], + "description": "The date that the IP address was entered into warmup." + }, + "whitelabeled": { + "type": "boolean", + "description": "Indicates if this IP address has been whitelabeled." + }, + "assigned_at": { + "type": [ + "integer", + "null" + ], + "description": "The date that the IP address was assigned to the user." + } + }, + "required": [ + "ip", + "subusers", + "pools", + "warmup", + "start_date", + "whitelabeled", + "assigned_at" + ] + } + }, + "examples": { + "application/json": [ + { + "ip": "192.168.1.1", + "pools": [ + "pool1", + "pool2" + ], + "whitelabeled": false, + "start_date": 1409616000, + "subusers": [ + "tim@sendgrid.net" + ], + "warmup": false, + "assigned_at": 1482883200 + }, + { + "ip": "208.115.214.22", + "pools": [], + "whitelabeled": true, + "rdns": "o1.email.burgermail.com", + "start_date": 1409616000, + "subusers": [], + "warmup": false, + "assigned_at": 1482883200 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/ips/remaining": { + "get": { + "operationId": "GET_ips-remaining", + "summary": "Get remaining IPs count", + "tags": [ + "IP Addresses" + ], + "description": "This endpoint gets amount of IP Addresses that can still be created during a given period and the price of those IPs.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "object", + "properties": { + "remaining": { + "type": "integer", + "description": "The number of IPs that can still be added to the user." + }, + "period": { + "type": "string", + "description": "The length of time until user can add more IPs." + }, + "price_per_ip": { + "type": "number", + "description": "The current cost to add an IP." + } + }, + "required": [ + "remaining", + "period", + "price_per_ip" + ] + } + } + }, + "required": [ + "results" + ] + }, + "examples": { + "application/json": { + "results": [ + { + "remaining": 2, + "period": "month", + "price_per_ip": 20 + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-remaining", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/ips/assigned": { + "get": { + "operationId": "GET_ips-assigned", + "summary": "Retrieve all assigned IPs", + "tags": [ + "IP Addresses" + ], + "description": "**This endpoint allows you to retrieve only assigned IP addresses.**\n\nA single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "title": "List all assigned IPs response", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address." + }, + "pools": { + "type": "array", + "description": "The IP pools that this IP address has been added to.", + "items": { + "type": "string" + } + }, + "warmup": { + "type": "boolean", + "description": "Indicates if this IP address is currently warming up." + }, + "start_date": { + "type": "integer", + "description": "The start date that this IP address was entered into warmup." + } + }, + "required": [ + "ip", + "pools", + "warmup", + "start_date" + ] + } + }, + "examples": { + "application/json": [ + { + "ip": "167.89.21.3", + "pools": [ + "new_test5" + ], + "warmup": true, + "start_date": 1409616000 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-assigned", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/ips/{ip_address}": { + "parameters": [ + { + "name": "ip_address", + "in": "path", + "description": "The IP address you are retrieving the IP pools for.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_ips-ip_address", + "summary": "Retrieve all IP pools an IP address belongs to", + "tags": [ + "IP Addresses" + ], + "description": "**This endpoint allows you to see which IP pools a particular IP address has been added to.**\n\nThe same IP address can be added to multiple IP pools.\n\nA single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address." + }, + "subusers": { + "type": "array", + "description": "The subusers that can send email using this IP address.", + "items": { + "type": "string" + } + }, + "rdns": { + "type": "string", + "description": "The reverse DNS record for this IP address." + }, + "pools": { + "type": "array", + "description": "The list of IP pools that this IP address belongs to.", + "items": { + "type": "string" + } + }, + "warmup": { + "type": "boolean", + "description": "Indicates if this IP address is currently warming up." + }, + "start_date": { + "type": [ + "integer", + "null" + ], + "description": "The date that the IP address was entered into warmup." + }, + "whitelabeled": { + "type": "boolean", + "description": "Indicates if this IP address has been whitelabeled." + } + }, + "required": [ + "ip", + "subusers", + "rdns", + "pools", + "warmup", + "start_date", + "whitelabeled" + ] + }, + "examples": { + "application/json": { + "ip": "000.00.00.0", + "subusers": [ + "subuser1", + "subuser2" + ], + "rdns": "o1.em.example.com", + "pools": [ + "test1" + ], + "warmup": false, + "start_date": null, + "whitelabeled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-ipaddress", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/ips/pools": { + "post": { + "operationId": "POST_ips-pools", + "summary": "Create an IP pool.", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to create an IP pool.**\n\n**Each user can create up to 10 different IP pools.**\n\nIP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic.\n\nIP pools can only be used with whitelabeled IP addresses.\n\nIf an IP pool is NOT specified for an email, it will use any IP available, including ones in pools.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of your new IP pool.", + "maxLength": 64 + } + }, + "required": [ + "name" + ], + "example": { + "name": "marketing" + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_pool" + }, + "examples": { + "application/json": { + "name": "marketing" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_ips-pools", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_ips-pools", + "summary": "Retrieve all IP pools.", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to retreive all of your IP pools.**\n\nIP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic.\n\nIP pools can only be used with whitelabeled IP addresses.\n\nIf an IP pool is NOT specified for an email, it will use any IP available, including ones in pools.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ip_pool" + } + }, + "examples": { + "application/json": [ + { + "name": "marketing" + }, + { + "name": "transactional" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-pools", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/ips/pools/{pool_name}": { + "parameters": [ + { + "name": "pool_name", + "in": "path", + "description": "The name of the IP pool that you want to retrieve the IP addresses from.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_ips-pools-pool_name", + "summary": "Retrieve all IPs in a specified pool.", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to list all of the IP addresses that are in a specific IP pool.**\n\nIP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic.\n\nIP pools can only be used with whitelabeled IP addresses.\n\nIf an IP pool is NOT specified for an email, it will use any IP available, including ones in pools.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "pool_name": { + "type": "string", + "description": "The name of the IP pool.", + "maxLength": 64 + }, + "ips": { + "type": "array", + "description": "The list of IP addresses that belong to this IP pool.", + "items": { + "type": "string" + } + } + }, + "required": [ + "pool_name" + ] + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "description": "The name of the error." + }, + "message": { + "type": "string", + "description": "A message explaining why the IP addresses could not be listed." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "error", + "message": "Unable to locate specified IPs Pool" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-pools-poolname", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "put": { + "operationId": "PUT_ips-pools-pool_name", + "summary": "Update an IP pool’s name.", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to update the name of an IP pool.**\n\nIP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic.\n\nIP pools can only be used with whitelabeled IP addresses.\n\nIf an IP pool is NOT specified for an email, it will use any IP available, including ones in pools.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The new name for your IP pool.", + "maxLength": 64 + } + }, + "example": { + "name": "new_pool_name" + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_pool" + }, + "examples": { + "application/json": { + "name": "new_pool_name" + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": "null" + }, + "message": { + "type": "string", + "description": "A message explaining why the name of your IP pool could not be updated." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "ip pool not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PUT_ips-pools-poolname", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "dynamic": false, + "enabled": false + } + } + }, + "delete": { + "operationId": "DELETE_ips-pools-pool_name", + "summary": "Delete an IP pool.", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to delete an IP pool.**\n\nIP Pools allow you to group your dedicated SendGrid IP addresses together. For example, you could create separate pools for your transactional and marketing email. When sending marketing emails, specify that you want to use the marketing IP pool. This allows you to maintain separate reputations for your different email traffic.\n\nIP pools can only be used with whitelabeled IP addresses.\n\nIf an IP pool is NOT specified for an email, it will use any IP available, including ones in pools.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "error": { + "type": "string", + "description": "An error explaining why the pool could not be deleted." + } + } + }, + "examples": { + "application/json": { + "error": "Unable to locate specified IPs Pool" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_ips-pools-poolname", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/ips/pools/{pool_name}/ips": { + "parameters": [ + { + "name": "pool_name", + "in": "path", + "description": "The name of the IP pool that you want to add an IP address to.", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_ips-pools-pool_name-ips", + "summary": "Add an IP address to a pool", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to add an IP address to an IP pool.**\n\nYou can add the same IP address to multiple pools. It may take up to 60 seconds for your IP address to be added to a pool after your request is made.\n\nA single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address that you want to add to an IP pool." + } + }, + "example": { + "ip": "0.0.0.0" + } + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address." + }, + "pools": { + "type": "array", + "description": "The list of IP pools that this IP address has been added to.", + "items": { + "type": "string" + } + }, + "start_date": { + "type": "integer", + "description": "A unix timestamp indicating when the warmup process began for the IP address." + }, + "warmup": { + "type": "boolean", + "description": "Indicates if the IP address is in warmup." + } + }, + "required": [ + "ip", + "pools", + "start_date", + "warmup" + ] + }, + "examples": { + "application/json": { + "ip": "000.00.00.0", + "pools": [ + "test1" + ], + "start_date": 1409616000, + "warmup": true + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The error returned.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "null" + }, + "message": { + "type": "string", + "description": "A message explaining why the IP address could not be added to the IP Pool." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "resource not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_ips-pools-poolname-ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/ips/pools/{pool_name}/ips/{ip}": { + "parameters": [ + { + "name": "pool_name", + "in": "path", + "description": "The name of the IP pool that you are removing the IP address from.", + "required": true, + "type": "string" + }, + { + "name": "ip", + "in": "path", + "description": "The IP address that you are removing.", + "required": true, + "type": "string" + } + ], + "delete": { + "operationId": "DELETE_ips-pools-pool_name-ips-ip", + "summary": "Remove an IP address from a pool.", + "tags": [ + "IP Pools" + ], + "description": "**This endpoint allows you to remove an IP address from an IP pool.**\n\nThe same IP address can be added to multiple IP pools.\n\nA single IP address or a range of IP addresses may be dedicated to an account in order to send email for multiple domains. The reputation of this IP is based on the aggregate performance of all the senders who use it.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "error": { + "type": "string", + "description": "An error explaining why the IP address could not be removed from the IP pool." + } + } + }, + "examples": { + "application/json": { + "error": "Unable to locate specified IPs Pool" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_ips-pools-poolname-ips-ip", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/ips/warmup": { + "get": { + "operationId": "GET_ips-warmup", + "summary": "Retrieve all IPs currently in warmup", + "tags": [ + "IP Warmup" + ], + "description": "**This endpoint allows you to retrieve all of your IP addresses that are currently warming up.**\n\nSendGrid can automatically warm up dedicated IP addresses by limiting the amount of mail that can be sent through them per hour, with the limit determined by how long the IP address has been in warmup. See the [warmup schedule](https://sendgrid.com/docs/API_Reference/Web_API_v3/IP_Management/ip_warmup_schedule.html) for more details on how SendGrid limits your email traffic for IPs in warmup.\n\nFor more general information about warming up IPs, please see our [Classroom](https://sendgrid.com/docs/Classroom/Deliver/Delivery_Introduction/warming_up_ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_warmup_response" + }, + "examples": { + "application/json": [ + { + "ip": "0.0.0.0", + "start_date": 1409616000 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-warmup", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "post": { + "operationId": "POST_ips-warmup", + "summary": "Add an IP to warmup", + "tags": [ + "IP Warmup" + ], + "description": "**This endpoint allows you to enter an IP address into warmup mode.**\n\nSendGrid can automatically warm up dedicated IP addresses by limiting the amount of mail that can be sent through them per hour, with the limit determined by how long the IP address has been in warmup. See the [warmup schedule](https://sendgrid.com/docs/API_Reference/Web_API_v3/IP_Management/ip_warmup_schedule.html) for more details on how SendGrid limits your email traffic for IPs in warmup.\n\nFor more general information about warming up IPs, please see our [Classroom](https://sendgrid.com/docs/Classroom/Deliver/Delivery_Introduction/warming_up_ips.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address that you want to begin warming up." + } + }, + "example": { + "ip": "0.0.0.0" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_warmup_response" + }, + "examples": { + "application/json": [ + { + "ip": "0.0.0.0", + "start_date": 1409616000 + } + ] + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The errors that were encountered.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "null" + }, + "message": { + "type": "string", + "description": "A message explaining why the IP couldn't entered into warmup mode." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "resource not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_ips-warmup", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/ips/warmup/{ip_address}": { + "parameters": [ + { + "name": "ip_address", + "in": "path", + "description": "The IP address that you want to retrieve the warmup status for.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_ips-warmup-ip_address", + "summary": "Retrieve warmup status for a specific IP address", + "tags": [ + "IP Warmup" + ], + "description": "**This endpoint allows you to retrieve the warmup status for a specific IP address.**\n\nSendGrid can automatically warm up dedicated IP addresses by limiting the amount of mail that can be sent through them per hour, with the limit determined by how long the IP address has been in warmup. See the [warmup schedule](https://sendgrid.com/docs/API_Reference/Web_API_v3/IP_Management/ip_warmup_schedule.html) for more details on how SendGrid limits your email traffic for IPs in warmup.\n\nFor more general information about warming up IPs, please see our [Classroom](https://sendgrid.com/docs/Classroom/Deliver/Delivery_Introduction/warming_up_ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_warmup_response" + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The errors that were encountered.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "null" + }, + "message": { + "type": "string", + "description": "A message explaining why the warmup status could not be retrieved." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "resource not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_ips-warmup-ipaddress", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_ips-warmup-ip_address", + "summary": "Remove an IP from warmup", + "tags": [ + "IP Warmup" + ], + "description": "**This endpoint allows you to remove an IP address from warmup mode.**\n\nSendGrid can automatically warm up dedicated IP addresses by limiting the amount of mail that can be sent through them per hour, with the limit determined by how long the IP address has been in warmup. See the [warmup schedule](https://sendgrid.com/docs/API_Reference/Web_API_v3/IP_Management/ip_warmup_schedule.html) for more details on how SendGrid limits your email traffic for IPs in warmup.\n\nFor more general information about warming up IPs, please see our [Classroom](https://sendgrid.com/docs/Classroom/Deliver/Delivery_Introduction/warming_up_ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The errors that were encountered.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "null" + }, + "message": { + "type": "string", + "description": "A message explaining why the IP couldn't be removed from warmup." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "resource not found" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_ips-warmup-ipaddress", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/senders": { + "post": { + "operationId": "POST_senders", + "summary": "Create a Sender Identity", + "tags": [ + "Sender Identities API" + ], + "description": "**This endpoint allows you to create a new sender identity.**\n\n*You may create up to 100 unique sender identities.*\n\nSender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "description": "A nickname for the sender identity. Not used for sending." + }, + "from": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "This is where the email will appear to originate from for your recipient" + }, + "name": { + "type": "string", + "description": "This is the name appended to the from email field. IE - Your name or company name." + } + }, + "required": [ + "email" + ] + }, + "reply_to": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "This is the email that your recipient will reply to." + }, + "name": { + "type": "string", + "description": "This is the name appended to the reply to email field. IE - Your name or company name." + } + }, + "required": [ + "email" + ] + }, + "address": { + "type": "string", + "description": "The physical address of the sender identity." + }, + "address_2": { + "type": "string", + "description": "Additional sender identity address information." + }, + "city": { + "type": "string", + "description": "The city of the sender identity." + }, + "state": { + "type": "string", + "description": "The state of the sender identity." + }, + "zip": { + "type": "string", + "description": "The zipcode of the sender identity." + }, + "country": { + "type": "string", + "description": "The country of the sender identity." + } + }, + "required": [ + "nickname", + "address", + "city", + "country" + ], + "example": { + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/senderID" + }, + "examples": { + "application/json": { + "id": 1, + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States", + "verified": true, + "updated_at": 1449872165, + "created_at": 1449872165, + "locked": false + } + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "The JSON you have submitted cannot be parsed.", + "field": "" + }, + { + "message": "You've reached your limit of 100 sender identities. Please delete one or more and try again.", + "field": "" + }, + { + "message": "nickname is required.", + "field": "nickname" + }, + { + "message": "You already have a sender identity with the same nickname.", + "field": "nickname" + }, + { + "message": "from_name is required.", + "field": "from_name" + }, + { + "message": "from_email is required.", + "field": "from_email" + }, + { + "message": "From email is not a valid email address.", + "field": "from_email" + }, + { + "message": "reply_to is required.", + "field": "reply_to" + }, + { + "message": "Reply to email is not a valid email address.", + "field": "reply_to" + }, + { + "message": "address is required.", + "field": "address" + }, + { + "message": "city is required.", + "field": "city" + }, + { + "message": "country is required.", + "field": "country" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_senders", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "get": { + "operationId": "GET_v3-senders", + "summary": "Get all Sender Identities", + "tags": [ + "Sender Identities API" + ], + "description": "**This endpoint allows you to retrieve a list of all sender identities that have been created for your account.**\n\nSender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/definitions/senderID" + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "id": 1, + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States", + "verified": true, + "updated_at": 1449872165, + "created_at": 1449872165, + "locked": false + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_v3-senders", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/senders/{sender_id}": { + "parameters": [ + { + "name": "sender_id", + "in": "path", + "description": "The ID of the sender identity that you want to update.", + "required": true, + "type": "integer" + } + ], + "patch": { + "operationId": "PATCH_v3-senders-sender_id", + "summary": "Update a Sender Identity", + "tags": [ + "Sender Identities API" + ], + "description": "**This endpoint allows you to update a sender identity.**\n\nUpdates to `from.email` require re-verification. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.\n\nPartial updates are allowed, but fields that are marked as \"required\" in the POST (create) endpoint must not be nil if that field is included in the PATCH request.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "nickname": { + "type": "string", + "description": "A nickname for the sender identity. Not used for sending." + }, + "from": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "This is where the email will appear to originate from for your recipient" + }, + "name": { + "type": "string", + "description": "This is the name appended to the from email field. IE - Your name or company name." + } + } + }, + "reply_to": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "This is the email that your recipient will reply to." + }, + "name": { + "type": "string", + "description": "This is the name appended to the reply to email field. IE - Your name or company name." + } + } + }, + "address": { + "type": "string", + "description": "The physical address of the sender identity." + }, + "address_2": { + "type": "string", + "description": "Additional sender identity address information." + }, + "city": { + "type": "string", + "description": "The city of the sender identity." + }, + "state": { + "type": "string", + "description": "The state of the sender identity." + }, + "zip": { + "type": "string", + "description": "The zipcode of the sender identity." + }, + "country": { + "type": "string", + "description": "The country of the sender identity." + } + }, + "example": { + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/senderID" + }, + "examples": { + "application/json": { + "id": 1, + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States", + "verified": true, + "updated_at": 1449872165, + "created_at": 1449872165, + "locked": false + } + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "The JSON you have submitted cannot be parsed.", + "field": "" + }, + { + "message": "nickname is required.", + "field": "nickname" + }, + { + "message": "You already have a sender identity with the same nickname.", + "field": "nickname" + }, + { + "message": "from_name is required.", + "field": "from_name" + }, + { + "message": "from_email is required.", + "field": "from_email" + }, + { + "message": "From email is not a valid email address.", + "field": "from_email" + }, + { + "message": "reply_to is required.", + "field": "reply_to" + }, + { + "message": "Reply to email is not a valid email address.", + "field": "reply_to" + }, + { + "message": "address is required.", + "field": "address" + }, + { + "message": "city is required.", + "field": "city" + }, + { + "message": "country is required.", + "field": "country" + } + ] + } + } + }, + "403": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "You may only update a sender identity when it is unlocked.", + "field": "locked" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "resource not found", + "field": "id" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_v3-senders-sender_id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_v3-senders-sender_id", + "summary": "Delete a Sender Identity", + "tags": [ + "Sender Identities API" + ], + "description": "**This endoint allows you to delete one of your sender identities.**\n\nSender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + }, + "403": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "You may only delete a sender identity when it is unlocked.", + "field": "locked" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "resource not found", + "field": "id" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_v3-senders-sender_id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "get": { + "operationId": "GET_v3-senders-sender_id", + "summary": "View a Sender Identity", + "tags": [ + "Sender Identities API" + ], + "description": "**This endpoint allows you to retrieve a specific sender identity.**\n\nSender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/senderID" + }, + "examples": { + "application/json": { + "id": 1, + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States", + "verified": true, + "updated_at": 1449872165, + "created_at": 1449872165, + "locked": false + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "resource not found", + "field": "id" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_v3-senders-sender_id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/senders/{sender_id}/resend_verification": { + "parameters": [ + { + "name": "sender_id", + "in": "path", + "description": "The ID of the sender identity for which you would like to resend a verification email.", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_v3-senders-sender_id-resend_verification", + "summary": "Resend Sender Identity Verification", + "tags": [ + "Sender Identities API" + ], + "description": "**This enpdoint allows you to resend a sender identity verification email.**\n\nSender Identities are required to be verified before use. If your domain has been whitelabeled it will auto verify on creation. Otherwise an email will be sent to the `from.email`.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "The Sender Identity is already verified. No email sent.", + "field": "" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "resource not found", + "field": "id" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_v3-senders-sender_id-resend_verification", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/user/settings/enforced_tls": { + "get": { + "operationId": "GET_user-settings-enforced_tls", + "summary": "Retrieve current Enforced TLS settings.", + "tags": [ + "Settings - Enforced TLS" + ], + "description": "**This endpoint allows you to retrieve your current Enforced TLS settings.**\n\nThe Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. See the [SMTP Ports User Guide](https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/smtp_ports.html) for more information on opportunistic TLS.\n\n**Note:** If either setting is enabled and the recipient does not support TLS or have a valid certificate, we drop the message and send a block event with “TLS required but not supported” as the description.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "require_tls": { + "type": "boolean", + "description": "Indicates if the recipient is required to support TLS." + }, + "require_valid_cert": { + "type": "boolean", + "description": "Indicates if the recipient is required to have a valid certificate." + } + }, + "required": [ + "require_tls", + "require_valid_cert" + ] + }, + "examples": { + "application/json": { + "require_tls": false, + "require_valid_cert": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-settings-enforcedtls", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_user-settings-enforced_tls", + "summary": "Update Enforced TLS settings", + "tags": [ + "Settings - Enforced TLS" + ], + "description": "**This endpoint allows you to update your current Enforced TLS settings.**\n\nThe Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate. See the [SMTP Ports User Guide](https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/smtp_ports.html) for more information on opportunistic TLS.\n\n**Note:** If either setting is enabled and the recipient does not support TLS or have a valid certificate, we drop the message and send a block event with “TLS required but not supported” as the description.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "require_tls": { + "type": "boolean", + "description": "Indicates if you want to require your recipients to support TLS. " + }, + "require_valid_cert": { + "type": "boolean", + "description": "Indicates if you want to require your recipients to have a valid certificate." + } + }, + "example": { + "require_tls": true, + "require_valid_cert": false + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "require_tls": { + "type": "boolean", + "description": "Indicates if your recipients are required to support TLS." + }, + "require_valid_cert": { + "type": "boolean", + "description": "Indicates if your recipients are required to have a valid certificate." + } + }, + "required": [ + "require_tls", + "require_valid_cert" + ] + }, + "examples": { + "application/json": { + "require_tls": true, + "require_valid_cert": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_user-settings-enforcedtls", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/user/webhooks/parse/settings": { + "post": { + "operationId": "POST_user-webhooks-parse-settings", + "summary": "Create a parse setting", + "tags": [ + "Settings - Inbound Parse" + ], + "description": "**This endpoint allows you to create a new inbound parse setting.**\n\nThe inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the content, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/parse-setting", + "example": { + "hostname": "myhostname.com", + "url": "http://email.myhosthame.com", + "spam_check": true, + "send_raw": false + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/parse-setting" + }, + "examples": { + "application/json": { + "url": "http://email.myhostname.com", + "hostname": "myhostname.com", + "spam_check": false, + "send_raw": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_user-webhooks-parse-settings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "get": { + "operationId": "GET_user-webhooks-parse-settings", + "summary": "Retrieve all parse settings", + "tags": [ + "Settings - Inbound Parse" + ], + "description": "**This endpoint allows you to retrieve all of your current inbound parse settings.**\n\nThe inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the contnet, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "description": "The list of your current inbound parse settings.", + "items": { + "$ref": "#/definitions/parse-setting" + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "url": "http://mydomain.com/parse", + "hostname": "mail.mydomain.com", + "spam_check": true, + "send_raw": true + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-webhooks-parse-settings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + } + }, + "/user/webhooks/parse/settings/{hostname}": { + "parameters": [ + { + "name": "hostname", + "in": "path", + "description": "The hostname associated with the inbound parse setting that you would like to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_user-webhooks-parse-settings-hostname", + "summary": "Retrieve a specific parse setting", + "tags": [ + "Settings - Inbound Parse" + ], + "description": "**This endpoint allows you to retrieve a specific inbound parse setting.**\n\nThe inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the contnet, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/parse-setting" + }, + "examples": { + "application/json": { + "url": "http://mydomain.com/parse", + "hostname": "mail.mydomain.com", + "spam_check": true, + "send_raw": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-webhooks-parse-settings-hostname", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_user-webhooks-parse-settings-hostname", + "summary": "Update a parse setting", + "tags": [ + "Settings - Inbound Parse" + ], + "description": "**This endpoint allows you to update a specific inbound parse setting.**\n\nThe inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the contnet, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/parse-setting", + "example": { + "url": "http://newdomain.com/parse", + "spam_check": false, + "send_raw": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/parse-setting" + }, + "examples": { + "application/json": { + "url": "http://mydomain.com/parse", + "hostname": "mail.mydomain.com", + "spam_check": true, + "send_raw": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_user-webhooks-parse-settings-hostname", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + }, + "delete": { + "operationId": "DELETE_user-webhooks-parse-settings-hostname", + "summary": "Delete a parse setting", + "tags": [ + "Settings - Inbound Parse" + ], + "description": "**This endpoint allows you to delete a specific inbound parse setting.**\n\nThe inbound parse webhook allows you to have incoming emails parsed, extracting some or all of the contnet, and then have that content POSTed by SendGrid to a URL of your choosing. For more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Webhooks/parse.html).", + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_user-webhooks-parse-settings-hostname", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/mail_settings": { + "get": { + "operationId": "GET_mail_settings", + "summary": "Retrieve all mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve a list of all mail settings.**\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of settings to return.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "Where in the list of results to begin displaying settings.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "description": "The list of all mail settings.", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the mail setting." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if this mail setting is currently enabled." + }, + "name": { + "type": "string", + "description": "The name of the mail setting." + }, + "description": { + "type": "string", + "description": "A description of the mail setting." + } + }, + "required": [ + "title", + "enabled", + "name", + "description" + ] + } + } + }, + "required": [ + "result" + ] + }, + "examples": { + "application/json": { + "result": [ + { + "title": "Address Whitelist", + "enabled": false, + "name": "address_whitelist", + "description": "Address / domains that should never have email suppressed." + }, + { + "title": "BCC", + "enabled": false, + "name": "bcc", + "description": "Automatically BCC an address for every e-mail sent." + }, + { + "title": "Bounce Purge", + "enabled": false, + "name": "bounce_purge", + "description": "Allows you to automatically purge bounce records from SendGrid after a specified number of days." + }, + { + "title": "Event Notification", + "enabled": true, + "name": "event_notify", + "description": "Controls notifications for events, such as bounces, clicks, and opens." + }, + { + "title": "Footer", + "enabled": false, + "name": "footer", + "description": "Allows you to add a custom footer to outgoing email." + }, + { + "title": "Forward Bounce", + "enabled": true, + "name": "forward_bounce", + "description": "Allows you to forward bounces to a specific email address." + }, + { + "title": "Forward Spam", + "enabled": false, + "name": "forward_spam", + "description": "Allows for a copy of spam reports to be forwarded to an email address." + }, + { + "title": "Legacy Email Template", + "enabled": true, + "name": "template", + "description": "Allows you to customize your outgoing HTML emails." + }, + { + "title": "Plain Content", + "enabled": false, + "name": "plain_content", + "description": "Convert your plain text emails to HTML." + }, + { + "title": "Spam Checker", + "enabled": true, + "name": "spam_check", + "description": "Check outbound messages for spam content." + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/bcc": { + "get": { + "operationId": "GET_mail_settings-bcc", + "summary": "Retrieve all BCC mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current BCC mail settings.**\n\nWhen the BCC mail setting is enabled, SendGrid will automatically send a blind carbon copy (BCC) to an address for every email sent without adding that address to the header. Please note that only one email address may be entered in this field, if you wish to distribute BCCs to multiple addresses you will need to create a distribution group or use forwarding rules.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_bcc" + }, + "examples": { + "application/json": { + "email": "example@example.com", + "enabled": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-bcc", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-bcc", + "summary": "Update BCC mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current BCC mail settings.**\n\nWhen the BCC mail setting is enabled, SendGrid will automatically send a blind carbon copy (BCC) to an address for every email sent without adding that address to the header. Please note that only one email address may be entered in this field, if you wish to distribute BCCs to multiple addresses you will need to create a distribution group or use forwarding rules.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/mail_settings_patch", + "example": { + "enabled": false, + "email": "email@example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_patch" + }, + "examples": { + "application/json": { + "email": "example@example.com", + "enabled": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-bcc", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/address_whitelist": { + "get": { + "operationId": "GET_mail_settings-address_whitelist", + "summary": "Retrieve address whitelist mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current email address whitelist settings.**\n\nThe address whitelist setting whitelists a specified email address or domain for which mail should never be suppressed. For example, you own the domain “example.com,” and one or more of your recipients use email@example.com addresses, by placing example.com in the address whitelist setting, all bounces, blocks, and unsubscribes logged for that domain will be ignored and sent as if under normal sending conditions.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_address_whitelabel" + }, + "examples": { + "application/json": { + "enabled": false, + "list": [ + "example.com" + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-addresswhitelist", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-address_whitelist", + "summary": "Update address whitelist mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current email address whitelist settings.**\n\nThe address whitelist setting whitelists a specified email address or domain for which mail should never be suppressed. For example, you own the domain “example.com,” and one or more of your recipients use email@example.com addresses, by placing example.com in the address whitelist setting, all bounces, blocks, and unsubscribes logged for that domain will be ignored and sent as if under normal sending conditions.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if your email address whitelist is enabled." + }, + "list": { + "type": "array", + "description": "Either a single email address that you want whitelisted or a domain, for which all email addresses belonging to this domain will be whitelisted.", + "items": { + "type": "string" + } + } + }, + "example": { + "enabled": true, + "list": [ + "email1@example.com", + "example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_address_whitelabel" + }, + "examples": { + "application/json": { + "enabled": true, + "list": [ + "email1@example.com" + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-addresswhitelist", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/footer": { + "get": { + "operationId": "GET_mail_settings-footer", + "summary": "Retrieve footer mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current Footer mail settings.**\n\nThe footer setting will insert a custom footer at the bottom of the text and HTML bodies. Use the embedded HTML editor and plain text entry fields to create the content of the footers to be inserted into your emails.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_footer" + }, + "examples": { + "application/json": { + "enabled": true, + "html_content": "Example HTML content", + "plain_content": "Example plain content" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-footer", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-footer", + "summary": "Update footer mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current Footer mail settings.**\n\nThe footer setting will insert a custom footer at the bottom of the text and HTML bodies. Use the embedded HTML editor and plain text entry fields to create the content of the footers to be inserted into your emails.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/mail_settings_footer", + "example": { + "enabled": true, + "html_content": "...", + "plain_content": "..." + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_footer" + }, + "examples": { + "application/json": { + "enabled": true, + "html_content": "Example HTML content", + "plain_content": "Example plain content" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-footer", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/forward_spam": { + "get": { + "operationId": "GET_mail_settings-forward_spam", + "summary": "Retrieve forward spam mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current Forward Spam mail settings.**\n\nEnabling the forward spam setting allows you to specify an email address to which spam reports will be forwarded.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_forward_spam" + }, + "examples": { + "application/json": { + "email": "", + "enabled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-forwardspam", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-forward_spam", + "summary": "Update forward spam mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current Forward Spam mail settings.**\n\nEnabling the forward spam setting allows you to specify an email address to which spam reports will be forwarded.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/mail_settings_forward_spam", + "example": { + "email": "", + "enabled": false + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_forward_spam" + }, + "examples": { + "application/json": { + "email": "", + "enabled": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-forwardspam", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/mail_settings/plain_content": { + "get": { + "operationId": "GET_mail_settings-plain_content", + "summary": "Retrieve plain content mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current Plain Content mail settings.**\n\nThe plain content setting will automatically convert any plain text emails that you send to HTML before sending.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the Plain Content mail setting is enabled." + } + } + }, + "examples": { + "application/json": { + "enabled": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-plaincontent", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-plain_content", + "summary": "Update plain content mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current Plain Content mail settings.**\n\nThe plain content setting will automatically convert any plain text emails that you send to HTML before sending.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "The new setting you would like to use for your Plain Content mail setting." + } + }, + "example": { + "enabled": false + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if your Plain Content mail setting is enabled." + } + } + }, + "examples": { + "application/json": { + "enabled": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-plaincontent", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/mail_settings/spam_check": { + "get": { + "operationId": "GET_mail_settings-spam_check", + "summary": "Retrieve spam check mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current Spam Checker mail settings.**\n\nThe spam checker filter notifies you when emails are detected that exceed a predefined spam threshold.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_spam_check" + }, + "examples": { + "application/json": { + "enabled": false, + "max_score": 6, + "url": "http://example.com" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-spamcheck", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-spam_check", + "summary": "Update spam check mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current spam checker mail settings.**\n\nThe spam checker filter notifies you when emails are detected that exceed a predefined spam threshold.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if you want the spam check mail setting to be enabled or not." + }, + "url": { + "type": "string", + "description": "The Inbound Parse URL where you would like your spam reports to be sent to." + }, + "max_score": { + "type": "integer", + "default": 5, + "description": "The new max score, or spam threshold that you would like to set for the spam checker.", + "minimum": 1, + "maximum": 10 + } + }, + "example": { + "enabled": true, + "url": "url", + "max_score": 5 + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_spam_check" + }, + "examples": { + "application/json": { + "enabled": false, + "max_score": 6, + "url": "http://example.com" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-spamcheck", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/template": { + "get": { + "operationId": "GET_mail_settings-template", + "summary": "Retrieve legacy template mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current legacy email template settings.**\n\nThis setting refers to our original email templates. We currently support more fully featured [transactional templates](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). \n\nThe legacy email template setting wraps an HTML template around your email content. This can be useful for sending out marketing email and/or other HTML formatted messages.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_template" + }, + "examples": { + "application/json": { + "enabled": false, + "html_content": "

<% body %>Example

\n" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-template", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-template", + "summary": "Update template mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current legacy email template settings.**\n\nThis setting refers to our original email templates. We currently support more fully featured [transactional templates](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). \n\nThe legacy email template setting wraps an HTML template around your email content. This can be useful for sending out marketing email and/or other HTML formatted messages.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if you want to enable the legacy email template mail setting." + }, + "html_content": { + "type": "string", + "description": "The new HTML content for your legacy email template." + } + }, + "example": { + "enabled": true, + "html_content": "<% body %>" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the legacy email template mail setting is enabled." + }, + "html_content": { + "type": "string", + "description": "The HTML content of your legacy email template." + } + }, + "required": [ + "enabled", + "html_content" + ] + }, + "examples": { + "application/json": { + "enabled": false, + "html_content": "

<% body %>Example

\n" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-template", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/bounce_purge": { + "get": { + "operationId": "GET_mail_settings-bounce_purge", + "summary": "Retrieve bounce purge mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current bounce purge settings.**\n\nThis setting allows you to set a schedule for SendGrid to automatically delete contacts from your soft and hard bounce suppression lists.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_bounce_purge" + }, + "examples": { + "application/json": { + "enabled": false, + "soft_bounces": 1234, + "hard_bounces": null + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-bouncepurge", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-bounce_purge", + "summary": "Update bounce purge mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current bounce purge settings.**\n\nThis setting allows you to set a schedule for SendGrid to automatically delete contacts from your soft and hard bounce suppression lists.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/mail_settings_bounce_purge", + "example": { + "enabled": true, + "hard_bounces": 5, + "soft_bounces": 5 + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_bounce_purge" + }, + "examples": { + "application/json": { + "enabled": false, + "hard_bounces": null, + "soft_bounces": null + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-bouncepurge", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/mail_settings/forward_bounce": { + "get": { + "operationId": "GET_mail_settings-forward_bounce", + "summary": "Retrieve forward bounce mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to retrieve your current bounce forwarding mail settings.**\n\nActivating this setting allows you to specify an email address to which bounce reports are forwarded.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_forward_bounce" + }, + "examples": { + "application/json": { + "enabled": false, + "email": null + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailsettings-forwardbounce", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + }, + "patch": { + "operationId": "PATCH_mail_settings-forward_bounce", + "summary": "Update forward bounce mail settings", + "tags": [ + "Settings - Mail" + ], + "description": "**This endpoint allows you to update your current bounce forwarding mail settings.**\n\nActivating this setting allows you to specify an email address to which bounce reports are forwarded.\n\nMail settings allow you to tell SendGrid specific things to do to every email that you send to your recipients over SendGrid’s [Web API](https://sendgrid.com/docs/API_Reference/Web_API/mail.html) or [SMTP Relay](https://sendgrid.com/docs/API_Reference/SMTP_API/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/mail_settings_forward_bounce", + "example": { + "enabled": true, + "email": "example@example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/mail_settings_forward_bounce" + }, + "examples": { + "application/json": { + "email": "", + "enabled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_mailsettings-forwardbounce", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/partner_settings": { + "get": { + "operationId": "GET_partner_settings", + "summary": "Returns a list of all partner settings.", + "tags": [ + "Settings - Partner" + ], + "description": "**This endpoint allows you to retrieve a list of all partner settings that you can enable.**\n\nOur partner settings allow you to integrate your SendGrid account with our partners to increase your SendGrid experience and functionality. For more information about our partners, and how you can begin integrating with them, please visit our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/partners.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of settings to return per page.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The paging offset.", + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the partner." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if this partner setting has been enabled." + }, + "name": { + "type": "string", + "description": "The name of the partner setting." + }, + "description": { + "type": "string", + "description": "A description of this partner setting." + } + }, + "required": [ + "title", + "enabled", + "name", + "description" + ] + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "title": "Partner title", + "enabled": true, + "name": "partner_name", + "description": "A description of a partner." + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_partnersettings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + } + }, + "/partner_settings/new_relic": { + "get": { + "operationId": "GET_partner_settings-new_relic", + "summary": "Returns all New Relic partner settings.", + "tags": [ + "Settings - Partner" + ], + "description": "**This endpoint allows you to retrieve your current New Relic partner settings.**\n\nOur partner settings allow you to integrate your SendGrid account with our partners to increase your SendGrid experience and functionality. For more information about our partners, and how you can begin integrating with them, please visit our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/partners.html).\n\nBy integrating with New Relic, you can send your SendGrid email statistics to your New Relic Dashboard. If you enable this setting, your stats will be sent to New Relic every 5 minutes. You will need your New Relic License Key to enable this setting. For more information, please see our [Classroom](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/new_relic.html).", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/partner_settings_new_relic" + }, + "examples": { + "application/json": { + "enable_subuser_statistics": false, + "enabled": true, + "license_key": "" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_partnersettings-newrelic", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_partner_settings-new_relic", + "summary": "Updates New Relic partner settings.", + "tags": [ + "Settings - Partner" + ], + "description": "**This endpoint allows you to update or change your New Relic partner settings.**\n\nOur partner settings allow you to integrate your SendGrid account with our partners to increase your SendGrid experience and functionality. For more information about our partners, and how you can begin integrating with them, please visit our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/partners.html).\n\nBy integrating with New Relic, you can send your SendGrid email statistics to your New Relic Dashboard. If you enable this setting, your stats will be sent to New Relic every 5 minutes. You will need your New Relic License Key to enable this setting. For more information, please see our [Classroom](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/new_relic.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "license_key": { + "type": "string", + "description": "The license key for your New Relic account." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if this partner setting is enabled." + }, + "enable_subuser_statistics": { + "type": "boolean", + "description": "Indicates if your subuser statistics will be sent to your New Relic Dashboard." + } + }, + "example": { + "license_key": "", + "enabled": true, + "enable_subuser_statistics": true + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/partner_settings_new_relic" + }, + "examples": { + "application/json": { + "enable_subuser_statistics": true, + "enabled": true, + "license_key": "" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_partnersettings-newrelic", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/tracking_settings": { + "get": { + "operationId": "GET_tracking_settings", + "summary": "Retrieve Tracking Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to retrieve a list of all tracking settings that you can enable on your account.**\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of settings to return.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "Where in the list of results you want to begin retrieving settings.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "description": "The list of all tracking settings.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the event being tracked." + }, + "title": { + "type": "string", + "description": "The title of the tracking setting." + }, + "description": { + "type": "string", + "description": "A description about the event that is being tracked." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if this tracking setting is currently enabled." + } + } + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "name": "open", + "title": "Open Tracking", + "description": "lorem ipsum... .", + "enabled": true + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_trackingsettings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + } + }, + "/tracking_settings/click": { + "get": { + "operationId": "GET_tracking_settings-click", + "summary": "Retrieve Click Track Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to retrieve your current click tracking setting.**\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enable_text": { + "type": "boolean", + "description": "Indicates if click tracking is enabled for plain text emails." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if click tracking is enabled or disabled." + } + }, + "required": [ + "enable_text", + "enabled" + ] + }, + "examples": { + "application/json": { + "enable_text": false, + "enabled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_trackingsettings-click", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "statusCode": 200, + "enabled": false + } + } + }, + "patch": { + "operationId": "PATCH_tracking_settings-click", + "summary": "Update Click Tracking Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to change your current click tracking setting. You can enable, or disable, click tracking using this endpoint.**\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "The setting you want to use for click tracking." + } + }, + "example": { + "enabled": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enable_text": { + "type": "boolean", + "description": "Indicates if click tracking is enabled for plain text emails" + }, + "enabled": { + "type": "boolean", + "description": "The new setting new setting for click tracking." + } + }, + "required": [ + "enable_text", + "enabled" + ] + }, + "examples": { + "application/json": { + "enable_text": false, + "enabled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_trackingsettings-click", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/tracking_settings/google_analytics": { + "get": { + "operationId": "GET_tracking_settings-google_analytics", + "summary": "Retrieve Google Analytics Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to retrieve your current setting for Google Analytics.**\n\nFor more information about using Google Analytics, please refer to [Google’s URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on [\"Best Practices for Campaign Building\"](https://support.google.com/analytics/answer/1037445).\n\nWe default the settings to Google’s recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/google_analytics_demystified_ga_statistics_vs_sg_statistics.html).\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/google_analytics_settings" + }, + "examples": { + "application/json": { + "enabled": true, + "utm_campaign": "", + "utm_content": "lotsandlotsofcontent", + "utm_medium": "", + "utm_source": "", + "utm_term": "" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_trackingsettings-googleanalytics", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_tracking_settings-google_analytics", + "summary": "Update Google Analytics Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to update your current setting for Google Analytics.**\n\nFor more information about using Google Analytics, please refer to [Google’s URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on [\"Best Practices for Campaign Building\"](https://support.google.com/analytics/answer/1037445).\n\nWe default the settings to Google’s recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/Classroom/Track/Collecting_Data/google_analytics_demystified_ga_statistics_vs_sg_statistics.html).\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/google_analytics_settings", + "example": { + "enabled": true, + "utm_source": "sendgrid.com", + "utm_medium": "email", + "utm_term": "", + "utm_content": "", + "utm_campaign": "website" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/google_analytics_settings" + }, + "examples": { + "application/json": { + "enabled": true, + "utm_campaign": "", + "utm_content": "lotsandlotsofcontent", + "utm_medium": "", + "utm_source": "", + "utm_term": "" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_trackingsettings-googleanalytics", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/tracking_settings/open": { + "get": { + "operationId": "GET_tracking_settings-open", + "summary": "Get Open Tracking Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to retrieve your current settings for open tracking.**\n\nOpen Tracking adds an invisible image at the end of the email which can track email opens. If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged. These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if open tracking is enabled." + } + }, + "required": [ + "enabled" + ] + }, + "examples": { + "application/json": { + "enabled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_trackingsettings-open", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_tracking_settings-open", + "summary": "Update Open Tracking Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to update your current settings for open tracking.**\n\nOpen Tracking adds an invisible image at the end of the email which can track email opens. If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged. These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "The new status that you want to set for open tracking." + } + }, + "example": { + "enabled": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if open tracking is enabled." + } + }, + "required": [ + "enabled" + ] + }, + "examples": { + "application/json": { + "enabled": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_trackingsettings-open", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/tracking_settings/subscription": { + "get": { + "operationId": "GET_tracking_settings-subscription", + "summary": "Retrieve Subscription Tracking Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to retrieve your current settings for subscription tracking.**\n\nSubscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/subscription_tracking_settings" + }, + "examples": { + "application/json": { + "enabled": true, + "html_content": "

Something something unsubscribe <% %> something something

\n", + "landing": "

subscribehere

\n", + "plain_content": "Something something unsubscribe <% %> something something", + "replace": "thetag", + "url": "" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_trackingsettings-subscription", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_tracking_settings-subscription", + "summary": "Update Subscription Tracking Settings", + "tags": [ + "Settings - Tracking" + ], + "description": "**This endpoint allows you to update your current settings for subscription tracking.**\n\nSubscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.\n\nYou can track a variety of the actions your recipients may take when interacting with your emails including opening your emails, clicking on links in your emails, and subscribing to (or unsubscribing from) your emails.\n\nFor more information about tracking, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/tracking.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/subscription_tracking_settings", + "example": { + "enabled": true, + "landing": "landing page html", + "url": "url", + "replace": "replacement tag", + "html_content": "html content", + "plain_content": "text content" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/subscription_tracking_settings" + }, + "examples": { + "application/json": { + "enabled": true, + "landing": "landing page html", + "url": "url", + "replace": "replacement tag", + "html_content": "html content", + "plain_content": "text content" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_trackingsettings-subscription", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/suppression/spam_reports": { + "get": { + "operationId": "GET_suppression-spam_reports", + "summary": "Retrieve all spam reports", + "tags": [ + "Spam Reports API" + ], + "description": "**This endpoint allows you to retrieve all spam reports.**\n\n[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_time", + "in": "query", + "description": "Refers start of the time range in unix timestamp when a spam report was created (inclusive).", + "type": "integer" + }, + { + "name": "end_time", + "in": "query", + "description": "Refers end of the time range in unix timestamp when a spam report was created (inclusive).", + "type": "integer" + }, + { + "name": "limit", + "in": "query", + "description": "Limit the number of results to be displayed per page.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "Paging offset. The point in the list to begin displaying results.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp indicating when the spam report was made." + }, + "email": { + "type": "string", + "description": "The email address of the recipient who marked your message as spam." + }, + "ip": { + "type": "string", + "description": "The IP address that the message was sent on." + } + }, + "required": [ + "created", + "email", + "ip" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1443651141, + "email": "user1@example.com", + "ip": "10.63.202.100" + }, + { + "created": 1443651154, + "email": "user2@example.com", + "ip": "10.63.202.100" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-spamreports", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-spam_reports", + "summary": "Delete spam reports", + "tags": [ + "Spam Reports API" + ], + "description": "**This endpoint allows you to delete your spam reports.**\n\nThere are two options for deleting spam reports: \n\n1) You can delete all spam reports by setting \"delete_all\" to true in the request body. \n2) You can delete some spam reports by specifying the email addresses in an array in the request body.\n\n[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "delete_all": { + "type": "boolean", + "description": "Indicates if you want to delete all email addresses on the spam report list." + }, + "emails": { + "type": "array", + "description": "A list of specific email addresses that you want to remove from the spam report list.", + "items": { + "type": "string" + } + } + }, + "example": { + "delete_all": false, + "emails": [ + "example1@example.com", + "example2@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_suppression-spamreports", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/suppression/spam_reports/{email}": { + "parameters": [ + { + "name": "email", + "in": "path", + "description": "The email address of a specific spam report that you want to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_suppression-spam_reports-email", + "summary": "Retrieve a specific spam report", + "tags": [ + "Spam Reports API" + ], + "description": "**This endpoint allows you to retrieve a specific spam report.**\n\n[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp that indicates when the recipient marked your message as spam." + }, + "email": { + "type": "string", + "description": "The email address of the recipient that marked your message as spam." + }, + "ip": { + "type": "string", + "description": "The IP address that the message was sent from." + } + }, + "required": [ + "created", + "email", + "ip" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1454433146, + "email": "test1@example.com", + "ip": "10.89.32.5" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-spamreports-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "dynamic": false, + "enabled": false + } + } + }, + "delete": { + "operationId": "DELETE_suppression-spam_reports-email", + "summary": "Delete a specific spam report", + "tags": [ + "Spam Reports API" + ], + "description": "**This endpoint allows you to delete a specific spam report.**\n\n[Spam reports](https://sendgrid.com/docs/Glossary/spam_reports.html) happen when a recipient indicates that they think your email is [spam](https://sendgrid.com/docs/Glossary/spam.html) and then their email provider reports this to SendGrid.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/spam_reports.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_suppression-spamreports-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/stats": { + "get": { + "operationId": "GET_stats", + "summary": "Retrieve global email statistics", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve all of your global email statistics between a given date range.**\n\nParent accounts will see aggregated stats for their account and all subuser accounts. Subuser accounts will only see their own stats.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of results to return.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list to begin retrieving results.", + "required": false, + "type": "integer" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date the stats were gathered." + }, + "stats": { + "type": "array", + "description": "The individual email activity stats.", + "items": { + "type": "object", + "properties": { + "metrics": { + "type": "object", + "properties": { + "blocks": { + "type": "integer", + "description": "The number of emails that were not allowed to be delivered by ISPs." + }, + "bounce_drops": { + "type": "integer", + "description": "The number of emails that were dropped because of a bounce." + }, + "bounces": { + "type": "integer", + "description": "The number of emails that bounced instead of being delivered." + }, + "clicks": { + "type": "integer", + "description": "The number of links that were clicked in your emails." + }, + "deferred": { + "type": "integer", + "description": "The number of emails that temporarily could not be delivered. " + }, + "delivered": { + "type": "integer", + "description": "The number of emails SendGrid was able to confirm were actually delivered to a recipient." + }, + "invalid_emails": { + "type": "integer", + "description": "The number of recipients who had malformed email addresses or whose mail provider reported the address as invalid." + }, + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "processed": { + "type": "integer", + "description": "Requests from your website, application, or mail client via SMTP Relay or the API that SendGrid processed." + }, + "requests": { + "type": "integer", + "description": "The number of emails that were requested to be delivered." + }, + "spam_report_drops": { + "type": "integer", + "description": "The number of emails that were dropped due to a recipient previously marking your emails as spam." + }, + "spam_reports": { + "type": "integer", + "description": "The number of recipients who marked your email as spam." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + }, + "unsubscribe_drops": { + "type": "integer", + "description": "The number of emails dropped due to a recipient unsubscribing from your emails." + }, + "unsubscribes": { + "type": "integer", + "description": "The number of recipients who unsubscribed from your emails." + } + } + } + } + } + } + }, + "required": [ + "date", + "stats" + ] + } + }, + "examples": { + "application/json": [ + { + "date": "2015-11-03", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-04", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-05", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-06", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-07", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-08", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-11-09", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/geo/stats": { + "get": { + "operationId": "GET_geo-stats", + "summary": "Retrieve email statistics by country and state/province.", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve your email statistics segmented by country and state/province.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "How many results to include on each page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "How many results to exclude.", + "required": false, + "type": "integer" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How you would like the statistics to be grouped. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must be in format YYYY-MM-DD", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. ", + "required": false, + "type": "string", + "default": "The date the request is made." + }, + { + "name": "country", + "in": "query", + "description": "The country you would like to see statistics for. Currently only supported for US and CA.", + "required": false, + "type": "string", + "enum": [ + "US", + "CA" + ] + }, + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/advanced_stats_country" + } + }, + "examples": { + "application/json": [ + { + "date": "2015-10-11", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-12", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-13", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-14", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-15", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-16", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-17", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-18", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-19", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-20", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-21", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 1, + "unique_clicks": 0, + "unique_opens": 1 + } + } + ] + }, + { + "date": "2015-10-22", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-23", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-24", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-25", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-26", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-27", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-28", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-29", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-30", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-31", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-01", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-02", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-03", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-04", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-05", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-06", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-07", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-08", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-09", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-10", + "stats": [ + { + "type": "province", + "name": "TX", + "metrics": { + "clicks": 0, + "opens": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + } + ] + } + } + }, + "x-stoplight": { + "id": "GET_geo-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/devices/stats": { + "get": { + "operationId": "GET_devices-stats", + "summary": "Retrieve email statistics by device type.", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve your email statistics segmented by the device type.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\n## Available Device Types\n| **Device** | **Description** | **Example** |\n|---|---|---|\n| Desktop | Email software on desktop computer. | I.E., Outlook, Sparrow, or Apple Mail. |\n| Webmail |\tA web-based email client. | I.E., Yahoo, Google, AOL, or Outlook.com. |\n| Phone | A smart phone. | iPhone, Android, Blackberry, etc.\n| Tablet | A tablet computer. | iPad, android based tablet, etc. |\n| Other | An unrecognized device. |\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "How many results to include on each page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "How many results to exclude.", + "required": false, + "type": "integer" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string" + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/advanced_stats_opens" + } + }, + "examples": { + "application/json": [ + { + "date": "2015-10-11", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-12", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-13", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-14", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-15", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-16", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-17", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-18", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-19", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-20", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-21", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 1, + "unique_opens": 1 + } + } + ] + }, + { + "date": "2015-10-22", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-23", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-24", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-25", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-26", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 2, + "unique_opens": 2 + } + } + ] + }, + { + "date": "2015-10-27", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-28", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-29", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-30", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-31", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-01", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-02", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-03", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-04", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-05", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-06", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-07", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-08", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-09", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-10", + "stats": [ + { + "type": "device", + "name": "Webmail", + "metrics": { + "opens": 0, + "unique_opens": 0 + } + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_devices-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/clients/stats": { + "get": { + "operationId": "GET_clients-stats", + "summary": "Retrieve email statistics by client type.", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve your email statistics segmented by client type.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/advanced_stats_opens" + } + }, + "examples": { + "application/json": [ + { + "date": "2014-10-01", + "stats": [ + { + "metrics": { + "opens": 1, + "unique_opens": 1 + }, + "name": "Gmail", + "type": "client" + } + ] + }, + { + "date": "2014-10-02", + "stats": [ + { + "metrics": { + "opens": 0, + "unique_opens": 0 + }, + "name": "Gmail", + "type": "client" + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_clients-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/clients/{client_type}/stats": { + "parameters": [ + { + "name": "client_type", + "in": "path", + "description": "Specifies the type of client to retrieve stats for. Must be either \"phone\", \"tablet\", \"webmail\", or \"desktop\".", + "required": true, + "type": "string", + "enum": [ + "phone", + "tablet", + "webmail", + "desktop" + ] + } + ], + "get": { + "operationId": "GET_clients-client_type-stats", + "summary": "Retrieve stats by a specific client type.", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve your email statistics segmented by a specific client type.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\n## Available Client Types\n- phone\n- tablet\n- webmail\n- desktop\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/advanced_stats_opens" + } + }, + "examples": { + "application/json": [ + { + "date": "2014-10-01", + "stats": [ + { + "metrics": { + "opens": 1, + "unique_opens": 1 + }, + "name": "Gmail", + "type": "client" + } + ] + }, + { + "date": "2014-10-02", + "stats": [ + { + "metrics": { + "opens": 0, + "unique_opens": 0 + }, + "name": "Gmail", + "type": "client" + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_clients-clienttype-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/mailbox_providers/stats": { + "get": { + "operationId": "GET_mailbox_providers-stats", + "summary": "Retrieve email statistics by mailbox provider.", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve your email statistics segmented by recipient mailbox provider.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of results to include on each page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The number of results to exclude.", + "required": false, + "type": "integer" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the stats. Must be either \"day\", \"wee\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "mailbox_providers", + "in": "query", + "description": "The mail box providers to get statistics for. You can include up to 10 by including this parameter multiple times.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/advanced_stats_mailbox_provider" + } + }, + "examples": { + "application/json": [ + { + "date": "2015-10-11", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-12", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-13", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-14", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-15", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-16", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-17", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-18", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-19", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-20", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-21", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 1, + "drops": 0, + "opens": 1, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 1 + } + } + ] + }, + { + "date": "2015-10-22", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-23", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-24", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-25", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-26", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 2, + "drops": 0, + "opens": 2, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 2 + } + } + ] + }, + { + "date": "2015-10-27", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-28", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-29", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-30", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-10-31", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-01", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-02", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-03", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-04", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-05", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-06", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-07", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-08", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-09", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + }, + { + "date": "2015-11-10", + "stats": [ + { + "type": "mailbox_provider", + "name": "Gmail", + "metrics": { + "blocks": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "drops": 0, + "opens": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0 + } + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_mailboxproviders-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/browsers/stats": { + "get": { + "operationId": "GET_browsers-stats", + "summary": "Retrieve email statistics by browser.", + "tags": [ + "Stats" + ], + "description": "**This endpoint allows you to retrieve your email statistics segmented by browser type.**\n\n**We only store up to 7 days of email activity in our database.** By default, 500 items will be returned per request via the Advanced Stats API endpoints.\n\nAdvanced Stats provide a more in-depth view of your email statistics and the actions taken by your recipients. You can segment these statistics by geographic location, device type, client type, browser, and mailbox provider. For more information about statistics, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "The number of results to include on each page.", + "required": false, + "type": "string" + }, + { + "name": "offset", + "in": "query", + "description": "The number of results to exclude.", + "required": false, + "type": "string" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the stats. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "name": "browsers", + "in": "query", + "description": "The browsers to get statistics for. You can include up to 10 different browsers by including this parameter multiple times.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/advanced_stats_clicks" + } + }, + "examples": { + "application/json": [ + { + "date": "2014-10-01", + "stats": [ + { + "metrics": { + "clicks": 0, + "unique_clicks": 0 + }, + "name": "Chrome", + "type": "browser" + }, + { + "metrics": { + "clicks": 1, + "unique_clicks": 1 + }, + "name": "Firefox", + "type": "browser" + } + ] + }, + { + "date": "2014-10-02", + "stats": [ + { + "metrics": { + "clicks": 0, + "unique_clicks": 0 + }, + "name": "Chrome", + "type": "browser" + }, + { + "metrics": { + "clicks": 1, + "unique_clicks": 1 + }, + "name": "Firefox", + "type": "browser" + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_browsers-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/subusers": { + "get": { + "operationId": "GET_subusers", + "summary": "List all Subusers", + "tags": [ + "Subusers API" + ], + "description": "This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API.\n\nFor more information about Subusers:\n\n* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html)\n* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "username", + "in": "query", + "description": "The username of this subuser.", + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "The number of results you would like to get in each request.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The number of subusers to skip.", + "type": "integer" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/subuser" + } + }, + "examples": { + "application/json": [ + { + "disabled": false, + "email": "example@example.com", + "id": 1234, + "username": "example_subuser" + }, + { + "disabled": false, + "email": "example2@example.com", + "id": 1234, + "username": "example_subuser2" + } + ] + } + }, + "401": { + "description": "Unexpected error in API call. See HTTP response body for details.", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "post": { + "operationId": "POST_subusers", + "summary": "Create Subuser", + "tags": [ + "Subusers API" + ], + "description": "This endpoint allows you to retrieve a list of all of your subusers. You can choose to retrieve specific subusers as well as limit the results that come back from the API.\n\nFor more information about Subusers:\n\n* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html)\n* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The username for this subuser." + }, + "email": { + "type": "string", + "description": "The email address of the subuser.", + "format": "email" + }, + "password": { + "type": "string", + "description": "The password this subuser will use when logging into SendGrid." + }, + "ips": { + "type": "array", + "description": "The IP addresses that should be assigned to this subuser.", + "items": { + "type": "string", + "format": "ipv4" + } + } + }, + "required": [ + "username", + "email", + "password", + "ips" + ], + "example": { + "username": "John@example.com", + "email": "John@example.com", + "password": "johns_password", + "ips": [ + "1.1.1.1", + "2.2.2.2" + ] + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/subuser_post" + }, + "examples": { + "application/json": { + "username": "example_subuser", + "user_id": 1234, + "email": "example@example.com", + "signup_session_token": "", + "authorization_token": "", + "credit_allocation": { + "type": "unlimited" + } + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "username exists" + }, + { + "message": "unable to validate IPs at this time" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "403": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "you dont have permission to access this resource" + } + ] + } + } + }, + "500": { + "description": "", + "schema": { + "type": "object" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "unable to validate IPs at this time" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_subusers", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/subusers/{subuser_name}": { + "parameters": [ + { + "name": "subuser_name", + "in": "path", + "required": true, + "type": "string" + } + ], + "patch": { + "operationId": "PATCH_subusers-subuser_name", + "summary": "Enable/disable a subuser", + "tags": [ + "Subusers API" + ], + "description": "This endpoint allows you to enable or disable a subuser.\n\nFor more information about Subusers:\n\n* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html)\n* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "disabled": { + "type": "boolean", + "description": "Whether or not this subuser is disabled. True means disabled, False means enabled." + } + }, + "example": { + "disabled": false + } + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "invalid username" + }, + { + "message": "no fields provided" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "500": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "unable to enable user" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_subusers-subusername", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + }, + "delete": { + "operationId": "DELETE_subusers-subuser_name", + "summary": "Delete a subuser", + "tags": [ + "Subusers API" + ], + "description": "This endpoint allows you to delete a subuser. This is a permanent action, once deleted a subuser cannot be retrieved.\n\nFor more information about Subusers:\n\n* [User Guide > Subusers](https://sendgrid.com/docs/User_Guide/Settings/Subusers/index.html)\n* [Classroom > How do I add more subusers to my account?](https://sendgrid.com/docs/Classroom/Basics/Account/how_do_i_add_more_subusers_to_my_account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_subusers-subusername", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/subusers/{subuser_name}/monitor": { + "parameters": [ + { + "name": "subuser_name", + "in": "path", + "description": "The name of the subuser for which to retrieve monitor settings.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_subusers-subuser_name-monitor", + "summary": "Retrieve monitor settings for a subuser", + "tags": [ + "Subusers API" + ], + "description": "Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/monitor" + }, + "examples": { + "application/json": { + "email": "example@example.com", + "frequency": 500 + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "No monitor settings for this user" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers-subusername-monitor", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "post": { + "operationId": "POST_subusers-subuser_name-monitor", + "summary": "Create monitor settings", + "tags": [ + "Subusers API" + ], + "description": "Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/monitor", + "example": { + "email": "example@example.com", + "frequency": 50000 + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/monitor" + }, + "examples": { + "application/json": { + "email": "example@example.com", + "frequency": 50000 + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "User already has a monitor" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_subusers-subusername-monitor", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "put": { + "operationId": "PUT_subusers-subuser_name-monitor", + "summary": "Update Monitor Settings for a subuser", + "tags": [ + "Subusers API" + ], + "description": "Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/monitor", + "example": { + "email": "example@example.com", + "frequency": 500 + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/monitor" + }, + "examples": { + "application/json": { + "email": "example@example.com", + "frequency": 500 + } + } + }, + "400": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": "email", + "message": "Email is required" + } + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PUT_subusers-subusername-monitor", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_subusers-subuser_name-monitor", + "summary": "Delete monitor settings", + "tags": [ + "Subusers API" + ], + "description": "Subuser monitor settings allow you to receive a sample of an outgoing message by a specific customer at a specific frequency of emails.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "No monitor settings for this user" + } + ] + } + } + } + }, + "x-stoplight": { + "id": "DELETE_subusers-subusername-monitor", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/subusers/reputations": { + "get": { + "operationId": "GET_subusers-reputations", + "summary": "Retrieve Subuser Reputations", + "tags": [ + "Subusers API" + ], + "description": "Subuser sender reputations give a good idea how well a sender is doing with regards to how recipients and recipient servers react to the mail that is being received. When a bounce, spam report, or other negative action happens on a sent email, it will effect your sender rating.\n\nThis endpoint allows you to request the reputations for your subusers.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "usernames", + "in": "query", + "type": "string" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "reputation": { + "type": "number", + "description": "The sender reputation this subuser has attained." + }, + "username": { + "type": "string", + "description": "The subuser that has this reputation.f" + } + }, + "required": [ + "reputation", + "username" + ] + } + }, + "examples": { + "application/json": [ + { + "username": "example_subuser", + "reputation": 99 + }, + { + "username": "example_subuser2", + "reputation": 95.2 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers-reputations", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/subusers/{subuser_name}/ips": { + "parameters": [ + { + "name": "subuser_name", + "in": "path", + "required": true, + "type": "string" + } + ], + "put": { + "operationId": "PUT_subusers-subuser_name-ips", + "summary": "Update IPs assigned to a subuser", + "tags": [ + "Subusers API" + ], + "description": "Each subuser should be assigned to an IP address, from which all of this subuser's mail will be sent. Often, this is the same IP as the parent account, but each subuser can have their own, or multiple, IP addresses as well. \n\nMore information:\n\n* [How to request more IPs](https://sendgrid.com/docs/Classroom/Basics/Account/adding_an_additional_dedicated_ip_to_your_account.html)\n* [IPs can be whitelabeled](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/ips.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "array", + "description": "The IP addresses you would like to assign to the subuser.", + "items": { + "type": "string", + "format": "ipv4" + }, + "example": [ + "127.0.0.1" + ] + } + }, + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "ips": { + "type": "array", + "description": "The IP addresses that are assigned to the subuser.", + "items": { + "type": "string", + "format": "ipv4" + } + } + } + }, + "examples": { + "application/json": { + "ips": [ + "127.0.0.1" + ] + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "x-stoplight": { + "id": "PUT_subusers-subusername-ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/subusers/{subuser_name}/stats/monthly": { + "parameters": [ + { + "name": "subuser_name", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_subusers-subuser_name-stats-monthly", + "summary": "Retrieve the monthly email statistics for a single subuser", + "tags": [ + "Subusers API" + ], + "description": "**This endpoint allows you to retrive the monthly email statistics for a specific subuser.**\n\nWhile you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats for your subusers. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings.\n\nWhen using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics:\n`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`.\n\nFor more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "date", + "in": "query", + "description": "The date of the month to retrieve statistics for. Must be formatted YYYY-MM-DD", + "required": true, + "type": "string" + }, + { + "name": "sort_by_metric", + "in": "query", + "description": "The metric that you want to sort by. Metrics that you can sort by are: `blocks`, `bounces`, `clicks`, `delivered`, `opens`, `requests`, `unique_clicks`, `unique_opens`, and `unsubscribes`.'", + "required": false, + "type": "string", + "default": "delivered" + }, + { + "name": "sort_by_direction", + "in": "query", + "description": "The direction you want to sort.", + "required": false, + "type": "string", + "default": "desc", + "enum": [ + "desc", + "asc" + ] + }, + { + "name": "limit", + "in": "query", + "description": "Optional field to limit the number of results returned.", + "required": false, + "type": "integer", + "default": 5 + }, + { + "name": "offset", + "in": "query", + "description": "Optional beginning point in the list to retrieve from.", + "required": false, + "type": "integer", + "default": 0 + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/subuser_stats" + }, + "examples": { + "application/json": { + "date": "2016-02-01", + "stats": [ + { + "first_name": "John", + "last_name": "Doe", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 5, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 10, + "processed": 10, + "requests": 10, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + }, + "name": "user1", + "type": "subuser" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers-subusername-stats-monthly", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/subusers/stats/monthly": { + "get": { + "operationId": "GET_subusers-stats-monthly", + "summary": "Retrieve monthly stats for all subusers", + "tags": [ + "Subusers API" + ], + "description": "**This endpoint allows you to retrieve the monthly email statistics for all subusers over the given date range.**\n\nWhile you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats for your subusers. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings.\n\nWhen using the `sort_by_metric` to sort your stats by a specific metric, you can not sort by the following metrics:\n`bounce_drops`, `deferred`, `invalid_emails`, `processed`, `spam_report_drops`, `spam_reports`, or `unsubscribe_drops`.\n\nFor more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "date", + "in": "query", + "description": "The date of the month to retrieve statistics for. Must be formatted YYYY-MM-DD", + "required": true, + "type": "string" + }, + { + "name": "subuser", + "in": "query", + "description": "A substring search of your subusers.", + "required": false, + "type": "string" + }, + { + "name": "sort_by_metric", + "in": "query", + "description": "The metric that you want to sort by. Metrics that you can sort by are: `blocks`, `bounces`, `clicks`, `delivered`, `opens`, `requests`, `unique_clicks`, `unique_opens`, and `unsubscribes`.'", + "required": false, + "type": "string", + "default": "delivered" + }, + { + "name": "sort_by_direction", + "in": "query", + "description": "The direction you want to sort.", + "required": false, + "type": "string", + "default": "desc", + "enum": [ + "desc", + "asc" + ] + }, + { + "name": "limit", + "in": "query", + "description": "Optional field to limit the number of results returned.", + "required": false, + "type": "integer", + "default": 5 + }, + { + "name": "offset", + "in": "query", + "description": "Optional beginning point in the list to retrieve from.", + "required": false, + "type": "integer", + "default": 0 + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/subuser_stats" + }, + "examples": { + "application/json": { + "date": "2016-02-01", + "stats": [ + { + "first_name": "John", + "last_name": "Doe", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 1, + "processed": 0, + "requests": 100, + "spam_report_drops": 0, + "spam_reports": 99, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + }, + "name": "user1", + "type": "subuser" + }, + { + "first_name": "Jane", + "last_name": "Doe", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 5, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 10, + "processed": 10, + "requests": 10, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + }, + "name": "user2", + "type": "subuser" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers-stats-monthly", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/subusers/stats/sums": { + "get": { + "operationId": "GET_subusers-stats-sums", + "summary": " Retrieve the totals for each email statistic metric for all subusers.", + "tags": [ + "Subusers API" + ], + "description": "**This endpoint allows you to retrieve the total sums of each email statistic metric for all subusers over the given date range.**\n\n\nWhile you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings.\n\nFor more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "sort_by_direction", + "in": "query", + "description": "The direction you want to sort. ", + "required": false, + "type": "string", + "default": "desc", + "enum": [ + "desc", + "asc" + ] + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Limits the number of results returned per page.", + "required": false, + "type": "integer", + "default": 5 + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list to begin retrieving results from.", + "required": false, + "type": "integer", + "default": 0 + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Defaults to today. Must follow format YYYY-MM-DD.", + "required": false, + "type": "string" + }, + { + "name": "sort_by_metric", + "in": "query", + "description": "The metric that you want to sort by. Must be a single metric.", + "required": false, + "type": "string", + "default": "delivered" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/category_stats" + }, + "examples": { + "application/json": { + "date": "2015-10-11", + "stats": [] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers-stats-sums", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/subusers/stats": { + "get": { + "operationId": "GET_subusers-stats", + "summary": "Retrieve email statistics for your subusers.", + "tags": [ + "Subusers API" + ], + "description": "**This endpoint allows you to retrieve the email statistics for the given subusers.**\n\nYou may retrieve statistics for up to 10 different subusers by including an additional _subusers_ parameter for each additional subuser.\n\nWhile you can always view the statistics for all email activity on your account, subuser statistics enable you to view specific segments of your stats. Emails sent, bounces, and spam reports are always tracked for subusers. Unsubscribes, clicks, and opens are tracked if you have enabled the required settings.\n\nFor more information, see our [User Guide](https://sendgrid.com/docs/User_Guide/Statistics/subuser.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Limits the number of results returned per page.", + "required": false, + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list to begin retrieving results from.", + "required": false, + "type": "integer" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How to group the statistics. Must be either \"day\", \"week\", or \"month\".", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "name": "subusers", + "in": "query", + "description": "The subuser you want to retrieve statistics for. You may include this parameter up to 10 times to retrieve statistics for multiple subusers.", + "required": true, + "type": "string" + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics to retrieve. Defaults to today.", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/stats" + }, + "examples": { + "application/json": [ + { + "date": "2015-10-01", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-02", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-03", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-04", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-05", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-06", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-07", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-08", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-09", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + }, + { + "date": "2015-10-10", + "stats": [ + { + "type": "subuser", + "name": "Matt_subuser", + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + } + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_subusers-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/suppression/unsubscribes": { + "get": { + "operationId": "GET_suppression-unsubscribes", + "summary": "Retrieve all global suppressions", + "tags": [ + "Suppressions - Global Suppressions" + ], + "description": "**This endpoint allows you to retrieve a list of all email address that are globally suppressed.**\n\nA global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "start_time", + "in": "query", + "description": "Refers start of the time range in unix timestamp when an unsubscribe email was created (inclusive).", + "type": "integer" + }, + { + "name": "end_time", + "in": "query", + "description": "Refers end of the time range in unix timestamp when an unsubscribe email was created (inclusive).", + "type": "integer" + }, + { + "name": "limit", + "in": "query", + "description": "The number of results to display on each page.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list of results to begin displaying global suppressions.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "created": { + "type": "integer", + "description": "A Unix timestamp indicating when the recipient was added to the global suppression list." + }, + "email": { + "type": "string", + "description": "The email address of the recipient who is globally suppressed." + } + }, + "required": [ + "created", + "email" + ] + } + }, + "examples": { + "application/json": [ + { + "created": 1443651141, + "email": "user1@example.com" + }, + { + "created": 1443651154, + "email": "user2@example.com" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_suppression-unsubscribes", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/asm/suppressions/global": { + "post": { + "operationId": "POST_asm-suppressions-global", + "summary": "Add recipient addresses to the global suppression group.", + "tags": [ + "Suppressions - Global Suppressions" + ], + "description": "**This endpoint allows you to add one or more email addresses to the global suppressions group.**\n\nA global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "recipient_emails": { + "type": "array", + "description": "The email address, or addresses, that you want to add to the global suppressions group.", + "items": { + "type": "string" + } + } + }, + "example": { + "recipient_emails": [ + "test1@example.com", + "test2@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "recipient_emails": { + "type": "array", + "description": "The email addresses that are globally suppressed", + "items": { + "type": "string" + } + } + }, + "required": [ + "recipient_emails" + ] + }, + "examples": { + "application/json": { + "recipient_emails": [ + "test1@example.com", + "test2@example.com" + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_asm-suppressions-global", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/asm/suppressions/global/{email}": { + "parameters": [ + { + "name": "email", + "in": "path", + "description": "The email address of the global suppression you want to retrieve. Or, if you want to check if an email address is on the global suppressions list, enter that email address here.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_asm-suppressions-global-email", + "summary": "Retrieve a Global Suppression", + "tags": [ + "Suppressions - Global Suppressions" + ], + "description": "**This endpoint allows you to retrieve a global suppression. You can also use this endpoint to confirm if an email address is already globally suppresed.**\n\nIf the email address you include in the URL path parameter `{email}` is alreayd globally suppressed, the response will include that email address. If the address you enter for `{email}` is not globally suppressed, an empty JSON object `{}` will be returned.\n\nA global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "Retrieve a Global Suppression response", + "type": "object", + "properties": { + "recipient_email": { + "type": "string", + "description": "The email address that is globally suppressed. This will be an empty object if the email address you included in your call is not globally suppressed." + } + }, + "required": [ + "recipient_email" + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_asm-suppressions-global-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "delete": { + "operationId": "DELETE_asm-suppressions-global-email", + "summary": "Delete a Global Suppression", + "tags": [ + "Suppressions - Global Suppressions" + ], + "description": "**This endpoint allows you to remove an email address from the global suppressions group.**\n\nA global suppression (or global unsubscribe) is an email address of a recipient who does not want to receive any of your messages. A globally suppressed recipient will be removed from any email you send. For more information, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Suppressions/global_unsubscribes.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_asm-suppressions-global-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/asm/groups/{group_id}/suppressions": { + "parameters": [ + { + "name": "group_id", + "in": "path", + "description": "The id of the unsubscribe group that you are adding suppressions to.", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_asm-groups-group_id-suppressions", + "summary": "Add suppressions to a suppression group", + "tags": [ + "Suppressions - Suppressions" + ], + "description": "**This endpoint allows you to add email addresses to an unsubscribe group.**\n\nIf you attempt to add suppressions to a group that has been deleted or does not exist, the suppressions will be added to the global suppressions list.\n\nSuppressions are recipient email addresses that are added to [unsubscribe groups](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html). Once a recipient's address is on the suppressions list for an unsubscribe group, they will not receive any emails that are tagged with that unsubscribe group.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "recipient_emails": { + "type": "array", + "description": "The email address that you want to add to the unsubscribe group.", + "items": { + "type": "string" + } + } + }, + "required": [ + "recipient_emails" + ], + "example": { + "recipient_emails": [ + "test1@example.com", + "test2@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "recipient_emails": { + "type": "array", + "description": "The email address that were added to the suppressions list.", + "items": { + "type": "string" + } + } + }, + "required": [ + "recipient_emails" + ] + }, + "examples": { + "application/json": { + "recipient_emails": [ + "test1@example.com", + "test2@example.com" + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_asm-groups-groupid-suppressions", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_asm-groups-group_id-suppressions", + "summary": "Retrieve all suppressions for a suppression group", + "tags": [ + "Suppressions - Suppressions" + ], + "description": "**This endpoint allows you to retrieve all suppressed email addresses belonging to the given group.**\n\nSuppressions are recipient email addresses that are added to [unsubscribe groups](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html). Once a recipient's address is on the suppressions list for an unsubscribe group, they will not receive any emails that are tagged with that unsubscribe group.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "description": "The list of email addresses belonging to the given suppression group.", + "items": { + "type": "string" + } + }, + "examples": { + "application/json": [ + "example@example.com", + "example2@example.com" + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_asm-groups-groupid-suppressions", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/asm/groups/{group_id}/suppressions/{email}": { + "parameters": [ + { + "name": "group_id", + "in": "path", + "description": "The id of the suppression group that you are removing an email address from.", + "required": true, + "type": "string" + }, + { + "name": "email", + "in": "path", + "description": "The email address that you want to remove from the suppression group.", + "required": true, + "type": "string" + } + ], + "delete": { + "operationId": "DELETE_asm-groups-group_id-suppressions-email", + "summary": "Delete a suppression from a suppression group", + "tags": [ + "Suppressions - Suppressions" + ], + "description": "**This endpoint allows you to remove a suppressed email address from the given suppression group.**\n\nSuppressions are recipient email addresses that are added to [unsubscribe groups](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html). Once a recipient's address is on the suppressions list for an unsubscribe group, they will not receive any emails that are tagged with that unsubscribe group.", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_asm-groups-groupid-suppressions-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": 204, + "dynamic": false + } + } + } + }, + "/asm/suppressions": { + "get": { + "operationId": "GET_asm-suppressions", + "summary": "Retrieve all suppressions", + "tags": [ + "Suppressions - Suppressions" + ], + "description": "**This endpoint allows you to retrieve a list of all suppressions.**\n\nSuppressions are a list of email addresses that will not receive content sent under a given [group](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The email address that was suppressed." + }, + "group_id": { + "type": "integer", + "description": "The id of the suppression group that this email address belongs to." + }, + "group_name": { + "type": "string", + "description": "The name of the suppression group that this email address belongs to." + }, + "created_at": { + "type": "integer", + "description": "A UNIX timestamp indicating when the suppression was created." + } + }, + "required": [ + "email", + "group_id", + "group_name", + "created_at" + ] + } + }, + "examples": { + "application/json": [ + { + "email": "test1@example.com", + "group_id": 1, + "group_name": "Weekly News", + "created_at": 1410986704 + }, + { + "email": "test1@example.com", + "group_id": 2, + "group_name": "Daily News", + "created_at": 1411493671 + }, + { + "email": "test2@example.com", + "group_id": 2, + "group_name": "Daily News", + "created_at": 1411493671 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_asm-suppressions", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/asm/suppressions/{email}": { + "parameters": [ + { + "name": "email", + "in": "path", + "description": "The email address that you want to search suppression groups for.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_asm-suppressions-email", + "summary": "Retrieve all suppression groups for an email address", + "tags": [ + "Suppressions - Suppressions" + ], + "description": "**This endpoint returns the list of all groups that the given email address has been unsubscribed from.**\n\nSuppressions are a list of email addresses that will not receive content sent under a given [group](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "suppressions": { + "type": "array", + "description": "The array of suppression groups.", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The description of the suppression group." + }, + "id": { + "type": "integer", + "description": "The id of the suppression group." + }, + "is_default": { + "type": "boolean", + "description": "Indicates if the suppression group is set as the default." + }, + "name": { + "type": "string", + "description": "The name of the suppression group." + }, + "suppressed": { + "type": "boolean", + "description": "Indicates if the given email address is suppressed for this group." + } + }, + "required": [ + "description", + "id", + "is_default", + "name", + "suppressed" + ] + } + } + }, + "required": [ + "suppressions" + ] + }, + "examples": { + "application/json": { + "suppressions": [ + { + "description": "Optional description.", + "id": 1, + "is_default": true, + "name": "Weekly News", + "suppressed": true + }, + { + "description": "Some daily news.", + "id": 2, + "is_default": true, + "name": "Daily News", + "suppressed": true + }, + { + "description": "An old group.", + "id": 2, + "is_default": false, + "name": "Old News", + "suppressed": false + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_asm-suppressions-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/asm/groups/{group_id}/suppressions/search": { + "parameters": [ + { + "name": "group_id", + "in": "path", + "description": "The ID of the suppression group that you would like to search.", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_asm-groups-group_id-suppressions-search", + "summary": "Search for suppressions within a group", + "tags": [ + "Suppressions - Suppressions" + ], + "description": "**This endpoint allows you to search a suppression group for multiple suppressions.**\n\nWhen given a list of email addresses and a group ID, this endpoint will return only the email addresses that have been unsubscribed from the given group.\n\nSuppressions are a list of email addresses that will not receive content sent under a given [group](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "recipient_emails": { + "type": "array", + "description": "The list of email address that you want to search the suppression group for.", + "items": { + "type": "string" + } + } + }, + "required": [ + "recipient_emails" + ], + "example": { + "recipient_emails": [ + "exists1@example.com", + "exists2@example.com", + "doesnotexists@example.com" + ] + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "recipient_emails": { + "type": "array", + "description": "The email address from your search that do exist in the suppression group.", + "items": { + "type": "string" + } + } + }, + "required": [ + "recipient_emails" + ] + }, + "examples": { + "application/json": { + "recipient_emails": [ + "exists1@example.com", + "exists2@example.com" + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_asm-groups-groupid-suppressions-search", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/asm/groups": { + "get": { + "operationId": "GET_asm-groups", + "summary": "Retrieve information about multiple suppression groups", + "tags": [ + "Suppressions - Unsubscribe Groups" + ], + "description": "**This endpoint allows you to retrieve information about multiple suppression groups.**\n\nThis endpoint will return information for each group ID that you include in your request. To add a group ID to your request, simply append `&id=` followed by the group ID.\n\nSuppressions are a list of email addresses that will not receive content sent under a given [group](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html).\n\nSuppression groups, or [unsubscribe groups](https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html), allow you to label a category of content that you regularly send. This gives your recipients the ability to opt out of a specific set of your email. For example, you might define a group for your transactional email, and one for your marketing email so that your users can continue recieving your transactional email witout having to receive your marketing content.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "The ID of a suppression group that you want to retrieve information for.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/suppression_group" + } + }, + "examples": { + "application/json": [ + { + "id": 100, + "name": "Newsletters", + "description": "Our monthly newsletter.", + "last_email_sent_at": null, + "is_default": true, + "unsubscribes": 400 + }, + { + "id": 101, + "name": "Alerts", + "description": "Emails triggered by user-defined rules.", + "last_email_sent_at": null, + "is_default": false, + "unsubscribes": 1 + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_asm-groups", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "post": { + "operationId": "POST_asm-groups", + "summary": "Create a new suppression group", + "tags": [ + "Suppressions - Unsubscribe Groups" + ], + "description": "**This endpoint allows you to create a new suppression group.**\n\nSuppression groups, or unsubscribe groups, are specific types or categories of email that you would like your recipients to be able to unsubscribe from. For example: Daily Newsletters, Invoices, System Alerts.\n\nThe **name** and **description** of the unsubscribe group will be visible by recipients when they are managing their subscriptions.\n\nEach user can create up to 25 different suppression groups.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name that you would like to use for your new suppression group.", + "maxLength": 30 + }, + "description": { + "type": "string", + "description": "A brief description of your new suppression group.", + "maxLength": 100 + }, + "is_default": { + "type": "boolean", + "description": "Indicates if you would like this to be your default suppression group." + } + }, + "required": [ + "name", + "description" + ], + "example": { + "name": "Product Suggestions", + "description": "Suggestions for products our users might like.", + "is_default": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the suppression group." + }, + "name": { + "type": "string", + "description": "The name of the suppression group." + }, + "description": { + "type": "string", + "description": "A brief description of the suppression group." + }, + "is_default": { + "type": "boolean", + "description": "Indicates if this is the default suppression group." + } + }, + "required": [ + "id", + "name", + "description", + "is_default" + ] + }, + "examples": { + "application/json": { + "id": 103, + "name": "Product Suggestions", + "description": "Suggestions for products our users might like.", + "is_default": false + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_asm-groups", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/asm/groups/{group_id}": { + "parameters": [ + { + "name": "group_id", + "in": "path", + "description": "The ID of the suppression group you would like to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_asm-groups-group_id", + "summary": "Get information on a single suppression group.", + "tags": [ + "Suppressions - Unsubscribe Groups" + ], + "description": "**This endpoint allows you to retrieve a single suppression group.**\n\nSuppression groups, or unsubscribe groups, are specific types or categories of email that you would like your recipients to be able to unsubscribe from. For example: Daily Newsletters, Invoices, System Alerts.\n\nThe **name** and **description** of the unsubscribe group will be visible by recipients when they are managing their subscriptions.\n\nEach user can create up to 25 different suppression groups.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "The description of the suppression group." + }, + "id": { + "type": "integer", + "description": "The ID of the suppression group." + }, + "is_default": { + "type": "boolean", + "description": "Indicates if this is the default suppression group." + }, + "last_email_sent_at": { + "type": "null", + "description": "A unix timestamp indicating the last time this group was assigned to an email." + }, + "name": { + "type": "string", + "description": "The name of the suppression group." + }, + "unsubscribes": { + "type": "integer", + "description": "The number of unsubscribes, or suppressions, in this group." + } + } + }, + "examples": { + "application/json": { + "description": "Our monthly newsletter.", + "id": 100, + "is_default": true, + "last_email_sent_at": null, + "name": "Newsletters", + "unsubscribes": 400 + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_asm-groups-groupid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_asm-groups-group_id", + "summary": "Update a suppression group.", + "tags": [ + "Suppressions - Unsubscribe Groups" + ], + "description": "**This endpoint allows you to update or change a suppression group.**\n\nSuppression groups, or unsubscribe groups, are specific types or categories of email that you would like your recipients to be able to unsubscribe from. For example: Daily Newsletters, Invoices, System Alerts.\n\nThe **name** and **description** of the unsubscribe group will be visible by recipients when they are managing their subscriptions.\n\nEach user can create up to 25 different suppression groups.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The id of the suppression group." + }, + "name": { + "type": "string", + "description": "The name of the suppression group. Each group created by a user must have a unique name.", + "maxLength": 30 + }, + "description": { + "type": "string", + "description": "The description of the suppression group.", + "maxLength": 100 + }, + "is_default": { + "type": "boolean", + "description": "Indicates if the suppression group is set as the default group." + } + }, + "required": [ + "name" + ], + "example": { + "id": 103, + "name": "Item Suggestions", + "description": "Suggestions for items our users might like." + } + } + }, + { + "$ref": "#/parameters/trait:authorizationHeader:Authorization" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/suppression_group" + }, + "examples": { + "application/json": { + "id": 103, + "name": "Item Suggestions", + "description": "Suggestions for items our users might like." + } + } + } + }, + "x-stoplight": { + "id": "PATCH_asm-groups-groupid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_asm-groups-group_id", + "summary": "Delete a suppression group.", + "tags": [ + "Suppressions - Unsubscribe Groups" + ], + "description": "**This endpoint allows you to delete a suppression group.**\n\nYou can only delete groups that have not been attached to sent mail in the last 60 days. If a recipient uses the \"one-click unsubscribe\" option on an email associated with a deleted group, that recipient will be added to the global suppression list.\n\nSuppression groups, or unsubscribe groups, are specific types or categories of email that you would like your recipients to be able to unsubscribe from. For example: Daily Newsletters, Invoices, System Alerts.\n\nThe **name** and **description** of the unsubscribe group will be visible by recipients when they are managing their subscriptions.\n\nEach user can create up to 25 different suppression groups.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_asm-groups-groupid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": 204, + "dynamic": false + } + } + } + }, + "/scopes/requests": { + "get": { + "operationId": "GET_v3-scopes-requests", + "summary": "Retrieve access requests", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to retrieve a list of all recent access requests.\n\n**Note:** The Response Header's 'link' parameter will include pagination info. For example:\n\nlink: ```; rel=\"first\"; title=\"1\", ; rel=\"last\"; title=\"2\", ; rel=\"prev\"; title=\"1\"```", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Optional field to limit the number of results returned.", + "type": "integer", + "default": 50 + }, + { + "name": "offset", + "in": "query", + "description": "Optional beginning point in the list to retrieve from.", + "type": "integer", + "default": 0 + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Request ID" + }, + "scope_group_name": { + "type": "string", + "description": "Name of group of scopes associated to page teammate is requesting access to" + }, + "username": { + "type": "string", + "description": "Teammate's username" + }, + "email": { + "type": "string", + "description": "Teammate's email" + }, + "first_name": { + "type": "string", + "description": "Teammate's first name" + }, + "last_name": { + "type": "string", + "description": "Teammate's last name" + } + } + } + }, + "examples": { + "application/json": [ + { + "id": 1, + "scope_group_name": "Mail Settings", + "username": "teammate1", + "email": "teammate1@example.com", + "first_name": "Teammate", + "last_name": "One" + }, + { + "id": 2, + "scope_group_name": "Stats", + "username": "teammate2", + "email": "teammate2@example.com", + "first_name": "Teammate", + "last_name": "Two" + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_v3-scopes-requests", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/scopes/requests/{request_id}": { + "parameters": [ + { + "name": "request_id", + "in": "path", + "description": "The ID of the request that you want to deny.", + "required": true, + "type": "string" + } + ], + "delete": { + "operationId": "DELETE_v3-scopes-requests-request_id", + "summary": "Deny access request", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to deny an attempt to access your account.\n\n**Note:** Only teammate admins may delete a teammate's access request.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "204": { + "description": "" + }, + "401": { + "description": "" + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Cannot find request", + "field": "request_id" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_v3-scopes-requests-request_id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/scopes/requests/{request_id}/approve": { + "parameters": [ + { + "name": "request_id", + "in": "path", + "description": "The ID of the request that you want to approve.", + "required": true, + "type": "string" + } + ], + "patch": { + "operationId": "PATCH_v3-scopes-requests-approve-id", + "summary": "Approve access request", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to approve an access attempt.\n\n**Note:** Only teammate admins may approve another teammate’s access request.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "scope_group_name": { + "type": "string", + "description": "name of feature teammate will be given access to" + } + } + }, + "examples": { + "application/json": { + "scope_group_name": "Stats" + } + } + }, + "401": { + "description": "", + "schema": { + "type": "object" + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_v3-scopes-requests-approve-id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/teammates/pending/{token}/resend": { + "parameters": [ + { + "name": "token", + "in": "path", + "description": "The token for the invite that you want to resend.", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_v3-teammates-pending-token-resend", + "summary": "Resend teammate invite", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to resend a teammate invite.\n\n**Note:** Teammate invitations will expire after 7 days. Resending an invite will reset the expiration date.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "ID to identify invite" + }, + "email": { + "type": "string", + "description": "Teammate's email address" + }, + "scopes": { + "type": "array", + "description": "Initial set of permissions to give to teammate if they accept the invite", + "items": { + "type": "string" + } + }, + "is_admin": { + "type": "boolean", + "description": "Set to true if teammate should have admin privileges" + } + } + }, + "examples": { + "application/json": { + "pending_id": "abc123abc", + "email": "teammate1@example.com", + "scopes": [ + "user.profile.read", + "user.profile.update" + ], + "is_admin": false + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "invalid pending key", + "field": "pending_key" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_v3-teammates-pending-token-resend", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/teammates/pending": { + "get": { + "operationId": "GET_v3-teammates-pending", + "summary": "Retrieve all pending teammates", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to retrieve a list of all pending teammate invitations.\n\n**Note:** Each teammate invitation is valid for 7 days. Users may resend the invite to refresh the expiration date.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Email address teammate invite will be sent to" + }, + "scopes": { + "type": "array", + "description": "List of permissions to give teammate if they accept", + "items": { + "type": "string" + } + }, + "is_admin": { + "type": "boolean", + "description": "Set to true to indicate teammate should have the same set of permissions as parent user" + }, + "token": { + "type": "string", + "description": "Invitation token used to identify user" + }, + "expiration_date": { + "type": "integer", + "description": "timestamp indicates when invite will expire. Expiration is 7 days after invite creation" + } + } + } + } + } + }, + "examples": { + "application/json": { + "result": [ + { + "email": "user1@example.com", + "scopes": [ + "user.profile.read", + "user.profile.edit" + ], + "is_admin": false, + "pending_id": "abcd123abc", + "expiration_date": 1456424263 + }, + { + "email": "user2@example.com", + "scopes": [], + "is_admin": true, + "pending_id": "bcde234bcd", + "expiration_date": 1456424263 + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_v3-teammates-pending", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/teammates/pending/{token}": { + "parameters": [ + { + "name": "token", + "in": "path", + "description": "The token for the invite you want to delete.", + "required": true, + "type": "string" + } + ], + "delete": { + "operationId": "DELETE_v3-teammates-pending-token", + "summary": "Delete pending teammate", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to delete a pending teammate invite.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "204": { + "description": "" + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_v3-teammates-pending-token", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/teammates": { + "post": { + "operationId": "POST_v3-teammates", + "summary": "Invite teammate", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to send a teammate invitation via email with a predefined set of scopes, or permissions.\n\n**Note:** A teammate invite will expire after 7 days, but you may resend the invite at any time to reset the expiration date.\n\nEssentials, [Legacy Lite](https://sendgrid.com/docs/Classroom/Basics/Billing/legacy_lite_plan.html), and Free Trial users may create up to one teammate per account. There are no limits for how many teammates a Pro or higher account may create.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "New teammate's email", + "minLength": 5, + "maxLength": 255, + "pattern": "^.*@.*\\..*" + }, + "scopes": { + "type": "array", + "description": "Set to specify list of scopes that teammate should have. Should be empty if teammate is an admin.", + "items": { + "type": "string" + } + }, + "is_admin": { + "type": "boolean", + "default": false, + "description": "Set to true if teammate should be an admin user" + } + }, + "required": [ + "email", + "scopes", + "is_admin" + ], + "example": { + "email": "teammate1@example.com", + "scopes": [ + "user.profile.read", + "user.profile.update" + ], + "is_admin": false + } + } + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "Token to identify invite" + }, + "email": { + "type": "string", + "description": "Teammate's email address" + }, + "scopes": { + "type": "array", + "description": "Initial set of permissions to give to teammate if they accept the invite", + "items": {} + }, + "is_admin": { + "type": "boolean", + "description": "Set to true if teammate should have admin privileges" + } + } + }, + "examples": { + "application/json": { + "email": "teammate1@example.com", + "scopes": [ + "user.profile.read", + "user.profile.update" + ], + "is_admin": false + } + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_v3-teammates", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "get": { + "operationId": "GET_v3-teammates", + "summary": "Retrieve all teammates", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to retrieve a list of all current teammates.\n\n**Note:** The Response Header will include pagination info. For example:\n\nlink: ```; rel=\"first\"; title=\"1\", ; rel=\"last\"; title=\"2\", ; rel=\"prev\"; title=\"1\"```", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Number of items to return", + "type": "integer", + "default": 500, + "minimum": 0, + "maximum": 500 + }, + { + "name": "offset", + "in": "query", + "description": "Paging offset", + "type": "integer", + "default": 0, + "minimum": 0 + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Teammate's username" + }, + "email": { + "type": "string", + "description": "Teammate's email" + }, + "first_name": { + "type": "string", + "description": "Teammate's first name" + }, + "last_name": { + "type": "string", + "description": "Teammate's last name" + }, + "user_type": { + "type": "string", + "description": "Indicate the type of user: owner user, teammate admin user, or normal teammate", + "enum": [ + "admin", + "owner", + "teammate" + ] + }, + "is_admin": { + "type": "boolean", + "description": "Set to true if teammate has admin privileges" + }, + "phone": { + "type": "string", + "description": "(optional) Teammate's phone number" + }, + "website": { + "type": "string", + "description": "(optional) Teammate's website" + }, + "address": { + "type": "string", + "description": "(optional) Teammate's address" + }, + "address2": { + "type": "string", + "description": "(optional) Teammate's address" + }, + "city": { + "type": "string", + "description": "(optional) Teammate's city" + }, + "state": { + "type": "string", + "description": "(optional) Teammate's state" + }, + "zip": { + "type": "string", + "description": "(optional) Teammate's zip" + }, + "country": { + "type": "string", + "description": "(optional) Teammate's country" + } + } + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_v3-teammates", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/teammates/{username}": { + "parameters": [ + { + "name": "username", + "in": "path", + "description": "The username of the teammate that you want to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_v3-teammates-username", + "summary": "Retrieve specific teammate", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to retrieve a specific teammate by username.", + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Teammate's username" + }, + "first_name": { + "type": "string", + "description": "Teammate's first name" + }, + "last_name": { + "type": "string", + "description": "Teammate's last name" + }, + "email": { + "type": "string", + "description": "Teammate's email" + }, + "scopes": { + "type": "array", + "description": "Scopes associated to teammate", + "items": {} + }, + "user_type": { + "type": "string", + "description": "Indicate the type of user: account owner, teammate admin user, or normal teammate", + "enum": [ + "admin", + "owner", + "teammate" + ] + }, + "is_admin": { + "type": "boolean", + "description": "Set to true if teammate has admin privileges" + }, + "phone": { + "type": "string", + "description": "(optional) Teammate's phone number" + }, + "website": { + "type": "string", + "description": "(optional) Teammate's website" + }, + "address": { + "type": "string", + "description": "(optional) Teammate's address" + }, + "address2": { + "type": "string", + "description": "(optional) Teammate's address" + }, + "city": { + "type": "string", + "description": "(optional) Teammate's city" + }, + "state": { + "type": "string", + "description": "(optional) Teammate's state" + }, + "zip": { + "type": "string", + "description": "(optional) Teammate's zip" + }, + "country": { + "type": "string", + "description": "(optional) Teammate's country" + } + } + }, + "examples": { + "application/json": { + "username": "teammate1", + "first_name": "Jane", + "last_name": "Doe", + "email": "teammate1@example.com", + "scopes": [ + "user.profile.read", + "user.profile.update", + "..." + ], + "user_type": "admin", + "is_admin": true, + "phone": "123-345-3453", + "website": "www.example.com", + "company": "ACME Inc.", + "address": "123 Acme St", + "address2": "", + "city": "City", + "state": "CA", + "country": "USA", + "zip": "12345" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_v3-teammates-username", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_v3-teammates-username", + "summary": "Update teammate's permissions", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to update a teammate’s permissions.\n\nTo turn a teammate into an admin, the request body should contain an `is_admin` set to `true`. Otherwise, set `is_admin` to `false` and pass in all the scopes that a teammate should have.\n\n**Only the parent user or other admin teammates can update another teammate’s permissions.**\n\n**Admin users can only update permissions.**", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "description": "Provide list of scopes that should be given to teammate. If specifying list of scopes, is_admin should be set to False.", + "items": { + "type": "string" + } + }, + "is_admin": { + "type": "boolean", + "description": "Set to True if this teammate should be promoted to an admin user. If True, scopes should be an empty array." + } + }, + "required": [ + "scopes", + "is_admin" + ], + "example": { + "scopes": [ + "user.profile.read", + "user.profile.edit" + ], + "is_admin": false + } + } + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Teammate's username" + }, + "first_name": { + "type": "string", + "description": "Teammate's first name" + }, + "last_name": { + "type": "string", + "description": "Teammate's last name" + }, + "email": { + "type": "string", + "description": "Teammate's email address" + }, + "scopes": { + "type": "array", + "description": "Scopes given to teammate", + "items": { + "type": "string" + } + }, + "user_type": { + "type": "string", + "description": "Indicate the type of user: owner user, teammate admin user, or normal teammate", + "enum": [ + "admin", + "owner", + "teammate" + ] + }, + "is_admin": { + "type": "boolean", + "description": "Set to true if teammate has admin priveleges" + }, + "phone": { + "type": "string", + "description": "(optional) Teammate's phone number" + }, + "website": { + "type": "string", + "description": "(optional) Teammate's website" + }, + "address": { + "type": "string", + "description": "(optional) Teammate's address" + }, + "address2": { + "type": "string", + "description": "(optional) Teammate's address" + }, + "city": { + "type": "string", + "description": "(optional) Teammate's city" + }, + "state": { + "type": "string", + "description": "(optional) Teammate's state" + }, + "zip": { + "type": "string", + "description": "(optional) Teammate's zip" + }, + "country": { + "type": "string", + "description": "(optional) Teammate's country" + } + } + }, + "examples": { + "application/json": { + "username": "teammate1", + "first_name": "Jane", + "last_name": "Doe", + "email": "teammate1@example.com", + "scopes": [ + "user.profile.read", + "user.profile.edit" + ], + "user_type": "teammate", + "is_admin": false, + "phone": "123-345-3453", + "website": "www.example.com", + "company": "ACME Inc.", + "address": "123 Acme St", + "address2": "", + "city": "City", + "state": "CA", + "country": "USA", + "zip": "12345" + } + } + }, + "400": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "one or more of given scopes are invalid", + "field": "scopes" + } + ] + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "username not found", + "field": "username" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_v3-teammates-username", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_v3-teammates-username", + "summary": "Delete teammate", + "tags": [ + "Teammates" + ], + "description": "This endpoint allows you to delete a teammate.\n\n**Only the parent user or an admin teammate can delete another teammate.**", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "field": { + "type": "string" + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "username not found", + "field": "username" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_v3-teammates-username", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/templates": { + "post": { + "operationId": "POST_templates", + "summary": "Create a transactional template.", + "tags": [ + "Transactional Templates" + ], + "description": "**This endpoint allows you to create a transactional template.**\n\nEach user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts.\n\nTransactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name for the new transactional template.", + "maxLength": 100 + } + }, + "required": [ + "name" + ], + "example": { + "name": "example_name" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/transactional_template" + }, + "examples": { + "application/json": { + "id": "733ba07f-ead1-41fc-933a-3976baa23716", + "name": "example_name", + "versions": [] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_templates", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "get": { + "operationId": "GET_templates", + "summary": "Retrieve all transactional templates.", + "tags": [ + "Transactional Templates" + ], + "description": "**This endpoint allows you to retrieve all transactional templates.**\n\nEach user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts.\n\nTransactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/transactional_template" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_templates", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/templates/{template_id}": { + "parameters": [ + { + "name": "template_id", + "in": "path", + "description": "The id of the transactional template you want to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_templates-template_id", + "summary": "Retrieve a single transactional template.", + "tags": [ + "Transactional Templates" + ], + "description": "**This endpoint allows you to retrieve a single transactional template.**\n\nEach user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts.\n\nTransactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/transactional_template" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_templates-templateid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_templates-template_id", + "summary": "Edit a transactional template.", + "tags": [ + "Transactional Templates" + ], + "description": "**This endpoint allows you to edit a transactional template.**\n\nEach user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts.\n\nTransactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the transactional template.", + "maxLength": 100 + } + }, + "example": { + "name": "new_example_name" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/transactional_template" + }, + "examples": { + "application/json": { + "id": "733ba07f-ead1-41fc-933a-3976baa23716", + "name": "new_example_name", + "versions": [] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_templates-templateid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_templates-template_id", + "summary": "Delete a template.", + "tags": [ + "Transactional Templates" + ], + "description": "**This endpoint allows you to delete a transactional template.**\n\nEach user can create up to 300 different transactional templates. Transactional templates are specific to accounts and subusers. Templates created on a parent account will not be accessible from the subuser accounts.\n\nTransactional templates are templates created specifically for transactional email and are not to be confused with [Marketing Campaigns templates](https://sendgrid.com/docs/User_Guide/Marketing_Campaigns/templates.html). For more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_templates-templateid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/templates/{template_id}/versions": { + "parameters": [ + { + "name": "template_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_templates-template_id-versions", + "summary": "Create a new transactional template version.", + "tags": [ + "Transactional Templates Versions" + ], + "description": "**This endpoint allows you to create a new version of a template.**\n\nEach transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates.\n\nFor more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/transactional_template_version", + "example": { + "template_id": "ddb96bbc-9b92-425e-8979-99464621b543", + "active": 1, + "name": "example_version_name", + "html_content": "<%body%>", + "plain_content": "<%body%>", + "subject": "<%subject%>" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of the new transactional template version." + }, + "updated_at": { + "type": "string", + "description": "The date and time that this transactional template version was updated." + }, + "Transactional Template Version": { + "$ref": "#/definitions/transactional_template_version" + } + }, + "required": [ + "id", + "updated_at" + ] + }, + "examples": { + "application/json": { + "id": "8aefe0ee-f12b-4575-b5b7-c97e21cb36f3", + "template_id": "ddb96bbc-9b92-425e-8979-99464621b543", + "active": 1, + "name": "example_version_name", + "html_content": "<%body%>", + "plain_content": "<%body%>", + "subject": "<%subject%>", + "updated_at": "2014-03-19 18:56:33" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_templates-templateid-versions", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/templates/{template_id}/versions/{version_id}/activate": { + "parameters": [ + { + "name": "template_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "version_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_templates-template_id-versions-version_id-activate", + "summary": "Activate a transactional template version.", + "tags": [ + "Transactional Templates Versions" + ], + "description": "**This endpoint allows you to activate a version of one of your templates.**\n\nEach transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates.\n\n\nFor more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| template_id | string | The ID of the original template |\n| version_id | string | The ID of the template version |", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the template version." + }, + "updated_at": { + "type": "string", + "description": "The date and time that the version was last updated." + }, + "Transactional Template Version": { + "$ref": "#/definitions/transactional_template_version" + } + }, + "required": [ + "id", + "updated_at" + ] + }, + "examples": { + "application/json": { + "id": "8aefe0ee-f12b-4575-b5b7-c97e21cb36f3", + "template_id": "e3a61852-1acb-4b32-a1bc-b44b3814ab78", + "active": 1, + "name": "example_version_name", + "html_content": "<%body%>", + "plain_content": "<%body%>", + "subject": "<%subject%>", + "updated_at": "2014-06-12 11:33:00" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_templates-templateid-versions-versionid-activate", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/templates/{template_id}/versions/{version_id}": { + "parameters": [ + { + "name": "template_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "version_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_templates-template_id-versions-version_id", + "summary": "Retrieve a specific transactional template version.", + "tags": [ + "Transactional Templates Versions" + ], + "description": "**This endpoint allows you to retrieve a specific version of a template.**\n\nEach transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates.\n\nFor more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| template_id | string | The ID of the original template |\n| version_id | string | The ID of the template version |", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the template version." + }, + "updated_at": { + "type": "string", + "description": "The date and time that the template version was last updated." + }, + "Transactional Template Version": { + "$ref": "#/definitions/transactional_template_version" + } + }, + "required": [ + "id", + "updated_at" + ] + }, + "examples": { + "application/json": { + "id": "5997fcf6-2b9f-484d-acd5-7e9a99f0dc1f", + "template_id": "d51480ca-ca3f-465c-bc3e-ceb71d73c38d", + "active": 1, + "name": "version 1 name", + "html_content": "<%body%>", + "plain_content": "<%body%>", + "subject": "<%subject%>", + "updated_at": "2014-03-19 18:56:33" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_templates-templateid-versions-versionid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_templates-template_id-versions-version_id", + "summary": "Edit a transactional template version.", + "tags": [ + "Transactional Templates Versions" + ], + "description": "**This endpoint allows you to edit a version of one of your transactional templates.**\n\nEach transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates.\n\nFor more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| template_id | string | The ID of the original template |\n| version_id | string | The ID of the template version |", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "active": { + "type": "integer", + "description": "Indicates if the template version is active." + }, + "name": { + "type": "string", + "description": "The name of the template version." + }, + "html_content": { + "type": "string", + "description": "The HTML content of the template version." + }, + "plain_content": { + "type": "string", + "description": "The text/plain content of the template version." + }, + "subject": { + "type": "string", + "description": "The subject of the template version." + } + }, + "example": { + "active": 1, + "name": "updated_example_name", + "html_content": "<%body%>", + "plain_content": "<%body%>", + "subject": "<%subject%>" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the template version." + }, + "updated_at": { + "type": "string", + "description": "The date and time that the template version was last updated." + }, + "Transactional Template Version": { + "$ref": "#/definitions/transactional_template_version" + } + }, + "required": [ + "id", + "updated_at" + ] + }, + "examples": { + "application/json": { + "id": "5997fcf6-2b9f-484d-acd5-7e9a99f0dc1f", + "template_id": "d51480ca-ca3f-465c-bc3e-ceb71d73c38d", + "active": 1, + "name": "version 1 name", + "html_content": "<%body%>", + "plain_content": "<%body%>", + "subject": "<%subject%>", + "updated_at": "2014-03-19 18:56:33" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_templates-templateid-versions-versionid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_templates-template_id-versions-version_id", + "summary": "Delete a transactional template version.", + "tags": [ + "Transactional Templates Versions" + ], + "description": "**This endpoint allows you to delete one of your transactional template versions.**\n\nEach transactional template can have multiple versions, each version with its own subject and content. Each user can have up to 300 versions across across all templates.\n\nFor more information about transactional templates, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html).\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| template_id | string | The ID of the original template |\n| version_id | string | The ID of the template version |", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "null" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_templates-templateid-versions-versionid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "dynamic": false, + "enabled": false + } + } + } + }, + "/user/profile": { + "get": { + "operationId": "GET_user-profile", + "summary": "Get a user's profile", + "tags": [ + "Users API" + ], + "description": "Keeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "GET User Profile response", + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The user's address." + }, + "address2": { + "type": "string", + "description": "The second line of the user's address." + }, + "city": { + "type": "string", + "description": "The user's city." + }, + "company": { + "type": "string", + "description": "The name of the user's company." + }, + "country": { + "type": "string", + "description": "The user's country." + }, + "first_name": { + "type": "string", + "description": "The user's first name." + }, + "last_name": { + "type": "string", + "description": "The user's last name." + }, + "phone": { + "type": "string", + "description": "The user's phone number." + }, + "state": { + "type": "string", + "description": "The user's state." + }, + "website": { + "type": "string", + "description": "The user's website URL." + }, + "zip": { + "type": "string", + "description": "The user's zip code." + } + }, + "required": [ + "address", + "city", + "company", + "country", + "first_name", + "last_name", + "phone", + "state", + "website", + "zip" + ] + }, + "examples": { + "application/json": { + "address": "814 West Chapman Avenue", + "address2": "", + "city": "Orange", + "company": "SendGrid", + "country": "US", + "first_name": "Test", + "last_name": "User", + "phone": "555-555-5555", + "state": "CA", + "website": "http://www.sendgrid.com", + "zip": "92868" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-profile", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_user-profile", + "summary": "Update a user's profile", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to update your current profile details.**\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)\n\nIt should be noted that any one or more of the parameters can be updated via the PATCH /user/profile endpoint. The only requirement is that you include at least one when you PATCH.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/user_profile", + "example": { + "first_name": "Example", + "last_name": "User", + "city": "Orange" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/user_profile" + }, + "examples": { + "application/json": { + "address": "814 West Chapman Avenue", + "address2": "", + "city": "Orange", + "company": "SendGrid", + "country": "US", + "first_name": "Example", + "last_name": "User", + "phone": "555-555-5555", + "state": "CA", + "website": "http://www.sendgrid.com", + "zip": "92868" + } + } + }, + "401": { + "description": "", + "schema": { + "$ref": "#/definitions/global:ErrorResponse" + }, + "examples": { + "application/json": { + "errors": [ + { + "field": null, + "message": "authorization required" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_user-profile", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/user/account": { + "get": { + "operationId": "GET_user-account", + "summary": "Get a user's account information.", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to retrieve your user account details.**\n\nYour user's account information includes the user's account type and reputation.\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "GET User Account response", + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of account for this user.", + "enum": [ + "free", + "paid" + ] + }, + "reputation": { + "type": "number", + "description": "The sender reputation for this user." + } + }, + "required": [ + "type", + "reputation" + ] + }, + "examples": { + "application/json": { + "reputation": 100, + "type": "paid" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-account", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/user/email": { + "get": { + "operationId": "GET_user-email", + "summary": "Retrieve your account email address", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to retrieve the email address currently on file for your account.**\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The email address currently on file for your account." + } + }, + "required": [ + "email" + ] + }, + "examples": { + "application/json": { + "email": "test@example.com" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "put": { + "operationId": "PUT_user-email", + "summary": "Update your account email address", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to update the email address currently on file for your account.**\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The new email address that you would like to use for your account." + } + }, + "example": { + "email": "example@example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The current email address on file for your account." + } + }, + "required": [ + "email" + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PUT_user-email", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/user/username": { + "get": { + "operationId": "GET_user-username", + "summary": "Retrieve your username", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to retrieve your current account username.**\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Your account username." + }, + "user_id": { + "type": "integer", + "description": "The user ID for your account." + } + }, + "required": [ + "username", + "user_id" + ] + }, + "examples": { + "application/json": { + "username": "test_username", + "user_id": 1 + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-username", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "put": { + "operationId": "PUT_user-username", + "summary": "Update your username", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to update the username for your account.**\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The new username you would like to use for your account." + } + }, + "example": { + "username": "test_username" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The current username on file for your account." + } + }, + "required": [ + "username" + ] + }, + "examples": { + "application/json": { + "username": "test_username" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PUT_user-username", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + } + }, + "/user/credits": { + "get": { + "operationId": "GET_user-credits", + "summary": "Retrieve your credit balance", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to retrieve the current credit balance for your account.**\n\nYour monthly credit allotment limits the number of emails you may send before incurring overage charges. For more information about credits and billing, please visit our [Clssroom](https://sendgrid.com/docs/Classroom/Basics/Billing/billing_info_and_faqs.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "remain": { + "type": "integer", + "description": "The remaining number of credits available on your account." + }, + "total": { + "type": "integer", + "description": "The total number of credits assigned to your account." + }, + "overage": { + "type": "integer", + "description": "The number of overdrawn credits for your account." + }, + "used": { + "type": "integer", + "description": "The number of credits that you have used." + }, + "last_reset": { + "type": "string", + "description": "The date that your credit balance was last reset." + }, + "next_reset": { + "type": "string", + "description": "The next date that your credit balance will be reset." + }, + "reset_frequency": { + "type": "string", + "description": "The frequency at which your credit balance will be reset." + } + }, + "required": [ + "remain", + "total", + "overage", + "used", + "last_reset", + "next_reset", + "reset_frequency" + ] + }, + "examples": { + "application/json": { + "remain": 200, + "total": 200, + "overage": 0, + "used": 0, + "last_reset": "2013-01-01", + "next_reset": "2013-02-01", + "reset_frequency": "monthly" + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-credits", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/user/password": { + "put": { + "operationId": "PUT_user-password", + "summary": "Update your password", + "tags": [ + "Users API" + ], + "description": "**This endpoint allows you to update your password.**\n\nKeeping your user profile up to date is important. This will help SendGrid to verify who you are as well as contact you should we need to.\n\nFor more information about your user profile:\n\n* [SendGrid Account Settings](https://sendgrid.com/docs/User_Guide/Settings/account.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "new_password": { + "type": "string", + "description": "The new password you would like to use for your account." + }, + "old_password": { + "type": "string", + "description": "The old password for your account." + } + }, + "required": [ + "new_password", + "old_password" + ], + "example": { + "new_password": "new_password", + "old_password": "old_password" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": {} + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PUT_user-password", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/user/webhooks/event/settings": { + "get": { + "operationId": "GET_user-webhooks-event-settings", + "summary": "Retrieve Event Webhook settings", + "tags": [ + "Webhooks" + ], + "description": "**This endpoint allows you to retrieve your current event webhook settings.**\n\nIf an event type is marked as `true`, then the event webhook will include information about that event.\n\nSendGrid’s Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email.\n\nCommon uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/event_webhook_settings" + }, + "examples": { + "application/json": { + "enabled": true, + "url": "url", + "group_resubscribe": true, + "delivered": true, + "group_unsubscribe": true, + "spam_report": true, + "bounce": true, + "deferred": true, + "unsubscribe": true, + "processed": true, + "open": true, + "click": true, + "dropped": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-webhooks-event-settings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + }, + "patch": { + "operationId": "PATCH_user-webhooks-event-settings", + "summary": "Update Event Notification Settings", + "tags": [ + "Webhooks" + ], + "description": "**This endpoint allows you to update your current event webhook settings.**\n\nIf an event type is marked as `true`, then the event webhook will include information about that event.\n\nSendGrid’s Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email.\n\nCommon uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/event_webhook_settings", + "example": { + "enabled": true, + "url": "url", + "group_resubscribe": true, + "delivered": true, + "group_unsubscribe": true, + "spam_report": true, + "bounce": true, + "deferred": true, + "unsubscribe": true, + "processed": true, + "open": true, + "click": true, + "dropped": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/event_webhook_settings" + }, + "examples": { + "application/json": { + "enabled": true, + "url": "url", + "group_resubscribe": true, + "delivered": true, + "group_unsubscribe": true, + "spam_report": true, + "bounce": true, + "deferred": true, + "unsubscribe": true, + "processed": true, + "open": true, + "click": true, + "dropped": true + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_user-webhooks-event-settings", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "statusCode": 200, + "dynamic": false + } + } + } + }, + "/user/webhooks/event/test": { + "post": { + "operationId": "POST_user-webhooks-event-test", + "summary": "Test Event Notification Settings", + "tags": [ + "Webhooks" + ], + "description": "**This endpoint allows you to test your event webhook by sending a fake event notification post to the provided URL.**\n\nSendGrid’s Event Webhook will notify a URL of your choice via HTTP POST with information about events that occur as SendGrid processes your email.\n\nCommon uses of this data are to remove unsubscribes, react to spam reports, determine unengaged recipients, identify bounced email addresses, or create advanced analytics of your email program.", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "The URL where you would like the test notification to be sent." + } + }, + "example": { + "url": "url" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_user-webhooks-event-test", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": false, + "statusCode": 200 + } + } + } + }, + "/user/webhooks/parse/stats": { + "get": { + "operationId": "GET_user-webhooks-parse-stats", + "summary": "Retrieves Inbound Parse Webhook statistics.", + "tags": [ + "Webhooks" + ], + "description": "**This endpoint allows you to retrieve the statistics for your Parse Webhook useage.**\n\nSendGrid's Inbound Parse Webhook allows you to parse the contents and attachments of incomming emails. The Parse API can then POST the parsed emails to a URL that you specify. The Inbound Parse Webhook cannot parse messages greater than 20MB in size, including all attachments.\n\nThere are a number of pre-made integrations for the SendGrid Parse Webhook which make processing events easy. You can find these integrations in the [Library Index](https://sendgrid.com/docs/Integrate/libraries.html#-Webhook-Libraries).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of statistics to return on each page.", + "required": false, + "type": "string" + }, + { + "name": "offset", + "in": "query", + "description": "The number of statistics to skip.", + "required": false, + "type": "string" + }, + { + "name": "aggregated_by", + "in": "query", + "description": "How you would like the statistics to by grouped. ", + "required": false, + "type": "string", + "enum": [ + "day", + "week", + "month" + ] + }, + { + "name": "start_date", + "in": "query", + "description": "The starting date of the statistics you want to retrieve. Must be in the format YYYY-MM-DD", + "required": true, + "type": "string" + }, + { + "name": "end_date", + "in": "query", + "description": "The end date of the statistics you want to retrieve. Must be in the format YYYY-MM-DD", + "required": false, + "type": "string", + "default": "The day the request is made." + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date that the stats were collected." + }, + "stats": { + "type": "array", + "description": "The Parse Webhook usage statistics.", + "items": { + "type": "object", + "properties": { + "metrics": { + "type": "object", + "properties": { + "received": { + "type": "number", + "description": "The number of emails received and parsed by the Parse Webhook." + } + }, + "required": [ + "received" + ] + } + } + } + } + }, + "required": [ + "date", + "stats" + ] + } + }, + "examples": { + "application/json": [ + { + "date": "2015-10-11", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-12", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-13", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-14", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-15", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-16", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-17", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-18", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-19", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-20", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-21", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-22", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-23", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-24", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-25", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-26", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-27", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-28", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-29", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-30", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-10-31", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-01", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-02", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-03", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-04", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-05", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-06", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-07", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-08", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-09", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + }, + { + "date": "2015-11-10", + "stats": [ + { + "metrics": { + "received": 0 + } + } + ] + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_user-webhooks-parse-stats", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + } + }, + "/whitelabel/domains": { + "get": { + "operationId": "GET_whitelabel-domains", + "summary": "List all domain whitelabels.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to retrieve a list of all domain whitelabels you have created.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Number of domains to return.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "Paging offset.", + "type": "integer" + }, + { + "name": "exclude_subusers", + "in": "query", + "description": "Exclude subuser domains from the result.", + "type": "boolean" + }, + { + "name": "username", + "in": "query", + "description": "The username associated with a whitelabel.", + "type": "string" + }, + { + "name": "domain", + "in": "query", + "description": "Search for domain whitelabels that match the given domain.", + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "The ID of the domain whitelabel." + }, + "user_id": { + "type": "number", + "description": "The ID of the user that this whitelabel will be associated with." + }, + "subdomain": { + "type": "string", + "description": "The subdomain created for this domain whitelabel." + }, + "domain": { + "type": "string", + "description": "The domain that this whitelabel was created for." + }, + "username": { + "type": "string", + "description": "The username that this whitelabel is associated with." + }, + "ips": { + "type": "array", + "description": "The IPs that will be included in the custom SPF record.", + "items": { + "type": "string" + } + }, + "custom_spf": { + "type": "boolean", + "description": "Indicates if this whitelabel has custom SPF." + }, + "default": { + "type": "boolean", + "description": "Indicates if this whitelabel has been set as the default whitelabel." + }, + "legacy": { + "type": "boolean", + "description": "Indicates if this is whitelabel was created with the legacy whitelabel tool." + }, + "automatic_security": { + "type": "boolean", + "description": "Indicates if this whitelabel uses automated security." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid whitelabel or not." + }, + "dns": { + "type": "object", + "description": "The DNS records for this whitelabel that are used for authenticating the sending domain.", + "properties": { + "mail_server": { + "type": "object", + "description": "Designates which mail server is responsible for accepting messages from a domain.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid DNS record with no conflicts." + }, + "type": { + "type": "string", + "description": "The type of DNS record." + }, + "host": { + "type": "string", + "description": "The domain sending the messages." + }, + "data": { + "type": "string", + "description": "The mail server responsible for accepting messages." + } + } + }, + "subdomain_spf": { + "type": "object", + "description": "The SPF record for the subdomain used to create this whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the SPF record is valid." + }, + "type": { + "type": "string", + "description": "The type of data in the SPF record." + }, + "host": { + "type": "string", + "description": "The domain that this SPF record will be used to authenticate." + }, + "data": { + "type": "string", + "description": "The SPF record." + } + } + }, + "dkim": { + "type": "object", + "description": "The DNS record used when creating the DKIM signature.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this DNS record is valid." + }, + "type": { + "type": "string", + "description": "The type of DNS record.", + "enum": [ + "cname", + "mx", + "txt" + ] + }, + "host": { + "type": "string", + "description": "The domain that these DNS records will be applied to.", + "format": "hostname" + }, + "data": { + "type": "string", + "description": "The DNS record." + } + } + } + } + } + }, + "required": [ + "id", + "user_id", + "subdomain", + "domain", + "username", + "ips", + "custom_spf", + "default", + "legacy", + "automatic_security", + "valid", + "dns" + ] + } + }, + "examples": { + "application/json": [ + { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "ips": [ + "192.168.1.1", + "192.168.1.2" + ], + "custom_spf": true, + "default": true, + "legacy": false, + "automatic_security": true, + "valid": true, + "dns": { + "mail_cname": { + "host": "mail.example.com", + "type": "cname", + "data": "u7.wl.sendgrid.net", + "valid": true + }, + "spf": { + "host": "example.com", + "type": "txt", + "data": "v=spf1 include:u7.wl.sendgrid.net -all", + "valid": true + }, + "dkim1": { + "host": "s1._domainkey.example.com", + "type": "cname", + "data": "s1._domainkey.u7.wl.sendgrid.net", + "valid": true + }, + "dkim2": { + "host": "s2._domainkey.example.com", + "type": "cname", + "data": "s2._domainkey.u7.wl.sendgrid.net", + "valid": true + } + } + }, + { + "id": 2, + "domain": "example2.com", + "subdomain": "news", + "username": "jane@example2.com", + "user_id": 8, + "ips": [], + "custom_spf": false, + "default": true, + "legacy": false, + "automatic_security": true, + "valid": false, + "dns": { + "mail_server": { + "host": "news.example2.com", + "type": "mx", + "data": "sendgrid.net", + "valid": false + }, + "subdomain_spf": { + "host": "news.example2.com", + "type": "txt", + "data": "v=spf1 include:sendgrid.net ~all", + "valid": false + }, + "domain_spf": { + "host": "example2.com", + "type": "txt", + "data": "v=spf1 include:news.example2.com -all", + "valid": false + }, + "dkim": { + "host": "example2.com", + "type": "txt", + "data": "k=rsa; t=s; p=publicKey", + "valid": false + } + } + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-domains", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "post": { + "operationId": "POST_whitelabel-domains", + "summary": "Create a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to create a whitelabel for one of your domains.**\n\nIf you are creating a domain whitelabel that you would like a subuser to use, you have two options:\n1. Use the \"username\" parameter. This allows you to create a whitelabel on behalf of your subuser. This means the subuser is able to see and modify the created whitelabel.\n2. Use the Association workflow (see Associate Domain section). This allows you to assign a whitelabel created by the parent to a subuser. This means the subuser will default to the assigned whitelabel, but will not be able to see or modify that whitelabel. However, if the subuser creates their own whitelabel it will overwrite the assigned whitelabel.\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "domain": { + "type": "string", + "description": "Domain being whitelabeled." + }, + "subdomain": { + "type": "string", + "description": "The subdomain to use for this domain whitelabel." + }, + "username": { + "type": "string", + "description": "The username that this whitelabel will be associated with." + }, + "ips": { + "type": "array", + "description": "The IP addresses that will be included in the custom SPF record for this whitelabel.", + "items": { + "type": "string" + } + }, + "custom_spf": { + "type": "boolean", + "description": "Specify whether to use a custom SPF or allow SendGrid to manage your SPF. This option is only available to domain whitelabels setup for manual security." + }, + "default": { + "type": "boolean", + "description": "Whether to use this whitelabel as the fallback if no domain whitelabels match the sender's domain." + }, + "automatic_security": { + "type": "boolean", + "description": "Whether to allow SendGrid to manage your SPF records, DKIM keys, and DKIM key rotation." + } + }, + "required": [ + "domain", + "subdomain" + ], + "example": { + "domain": "example.com", + "subdomain": "news", + "username": "john@example.com", + "ips": [ + "192.168.1.1", + "192.168.1.2" + ], + "custom_spf": true, + "default": true, + "automatic_security": false + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel::domain" + }, + "examples": { + "application/json": { + "id": 302183, + "user_id": 1446226, + "subdomain": "example", + "domain": "example.com", + "username": "mbernier", + "ips": [], + "custom_spf": false, + "default": true, + "legacy": false, + "automatic_security": true, + "valid": false, + "dns": { + "mail_cname": { + "valid": false, + "type": "cname", + "host": "example.example.com", + "data": "u1446226.wl.sendgrid.net" + }, + "dkim1": { + "valid": false, + "type": "cname", + "host": "s1._domainkey.example.com", + "data": "s1.domainkey.u1446226.wl.sendgrid.net" + }, + "dkim2": { + "valid": false, + "type": "cname", + "host": "s2._domainkey.example.com", + "data": "s2.domainkey.u1446226.wl.sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-domains", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + } + }, + "/whitelabel/domains/{domain_id}": { + "parameters": [ + { + "name": "domain_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_whitelabel-domains-domain_id", + "summary": "Retrieve a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to retrieve a specific domain whitelabel.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel::domain" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-domains-domainid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_whitelabel-domains-domain_id", + "summary": "Update a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to update the settings for a domain whitelabel.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "default": { + "type": "boolean", + "default": false, + "description": "Indicates whether this domain whitelabel should be considered the default." + }, + "custom_spf": { + "type": "boolean", + "default": false, + "description": "Indicates whether to generate a custom SPF record for manual security." + } + }, + "example": { + "default": false, + "custom_spf": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "title": "Update a Domain response", + "type": "object", + "properties": { + "default false": { + "description": "Inidcates whether this domain whitelabel should be considered the default. Defaults to false.", + "type": "boolean" + }, + "custom_spf false": { + "description": "Indicates whether to generate a custom SPF record for manual security. Defaults to false.", + "type": "boolean" + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_whitelabel-domains-domainid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + }, + "delete": { + "operationId": "DELETE_whitelabel-domains-domain_id", + "summary": "Delete a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to delete a domain whitelabel.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_whitelabel-domains-domainid", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + } + }, + "/whitelabel/domains/default": { + "get": { + "operationId": "GET_whitelabel-domains-default", + "summary": "Get the default domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to retrieve the default whitelabel for a domain.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| domain | string |The domain to find a default domain whitelabel for. |", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel:domain_spf" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-domains-default", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "dynamic": false, + "enabled": null, + "statusCode": null + } + } + } + }, + "/whitelabel/domains/{id}/ips": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_whitelabel-domains-id-ips", + "summary": "Add an IP to a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to add an IP address to a domain whitelabel.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| id | integer | ID of the domain to which you are adding an IP |", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "IP to associate with the domain. Used for manually specifying IPs for custom SPF." + } + }, + "required": [ + "ip" + ], + "example": { + "ip": "192.168.0.1" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel:domain_spf" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "ips": [], + "custom_spf": true, + "default": false, + "legacy": false, + "automatic_security": false, + "valid": false, + "dns": { + "mail_server": { + "host": "mail.example.com", + "type": "mx", + "data": "sendgrid.net", + "valid": false + }, + "subdomain_spf": { + "host": "mail.example.com", + "type": "txt", + "data": "v=spf1 ip4:192.168.1.1 ip4:192.168.0.1 -all", + "valid": false + }, + "domain_spf": { + "host": "example.com", + "type": "txt", + "data": "v=spf1 include:mail.example.com -all", + "valid": false + }, + "dkim": { + "host": "s1._domainkey.example.com", + "type": "txt", + "data": "k=rsa; t=s; p=publicKey", + "valid": false + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-domains-id-ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/domains/{id}/ips/{ip}": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "ip", + "in": "path", + "required": true, + "type": "string" + } + ], + "delete": { + "operationId": "DELETE_whitelabel-domains-id-ips-ip", + "summary": "Remove an IP from a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to remove a domain's IP address from that domain's whitelabel.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| id | integer | ID of the domain whitelabel to delete the IP from. |\n| ip | string | IP to remove from the domain whitelabel. |", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel:domain_spf" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "mail@example.com", + "user_id": 7, + "ips": [], + "custom_spf": true, + "default": false, + "legacy": false, + "automatic_security": false, + "valid": false, + "dns": { + "mail_server": { + "host": "mail.example.com", + "type": "mx", + "data": "sendgrid.net", + "valid": false + }, + "subdomain_spf": { + "host": "mail.example.com", + "type": "txt", + "data": "v=spf1 ip4:192.168.1.1 ip4:192.168.0.1 -all", + "valid": false + }, + "domain_spf": { + "host": "example.com", + "type": "txt", + "data": "v=spf1 include:mail.example.com -all", + "valid": false + }, + "dkim": { + "host": "s1._domainkey.example.com", + "type": "txt", + "data": "k=rsa; t=s; p=publicKey", + "valid": false + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_whitelabel-domains-id-ips-ip", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/domains/{id}/validate": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_whitelabel-domains-id-validate", + "summary": "Validate a domain whitelabel.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to validate a domain whitelabel. If it fails, it will return an error message describing why the whitelabel could not be validated.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| id | integer |ID of the domain whitelabel to validate. |", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the domain whitelabel." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid whitelabel." + }, + "validation_results": { + "type": "object", + "description": "The individual DNS records that are checked when validating, including the reason for any invalid DNS records.", + "properties": { + "mail_cname": { + "type": "object", + "description": "The CNAME record for the domain whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this DNS record is valid." + }, + "reason": { + "type": "string", + "description": "The reason this record is invalid." + } + } + }, + "dkim1": { + "type": "object", + "description": "A DNS record for this domain whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the DNS record is valid." + }, + "reason": { + "type": "null" + } + } + }, + "dkim2": { + "type": "object", + "description": "A DNS record for this whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the DNS record is valid." + }, + "reason": { + "type": "null" + } + } + }, + "spf": { + "type": "object", + "description": "The SPF record for the whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the SPF record is valid." + }, + "reason": { + "type": "null" + } + } + } + } + } + } + }, + "examples": { + "application/json": { + "id": 1, + "valid": true, + "validation_results": { + "mail_cname": { + "valid": false, + "reason": "Expected your MX record to be \"mx.sendgrid.net\" but found \"example.com\"." + }, + "dkim1": { + "valid": true, + "reason": null + }, + "dkim2": { + "valid": true, + "reason": null + }, + "spf": { + "valid": true, + "reason": null + } + } + } + } + }, + "500": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message explaining the reason for the error." + } + }, + "required": [ + "message" + ] + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "internal error getting TXT" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-domains-id-validate", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/domains/subuser": { + "get": { + "operationId": "GET_whitelabel-domains-subuser", + "summary": "List the domain whitelabel associated with the given user.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to retrieve all of the whitelabels that have been assigned to a specific subuser.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nDomain whitelabels can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's whitelabels. To associate a whitelabel with a subuser, the parent account must first create the whitelabel and validate it. The the parent may then associate the whitelabel via the subuser management tools.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| username | string | Username of the subuser to find associated whitelabels for. |", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel:domain_spf" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "mail@example.com", + "user_id": 7, + "ips": [], + "custom_spf": true, + "default": false, + "legacy": false, + "automatic_security": false, + "valid": false, + "dns": { + "mail_server": { + "host": "mail.example.com", + "type": "mx", + "data": "sendgrid.net", + "valid": false + }, + "subdomain_spf": { + "host": "mail.example.com", + "type": "txt", + "data": "v=spf1 ip4:192.168.1.1 ip4:192.168.0.1 -all", + "valid": false + }, + "domain_spf": { + "host": "example.com", + "type": "txt", + "data": "v=spf1 include:mail.example.com -all", + "valid": false + }, + "dkim": { + "host": "s1._domainkey.example.com", + "type": "txt", + "data": "k=rsa; t=s; p=publicKey", + "valid": false + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-domains-subuser", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_whitelabel-domains-subuser", + "summary": "Disassociate a domain whitelabel from a given user.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to disassociate a specific whitelabel from a subuser.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nDomain whitelabels can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's whitelabels. To associate a whitelabel with a subuser, the parent account must first create the whitelabel and validate it. The the parent may then associate the whitelabel via the subuser management tools.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Required? | Description |\n|---|---|---|---|\n| username | string | required | Username for the subuser to find associated whitelabels for. |", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_whitelabel-domains-subuser", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/domains/{domain_id}/subuser": { + "parameters": [ + { + "name": "domain_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "post": { + "operationId": "POST_whitelabel-domains-domain_id-subuser", + "summary": "Associate a domain whitelabel with a given user.", + "tags": [ + "Whitelabel - Domains" + ], + "description": "**This endpoint allows you to associate a specific domain whitelabel with a subuser.**\n\nA domain whitelabel allows you to remove the “via” or “sent on behalf of” message that your recipients see when they read your emails. Whitelabeling a domain allows you to replace sendgrid.net with your personal sending domain. You will be required to create a subdomain so that SendGrid can generate the DNS records which you must give to your host provider. If you choose to use Automated Security, SendGrid will provide you with 3 CNAME records. If you turn Automated Security off, you will be given 2 TXT records and 1 MX record.\n\nDomain whitelabels can be associated with (i.e. assigned to) subusers from a parent account. This functionality allows subusers to send mail using their parent's whitelabels. To associate a whitelabel with a subuser, the parent account must first create the whitelabel and validate it. The the parent may then associate the whitelabel via the subuser management tools.\n\nFor more information on whitelabeling, please see our [User Guide](https://sendgrid.com/docs/User_Guide/Settings/Whitelabel/index.html)\n\n## URI Parameters\n| URI Parameter | Type | Description |\n|---|---|---|\n| domain_id | integer | ID of the domain whitelabel to associate with the subuser. |", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "Username to associate with the domain whitelabel." + } + }, + "required": [ + "username" + ], + "example": { + "username": "jane@example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/whitelabel:domain_spf" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "mail@example.com", + "user_id": 7, + "ips": [], + "custom_spf": true, + "default": false, + "legacy": false, + "automatic_security": false, + "valid": false, + "dns": { + "mail_server": { + "host": "mail.example.com", + "type": "mx", + "data": "sendgrid.net", + "valid": false + }, + "subdomain_spf": { + "host": "mail.example.com", + "type": "txt", + "data": "v=spf1 ip4:192.168.1.1 ip4:192.168.0.1 -all", + "valid": false + }, + "domain_spf": { + "host": "example.com", + "type": "txt", + "data": "v=spf1 include:mail.example.com -all", + "valid": false + }, + "dkim": { + "host": "s1._domainkey.example.com", + "type": "txt", + "data": "k=rsa; t=s; p=publicKey", + "valid": false + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-domains-domainid-subuser", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + } + }, + "/whitelabel/ips": { + "get": { + "operationId": "GET_whitelabel-ips", + "summary": "Retrieve all IP whitelabels", + "tags": [ + "Whitelabel - IPs" + ], + "description": "**This endpoint allows you to retrieve all of the IP whitelabels that have been createdy by this account.**\n\nYou may include a search key by using the \"ip\" parameter. This enables you to perform a prefix search for a given IP segment (e.g. \"192.\").\n\nA IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "The number of results to retrieve.", + "type": "integer" + }, + { + "name": "offset", + "in": "query", + "description": "The point in the list of results to begin retrieving IPs from.", + "type": "integer" + }, + { + "name": "ip", + "in": "query", + "description": "The IP segment that you would like to use in a prefix search.", + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ip_whitelabel" + } + }, + "examples": { + "application/json": [ + { + "id": 1, + "ip": "192.168.1.1", + "rdns": "o1.email.example.com", + "users": [ + { + "username": "john@example.com", + "user_id": 7 + }, + { + "username": "jane@example.com", + "user_id": 8 + } + ], + "subdomain": "email", + "domain": "example.com", + "valid": true, + "legacy": false, + "a_record": { + "valid": true, + "type": "a", + "host": "o1.email.example.com", + "data": "192.168.1.1" + } + }, + { + "id": 2, + "ip": "192.168.1.2", + "rdns": "o2.email.example.com", + "users": [ + { + "username": "john@example.com", + "user_id": 7 + }, + { + "username": "jane@example2.com", + "user_id": 9 + } + ], + "subdomain": "email", + "domain": "example.com", + "valid": true, + "legacy": false, + "a_record": { + "valid": true, + "type": "a", + "host": "o2.email.example.com", + "data": "192.168.1.2" + } + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "post": { + "operationId": "POST_whitelabel-ips", + "summary": "Create an IP whitelabel", + "tags": [ + "Whitelabel - IPs" + ], + "description": "**This endpoint allows you to create an IP whitelabel.**\n\nWhen creating an IP whitelable, you should use the same subdomain that you used when you created a domain whitelabel.\n\nA IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address that you want to whitelabel." + }, + "subdomain": { + "type": "string", + "description": "The subdomain that will be used to send emails from the IP. Should be the same as the subdomain used for your domain whitelabel." + }, + "domain": { + "type": "string", + "description": "The root, or sending, domain that will be used to send message from the IP." + } + }, + "required": [ + "ip", + "subdomain", + "domain" + ], + "example": { + "ip": "192.168.1.1", + "subdomain": "email", + "domain": "example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_whitelabel" + }, + "examples": { + "application/json": { + "id": 123, + "ip": "192.168.1.2", + "rdns": "o1.email.example.com", + "users": [], + "subdomain": "email", + "domain": "example.com", + "valid": true, + "legacy": false, + "a_record": { + "valid": true, + "type": "a", + "host": "o1.email.example.com", + "data": "192.168.1.2" + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-ips", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/ips/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The id of the IP whitelabel that you would like to retrieve.", + "required": true, + "type": "string" + } + ], + "get": { + "operationId": "GET_whitelabel-ips-id", + "summary": "Retrieve an IP whitelabel", + "tags": [ + "Whitelabel - IPs" + ], + "description": "**This endpoint allows you to retrieve an IP whitelabel.**\n\nA IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ip_whitelabel" + }, + "examples": { + "application/json": { + "id": 123, + "ip": "192.168.1.1", + "rdns": "o1.email.example.com", + "users": [ + { + "username": "john@example.com", + "user_id": 7 + } + ], + "subdomain": "email", + "domain": "example.com", + "valid": true, + "legacy": false, + "a_record": { + "valid": true, + "type": "a", + "host": "o1.email.example.com", + "data": "192.168.1.1" + } + } + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The errors preventing the retrieval of the IP whitelabel.", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message explaining why the IP whitelabel could not be found." + } + }, + "required": [ + "message" + ] + } + } + }, + "required": [ + "errors" + ] + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Whitelabel ip not found." + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-ips-id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_whitelabel-ips-id", + "summary": "Delete an IP whitelabel", + "tags": [ + "Whitelabel - IPs" + ], + "description": "**This endpoint allows you to delete an IP whitelabel.**\n\nA IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + }, + "404": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The errors preventing the IP whitelabel from being deleted.", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message explaining why the IP whitelabel could not be deleted." + } + } + } + } + } + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Whitelabel ip not found." + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_whitelabel-ips-id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": null, + "dynamic": false, + "enabled": null + } + } + } + }, + "/whitelabel/ips/{id}/validate": { + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_whitelabel-ips-id-validate", + "summary": "Validate an IP whitelabel", + "tags": [ + "Whitelabel - IPs" + ], + "description": "**This endpoint allows you to validate an IP whitelabel.**\n\nA IP whitelabel consists of a subdomain and domain that will be used to generate a reverse DNS record for a given IP. Once SendGrid has verified that the appropriate A record for the IP has been created, the appropriate reverse DNS record for the IP is generated.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/ips.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The id of the IP whitelabel." + }, + "valid": { + "type": "boolean", + "description": "Indicates if the IP whitelabel is valid.", + "enum": [ + true, + false + ] + }, + "validation_results": { + "type": "object", + "description": "The specific results of the validation.", + "properties": { + "a_record": { + "type": "object", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the IP whitelabel could be validated.", + "enum": [ + true, + false + ] + }, + "reason": { + "type": [ + "null", + "string" + ], + "description": "The reason the IP whitelabel could not be validated. Is null if the whitelabel was validated." + } + }, + "required": [ + "valid", + "reason" + ] + } + } + } + }, + "required": [ + "id", + "valid", + "validation_results" + ] + }, + "examples": { + "application/json": { + "id": 1, + "valid": true, + "validation_results": { + "a_record": { + "valid": true, + "reason": null + } + } + } + } + }, + "404": { + "description": "Unexpected error in API call. See HTTP response body for details.", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The error messages for the failed validation.", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message describing why the IP could not be validated." + } + }, + "required": [ + "message" + ] + } + } + }, + "required": [ + "errors" + ] + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "Whitelabel ip not found." + } + ] + } + } + }, + "500": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The error messages for the failed validation.", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message describing why the IP whitelabel could not be validated." + } + }, + "required": [ + "message" + ] + } + } + }, + "required": [ + "errors" + ] + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "internal error getting rDNS" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-ips-id-validate", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/links": { + "get": { + "operationId": "GET_whitelabel-links", + "summary": "Retrieve all link whitelabels", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to retrieve all link whitelabels.**\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Limits the number of results returned per page.", + "type": "integer" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/link_whitelabel" + } + }, + "examples": { + "application/json": [ + { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": true, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + }, + { + "id": 2, + "domain": "example2.com", + "subdomain": "news", + "username": "john@example.com", + "user_id": 8, + "default": false, + "valid": false, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "news.example2.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": false, + "type": "cname", + "host": "8.example2.com", + "data": "sendgrid.net" + } + } + } + ] + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-links", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "statusCode": 200, + "enabled": false, + "dynamic": false + } + } + }, + "post": { + "operationId": "POST_whitelabel-links", + "summary": "Create a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to create a new link whitelabel.**\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Number of domains to return.", + "type": "integer", + "default": 50 + }, + { + "name": "offset", + "in": "query", + "description": "Paging offset.", + "type": "integer", + "default": 0 + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "domain": { + "type": "string", + "description": "The root domain for your subdomain that you are creating the whitelabel for. This should match your FROM email address." + }, + "subdomain": { + "type": "string", + "description": "The subdomain to create the link whitelabel for. Must be different from the subdomain you used for a domain whitelabel." + }, + "default": { + "type": "boolean", + "description": "Indicates if you want to use this link whitelabel as the fallback, or default, whitelabel.", + "enum": [ + true, + false + ] + } + }, + "required": [ + "domain", + "subdomain" + ], + "example": { + "domain": "example.com", + "subdomain": "mail", + "default": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "201": { + "description": "", + "schema": { + "$ref": "#/definitions/link_whitelabel" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": false, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-links", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/links/{id}": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The id of the link whitelabel you want to retrieve.", + "required": true, + "type": "integer" + } + ], + "get": { + "operationId": "GET_whitelabel-links-id", + "summary": "Retrieve a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to retrieve a specific link whitelabel.**\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/link_whitelabel" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": false, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-links-id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "patch": { + "operationId": "PATCH_whitelabel-links-id", + "summary": "Update a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to update a specific link whitelabel. You can use this endpoint to change a link whitelabel's default status.**\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "default": { + "type": "boolean", + "description": "Indicates if the link whitelabel is set as the default, or fallback, whitelabel.", + "enum": [ + true, + false + ] + } + }, + "example": { + "default": true + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/link_whitelabel" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": true, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "PATCH_whitelabel-links-id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + }, + "delete": { + "operationId": "DELETE_whitelabel-links-id", + "summary": "Delete a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to delete a link whitelabel.**\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_whitelabel-links-id", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/links/default": { + "get": { + "operationId": "GET_whitelabel-links-default", + "summary": "Retrieve a Default Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to retrieve the default link whitelabel.**\n\nDefault link whitelabel is the actual link whitelabel to be used when sending messages. If there are multiple link whitelabels, the default is determined by the following order:\n
    \n
  • Validated link whitelabels marked as \"default\"
  • \n
  • Legacy link whitelabels (migrated from the whitelabel wizard)
  • \n
  • Default SendGrid link whitelabel (i.e. 100.ct.sendgrid.net)
  • \n
\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "domain", + "in": "query", + "description": "The domain to match against when finding a corresponding link whitelabel.", + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/link_whitelabel" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": false, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-links-default", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/links/{id}/validate": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The id of the link whitelabel that you want to validate.", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_whitelabel-links-id-validate", + "summary": "Validate a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to validate a link whitelabel.**\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The id of the link whitelabel." + }, + "valid": { + "type": "boolean", + "description": "Indicates if the link whitelabel is valid.", + "enum": [ + true, + false + ] + }, + "validation_results": { + "type": "object", + "description": "The individual validations results for each of the DNS records associated with this link whitelabel.", + "required": [ + "domain_cname" + ], + "properties": { + "domain_cname": { + "type": "object", + "description": "The DNS record generated for the sending domain used for this link whitelabel.", + "required": [ + "valid", + "reason" + ], + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this DNS record is valid.", + "enum": [ + true, + false + ] + }, + "reason": { + "type": [ + "string", + "null" + ], + "description": "Null if the DNS record is valid. If the DNS record is invalid, this will explain why." + } + } + }, + "owner_cname": { + "type": "object", + "description": "The DNS record created to verify the link whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the DNS record is valid.", + "enum": [ + true, + false + ] + }, + "reason": { + "type": [ + "null", + "string" + ], + "description": "Null if valid. If the DNS record is invalid, this will explain why." + } + }, + "required": [ + "valid", + "reason" + ] + } + } + } + }, + "required": [ + "id", + "valid", + "validation_results" + ] + }, + "examples": { + "application/json": { + "id": 1, + "valid": true, + "validation_results": { + "domain_cname": { + "valid": false, + "reason": "Expected CNAME to match \"sendgrid.net.\" but found \"example.com.\"." + }, + "owner_cname": { + "valid": true, + "reason": null + } + } + } + } + }, + "500": { + "description": "", + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "description": "The reasons why the validation failed.", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The reason why the link whitelabel could not be validated." + } + }, + "required": [ + "message" + ] + } + } + }, + "required": [ + "errors" + ] + }, + "examples": { + "application/json": { + "errors": [ + { + "message": "internal error getting CNAME" + } + ] + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-links-id-validate", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/links/subuser": { + "get": { + "operationId": "GET_whitelabel-links-subuser", + "summary": "Retrieve Associated Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to retrieve the associated link whitelabel for a subuser.**\n\nLink whitelables can be associated with subusers from the parent account. This functionality allows\nsubusers to send mail using their parent's linke whitelabels. To associate a link whitelabel, the parent account\nmust first create a whitelabel and validate it. The parent may then associate that whitelabel with a subuser via the API or the Subuser Management page in the user interface.\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "username", + "in": "query", + "description": "The username of the subuser to retrieve associated link whitelabels for.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/link_whitelabel" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": false, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "GET_whitelabel-links-subuser", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": false, + "dynamic": false, + "statusCode": 200 + } + } + }, + "delete": { + "operationId": "DELETE_whitelabel-links-subuser", + "summary": "Disassociate a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to disassociate a link whitelabel from a subuser.**\n\nLink whitelables can be associated with subusers from the parent account. This functionality allows\nsubusers to send mail using their parent's linke whitelabels. To associate a link whitelabel, the parent account\nmust first create a whitelabel and validate it. The parent may then associate that whitelabel with a subuser via the API or the Subuser Management page in the user interface.\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "parameters": [ + { + "name": "username", + "in": "query", + "description": "The username of the subuser account that you want to disassociate a link whitelabel from.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "schema": { + "type": "null" + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "204": { + "description": "", + "schema": { + "type": "object" + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "DELETE_whitelabel-links-subuser", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + }, + "/whitelabel/links/{link_id}/subuser": { + "parameters": [ + { + "name": "link_id", + "in": "path", + "description": "The id of the link whitelabel you want to associate.", + "required": true, + "type": "integer" + } + ], + "post": { + "operationId": "POST_whitelabel-links-link_id-subuser", + "summary": "Associate a Link Whitelabel", + "tags": [ + "Whitelabel - Links" + ], + "description": "**This endpoint allows you to associate a link whitelabel with a subuser account.**\n\nLink whitelables can be associated with subusers from the parent account. This functionality allows\nsubusers to send mail using their parent's linke whitelabels. To associate a link whitelabel, the parent account\nmust first create a whitelabel and validate it. The parent may then associate that whitelabel with a subuser via the API or the Subuser Management page in the user interface.\n\nEmail link whitelabels allow all of the click-tracked links you send in your emails to include the URL of your domain instead of sendgrid.net.\n\nFor more information, please see our [User Guide](https://sendgrid.com/docs/API_Reference/Web_API_v3/Whitelabel/links.html).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The username of the subuser account that you want to associate the link whitelabel with." + } + }, + "example": { + "username": "jane@example.com" + } + } + }, + { + "$ref": "#/parameters/trait:onBehalfOfSubuser:on-behalf-of" + } + ], + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/link_whitelabel" + }, + "examples": { + "application/json": { + "id": 1, + "domain": "example.com", + "subdomain": "mail", + "username": "john@example.com", + "user_id": 7, + "default": false, + "valid": true, + "legacy": false, + "dns": { + "domain_cname": { + "valid": true, + "type": "cname", + "host": "mail.example.com", + "data": "sendgrid.net" + }, + "owner_cname": { + "valid": true, + "type": "cname", + "host": "7.example.com", + "data": "sendgrid.net" + } + } + } + } + } + }, + "security": [ + { + "Authorization": [] + } + ], + "x-stoplight": { + "id": "POST_whitelabel-links-linkid-subuser", + "beforeScript": null, + "afterScript": null, + "public": true, + "mock": { + "enabled": null, + "statusCode": null, + "dynamic": false + } + } + } + } + }, + "parameters": { + "trait:authorizationHeader:Authorization": { + "name": "Authorization", + "in": "header", + "required": true, + "type": "string", + "default": "Bearer <>" + }, + "trait:onBehalfOfSubuser:on-behalf-of": { + "name": "on-behalf-of", + "in": "header", + "type": "string", + "default": "subuser_" + } + }, + "definitions": { + "mail_settings_spam_check": { + "title": "Mail Settings: Spam Check", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if your Spam Checker mail setting is enabled." + }, + "max_score": { + "type": "integer", + "default": 5, + "description": "The spam threshold. Can range from 1 to 10. The lower the number, the more strict the filtering.", + "minimum": 1, + "maximum": 10 + }, + "url": { + "type": "string", + "description": "The inbound parse URL where you would like the spam messages to be sent to." + } + }, + "required": [ + "enabled" + ], + "example": { + "enabled": false, + "max_score": 6, + "url": "http://example.com" + }, + "x-stoplight": { + "id": "mail_settings_spam_check", + "name": "Mail Settings: Spam Check", + "public": true + } + }, + "suppression_group_unsubscribes": { + "title": "Suppressions: Suppression Group with Unsubscribes", + "allOf": [ + { + "$ref": "#/definitions/suppression_group" + }, + { + "properties": { + "unsubscribes": { + "type": "integer", + "description": "The unsubscribes associated with this group." + } + }, + "required": [ + "unsubscribes" + ] + } + ], + "type": "object", + "x-stoplight": { + "id": "suppression_group_unsubscribes", + "name": "Suppressions: Suppression Group with Unsubscribes", + "public": true + } + }, + "partner_settings_new_relic": { + "title": "Partner Settings: New Relic", + "type": "object", + "properties": { + "enable_subuser_statistics": { + "type": "boolean", + "description": "Indicates if your subuser statistics will be sent to your New Relic Dashboard." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if this setting is enabled. " + }, + "license_key": { + "type": "string", + "description": "The license key provided with your New Relic account." + } + }, + "required": [ + "enabled", + "license_key" + ], + "x-stoplight": { + "id": "partner_settings_new_relic", + "name": "Partner Settings: New Relic", + "public": true + } + }, + "subscription_tracking_settings": { + "title": "Settings: Subscription Tracking", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if subscription tracking is enabled." + }, + "html_content": { + "type": "string", + "description": "The information and HTML for your unsubscribe link. " + }, + "landing": { + "type": "string", + "description": "The HTML that will be displayed on the page that your customers will see after clicking unsubscribe, hosted on SendGrid’s server." + }, + "plain_content": { + "type": "string", + "description": "The information in plain text for your unsubscribe link. You should have the “<% %>” tag in your content, otherwise the user will have no URL for unsubscribing." + }, + "replace": { + "type": "string", + "description": "Your custom defined replacement tag for your templates. Use this tag to place your unsubscribe content anywhere in your emailtemplate." + }, + "url": { + "type": "string", + "description": "The URL where you would like your users sent to unsubscribe." + } + }, + "x-stoplight": { + "id": "subscription_tracking_settings", + "name": "Settings: Subscription Tracking", + "public": true + } + }, + "campaign_response": { + "title": "Campaigns Response", + "allOf": [ + { + "$ref": "#/definitions/campaign_request" + }, + { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of your campaign." + }, + "id": { + "type": "integer" + } + }, + "required": [ + "status" + ] + } + ], + "x-stoplight": { + "id": "campaign_response", + "name": "Campaigns Response", + "public": true + } + }, + "contactdb_recipient_response": { + "title": "ContactDB: Recipient response", + "type": "object", + "properties": { + "error_count": { + "type": "number", + "default": 0, + "description": "The number of errors found while adding recipients." + }, + "error_indices": { + "type": "array", + "default": [], + "description": "The indices of the recipient(s) sent that caused the error. ", + "items": { + "type": "number" + } + }, + "new_count": { + "type": "number", + "default": 0, + "description": "The count of new recipients added to the contactdb." + }, + "persisted_recipients": { + "type": "array", + "default": [], + "description": "The recipient IDs of the recipients that already existed from this request.", + "items": { + "type": "string" + } + }, + "updated_count": { + "type": "number", + "default": 0, + "description": "The recipients who were updated from this request." + }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "error_indices": { + "type": "array", + "items": { + "type": "number" + } + } + } + } + } + }, + "required": [ + "error_count", + "new_count", + "persisted_recipients", + "updated_count" + ], + "example": { + "error_count": 1, + "error_indices": [ + 2 + ], + "new_count": 2, + "persisted_recipients": [ + "YUBh", + "bWlsbGVyQG1pbGxlci50ZXN0" + ], + "updated_count": 0, + "errors": [ + { + "message": "Invalid email.", + "error_indices": [ + 2 + ] + } + ] + }, + "x-stoplight": { + "id": "contactdb_recipient_response", + "name": "ContactDB: Recipient response", + "public": true + } + }, + "stats": { + "title": "Stats", + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date that the statistics were gathered." + }, + "stats": { + "type": "array", + "description": "The list of statistics.", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of segmentation." + }, + "name": { + "type": "string", + "description": "The name of the specific segmentation." + }, + "metrics": { + "type": "object", + "description": "The individual events and their statistics.", + "properties": { + "blocks": { + "type": "integer", + "description": "The number of emails that were not allowed to be delivered by ISPs." + }, + "bounce_drops": { + "type": "integer", + "description": "The number of emails that were dropped because of a bounce." + }, + "bounces": { + "type": "integer", + "description": "The number of emails that bounced instead of being delivered." + }, + "clicks": { + "type": "integer", + "description": "The number of links that were clicked in your emails." + }, + "deferred": { + "type": "integer", + "description": "The number of emails that temporarily could not be delivered. " + }, + "delivered": { + "type": "integer", + "description": "The number of emails SendGrid was able to confirm were actually delivered to a recipient." + }, + "invalid_emails": { + "type": "integer", + "description": "The number of recipients who had malformed email addresses or whose mail provider reported the address as invalid." + }, + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "processed": { + "type": "integer", + "description": "Requests from your website, application, or mail client via SMTP Relay or the API that SendGrid processed." + }, + "requests": { + "type": "integer", + "description": "The number of emails that were requested to be delivered." + }, + "spam_report_drops": { + "type": "integer", + "description": "The number of emails that were dropped due to a recipient previously marking your emails as spam." + }, + "spam_reports": { + "type": "integer", + "description": "The number of recipients who marked your email as spam." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + }, + "unsubscribe_drops": { + "type": "integer", + "description": "The number of emails dropped due to a recipient unsubscribing from your emails." + }, + "unsubscribes": { + "type": "integer", + "description": "The number of recipients who unsubscribed from your emails." + } + } + } + } + } + } + } + }, + "x-stoplight": { + "id": "stats", + "name": "Stats", + "public": true + } + }, + "contactdb_segments_conditions": { + "title": "ContactDB: Segments: Conditions", + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "value": { + "type": "string" + }, + "operator": { + "type": "string", + "enum": [ + "eq", + "ne", + "lt", + "gt", + "contains" + ] + }, + "and_or": { + "type": "string", + "enum": [ + "and", + "or", + "" + ] + } + }, + "required": [ + "field", + "value", + "operator" + ], + "x-stoplight": { + "id": "contactdb_segments_conditions", + "name": "ContactDB: Segments: Conditions", + "public": true + } + }, + "suppression_bounce": { + "title": "Suppression: Bounce", + "type": "object", + "properties": { + "created": { + "type": "number", + "description": "The unix timestamp for when the bounce record was created at SendGrid." + }, + "email": { + "type": "string" + }, + "reason": { + "type": "string", + "description": "The reason for the bounce. This typically will be a bounce code, an enhanced code, and a description." + }, + "status": { + "type": "string", + "description": "Enhanced SMTP bounce response" + } + }, + "example": { + "created": 1250337600, + "email": "example@example.com", + "reason": "550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/answer/6596 o186si2389584ioe.63 - gsmtp ", + "status": "5.1.1" + }, + "x-stoplight": { + "id": "suppression_bounce", + "name": "Suppression: Bounce", + "public": true + } + }, + "ip_whitelabel": { + "title": "Whitelabel - IPs", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The id of the IP whitelabel." + }, + "ip": { + "type": "string", + "description": "The IP address that this whitelabel was created for." + }, + "rdns": { + "type": "string", + "description": "The reverse DNS record for the IP address. This points to the IP whitelabel subdomain." + }, + "users": { + "type": "array", + "description": "The users who are able to send mail from the IP.", + "items": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The username of the user who can send mail from this IP." + }, + "user_id": { + "type": "integer", + "description": "The ID of the user who can send mail from this IP." + } + }, + "required": [ + "username", + "user_id" + ] + } + }, + "subdomain": { + "type": "string", + "description": "The subdomain created for this IP whitelabel. This is where the rDNS record points." + }, + "domain": { + "type": "string", + "description": "The root, or sending, domain." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid whitelabel." + }, + "legacy": { + "type": "boolean", + "description": "Indicates if this whitelabel was created using the legacy whitelabel tool." + }, + "a_record": { + "type": "object", + "required": [ + "valid", + "type", + "host", + "data" + ], + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the a_record is valid." + }, + "type": { + "type": "string", + "description": "The type of DNS record." + }, + "host": { + "type": "string", + "description": "This is the web address that will be mapped to the IP address." + }, + "data": { + "type": "string", + "description": "The IP address being whitelabeled." + } + } + } + }, + "required": [ + "id", + "ip", + "rdns", + "users", + "subdomain", + "domain", + "valid", + "legacy", + "a_record" + ], + "example": { + "id": 1, + "ip": "192.168.1.1", + "rdns": "o1.email.example.com", + "users": [ + { + "username": "john@example.com", + "user_id": 7 + }, + { + "username": "jane@example.com", + "user_id": 8 + } + ], + "subdomain": "email", + "domain": "example.com", + "valid": true, + "legacy": false, + "a_record": { + "valid": true, + "type": "a", + "host": "o1.email.example.com", + "data": "192.168.1.1" + } + }, + "x-stoplight": { + "id": "ip_whitelabel", + "name": "Whitelabel - IPs", + "public": true + } + }, + "contacts": { + "title": "Contacts", + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "address2": { + "type": "object" + }, + "city": { + "type": "string" + }, + "company": { + "type": "string" + }, + "country": { + "type": "string" + }, + "email": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "state": { + "type": "string" + }, + "zip": { + "type": "string" + } + }, + "x-stoplight": { + "id": "contacts", + "name": "Contacts", + "public": true + } + }, + "senderID": { + "title": "Sender ID", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The unique identifier of the sender identity." + }, + "nickname": { + "type": "string", + "description": "A nickname for the sender identity. Not used for sending." + }, + "from": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "This is where the email will appear to originate from for your recipient" + }, + "name": { + "type": "string", + "description": "This is the name appended to the from email field. IE - Your name or company name." + } + }, + "required": [ + "email" + ] + }, + "reply_to": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "This is the email that your recipient will reply to." + }, + "name": { + "type": "string", + "description": "This is the name appended to the reply to email field. IE - Your name or company name." + } + } + }, + "address": { + "type": "string", + "description": "The physical address of the sender identity." + }, + "address_2": { + "type": "string", + "description": "Additional sender identity address information." + }, + "city": { + "type": "string", + "description": "The city of the sender identity." + }, + "state": { + "type": "string", + "description": "The state of the sender identity." + }, + "zip": { + "type": "string", + "description": "The zipcode of the sender identity." + }, + "country": { + "type": "string", + "description": "The country of the sender identity." + }, + "verified": { + "type": "boolean", + "description": "If the sender identity is verified or not. Only verified sender identities can be used to send email." + }, + "updated_at": { + "type": "integer", + "description": "The time the sender identity was last updated." + }, + "created_at": { + "type": "integer", + "description": "The time the sender identity was created." + }, + "locked": { + "type": "boolean", + "description": "A sender identity is locked when it is associated to a campaign in the Draft, Scheduled, or In Progress status. You cannot update or delete a locked sender identity." + } + }, + "required": [ + "nickname", + "address", + "city", + "country" + ], + "example": { + "id": 1, + "nickname": "My Sender ID", + "from": { + "email": "from@example.com", + "name": "Example INC" + }, + "reply_to": { + "email": "replyto@example.com", + "name": "Example INC" + }, + "address": "123 Elm St.", + "address_2": "Apt. 456", + "city": "Denver", + "state": "Colorado", + "zip": "80202", + "country": "United States", + "verified": true, + "updated_at": 1449872165, + "created_at": 1449872165, + "locked": false + }, + "x-stoplight": { + "id": "senderID", + "name": "Sender ID", + "public": true + } + }, + "global:empty_request": { + "title": "Global: Request Empty Body", + "type": "null", + "x-stoplight": { + "id": "global:empty_request", + "name": "Global: Request Empty Body", + "public": true + } + }, + "contactdb_custom_field": { + "title": "ContactDB Custom field schema.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the field" + }, + "type": { + "type": "string", + "description": "The type of the field.", + "enum": [ + "date", + "text", + "number" + ] + } + }, + "example": { + "name": "first_name", + "type": "text" + }, + "x-stoplight": { + "id": "contactdb_custom_field", + "name": "ContactDB: Custom Field", + "public": true + } + }, + "whitelabel:domain_spf": { + "title": "Whitelabel - Domain", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the domain whitelabel." + }, + "domain": { + "type": "string", + "description": "The domain that this whitelabel was created for." + }, + "subdomain": { + "type": "string", + "description": "The subdomain that was used to create this whitelabel." + }, + "username": { + "type": "string", + "description": "The username of the account that this whitelabel is associated with." + }, + "user_id": { + "type": "integer", + "description": "The user_id of the account that this whitelabel is associated with." + }, + "ips": { + "type": "array", + "description": "The IP addresses that are included in the SPF record for this whitelabel.", + "items": {} + }, + "custom_spf": { + "type": "boolean", + "description": "Indicates if this whitelabel uses custom SPF." + }, + "default": { + "type": "boolean", + "description": "Indicates if this is the default whitelabel." + }, + "legacy": { + "type": "boolean", + "description": "Indicates if this whitelabel was created using the legacy whitelabel tool." + }, + "automatic_security": { + "type": "boolean", + "description": "Indicates if this whitelabel uses automated security." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid whitelabel." + }, + "dns": { + "type": "object", + "description": "The DNS records for this whitelabel.", + "required": [ + "mail_server", + "subdomain_spf", + "domain_spf", + "dkim" + ], + "properties": { + "mail_server": { + "type": "object", + "description": "Designates which mail server is responsible for accepting messages from a domain.", + "required": [ + "host", + "type", + "data", + "valid" + ], + "properties": { + "host": { + "type": "string", + "description": "The domain sending the messages." + }, + "type": { + "type": "string", + "description": "They type of DNS record." + }, + "data": { + "type": "string", + "description": "The mail server responsible for accepting messages from the sending domain." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid DNS record." + } + } + }, + "subdomain_spf": { + "type": "object", + "description": "The SPF record for the subdomain used to create this whitelabel.", + "required": [ + "host", + "type", + "data", + "valid" + ], + "properties": { + "host": { + "type": "string", + "description": "The domain that this SPF record will be used to authenticate." + }, + "type": { + "type": "string", + "description": "The type of data in the SPF record." + }, + "data": { + "type": "string", + "description": "The SPF record." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid SPF record." + } + } + }, + "domain_spf": { + "type": "object", + "description": "The SPF record for the root domain.", + "required": [ + "host", + "type", + "data", + "valid" + ], + "properties": { + "host": { + "type": "string", + "description": "The root domain that this SPF record will be used to authenticate." + }, + "type": { + "type": "string", + "description": "The type of data in the SPF record." + }, + "data": { + "type": "string", + "description": "The SPF record." + }, + "valid": { + "type": "boolean", + "description": "Indicates if the SPF record is valid." + } + } + }, + "dkim": { + "type": "object", + "description": "The DKIM record for messages sent using this whitelabel.", + "required": [ + "host", + "type", + "data", + "valid" + ], + "properties": { + "host": { + "type": "string", + "description": "The DNS labels for the DKIM signature." + }, + "type": { + "type": "string", + "description": "The type of data in the DKIM record." + }, + "data": { + "type": "string", + "description": "The DKIM record." + }, + "valid": { + "type": "boolean", + "description": "Indicates if the DKIM record is valid." + } + } + } + } + } + }, + "required": [ + "id", + "domain", + "subdomain", + "username", + "user_id", + "ips", + "custom_spf", + "default", + "legacy", + "automatic_security", + "valid", + "dns" + ], + "x-stoplight": { + "id": "whitelabel:domain_spf", + "name": "Whitelabel - Domain", + "public": true + } + }, + "subuser": { + "title": "List all Subusers for a parent response", + "type": "object", + "properties": { + "disabled": { + "type": "boolean", + "description": "Whether or not the user is enabled or disabled." + }, + "id": { + "type": "number", + "description": "The ID of this subuser." + }, + "username": { + "type": "string", + "description": "The name by which this subuser will be referred." + }, + "email": { + "type": "string", + "description": "The email address to contact this subuser.", + "format": "email" + } + }, + "required": [ + "disabled", + "id", + "username", + "email" + ], + "example": { + "disabled": false, + "email": "example@example.com", + "id": 1234, + "username": "example_subuser" + }, + "x-stoplight": { + "id": "subuser", + "name": "Subuser", + "public": true + } + }, + "mail_settings_address_whitelabel": { + "title": "Mail Settings: Address Whitelabel", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if you have an email address whitelist enabled. " + }, + "list": { + "type": "array", + "description": "All email address that are currently on the whitelist.", + "items": { + "type": "string" + } + } + }, + "example": { + "enabled": true, + "list": [ + "email1@example.com", + "example.com" + ] + }, + "x-stoplight": { + "id": "mail_settings_address_whitelabel", + "name": "Mail Settings: Address Whitelabel", + "public": true + } + }, + "link_whitelabel": { + "title": "Whitelabel - Links", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The id of the link whitelabel." + }, + "domain": { + "type": "string", + "description": "The root domain for this link whitelabel." + }, + "subdomain": { + "type": "string", + "description": "The subdomain used to generate the DNS records for this link whitelabel. This subdomain must be different from the subdomain used for your domain whitelabel." + }, + "username": { + "type": "string", + "description": "The username of the account that this link whitelabel is associated with." + }, + "user_id": { + "type": "integer", + "description": "The id of the user that this whitelabel is associated with." + }, + "default": { + "type": "boolean", + "description": "Indicates if this is the default link whitelabel.", + "enum": [ + true, + false + ] + }, + "valid": { + "type": "boolean", + "description": "Indicates if this link whitelabel is valid.", + "enum": [ + true, + false + ] + }, + "legacy": { + "type": "boolean", + "description": "Indicates if this link whitelabel was created using the legacy whitelabel tool.", + "enum": [ + true, + false + ] + }, + "dns": { + "type": "object", + "description": "The DNS records generated for this link whitelabel.", + "required": [ + "domain_cname" + ], + "properties": { + "domain_cname": { + "type": "object", + "description": "The DNS record generated to point to your link whitelabel subdomain.", + "required": [ + "valid", + "type", + "host", + "data" + ], + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the DNS record is valid.", + "enum": [ + true, + false + ] + }, + "type": { + "type": "string", + "description": "The type of DNS record that was generate.", + "enum": [ + "cname", + "txt", + "mx" + ] + }, + "host": { + "type": "string", + "description": "The domain that this whitelabel will use when whitelabeling the links in your email." + }, + "data": { + "type": "string", + "description": "The domain that the DNS record points to." + } + } + }, + "owner_cname": { + "type": "object", + "description": "The DNS record generated to verify who created the link whitelabel.", + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if the DNS record is valid.", + "enum": [ + true, + false + ] + }, + "type": { + "type": "string", + "description": "The type of DNS record generated.", + "enum": [ + "cname", + "txt", + "mx" + ] + }, + "host": { + "type": "string", + "description": "Used to verify the link whitelabel. The subdomain of this domain is the user id of the user who created the link whitelabel." + }, + "data": { + "type": "string", + "description": "The domain that the DNS record points to." + } + }, + "required": [ + "valid", + "host", + "data" + ] + } + } + } + }, + "required": [ + "id", + "domain", + "subdomain", + "username", + "user_id", + "default", + "valid", + "legacy", + "dns" + ], + "x-stoplight": { + "id": "link_whitelabel", + "name": "Whitelabel - Links", + "public": true + } + }, + "email_object": { + "title": "Email Object", + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string", + "description": "The name of the person to whom you are sending an email." + } + }, + "required": [ + "email" + ], + "x-stoplight": { + "id": "email_object", + "name": "Email Object", + "public": true + } + }, + "api_key_name_id_scopes": { + "title": "API Key Name, ID, and Scopes", + "allOf": [ + { + "type": "object", + "properties": { + "scopes": { + "type": "array", + "description": "The permissions this API Key has access to.", + "items": { + "type": "string" + } + } + } + }, + { + "$ref": "#/definitions/api_key_name_id" + } + ], + "example": { + "api_key_id": "qfTQ6KG0QBiwWdJ0-pCLCA", + "name": "A New Hope", + "scopes": [ + "user.profile.read", + "user.profile.update" + ] + }, + "x-stoplight": { + "id": "api_key_name_id_scopes", + "name": "API Key Name, ID, and Scopes", + "public": true + } + }, + "contactdb_segments": { + "title": "Create a Segment request", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of this segment." + }, + "list_id": { + "type": "integer", + "description": "The list id from which to make this segment. Not including this ID will mean your segment is created from the main contactdb rather than a list." + }, + "conditions": { + "type": "array", + "description": "The conditions for a recipient to be included in this segment.", + "items": { + "$ref": "#/definitions/contactdb_segments_conditions" + } + }, + "recipient_count": { + "type": "number", + "description": "The count of recipients in this list. This is not included on creation of segments." + } + }, + "required": [ + "name", + "conditions" + ], + "example": { + "name": "Last Name Miller", + "list_id": 4, + "conditions": [ + { + "field": "last_name", + "value": "Miller", + "operator": "eq", + "and_or": "" + }, + { + "field": "last_clicked", + "value": "01/02/2015", + "operator": "gt", + "and_or": "and" + }, + { + "field": "clicks.campaign_identifier", + "value": "513", + "operator": "eq", + "and_or": "or" + } + ], + "recipient_count": 1234 + }, + "x-stoplight": { + "id": "contactdb_segments", + "name": "ContactDB: Segments", + "public": true + } + }, + "api_key_name_id": { + "title": "API Key Name and ID", + "type": "object", + "properties": { + "api_key_id": { + "type": "string", + "description": "The ID of your API Key. " + }, + "name": { + "type": "string", + "description": "The name of your API Key." + } + }, + "example": { + "api_key_id": "qfTQ6KG0QBiwWdJ0-pCLCA", + "name": "A New Hope" + }, + "x-stoplight": { + "id": "api_key_name_id", + "name": "API Key Name and ID", + "public": true + } + }, + "advanced_stats_opens": { + "title": "Stats: Advanced Stats with Opens", + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date that the events occurred." + }, + "stats": { + "type": "array", + "description": "The statistics of the email events.", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of segmentation." + }, + "name": { + "type": "string", + "description": "The name of the specific segmentation." + }, + "metrics": { + "type": "object", + "description": "The individual events and their stats.", + "required": [ + "opens", + "unique_opens" + ], + "properties": { + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + } + } + } + }, + "required": [ + "type", + "name", + "metrics" + ] + } + } + }, + "required": [ + "date", + "stats" + ], + "x-stoplight": { + "id": "advanced_stats_opens", + "name": "Stats: Advanced Stats with Opens", + "public": true + } + }, + "mail_settings_template": { + "title": "Mail Settings: Template", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the legacy email template setting is enabled." + }, + "html_content": { + "type": "string", + "description": "The HTML content that you want to use for your legacy email template." + } + }, + "example": { + "enabled": false, + "html_content": "

<% body %>Example

\n" + }, + "x-stoplight": { + "id": "mail_settings_template", + "name": "Mail Settings: Template", + "public": true + } + }, + "ip_warmup_response": { + "title": "IP Warmup: IP", + "type": "array", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP address." + }, + "start_date": { + "type": "integer", + "description": "A Unix timestamp indicating when the IP address was entered into warmup mode." + } + }, + "required": [ + "ip", + "start_date" + ] + }, + "example": [ + { + "ip": "0.0.0.0", + "start_date": 1409616000 + } + ], + "x-stoplight": { + "id": "ip_warmup_response", + "name": "IP Warmup: IP", + "public": true + } + }, + "advanced_stats_mailbox_provider": { + "title": "Stats: Advanced Stats for Mailbox Provider", + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date that the events occurred." + }, + "stats": { + "type": "array", + "description": "The statistics of the email events.", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of segmentation." + }, + "name": { + "type": "string", + "description": "The name of the specific segmentation." + }, + "metrics": { + "type": "object", + "description": "The individual events and their stats.", + "required": [ + "clicks", + "opens", + "unique_clicks", + "unique_opens", + "blocks", + "bounces", + "deferred", + "delivered", + "drops", + "spam_reports" + ], + "properties": { + "clicks": { + "type": "integer", + "description": "The number of links that were clicked in your emails." + }, + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + }, + "blocks": { + "type": "integer", + "description": "The number of emails that were not allowed to be delivered by ISPs." + }, + "bounces": { + "type": "integer", + "description": "The number of emails that bounced instead of being delivered." + }, + "deferred": { + "type": "integer", + "description": "The number of emails that temporarily could not be delivered." + }, + "delivered": { + "type": "integer", + "description": "The number of emails SendGrid was able to confirm were actually delivered to a recipient." + }, + "drops": { + "type": "integer", + "description": "The number of emails that were not delivered due to the recipient email address being on a suppression list." + }, + "spam_reports": { + "type": "integer", + "description": "The number of recipients who marked your email as spam." + } + } + } + }, + "required": [ + "type", + "name", + "metrics" + ] + } + } + }, + "required": [ + "date", + "stats" + ], + "x-stoplight": { + "id": "advanced_stats_mailbox_provider", + "name": "Stats: Advanced Stats for Mailbox Provider", + "public": true + } + }, + "global:ErrorResponse": { + "title": "Global: Error Response", + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": [ + "string", + "null" + ], + "description": "The field that generated the error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "required": [ + "message" + ] + } + } + }, + "example": { + "errors": [ + { + "field": "field_name", + "message": "Some message here" + } + ] + }, + "x-stoplight": { + "id": "global:ErrorResponse", + "name": "Global: Error Response", + "public": true + } + }, + "contactdb_custom_field_with_id": { + "title": "ContactDB Custom field schema with ID.", + "allOf": [ + { + "$ref": "#/definitions/contactdb_custom_field" + }, + { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "The ID of the custom field." + } + } + } + ], + "x-stoplight": { + "id": "contactdb_custom_field_with_id", + "name": "ContactDB: Custom Field with ID", + "public": true + } + }, + "monitor": { + "title": "Create monitor settings request", + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The email address to send emails at the frequency specified for monitoring.", + "format": "email" + }, + "frequency": { + "type": "number", + "description": "The frequency by which to send the emails. An email will be sent, every time your subuser sends this {frequency} emails. " + } + }, + "required": [ + "email", + "frequency" + ], + "example": { + "email": "example@example.com", + "frequency": 50000 + }, + "x-stoplight": { + "id": "monitor", + "name": "Monitor Settings", + "public": true + } + }, + "errors": { + "title": "Error Schema", + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "field": { + "type": [ + "null", + "string" + ], + "description": "The field that has the error." + }, + "message": { + "type": "string", + "description": "The message the API caller will receive." + } + } + } + } + }, + "x-stoplight": { + "id": "errors", + "name": "Error Schema", + "public": true + } + }, + "ip_pool": { + "title": "IP Pools: Pool", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the IP pool.", + "maxLength": 64 + } + }, + "required": [ + "name" + ], + "x-stoplight": { + "id": "ip_pool", + "name": "IP Pools: Pool", + "public": true + } + }, + "google_analytics_settings": { + "title": "Settings: Google Analytics", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if Google Analytics is enabled." + }, + "utm_campaign": { + "type": "string", + "description": "The name of the campaign." + }, + "utm_content": { + "type": "string", + "description": "Used to differentiate ads" + }, + "utm_medium": { + "type": "string", + "description": "Name of the marketing medium (e.g. \"Email\")." + }, + "utm_source": { + "type": "string", + "description": "Name of the referrer source. " + }, + "utm_term": { + "type": "string", + "description": "Any paid keywords." + } + }, + "example": { + "enabled": true, + "utm_source": "sendgrid.com", + "utm_medium": "email", + "utm_term": "", + "utm_content": "", + "utm_campaign": "website" + }, + "x-stoplight": { + "id": "google_analytics_settings", + "name": "Settings: Google Analytics", + "public": true + } + }, + "event_webhook_settings": { + "title": "Webhooks: Event Webhook Settings", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the event webhook is enabled." + }, + "url": { + "type": "string", + "description": "The URL that you want the event webhook to POST to." + }, + "group_resubscribe": { + "type": "boolean", + "description": "Recipient resubscribes to specific group by updating preferences. You need to enable Subscription Tracking for getting this type of event." + }, + "delivered": { + "type": "boolean", + "description": "Message has been successfully delivered to the receiving server." + }, + "group_unsubscribe": { + "type": "boolean", + "description": "Recipient unsubscribe from specific group, by either direct link or updating preferences. You need to enable Subscription Tracking for getting this type of event." + }, + "spam_report": { + "type": "boolean", + "description": "Recipient marked a message as spam." + }, + "bounce": { + "type": "boolean", + "description": "Receiving server could not or would not accept message." + }, + "deferred": { + "type": "boolean", + "description": "Recipient's email server temporarily rejected message." + }, + "unsubscribe": { + "type": "boolean", + "description": "Recipient clicked on message's subscription management link. You need to enable Subscription Tracking for getting this type of event." + }, + "processed": { + "type": "boolean", + "description": "Message has been received and is ready to be delivered." + }, + "open": { + "type": "boolean", + "description": "Recipient has opened the HTML message. You need to enable Open Tracking for getting this type of event." + }, + "click": { + "type": "boolean", + "description": "Recipient clicked on a link within the message. You need to enable Click Tracking for getting this type of event." + }, + "dropped": { + "type": "boolean", + "description": "You may see the following drop reasons: Invalid SMTPAPI header, Spam Content (if spam checker app enabled), Unsubscribed Address, Bounced Address, Spam Reporting Address, Invalid, Recipient List over Package Quota" + } + }, + "required": [ + "enabled", + "url", + "group_resubscribe", + "delivered", + "group_unsubscribe", + "spam_report", + "bounce", + "deferred", + "unsubscribe", + "processed", + "open", + "click", + "dropped" + ], + "x-stoplight": { + "id": "event_webhook_settings", + "name": "Webhooks: Event Webhook Settings", + "public": true + } + }, + "user_profile": { + "title": "User: Profile", + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The street address for this user profile." + }, + "address2": { + "type": "string", + "description": "An optional second line for the street address of this user profile." + }, + "city": { + "type": "string", + "description": "The city for the user profile." + }, + "company": { + "type": "string", + "description": "That company that this user profile is associated with." + }, + "country": { + "type": "string", + "description": "Th country of this user profile." + }, + "first_name": { + "type": "string", + "description": "The first name of the user." + }, + "last_name": { + "type": "string", + "description": "The last name of the user." + }, + "phone": { + "type": "string", + "description": "The phone number for the user." + }, + "state": { + "type": "string", + "description": "The state for this user." + }, + "website": { + "type": "string", + "description": "The website associated with this user." + }, + "zip": { + "type": "string", + "description": "The zip code for this user." + } + }, + "example": { + "address": "1451 Larimer Street, 3rd floor", + "address2": "", + "city": "Denver, CO", + "company": "SendGrid", + "country": "US", + "first_name": "Matthew", + "last_name": "Bernier", + "phone": "7208788003", + "state": "CO", + "website": "http://sendgrid.com", + "zip": "80202" + }, + "x-stoplight": { + "id": "user_profile", + "name": "User: Profile", + "public": true + } + }, + "mail_settings_footer": { + "title": "Mail Settings: Footer", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the Footer mail setting is currently enabled." + }, + "html_content": { + "type": "string", + "description": "The custom HTML content of your email footer." + }, + "plain_content": { + "type": "string", + "description": "The plain text content of your email footer." + } + }, + "example": { + "enabled": true, + "html_content": "Example HTML content", + "plain_content": "Example plain content" + }, + "x-stoplight": { + "id": "mail_settings_footer", + "name": "Mail Settings: Footer", + "public": true + } + }, + "category_stats": { + "title": "Stats: Category Stats", + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date the statistics were gathered." + }, + "stats": { + "type": "array", + "items": { + "type": "object", + "properties": { + "metrics": { + "type": "object", + "properties": { + "blocks": { + "type": "integer", + "description": "The number of emails that were not allowed to be delivered by ISPs." + }, + "bounce_drops": { + "type": "integer", + "description": "The number of emails that were dropped because of a bounce." + }, + "bounces": { + "type": "integer", + "description": "The number of emails that bounced instead of being delivered." + }, + "clicks": { + "type": "integer", + "description": "The number of links that were clicked." + }, + "deferred": { + "type": "integer", + "description": "The number of emails that temporarily could not be delivered." + }, + "delivered": { + "type": "integer", + "description": "The number of emails SendGrid was able to confirm were actually delivered to a recipient." + }, + "invalid_emails": { + "type": "integer", + "description": "The number of recipients who had malformed email addresses or whose mail provider reported the address as invalid." + }, + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "processed": { + "type": "integer", + "description": "Requests from your website, application, or mail client via SMTP Relay or the API that SendGrid processed." + }, + "requests": { + "type": "integer", + "description": "The number of emails that were requested to be delivered." + }, + "spam_report_drops": { + "type": "integer", + "description": "The number of emails that were dropped due to a recipient previously marking your emails as spam." + }, + "spam_reports": { + "type": "integer", + "description": "The number of recipients who marked your email as spam." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + }, + "unsubscribe_drops": { + "type": "integer", + "description": "The number of emails dropped due to a recipient unsubscribing from your emails." + }, + "unsubscribes": { + "type": "integer", + "description": "The number of recipients who unsubscribed from your emails." + } + }, + "required": [ + "blocks", + "bounce_drops", + "bounces", + "clicks", + "deferred", + "delivered", + "invalid_emails", + "opens", + "processed", + "requests", + "spam_report_drops", + "spam_reports", + "unique_clicks", + "unique_opens", + "unsubscribe_drops", + "unsubscribes" + ] + }, + "name": { + "type": "string", + "description": "The name of the category." + }, + "type": { + "type": "string", + "description": "How you are segmenting your statistics." + } + }, + "required": [ + "type" + ] + } + } + }, + "required": [ + "date" + ], + "example": { + "date": "2015-01-01", + "stats": [ + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + }, + "name": "cat1", + "type": "category" + }, + { + "metrics": { + "blocks": 0, + "bounce_drops": 0, + "bounces": 0, + "clicks": 0, + "deferred": 0, + "delivered": 0, + "invalid_emails": 0, + "opens": 0, + "processed": 0, + "requests": 0, + "spam_report_drops": 0, + "spam_reports": 0, + "unique_clicks": 0, + "unique_opens": 0, + "unsubscribe_drops": 0, + "unsubscribes": 0 + }, + "name": "cat2", + "type": "category" + } + ] + }, + "x-stoplight": { + "id": "category_stats", + "name": "Stats: Category Stats", + "public": true + } + }, + "transactional_template": { + "title": "Transactional Templates: Template", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the transactional template." + }, + "name": { + "type": "string", + "description": "The name for the transactional template.", + "maxLength": 100 + }, + "versions": { + "type": "array", + "description": "The different versions of this transactional template.", + "items": { + "$ref": "#/definitions/transactional_template_version" + } + } + }, + "required": [ + "id", + "name" + ], + "x-stoplight": { + "id": "transactional_template", + "name": "Transactional Templates: Template", + "public": true + } + }, + "parse-setting": { + "title": "Parse Setting", + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "The public URL where you would like SendGrid to POST the data parsed from your email. Any emails sent with the given hostname provided (whose MX records have been updated to point to SendGrid) will be parsed and POSTed to this URL." + }, + "hostname": { + "type": "string", + "description": "A specific and unique domain or subdomain that you have created to use exclusively to parse your incoming email. For example, parse.yourdomain.com." + }, + "spam_check": { + "type": "boolean", + "description": "Indicates if you would like SendGrid to check the content parsed from your emails for spam before POSTing them to your domain." + }, + "send_raw": { + "type": "boolean", + "description": "Indicates if you would like SendGrid to post the original MIME-type content of your parsed email. When this parameter is set to \"false\", SendGrid will send a JSON payload of the content of your email. " + } + }, + "example": { + "url": "http://email.myhostname.com", + "hostname": "myhostname.com", + "spam_check": false, + "send_raw": true + }, + "x-stoplight": { + "id": "parse-setting", + "name": "Parse Setting", + "public": true + } + }, + "contactdb_list": { + "title": "ContactDB lists", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The reference ID of your list." + }, + "name": { + "type": "string", + "description": "The name of your list." + }, + "recipient_count": { + "type": "integer", + "description": "The count of recipients currently in the list." + } + }, + "required": [ + "id", + "name", + "recipient_count" + ], + "example": { + "id": 1, + "name": "listname", + "recipient_count": 0 + }, + "x-stoplight": { + "id": "contactdb_list", + "name": "ContactDB: List", + "public": true + } + }, + "suppression_group": { + "title": "Suppressions: Suppression Group", + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "The id of the suppression group." + }, + "name": { + "type": "string", + "description": "The name of the suppression group. Each group created by a user must have a unique name.", + "maxLength": 30 + }, + "description": { + "type": "string", + "description": "A description of the suppression group.", + "maxLength": 100 + }, + "last_email_sent_at": { + "type": "null" + }, + "is_default": { + "type": "boolean", + "default": false, + "description": "Indicates if this is the default suppression group." + } + }, + "required": [ + "id", + "name", + "description" + ], + "x-stoplight": { + "id": "suppression_group", + "name": "Suppressions: Suppression Group", + "public": true + } + }, + "mail_settings_bounce_purge": { + "title": "Mail Settings: Bounce Purge", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the bounce purge mail setting is enabled." + }, + "soft_bounces": { + "type": [ + "integer", + "null" + ], + "description": "The number of days, after which SendGrid will purge all contacts from your soft bounces suppression lists." + }, + "hard_bounces": { + "type": [ + "integer", + "null" + ], + "description": "The number of days, after which SendGrid will purge all contacts from your hard bounces suppression lists." + } + }, + "example": { + "enabled": false, + "soft_bounces": 1234, + "hard_bounces": null + }, + "x-stoplight": { + "id": "mail_settings_bounce_purge", + "name": "Mail Settings: Bounce Purge", + "public": true + } + }, + "transactional_template_version": { + "title": "Transactional Templates: Version", + "type": "object", + "properties": { + "template_id": { + "type": "string", + "description": "The name of the original transactional template." + }, + "active": { + "type": "integer", + "description": "Set the new version as the active version associated with the template. Only one version of a template can be active. The first version created for a template will automatically be set to Active.", + "enum": [ + 0, + 1 + ] + }, + "name": { + "type": "string", + "description": "Name of the new transactional template version." + }, + "html_content": { + "type": "string", + "description": "The HTML content of the new version. Must include <%body%> tag. Maximum of 1048576 bytes allowed for plain content." + }, + "plain_content": { + "type": "string", + "description": "Text/plain content of the new transactional template version. Must include <%body%> tag. Maximum of 1048576 bytes allowed for plain content." + }, + "subject": { + "type": "string", + "description": "Subject of the new transactional template version. Must include <%subject%> tag." + } + }, + "required": [ + "template_id", + "active", + "name", + "html_content", + "plain_content", + "subject" + ], + "x-stoplight": { + "id": "transactional_template_version", + "name": "Transactional Templates: Version", + "public": true + } + }, + "mail_settings_bcc": { + "title": "Mail Settings: BCC", + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The email address that will be sent a blind carbon copy." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if the BCC setting is enabled." + } + }, + "example": { + "email": "example@example.com", + "enabled": false + }, + "x-stoplight": { + "id": "mail_settings_bcc", + "name": "Mail Settings: BCC", + "public": true + } + }, + "global:id": { + "title": "Global: ID", + "type": "integer", + "x-stoplight": { + "id": "global:id", + "name": "Global: ID", + "public": true + } + }, + "credentials": { + "title": "Credentials", + "type": "object", + "properties": { + "permissions": { + "type": "object", + "properties": { + "api": { + "type": "string" + }, + "mail": { + "type": "string" + }, + "web": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + }, + "example": { + "address": "1234 example street", + "address2": null, + "city": "Denver", + "company": "Company name", + "country": "US", + "email": "example@example.com", + "first_name": "Example", + "last_name": "User", + "phone": "(555) 555-5555", + "state": "CO", + "zip": "55555" + }, + "x-stoplight": { + "id": "credentials", + "name": "Credentials", + "public": true + } + }, + "subuser_stats": { + "title": "subuser_stats", + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date the statistics were gathered." + }, + "stats": { + "type": "array", + "description": "The list of statistics.", + "items": { + "type": "object", + "properties": { + "first_name": { + "type": "string", + "description": "The first name of the subuser." + }, + "last_name": { + "type": "string", + "description": "The last name of the subuser." + }, + "metrics": { + "type": "object", + "properties": { + "blocks": { + "type": "integer", + "description": "The number of emails that were not allowed to be delivered by ISPs." + }, + "bounce_drops": { + "type": "integer", + "description": "The number of emails that were dropped because of a bounce." + }, + "bounces": { + "type": "integer", + "description": "The number of emails that bounced instead of being delivered." + }, + "clicks": { + "type": "integer", + "description": "The number of links that were clicked in your emails." + }, + "deferred": { + "type": "integer", + "description": "The number of emails that temporarily could not be delivered." + }, + "delivered": { + "type": "integer", + "description": "The number of emails SendGrid was able to confirm were actually delivered to a recipient." + }, + "invalid_emails": { + "type": "integer", + "description": "The number of recipients who had malformed email addresses or whose mail provider reported the address as invalid." + }, + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "processed": { + "type": "integer", + "description": "Requests from your website, application, or mail client via SMTP Relay or the API that SendGrid processed." + }, + "requests": { + "type": "integer", + "description": "The number of emails that were requested to be delivered." + }, + "spam_report_drops": { + "type": "integer", + "description": "The number of emails that were dropped due to a recipient previously marking your emails as spam." + }, + "spam_reports": { + "type": "integer", + "description": "The number of recipients who marked your email as spam." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + }, + "unsubscribe_drops": { + "type": "integer", + "description": "The number of emails dropped due to a recipient unsubscribing from your emails." + }, + "unsubscribes": { + "type": "integer", + "description": "The number of recipients who unsubscribed from your emails." + } + } + }, + "name": { + "type": "string", + "description": "The username of the subuser." + }, + "type": { + "type": "string", + "description": "The type of account." + } + } + } + } + }, + "x-stoplight": { + "id": "subuser_stats", + "name": "subuser_stats", + "public": true + } + }, + "campaign_request": { + "title": "Campaigns Request", + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The display title of your campaign. This will be viewable by you in the Marketing Campaigns UI." + }, + "subject": { + "type": [ + "string", + "null" + ], + "description": "The subject of your campaign that your recipients will see." + }, + "sender_id": { + "type": [ + "null", + "integer" + ], + "description": "The ID of the \"sender\" identity that you have created. Your recipients will see this as the \"from\" on your marketing emails." + }, + "list_ids": { + "type": [ + "array", + "null" + ], + "description": "The IDs of the lists you are sending this campaign to. You can have both segment IDs and list IDs", + "items": { + "type": "integer" + } + }, + "segment_ids": { + "type": [ + "array", + "null" + ], + "description": "The segment IDs that you are sending this list to. You can have both segment IDs and list IDs.", + "items": { + "type": "integer" + } + }, + "categories": { + "type": [ + "array", + "null" + ], + "description": "The categories you would like associated to this campaign.", + "items": { + "type": "string" + } + }, + "suppression_group_id": { + "type": [ + "null", + "integer" + ], + "description": "The suppression group that this marketing email belongs to, allowing recipients to opt-out of emails of this type." + }, + "custom_unsubscribe_url": { + "type": [ + "string", + "null" + ], + "description": "This is the url of the custom unsubscribe page that you provide for customers to unsubscribe from your suppression groups." + }, + "ip_pool": { + "type": [ + "string", + "null" + ], + "description": "The pool of IPs that you would like to send this email from." + }, + "html_content": { + "type": [ + "string", + "null" + ], + "description": "The HTML of your marketing email." + }, + "plain_content": { + "type": [ + "string", + "null" + ], + "description": "The plain text content of your emails." + } + }, + "required": [ + "title" + ], + "example": { + "id": 986724, + "title": "May Newsletter", + "subject": "New Products for Summer!", + "sender_id": 124451, + "list_ids": [ + 110, + 124 + ], + "segment_ids": [ + 110 + ], + "categories": [ + "summer line" + ], + "suppression_group_id": 42, + "custom_unsubscribe_url": "", + "ip_pool": "marketing", + "html_content": "

Check out our summer line!

", + "plain_content": "Check out our summer line!", + "status": "Draft" + }, + "x-stoplight": { + "id": "campaign_request", + "name": "Campaigns Request", + "public": true + } + }, + "user_scheduled_send_status": { + "title": "User: Scheduled Send status", + "allOf": [ + { + "$ref": "#/definitions/mail_batch_id" + }, + { + "type": "object", + "description": "The status of the scheduled send.", + "properties": { + "status": { + "type": "string", + "description": "The status of the scheduled send.", + "enum": [ + "cancel", + "pause" + ] + } + }, + "required": [ + "status" + ] + } + ], + "x-stoplight": { + "id": "user_scheduled_send_status", + "name": "User: Scheduled Send status", + "public": true + } + }, + "mail_settings_forward_spam": { + "title": "Mail Settings: Forward Spam", + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The email address where you would like the spam reports to be forwarded." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if the Forward Spam setting is enabled." + } + }, + "example": { + "email": "", + "enabled": true + }, + "x-stoplight": { + "id": "mail_settings_forward_spam", + "name": "Mail Settings: Forward Spam", + "public": true + } + }, + "contactdb_segments_with_id": { + "title": "ContactDB:: Segments with ID", + "allOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "The ID of the segment." + } + }, + "required": [ + "id" + ] + }, + { + "$ref": "#/definitions/contactdb_segments" + } + ], + "x-stoplight": { + "id": "contactdb_segments_with_id", + "name": "ContactDB:: Segments with ID", + "public": true + } + }, + "advanced_stats_country": { + "title": "Stats: Advanced Stats with Clicks and Opens", + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date that the events occurred." + }, + "stats": { + "type": "array", + "description": "The statistics of the email events.", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of segmentation." + }, + "name": { + "type": "string", + "description": "The name of the specific segmentation." + }, + "metrics": { + "type": "object", + "description": "The individual events and their stats.", + "required": [ + "clicks", + "opens", + "unique_clicks", + "unique_opens" + ], + "properties": { + "clicks": { + "type": "integer", + "description": "The number of links that were clicked in your emails." + }, + "opens": { + "type": "integer", + "description": "The total number of times your emails were opened by recipients." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + }, + "unique_opens": { + "type": "integer", + "description": "The number of unique recipients who opened your emails." + } + } + } + }, + "required": [ + "type", + "name", + "metrics" + ] + } + } + }, + "required": [ + "date", + "stats" + ], + "x-stoplight": { + "id": "advanced_stats_country", + "name": "Stats: Advanced Stats with Clicks and Opens", + "public": true + } + }, + "advanced_stats_clicks": { + "title": "Stats: Advanced Stats with Clicks", + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "The date that the events occurred." + }, + "stats": { + "type": "array", + "description": "The statistics of the email events.", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of segmentation." + }, + "name": { + "type": "string", + "description": "The name of the specific segmentation." + }, + "metrics": { + "type": "object", + "description": "The individual events and their stats.", + "required": [ + "clicks", + "unique_clicks" + ], + "properties": { + "clicks": { + "type": "integer", + "description": "The number of links that were clicked in your emails." + }, + "unique_clicks": { + "type": "integer", + "description": "The number of unique recipients who clicked links in your emails." + } + } + } + }, + "required": [ + "type", + "name", + "metrics" + ] + } + } + }, + "required": [ + "date", + "stats" + ], + "x-stoplight": { + "id": "advanced_stats_clicks", + "name": "Stats: Advanced Stats with Clicks", + "public": true + } + }, + "contactdb_recipient": { + "title": "ContactDB: Recipient", + "type": "object", + "properties": { + "recipients": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of this recipient." + }, + "created_at": { + "type": "number", + "description": "The time this record was created in your contactdb, in unixtime." + }, + "custom_fields": { + "type": "array", + "description": "The custom fields assigned to this recipient and their values.", + "items": { + "$ref": "#/definitions/contactdb_custom_field_with_id_value" + } + }, + "email": { + "type": "string", + "description": "The email address of this recipient. This is a default custom field that SendGrid provides.", + "format": "email" + }, + "first_name": { + "type": [ + "string", + "null" + ], + "description": "The first name of this recipient. This is a default custom field that SendGrid provides." + }, + "last_name": { + "type": [ + "string", + "null" + ], + "description": "The last name of the recipient." + }, + "last_clicked": { + "type": [ + "number", + "null" + ], + "description": "The last time this recipient clicked a link from one of your campaigns, in unixtime." + }, + "last_emailed": { + "type": [ + "number", + "null" + ], + "description": "The last time this user was emailed by one of your campaigns, in unixtime." + }, + "last_opened": { + "type": [ + "number", + "null" + ], + "description": "The last time this recipient opened an email from you, in unixtime." + }, + "updated_at": { + "type": "number", + "description": "The last update date for this recipient's record." + } + }, + "required": [ + "email" + ] + } + } + }, + "x-stoplight": { + "id": "contactdb_recipient", + "name": "ContactDB: Recipient", + "public": true + } + }, + "mail_settings_patch": { + "title": "Mail Settings: Patch", + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates if the mail setting is enabled." + }, + "email": { + "type": "string", + "description": "The email address of the recipient." + } + }, + "example": { + "enabled": true, + "email": "email@example.com" + }, + "x-stoplight": { + "id": "mail_settings_patch", + "name": "Mail Settings: Patch", + "public": true + } + }, + "mail_settings_forward_bounce": { + "title": "Mail Settings: Forward Bounce", + "type": "object", + "properties": { + "email": { + "type": [ + "string", + "null" + ], + "description": "The email address that you would like your bounce reports forwarded to." + }, + "enabled": { + "type": "boolean", + "description": "Indicates if the bounce forwarding mail setting is enabled." + } + }, + "example": { + "enabled": false, + "email": null + }, + "x-stoplight": { + "id": "mail_settings_forward_bounce", + "name": "Mail Settings: Forward Bounce", + "public": true + } + }, + "contactdb_custom_field_with_id_value": { + "title": "ContactDB Custom field schema.", + "allOf": [ + { + "$ref": "#/definitions/contactdb_custom_field_with_id" + }, + { + "type": "object", + "properties": { + "value": { + "type": [ + "string", + "null" + ], + "description": "The value of this recipient's custom field" + } + } + } + ], + "x-stoplight": { + "id": "contactdb_custom_field_with_id_value", + "name": "ContactDB: Custom Field with ID & Value", + "public": true + } + }, + "contactdb_recipient_count": { + "title": "ContactDB: Recipient Count", + "type": "object", + "properties": { + "recipient_count": { + "type": "number", + "description": "The count of recipients." + } + }, + "required": [ + "recipient_count" + ], + "example": { + "recipient_count": 1234 + }, + "x-stoplight": { + "id": "contactdb_recipient_count", + "name": "ContactDB: Recipient Count", + "public": true + } + }, + "subuser_post": { + "title": "Subuser::POST", + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "The username of the subuser." + }, + "user_id": { + "type": "number", + "description": "The user ID for this subuser." + }, + "email": { + "type": "string", + "description": "The email address for this subuser.", + "format": "email" + }, + "signup_session_token": { + "type": "string" + }, + "authorization_token": { + "type": "string" + }, + "credit_allocation": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + } + } + }, + "required": [ + "username", + "user_id", + "email" + ], + "example": { + "username": "example_subuser", + "user_id": 1234, + "email": "example@example.com", + "signup_session_token": "", + "authorization_token": "", + "credit_allocation": { + "type": "unlimited" + } + }, + "x-stoplight": { + "id": "subuser_post", + "name": "Subuser::POST", + "public": true + } + }, + "whitelabel::domain": { + "title": "Whitelabel - Domain", + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "The ID of the domain whitelabel." + }, + "user_id": { + "type": "number", + "description": "The ID of the user that this whitelabel will be associated with." + }, + "subdomain": { + "type": "string", + "description": "The subdomain to use for this domain whitelabel." + }, + "domain": { + "type": "string", + "description": "The domain that this whitelabel is being created for." + }, + "username": { + "type": "string", + "description": "The username that this whitelabel will be associated with." + }, + "ips": { + "type": "array", + "description": "The IPs to be included in the custom SPF record for this domain whitelabel.", + "items": { + "type": "object" + } + }, + "custom_spf": { + "type": "boolean", + "description": "Indicates whether this domain whitelabel will use custom SPF." + }, + "default": { + "type": "boolean", + "description": "Indicates if this domain whitelabel is the default whitelabel." + }, + "legacy": { + "type": "boolean", + "description": "Indicates if this domain whitelabel was created using the legacy whitelabel tool." + }, + "automatic_security": { + "type": "boolean", + "description": "Indicates if this domain whitelabel uses automated security." + }, + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid whitelabel." + }, + "dns": { + "type": "object", + "description": "The DNS records for this whitelabel that are used to authenticate the sending domain.", + "required": [ + "mail_cname", + "dkim1", + "dkim2" + ], + "properties": { + "mail_cname": { + "type": "object", + "description": "The CNAME for your sending domain that points to sendgrid.net.", + "required": [ + "valid", + "type", + "host", + "data" + ], + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid CNAME." + }, + "type": { + "type": "string", + "description": "The type of DNS record." + }, + "host": { + "type": "string", + "description": "The domain that this CNAME is created for.", + "format": "hostname" + }, + "data": { + "type": "string", + "description": "The CNAME record." + } + } + }, + "dkim1": { + "type": "object", + "description": "A DNS record.", + "required": [ + "valid", + "type", + "host", + "data" + ], + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid DNS record." + }, + "type": { + "type": "string", + "description": "The type of DNS record." + }, + "host": { + "type": "string", + "description": "The domain that this DNS record was created for." + }, + "data": { + "type": "string", + "description": "The DNS record." + } + } + }, + "dkim2": { + "type": "object", + "description": "A DNS record.", + "required": [ + "valid", + "type", + "host", + "data" + ], + "properties": { + "valid": { + "type": "boolean", + "description": "Indicates if this is a valid DNS record." + }, + "type": { + "type": "string", + "description": "The type of DNS record." + }, + "host": { + "type": "string", + "description": "The domain that this DNS record was created for." + }, + "data": { + "type": "string", + "description": "The DNS record." + } + } + } + } + } + }, + "required": [ + "id", + "user_id", + "subdomain", + "domain", + "username", + "ips", + "custom_spf", + "default", + "legacy", + "automatic_security", + "valid", + "dns" + ], + "x-stoplight": { + "id": "whitelabel::domain", + "name": "Whitelabel - Domain", + "public": true + } + }, + "mail_batch_id": { + "title": "Mail: Batch ID", + "type": "object", + "properties": { + "batch_id": { + "type": "string", + "pattern": "^[a-zA-Z0-9\\-\\_]" + } + }, + "required": [ + "batch_id" + ], + "example": { + "batch_id": "HkJ5yLYULb7Rj8GKSx7u025ouWVlMgAi" + }, + "x-stoplight": { + "id": "mail_batch_id", + "name": "Mail: Batch ID", + "public": true + } + } + }, + "x-stoplight": { + "beforeScript": "function (ctx, request) {\n // REMOVE WITH CAUTION. OR AT LEAST, JUST LEAVE IT COMMENTED OUT.\n // Removing this means your endpoint before scripts will not be run!\n SL.runEndpoint();\n \n //adds the Accept header to every request\n // request.header.set(\"accept\", \"application/json\")\n \n //request.header.set(\"foo\", \"bear\");\n //request.header.add(\"bar\", \"cat\");\n\n if (request.url.query.get('accept')) {\n request.header.set('Accept', 'this is a bad header');\n }\n \n if (request.url.query.get('behalf')) {\n request.header.set('on-behalf-of', 'subuser2');\n }\n \n // For example, adding ?mock=200 to a request url will enable mocking,\n // using the example endpoint response for the 200 status code.\n // var mock = request.url.query.get(\"mock\")\n // if (mock) {\n // ctx.mock.set(true, mock)\n //}\n \n // For example, adding the header X-Mock: 200 will enable mocking,\n // using the example endpoint response for the 200 status code.\n var mock = request.header.get(\"X-Mock\");\n if (mock) {\n\t ctx.mock.set(true, mock);\n\t ctx.learn.set(false);\n }\n}", + "afterScript": "function (ctx, request, response) {\n // REMOVE WITH CAUTION. OR AT LEAST, JUST LEAVE IT COMMENTED OUT.\n // Removing this means your endpoint AFTER scripts will not be run!\n SL.runEndpoint();\n \n// if (response.body.get().count() > 1) {\n// request.hijack(200, 'application/json', {foo: 'bear'})\n// }\n\n \n //make this always available\n //SL.utilities.Audit_LogDataInResponse(ctx, request, response);\n \n //if (request.url.query.get('test')) {\n // SL.utilities.RunSpecifiedTests(ctx, request, response);\n //}\n \n // ELMER: Remove this, it logs only DELETE calls\n // if (JSON.parse(request.header.get('X-Mock')) == response.statusCode.get()) {\n // ctx.log.set(false);\n // } else {\n // ctx.log.set(true);\n //}\n}", + "version": { + "groups": { + "docs": [ + { + "description": "Elements that can be shared among more than one endpoint definition.", + "items": [ + { + "_id": "POST_mail-send", + "type": "endpoints" + }, + { + "_id": "mail-send-limitations", + "type": "docTextSections" + }, + { + "_id": "mail-send-validation", + "type": "docTextSections" + }, + { + "_id": "mail-send-errors", + "type": "docTextSections" + }, + { + "type": "schemas", + "_id": "email_object" + }, + { + "_id": "errors", + "type": "schemas" + } + ], + "name": "Mail Send", + "divider": false + }, + { + "divider": false, + "items": [ + { + "_id": "api-authentication", + "type": "docTextSections" + }, + { + "_id": "api-authorization", + "type": "docTextSections" + }, + { + "_id": "api-requests", + "type": "docTextSections" + }, + { + "_id": "on-behalf-of", + "type": "docTextSections" + }, + { + "_id": "api-responses", + "type": "docTextSections" + }, + { + "_id": "api-rate-limits", + "type": "docTextSections" + }, + { + "_id": "api-errors", + "type": "docTextSections" + } + ], + "name": "How to use the SendGrid v3 API" + }, + { + "name": "Alerts", + "items": [ + { + "_id": "POST_alerts", + "type": "endpoints" + }, + { + "_id": "GET_alerts", + "type": "endpoints" + }, + { + "_id": "GET_alerts-alertid", + "type": "endpoints" + }, + { + "_id": "DELETE_alerts-alertid", + "type": "endpoints" + }, + { + "_id": "PATCH_alerts-alertid", + "type": "endpoints" + } + ], + "divider": false, + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false, + "items": [ + { + "_id": "api_key_name_id", + "type": "schemas" + }, + { + "_id": "api_key_name_id_scopes", + "type": "schemas" + }, + { + "_id": "GET_apikeys", + "type": "endpoints" + }, + { + "_id": "create-api-keys", + "type": "endpoints" + }, + { + "_id": "GET_apikeys-apikeyid", + "type": "endpoints" + }, + { + "_id": "DELETE_apikeys-apikeyid", + "type": "endpoints" + }, + { + "_id": "PATCH_apikeys-apikeyid", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "PUT_apikeys-apikeyid" + } + ], + "name": "API Keys" + }, + { + "items": [ + { + "_id": "GET_suppression-blocks", + "type": "endpoints" + }, + { + "_id": "DELETE_suppression-blocks", + "type": "endpoints" + }, + { + "_id": "GET_suppression-blocks-email", + "type": "endpoints" + }, + { + "_id": "DELETE_suppression-blocks-email", + "type": "endpoints" + } + ], + "name": "Blocks API", + "description": null, + "divider": false + }, + { + "name": "API Key Permissions", + "description": null, + "divider": false, + "items": [ + { + "_id": "api-key-permissions", + "type": "docTextSections" + }, + { + "_id": "GET_scopes", + "type": "endpoints" + } + ] + }, + { + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false, + "items": [ + { + "type": "schemas", + "_id": "suppression_bounce" + }, + { + "_id": "GET_suppression-bounces", + "type": "endpoints" + }, + { + "_id": "DELETE_suppression-bounces", + "type": "endpoints" + }, + { + "_id": "GET_suppression-bounces-email", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "DELETE_suppression-bounces-email" + } + ], + "name": "Bounces API" + }, + { + "name": "Campaigns API", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false, + "items": [ + { + "_id": "campaign_request", + "type": "schemas" + }, + { + "type": "schemas", + "_id": "campaign_response" + }, + { + "_id": "POST_campaigns", + "type": "endpoints" + }, + { + "_id": "GET_campaigns", + "type": "endpoints" + }, + { + "_id": "GET_campaigns-campaignid", + "type": "endpoints" + }, + { + "_id": "DELETE_campaigns-campaignid", + "type": "endpoints" + }, + { + "_id": "PATCH_campaigns-campaignid", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "POST_campaigns-campaignid-schedules-now" + }, + { + "_id": "POST_campaigns-campaignid-schedules", + "type": "endpoints" + }, + { + "_id": "PATCH_campaigns-campaignid-schedules", + "type": "endpoints" + }, + { + "_id": "GET_campaigns-campaignid-schedules", + "type": "endpoints" + }, + { + "_id": "DELETE_campaigns-campaignid-schedules", + "type": "endpoints" + }, + { + "_id": "POST_campaigns-campaignid-schedules-test", + "type": "endpoints" + } + ] + }, + { + "items": [ + { + "type": "schemas", + "_id": "mail_batch_id" + }, + { + "_id": "POST_mail-batch", + "type": "endpoints" + }, + { + "_id": "GET_mail-batch-batchid", + "type": "endpoints" + }, + { + "_id": "POST_user-scheduledsends", + "type": "endpoints" + }, + { + "_id": "GET_user-scheduledsends", + "type": "endpoints" + }, + { + "_id": "GET_user-scheduledsends-batchid", + "type": "endpoints" + }, + { + "_id": "PATCH_user-scheduledsends-batchid", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "DELETE_user-scheduledsends-batchid" + } + ], + "name": "Cancel Scheduled Sends", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "GET_categories", + "type": "endpoints" + }, + { + "_id": "GET_categories-stats-sums", + "type": "endpoints" + }, + { + "_id": "GET_categories-stats", + "type": "endpoints" + }, + { + "_id": "category_stats", + "type": "schemas" + } + ], + "name": "Categories", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "contactdb_custom_field_with_id", + "type": "schemas" + }, + { + "_id": "contactdb_custom_field_with_id_value", + "type": "schemas" + }, + { + "type": "schemas", + "_id": "contactdb_custom_field" + }, + { + "_id": "POST_contactdb-customfields", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-customfields", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-customfields-customfieldid", + "type": "endpoints" + }, + { + "_id": "DELETE_contactdb-customfields-customfieldid", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-reservedfields", + "type": "endpoints" + } + ], + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false, + "name": "Contacts API - Custom Fields" + }, + { + "items": [ + { + "type": "schemas", + "_id": "contactdb_list" + }, + { + "_id": "POST_contactdb-lists", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-lists", + "type": "endpoints" + }, + { + "_id": "DELETE_contactdb-lists", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-lists-listid", + "type": "endpoints" + }, + { + "_id": "PATCH_contactdb-lists-listid", + "type": "endpoints" + }, + { + "_id": "DELETE_contactdb-lists-listid", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-lists-listid-recipients", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "POST_contactdb-lists-listid-recipients-recipientid" + }, + { + "_id": "DELETE_contactdb-lists-listid-recipients-recipientid", + "type": "endpoints" + }, + { + "_id": "POST_contactdb-lists-listid-recipients", + "type": "endpoints" + } + ], + "name": "Contacts API - Lists", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "GET_contactdb-status", + "type": "endpoints" + }, + { + "type": "schemas", + "_id": "contactdb_recipient_count" + }, + { + "_id": "contactdb_recipient", + "type": "schemas" + }, + { + "_id": "contactdb_recipient_response", + "type": "schemas" + }, + { + "_id": "contacts", + "type": "schemas" + }, + { + "_id": "POST_contactdb-recipients", + "type": "endpoints" + }, + { + "_id": "PATCH_contactdb-recipients", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "DELETE_contactdb-recipients" + }, + { + "_id": "GET_contactdb-recipients", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-recipients-recipientid", + "type": "endpoints" + }, + { + "_id": "DELETE_contactdb-recipients-recipientid", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-recipients-recipientid-lists", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-recipients-billablecount", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-recipients-count", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-recipients-search", + "type": "endpoints" + } + ], + "name": "Contacts API - Recipients", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "contactdb_segments", + "type": "schemas" + }, + { + "_id": "contactdb_segments_with_id", + "type": "schemas" + }, + { + "_id": "contactdb_segments_conditions", + "type": "schemas" + }, + { + "_id": "POST_contactdb-segments", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-segments", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-segments-segmentid", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "PATCH_contactdb-segments-segmentid" + }, + { + "_id": "DELETE_contactdb-segments-segmentid", + "type": "endpoints" + }, + { + "_id": "GET_contactdb-segments-segmentid-recipients", + "type": "endpoints" + } + ], + "name": "Contacts API - Segments", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "credentials", + "type": "schemas" + } + ], + "name": "Credentials", + "description": null, + "divider": false + }, + { + "items": [ + { + "_id": "GET_suppression-invalidemails", + "type": "endpoints" + }, + { + "_id": "DELETE_suppression-invalidemails", + "type": "endpoints" + }, + { + "_id": "GET_suppression-invalidemails-email", + "type": "endpoints" + }, + { + "_id": "DELETE_suppression-invalidemails-email", + "type": "endpoints" + } + ], + "name": "Invalid Emails API", + "description": null, + "divider": false + }, + { + "items": [ + { + "_id": "GET_accesssettings-activity", + "type": "endpoints" + }, + { + "_id": "GET_accesssettings-whitelist", + "type": "endpoints" + }, + { + "_id": "POST_accesssettings-whitelist", + "type": "endpoints" + }, + { + "_id": "DELETE_accesssettings-whitelist", + "type": "endpoints" + }, + { + "_id": "GET_accesssettings-whitelist-ruleid", + "type": "endpoints" + }, + { + "_id": "DELETE_accesssettings-whitelist-ruleid", + "type": "endpoints" + } + ], + "name": "IP Access Management", + "divider": false, + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "items": [ + { + "_id": "POST_ips", + "type": "endpoints" + }, + { + "_id": "GET_ips-remaining", + "type": "endpoints" + }, + { + "_id": "GET_ips", + "type": "endpoints" + }, + { + "_id": "GET_ips-assigned", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "GET_ips-ipaddress" + } + ], + "name": "IP Addresses", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "ip_pool", + "type": "schemas" + }, + { + "_id": "POST_ips-pools", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "GET_ips-pools" + }, + { + "_id": "GET_ips-pools-poolname", + "type": "endpoints" + }, + { + "_id": "PUT_ips-pools-poolname", + "type": "endpoints" + }, + { + "_id": "DELETE_ips-pools-poolname", + "type": "endpoints" + }, + { + "_id": "POST_ips-pools-poolname-ips", + "type": "endpoints" + }, + { + "_id": "DELETE_ips-pools-poolname-ips-ip", + "type": "endpoints" + } + ], + "name": "IP Pools", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "name": "IP Warmup", + "items": [ + { + "type": "schemas", + "_id": "ip_warmup_response" + }, + { + "_id": "GET_ips-warmup", + "type": "endpoints" + }, + { + "_id": "GET_ips-warmup-ipaddress", + "type": "endpoints" + }, + { + "_id": "POST_ips-warmup", + "type": "endpoints" + }, + { + "_id": "DELETE_ips-warmup-ipaddress", + "type": "endpoints" + } + ], + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "name": "Sender Identities API", + "items": [ + { + "_id": "senderID", + "type": "schemas" + }, + { + "_id": "POST_senders", + "type": "endpoints" + }, + { + "_id": "GET_v3-senders", + "type": "endpoints" + }, + { + "_id": "PATCH_v3-senders-sender_id", + "type": "endpoints" + }, + { + "_id": "DELETE_v3-senders-sender_id", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "POST_v3-senders-sender_id-resend_verification" + }, + { + "_id": "GET_v3-senders-sender_id", + "type": "endpoints" + } + ] + }, + { + "items": [ + { + "_id": "GET_user-settings-enforcedtls", + "type": "endpoints" + }, + { + "_id": "PATCH_user-settings-enforcedtls", + "type": "endpoints" + } + ], + "name": "Settings - Enforced TLS", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "parse-setting", + "type": "schemas" + }, + { + "_id": "POST_user-webhooks-parse-settings", + "type": "endpoints" + }, + { + "_id": "GET_user-webhooks-parse-settings", + "type": "endpoints" + }, + { + "_id": "GET_user-webhooks-parse-settings-hostname", + "type": "endpoints" + }, + { + "_id": "PATCH_user-webhooks-parse-settings-hostname", + "type": "endpoints" + }, + { + "_id": "DELETE_user-webhooks-parse-settings-hostname", + "type": "endpoints" + } + ], + "name": "Settings - Inbound Parse", + "divider": false, + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "items": [ + { + "_id": "mail_settings_address_whitelabel", + "type": "schemas" + }, + { + "type": "schemas", + "_id": "mail_settings_bcc" + }, + { + "_id": "mail_settings_bounce_purge", + "type": "schemas" + }, + { + "_id": "mail_settings_footer", + "type": "schemas" + }, + { + "_id": "mail_settings_forward_bounce", + "type": "schemas" + }, + { + "type": "schemas", + "_id": "mail_settings_forward_spam" + }, + { + "_id": "mail_settings_spam_check", + "type": "schemas" + }, + { + "_id": "mail_settings_template", + "type": "schemas" + }, + { + "_id": "mail_settings_patch", + "type": "schemas" + }, + { + "type": "endpoints", + "_id": "GET_mailsettings" + }, + { + "_id": "GET_mailsettings-bcc", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-bcc", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-addresswhitelist", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-addresswhitelist", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-footer", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-footer", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-forwardspam", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-forwardspam", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-plaincontent", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-plaincontent", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-spamcheck", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-spamcheck", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-template", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-template", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-bouncepurge", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-bouncepurge", + "type": "endpoints" + }, + { + "_id": "GET_mailsettings-forwardbounce", + "type": "endpoints" + }, + { + "_id": "PATCH_mailsettings-forwardbounce", + "type": "endpoints" + } + ], + "name": "Settings - Mail", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "divider": false, + "items": [ + { + "_id": "partner_settings_new_relic", + "type": "schemas" + }, + { + "_id": "GET_partnersettings", + "type": "endpoints" + }, + { + "_id": "GET_partnersettings-newrelic", + "type": "endpoints" + }, + { + "_id": "PATCH_partnersettings-newrelic", + "type": "endpoints" + } + ], + "name": "Settings - Partner", + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "items": [ + { + "_id": "subscription_tracking_settings", + "type": "schemas" + }, + { + "_id": "google_analytics_settings", + "type": "schemas" + }, + { + "_id": "GET_trackingsettings", + "type": "endpoints" + }, + { + "_id": "GET_trackingsettings-click", + "type": "endpoints" + }, + { + "_id": "PATCH_trackingsettings-click", + "type": "endpoints" + }, + { + "_id": "GET_trackingsettings-googleanalytics", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "PATCH_trackingsettings-googleanalytics" + }, + { + "_id": "GET_trackingsettings-open", + "type": "endpoints" + }, + { + "_id": "PATCH_trackingsettings-open", + "type": "endpoints" + }, + { + "_id": "GET_trackingsettings-subscription", + "type": "endpoints" + }, + { + "_id": "PATCH_trackingsettings-subscription", + "type": "endpoints" + } + ], + "name": "Settings - Tracking", + "description": null, + "divider": false + }, + { + "items": [ + { + "_id": "GET_suppression-spamreports", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "DELETE_suppression-spamreports" + }, + { + "_id": "GET_suppression-spamreports-email", + "type": "endpoints" + }, + { + "_id": "DELETE_suppression-spamreports-email", + "type": "endpoints" + } + ], + "name": "Spam Reports API", + "description": null, + "divider": false + }, + { + "divider": false, + "items": [ + { + "_id": "stats", + "type": "schemas" + }, + { + "_id": "GET_stats", + "type": "endpoints" + }, + { + "_id": "advanced_stats_mailbox_provider", + "type": "schemas" + }, + { + "type": "schemas", + "_id": "advanced_stats_clicks" + }, + { + "_id": "advanced_stats_opens", + "type": "schemas" + }, + { + "_id": "advanced_stats_country", + "type": "schemas" + }, + { + "_id": "GET_geo-stats", + "type": "endpoints" + }, + { + "_id": "GET_devices-stats", + "type": "endpoints" + }, + { + "_id": "GET_clients-stats", + "type": "endpoints" + }, + { + "_id": "GET_clients-clienttype-stats", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "GET_mailboxproviders-stats" + }, + { + "_id": "GET_browsers-stats", + "type": "endpoints" + } + ], + "name": "Stats", + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "items": [ + { + "_id": "subuser_stats", + "type": "schemas" + }, + { + "type": "schemas", + "_id": "subuser" + }, + { + "_id": "subuser_post", + "type": "schemas" + }, + { + "_id": "monitor", + "type": "schemas" + }, + { + "type": "endpoints", + "_id": "GET_subusers" + }, + { + "_id": "POST_subusers", + "type": "endpoints" + }, + { + "_id": "PATCH_subusers-subusername", + "type": "endpoints" + }, + { + "_id": "DELETE_subusers-subusername", + "type": "endpoints" + }, + { + "_id": "GET_subusers-subusername-monitor", + "type": "endpoints" + }, + { + "_id": "POST_subusers-subusername-monitor", + "type": "endpoints" + }, + { + "_id": "PUT_subusers-subusername-monitor", + "type": "endpoints" + }, + { + "_id": "DELETE_subusers-subusername-monitor", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "GET_subusers-reputations" + }, + { + "_id": "PUT_subusers-subusername-ips", + "type": "endpoints" + }, + { + "_id": "GET_subusers-subusername-stats-monthly", + "type": "endpoints" + }, + { + "_id": "GET_subusers-stats-monthly", + "type": "endpoints" + }, + { + "_id": "GET_subusers-stats-sums", + "type": "endpoints" + }, + { + "_id": "GET_subusers-stats", + "type": "endpoints" + } + ], + "name": "Subusers API", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "GET_suppression-unsubscribes", + "type": "endpoints" + }, + { + "_id": "POST_asm-suppressions-global", + "type": "endpoints" + }, + { + "_id": "GET_asm-suppressions-global-email", + "type": "endpoints" + }, + { + "_id": "DELETE_asm-suppressions-global-email", + "type": "endpoints" + } + ], + "name": "Suppressions - Global Suppressions", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "name": "Suppressions - Suppressions", + "items": [ + { + "_id": "POST_asm-groups-groupid-suppressions", + "type": "endpoints" + }, + { + "_id": "GET_asm-groups-groupid-suppressions", + "type": "endpoints" + }, + { + "_id": "DELETE_asm-groups-groupid-suppressions-email", + "type": "endpoints" + }, + { + "_id": "GET_asm-suppressions", + "type": "endpoints" + }, + { + "_id": "GET_asm-suppressions-email", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "POST_asm-groups-groupid-suppressions-search" + } + ], + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "divider": false, + "items": [ + { + "_id": "suppression_group_unsubscribes", + "type": "schemas" + }, + { + "_id": "suppression_group", + "type": "schemas" + }, + { + "_id": "GET_asm-groups", + "type": "endpoints" + }, + { + "_id": "GET_asm-groups-groupid", + "type": "endpoints" + }, + { + "_id": "PATCH_asm-groups-groupid", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "DELETE_asm-groups-groupid" + }, + { + "_id": "POST_asm-groups", + "type": "endpoints" + }, + { + "_id": "GET_asm-groups", + "type": "endpoints" + } + ], + "name": "Suppressions - Unsubscribe Groups", + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "divider": false, + "items": [ + { + "_id": "GET_v3-scopes-requests", + "type": "endpoints" + }, + { + "_id": "DELETE_v3-scopes-requests-request_id", + "type": "endpoints" + }, + { + "_id": "PATCH_v3-scopes-requests-approve-id", + "type": "endpoints" + }, + { + "_id": "POST_v3-teammates-pending-token-resend", + "type": "endpoints" + }, + { + "_id": "GET_v3-teammates-pending", + "type": "endpoints" + }, + { + "_id": "DELETE_v3-teammates-pending-token", + "type": "endpoints" + }, + { + "_id": "POST_v3-teammates", + "type": "endpoints" + }, + { + "_id": "GET_v3-teammates", + "type": "endpoints" + }, + { + "_id": "GET_v3-teammates-username", + "type": "endpoints" + }, + { + "_id": "PATCH_v3-teammates-username", + "type": "endpoints" + }, + { + "_id": "DELETE_v3-teammates-username", + "type": "endpoints" + } + ], + "name": "Teammates", + "description": "**Teammates is currently in beta!**\n\nSendGrid is releasing the Teammates Beta to users in phases. If you do not immediately have access to Teammates, you will shortly. Stay tuned!" + }, + { + "items": [ + { + "_id": "transactional_template", + "type": "schemas" + }, + { + "_id": "POST_templates", + "type": "endpoints" + }, + { + "_id": "GET_templates", + "type": "endpoints" + }, + { + "_id": "GET_templates-templateid", + "type": "endpoints" + }, + { + "_id": "PATCH_templates-templateid", + "type": "endpoints" + }, + { + "_id": "DELETE_templates-templateid", + "type": "endpoints" + } + ], + "name": "Transactional Templates", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "transactional_template_version", + "type": "schemas" + }, + { + "_id": "POST_templates-templateid-versions", + "type": "endpoints" + }, + { + "_id": "POST_templates-templateid-versions-versionid-activate", + "type": "endpoints" + }, + { + "_id": "GET_templates-templateid-versions-versionid", + "type": "endpoints" + }, + { + "_id": "PATCH_templates-templateid-versions-versionid", + "type": "endpoints" + }, + { + "_id": "DELETE_templates-templateid-versions-versionid", + "type": "endpoints" + } + ], + "name": "Transactional Templates Versions", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "items": [ + { + "_id": "user_scheduled_send_status", + "type": "schemas" + }, + { + "_id": "user_profile", + "type": "schemas" + }, + { + "_id": "GET_user-profile", + "type": "endpoints" + }, + { + "_id": "PATCH_user-profile", + "type": "endpoints" + }, + { + "_id": "GET_user-account", + "type": "endpoints" + }, + { + "_id": "GET_user-email", + "type": "endpoints" + }, + { + "_id": "PUT_user-email", + "type": "endpoints" + }, + { + "_id": "GET_user-username", + "type": "endpoints" + }, + { + "_id": "PUT_user-username", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "GET_user-credits" + }, + { + "_id": "PUT_user-password", + "type": "endpoints" + } + ], + "name": "Users API", + "description": null, + "divider": false + }, + { + "description": null, + "divider": false, + "items": [ + { + "_id": "event_webhook_settings", + "type": "schemas" + }, + { + "_id": "GET_user-webhooks-event-settings", + "type": "endpoints" + }, + { + "_id": "PATCH_user-webhooks-event-settings", + "type": "endpoints" + }, + { + "_id": "POST_user-webhooks-event-test", + "type": "endpoints" + }, + { + "_id": "GET_user-webhooks-parse-settings", + "type": "endpoints" + }, + { + "_id": "GET_user-webhooks-parse-stats", + "type": "endpoints" + } + ], + "name": "Webhooks" + }, + { + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false, + "items": [ + { + "_id": "whitelabel::domain", + "type": "schemas" + }, + { + "_id": "whitelabel:domain_spf", + "type": "schemas" + }, + { + "type": "endpoints", + "_id": "GET_whitelabel-domains" + }, + { + "_id": "POST_whitelabel-domains", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-domains-domainid", + "type": "endpoints" + }, + { + "type": "endpoints", + "_id": "PATCH_whitelabel-domains-domainid" + }, + { + "_id": "DELETE_whitelabel-domains-domainid", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-domains-default", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-domains-id-ips", + "type": "endpoints" + }, + { + "_id": "DELETE_whitelabel-domains-id-ips-ip", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-domains-id-validate", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-domains-subuser", + "type": "endpoints" + }, + { + "_id": "DELETE_whitelabel-domains-subuser", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-domains-domainid-subuser", + "type": "endpoints" + } + ], + "name": "Whitelabel - Domains" + }, + { + "items": [ + { + "type": "schemas", + "_id": "ip_whitelabel" + }, + { + "_id": "GET_whitelabel-ips", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-ips", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-ips-id", + "type": "endpoints" + }, + { + "_id": "DELETE_whitelabel-ips-id", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-ips-id-validate", + "type": "endpoints" + } + ], + "name": "Whitelabel - IPs", + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "name": "Whitelabel - Links", + "items": [ + { + "_id": "link_whitelabel", + "type": "schemas" + }, + { + "_id": "GET_whitelabel-links", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-links", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-links-id", + "type": "endpoints" + }, + { + "_id": "PATCH_whitelabel-links-id", + "type": "endpoints" + }, + { + "_id": "DELETE_whitelabel-links-id", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-links-default", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-links-id-validate", + "type": "endpoints" + }, + { + "_id": "GET_whitelabel-links-subuser", + "type": "endpoints" + }, + { + "_id": "DELETE_whitelabel-links-subuser", + "type": "endpoints" + }, + { + "_id": "POST_whitelabel-links-linkid-subuser", + "type": "endpoints" + } + ], + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + }, + { + "divider": false, + "name": "Global: Models", + "items": [ + { + "_id": "global:ErrorResponse", + "type": "schemas" + }, + { + "_id": "global:id", + "type": "schemas" + }, + { + "_id": "global:empty_request", + "type": "schemas" + } + ], + "description": "Elements that can be shared among more than one endpoint definition." + }, + { + "name": "Global: Traits", + "items": [ + { + "_id": "authorizationHeader", + "type": "traits" + }, + { + "_id": "onBehalfOfSubuser", + "type": "traits" + } + ], + "description": "Elements that can be shared among more than one endpoint definition.", + "divider": false + } + ] + } + }, + "functions": {}, + "textSections": { + "mail-send-limitations": { + "id": "mail-send-limitations", + "name": "Limitations", + "content": "There are several rate limitations and restrictions that you should be aware of when using the v3 Mail Send endpoint.\n\n* The total size of your email, including attachments, must be less than 30MB.\n* The total number of recipients must be less than 1000. This includes all recipients defined within the `to`, `cc`, and `bcc` parameters, across each object that you include in the `personalizations` array.\n* 3000 requests/sec is the maximum rate at which you may call v3 Mail endpoint.\n* The total length of custom arguments must be less than 10000 bytes.\n* Unicode encoding is not supported for the `from` field within the `personalizations` array.\n* The `to.name`, `cc.name`, and `bcc.name` personalizations cannot include either the `;` or `,` characters.\n\nFor more specific, parameter level requirements and limitatiosn, please refer to the [v3/mail/send documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).", + "public": true + }, + "mail-send-validation": { + "id": "mail-send-validation", + "name": "Validation", + "content": "Whenever you make a request to the v3 Mail Send endpoint, your JSON payload is validated before your email is sent. If there are any errors, SendGrid will attempt to identify and return as many issues as possible for each request. For more information, please read our [error documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html).", + "public": true + }, + "api-authentication": { + "id": "api-authentication", + "name": "Authentication", + "content": "## Authorization Header\n\nTo authenticate, add an `Authorization` header to your API request that contains an [API Key](https://sendgrid.com/docs/API_Reference/Web_API_v3/API_Keys/index.html).\n\n## API Keys\n\nSendGrid’s Web API v3 supports the use of API Keys. API Keys allow you to use another method of authentication separate from your account username and password. API Keys add an additional layer of security for your account and can be assigned [specific permissions](https://sendgrid.com/docs/API_Reference/Web_API_v3/API_Keys/api_key_permissions_list.html) to limit which areas of your account they may be used to access. [API Keys can be generated in your account](https://app.sendgrid.com/settings/api_keys). To use keys, you must set a plain text header named “Authorization” with the contents of the header being “Bearer XXX” where XXX is your API Secret Key.\n\n### Example Header\n\n```bash\nGET https://api.sendgrid.com/v3/resource HTTP/1.1\nAuthorization: Bearer Your.API.Key-HERE\n```\n\n```bash\ncurl -X \"GET\" \"https://api.sendgrid.com/v3/templates\" -H \"Authorization: Bearer Your.API.Key-HERE\" -H \"Content-Type: application/json\"\n```", + "public": true + }, + "api-requests": { + "id": "api-requests", + "name": "Requests", + "content": "## Making a Request\n\n### Host\n\nThe host for Web API v3 requets is always `https://sendgrid.com/v3/`\n\n**All requests must be made over HTTPS. HTTP is not supported.**\n\n### Authorization Header\n\nYou must provide an authorization header as described in [Authentication]().\n\n### HTTP Verbs\n\n| **Verb** | **Description** |\n| --- | --- |\n| GET | Retrieve a resource or gropu of resources |\n| POST| Create a new resource |\n| PUT | Update an existing resource |\n| DELTE | Delete an existing resource |\n| OPTIONS | View allowed verbs against a specific resource |\n\n### Accept Header\n\nThe API provides JSON responses. The [accept header](http://www.soapui.org/Best-Practices/understanding-rest-headers-and-parameters.html) is not currently required, though it may be required in the future. If not set, the API will use `application/json`.\n\n```bash\nGET https://api.sendgrid.com/v3/endpoint HTTP/1.1\nAccept: application/json\n```\n\n### Arrays of Data\n\nWhen you send an array of data in a `GET` request, you will include the parameter multiple times on the URL. We do not require that you add brackets to the parameter name.\n\n#### Example Array in a GET request\\\n\n```bash\nGET https://api.sendgrid.com/v3/endpoint?parameter=data1¶meter=data2 HTTP/1.1\n```\n\n## Formatting Your Request\n\n### Request Body\n\nWhen submitting data to a resource via `POST` or `PUT`, you must submit your payload in JSON.\n\n```bash\nPOST https://api.sendgrid.com/v3/templates/ HTTP/1.1\nContent-Type: application/json\n```\n\n```json\n{\n \"name\": \"new template name\"\n}\n```\n\n### Pagination\n\nSome `GET` resources allow for retrieval of information in batches. We will provide the query args in the resource documentation when available to consume.\n\nWhen requesting multiple items, we will default the request limit to 500 items. You can specify a different limit but cannot not exceed the default limit.\n\nResources documented will display a bolded list of available paginated parameters if available.\n\nBelow is a basic pagination example. In the resource documentation, we will only provide the bolded list of available parameters.\n\n**When information is batched, a [Link Header](http://tools.ietf.org/html/rfc5988) will be provided in the response.**\n\n```bash\nGET https://api.sendgrid.com/v3/resource?limit=300&offset=10 HTTP/1.1\n```\n\n| **Parameter** | **Description** |\n|---|---|\n| limit | The number of records to return |\n| offset | The number of records to skip |\n\n### Search & Paramters\n\nSome resources allow for you to search by a specific field. Other resources require you ot append a paramter to the URI.\n\nIn this example, we will display a paginated URI example, searching for resources where the email contains `foo`.\n\n```bash\nGET https://api.sendgrid.com/v3/resource?email=foo&bar=baz HTTP/1.1\n```\n\n## Successful Requests\n\nBelow is a general overview of what resource objects are returned on successful Web API requets.\n\n| **Verb** | **Resource object returned** |\n|---|---|\n| GET | A single resoruce object or array of resource objects |\n| PATCH | The updated resource object is returned |\n| PUT | The updated resource object is returned |\n| DELETE | No content is returned |\n| POST | The newly created resource object is returned |", + "public": true + }, + "api-responses": { + "id": "api-responses", + "name": "Responses", + "content": "## Content-Type Header\n\nAll responses are returned in JSON format. We specify this by sending the `Content-Type` header.\n\n```bash\nGET https://api.sendgrid.com/v3/resource HTTP/1.1\n```\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n \"foo\": \"bar\"\n}\n```\n\n## Status Codes\n\nBelow is a table containing descriptions of the various status codes we currently support against various resources.\n\n| **Status Code** | **Description** |\n|---|---|\n| 200 | No error |\n| 201 | Successfully created |\n| 204 | Successfully deleted |\n| 400 | Bad request|\n| 401 | Requires authentication |\n| 406 | Missing Accept header. For example: `Accept: application/json` |\n| 429 | Too many requests/Rate limit exceeded |\n| 500 | Internal server error |\n\n## Pagination\n\nWhen a request is made with a pagination query, the following data is included in the header to allow for easy traversal of previous, current, first, and last page of the data set.\n\n```bash\nGET https://api.sendgrid.com/v3/resource?limit=5&offset=0 HTTP/1.1\n```\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n\nLink: ; rel=\"next\"; title=\"2\",\n ; rel=\"prev\"; title=\"1\",\n ; rel=\"last\"; title=\"3\",\n ; rel=\"first\"; title=\"1\"\n\n```", + "public": true + }, + "api-rate-limits": { + "id": "api-rate-limits", + "name": "Rate Limits", + "content": "## Rate Limit Response Header\n\nAll calls within the Web API are allotted a specific number of requests per refresh period.\n\nEach Web API request returns the following header information regarding rate limits and number of requests left.\n\nDepending on the endpoint you are trying to reach, it will have a specific number of allowed requests per refresh period. Once this threshold has been reached, we will return a status code `429` response.\n\n### Example\n\n```bash\nGET https://api.sendgrid.com/v3/resource HTTP/1.1\n```\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\nX-RateLimit-Limit: 500\nX-RateLimit-Remaining: 499\nX-RateLimit-Reset: 1392815263\n\n{\n \"foo\": \"bar\"\n}\n```\n\n## When You Reach a Rate Limit\n\nYou will no longer be able to make request against that endpoint for the duration of that refresh period.\n\n### Example\n\n```bash\nGET https://api.sendgrid.com/v3/resource/ HTTP/1.1\n```\n\n```json\nHTTP/1.1 429 TOO MANY REQUESTS\nContent-Type: application/json\nX-RateLimit-Limit: 150\nX-RateLimit-Remaining: 0\nX-RateLimit-Reset: 1392815263\n\n{\n \"errors\": [\n {\n \"field\": null,\n \"message\": \"too many requests\"\n },\n ]\n}\n```", + "public": true + }, + "api-errors": { + "id": "api-errors", + "name": "Errors", + "content": "Sometimes your API call will generate an error. Here you will find additional information about what to expect if you don’t format your request properly, or we fail to properly process your request.\n\n## Response Codes\n\n| **Status Code** | **Description** |\n|---|---|\n| 400 | Bad request|\n| 401 | Requires authentication |\n| 406 | Missing Accept header. For example: `Accept: application/json` |\n| 429 | Too many requests/Rate limit exceeded |\n| 500 | Internal server error |\n\n## Failed Requests\n\nThe general format guidelines are displayed when the accompanying status code is returned.\n\n```bash\nGET https://api.sendgrid.com/v3/resource HTTP/1.1\n```\n\n```json\nHTTP/1.1 400 BAD REQUEST\nContent-Type: application/json\n\n{\n \"errors\": [\n {\"field\": \"identifier1\", \"message\": \"error message explained\"},\n {\"field\": \"identifier2\", \"message\": \"error message explained\"},\n {\"field\": \"identifier3\", \"message\": \"error message explained\"},\n ]\n}\n```", + "public": true + }, + "mail-send-errors": { + "id": "mail-send-errors", + "name": "Errors", + "content": "\n\n\n

Personalizations Errors

\n\n\n\n\n

personalizations

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n\n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The personalization block is limited to 1000 personalizations per API request. You have provided X personalizations. Please consider splitting this into multiple requests and resending your request.
The v3 Mail Send endpoint is only capable of processing 1000 individual personalizations objects per request. If you need to send your email to more than 1000 different recipients, we recommend that you simply make more than once call. For more information about the personalizations array, and how you can use it to define who you would like you send your email to, and how you would like your email to be processed, please visit our Classroom.
You must have at least one personalization.
Every email you send must have at least one recipient email address included. Recipients are defined in the personalizations array. For more information on how to use personalizations to define who you want to send your email to, please visit our Classroom.
There is a limit of 1000 total recipients (to + cc + bcc) per request.
The combined, total number of email recipients may never exceed 1000. This includes recipients defined within the to, cc, and bcc parameters. For more information on how you may specify your recipients, please visit our Classroom.
Each \"to\" object must at least have an email address and may also contain a name. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
For every recipient that you define within a personalizations.to parameter, you must include one, valid email address. You are not required to include a name.
Each unique email address in the personalizations array should only be included once. You have included [email address] more than once.
To prevent the same email from being delivered to one recipient multiple times, SendGrid will confirm that you do not duplicate an email address in your request. For more information on how you may specify your recipients, please visit our Classroom.
The to parameter is required for all personalization objects.
For every single object that you include within the personalizations array, you must include at least one to email object with a valid email address. For more information on how you may specify your recipients, please visit our Classroom.
\n\n\n\n\n

personalizations.bcc

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The bcc array, when used, must at least have an email parameter with a valid email address and it may also contain a name parameter. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
For every blind carbon copy of your email, you must include one, valid recipient email address. However, you are not required to include a corresponding name with the recipient email address. For more information on how to use personalizations to define who you want to send your email to, please visit our Classroom.
Each recipient object must at least have an email address and may also contain a name. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
Every recipient that you define within the personalizations.cc array must be in the form of an email object including one, valid email address. You are not required to include a name.
Each unique email address in the personalization block should only be included once. You have included [email address] more than once.
To prevent the same email from being delivered to one recipient multiple times, SendGrid will confirm that you do not duplicate an email address in your request. For more information on how you may specify your recipients, please visit our Classroom.
\n\n\n\n\n

personalizations.cc

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The cc array, when used, must at least have an email parameter with a valid email address and it may also contain a name parameter. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
For every carbon copy of your email, you must include one, valid recipient email address. However, you are not required to include a corresponding name with the recipient email address. For more information on how to use personalizations to define who you want to send your email to, please visit our Classroom.
Each recipient object must at least have an email address and may also contain a name. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
Every recipient that you define within the personalizations.cc array must be in the form of an email object including one, valid email address. You are not required to include a name.
Each unique email address in the personalization block should only be included once. You have included [email address] more than once.
To prevent the same email from being delivered to one recipient multiple times, SendGrid will confirm that you do not duplicate an email address in your request. For more information on how you may specify your recipients, please visit our Classroom.
\n\n\n\n\n

personalizations.custom_args

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
All values of custom arguments object must be strings
Custom argument values must always be strings. You cannot define arrays, integers, or booleans as custom argument values. Click here more information about how to use custom arguments.
custom_args cannot be empty.
If you include the custom_args parameter, you must include at least one value. If you do not want to use any custom arguments, simply omit the custom_arg param from your request. Click here more information about how to use custom arguments.
The combined size of both global and personalization custom arguments may not exceed 10,000 bytes per personalization.
personalizations[x].custom_args will be merged with message level custom_args, overriding any conflicting keys. The combined total size of the resulting custom arguments, after merging, for each personalization may not exceed 10,000 bytes. Click here more information about how to use custom arguments.
\n\n\n\n\n

personalizations.headers

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
All values of the headers object must be strings.
The object type of every header that you include must be a string. You cannot include headers that are integers, booleans, or arrays.
The headers cannot contain duplicate keys.
You may not include the same header more than once.
Header keys cannot contain non-ASCII characters or empty spaces.
When defining the headers that you would like to use, you must make sure that the string contains only ASCII characters.
Header cannot be one of the reserved keys.
Some header keys are reserved. You may not include any of the following reserved keys: x-sg-id, x-sg-eid, received, dkim-signature, Content-Type, Content-Transfer-Encoding, To, From, Subject, Reply-To, CC, BCC.
\n\n\n\n\n

personalizations.send_at

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The send_at parameter is expecting a Unix timestamp as an integer. We will send immediately if you include a send_at timestamp that is in the past.
send_at accepts a unix timestamp representing when you want your email to be sent from SendGrid. If you want the email to be sent at the time of your API request, simply omit the send_at parameter.
Scheduling more than 72 hours in advance is forbidden.
The send_at parameter allows you to schedule your email to be sent up to 72 hours in advance, but due to our constraints, we cannot schedule emails more than 72 hours in the future. For more information on scheduling parameters, please see our API Reference.
\n\n\n\n\n

personalizations.subject

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The subject of your email must be a string at least one character in length.
You are required to include a subject for every email you send, and you may not include an empty subject. The minimum length of your subject is one character.
The subject is required. You can get around this requirement if you use a template with a subject defined.
Every email must have a subject. This can be accomplished 3 ways: you include a template that has a subject, you define a global subject, or every single personalizations object has a subject.
\n\n\n\n\n

personalizations.substitutions

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The substitution values must be an object of key/value pairs, where the values are all strings.
Substitutions must always follow the pattern \"substitution_tag\": \"value to substitute\". The value to substitute for the \"substitution_tag\" must always be a string.
You are limited to 10,000 substitutions.
You may not make more than 10,000 substitutions per request. Substitutions will apply to the content of your email, in addition to the subject and reply_to parameters
\n\n\n\n\n

personalizations.to

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The to array must at least have an email parameter with a valid email address and it may also contain a name parameter. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
Every email you send must have at least one, valid recipient email address included. However, you are not required to include a corresponding name with the recipient email address. For more information on how to use personalizations to define who you want to send your email to, please visit our Classroom.
\n\n\n\n\n

ASM Errors

\n\n\n\n\n

asm.group_id

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The ASM group ID must be an integer.
Suppression Groups, or unsubscribe groups, are a great way to record which emails your recipients want to receive. Including the asm.group_id in your request allows you to group your email with other, similar sends. However, these group IDs are always generated as integers, and so you must ensure that asm.group_id is defined as an integer. For more information please read our Unsubscribe Groups documentation.
The ASM group ID must be a valid Group ID on your account. You provided [YOUR ASM GROUP ID].
\n\n\n\n\n

asm.groups_to_display

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The ASM Group IDs to display must be an array of integers.
All ASM groups to display must be valid ASM groups IDs on your account. You provided {invalid IDs}.
There is a limit of 25 unsubscribe groups that can be displayed to a user at a time.
\n\n\n\n\n

Attachment Errors

\n\n\n\n\n

attachments.content

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The attachment content must be base64 encoded.
The attachment content must be a string at least one character in length.
\n\n\n\n\n

attachments.content_id

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The content ID of your attachment must be a string. You provided [YOUR CONTENT ID].
The content_id is a unique id that you specify for the attachment. This is used when the disposition is set to \"inline\" and the attachment is an image, allowing the file to be displayed within the body of your email. For example, <img src=\"cid:ii_139db99fdb5c3704\"></img>
The content ID of your attachment cannot contain CRLF characters.
When defining your content_id, you may not include the characters ;, ,, n, or r.
\n\n\n\n\n

attachments.disposition

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The disposition of your attachment can be either \"inline\" or \"attachment\". You provided [YOUR DISPOSITION].
The content-disposition of your attachment defines how you would like the attachment to be displayed. For example, \"inline\" results in the attached file being displayed automatically within the message while \"attachment\" results in the attached file requiring some action to be taken before it is displayed (e.g. opening or downloading the file). attachments.disposition always defaults to \"attachment\". Can be either \"attachment\" or \"inline\".
\n\n\n\n\n

attachments.filename

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The filename of your attachment must be a string.
The filename of your attachment cannot contain CRLF characters.
When defining the filename of your attachment, you may not include the characters ;, ,, n, or r.
filename is required.
You must always include a filename for your attachment.
\n\n\n\n\n

attachments.type

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The attachment type must be a string and at least one character in length.
The type cannot contain ‘;’, or CRLF characters.
When defining the type of your attachment content, you may not include the characters ;, ,, n, or r.
\n\n\n\n\n

Batch ID Errors

\n\n\n\n\n

batch_id

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The batch_id must be a string.
Batch IDs are always generated as strings, so when you choose to include a batch ID in your send, you must make sure that batch_id is defined as a string. For more information about batch IDs, and how you can use them to group sends together, please visit our API Reference.
\n\n\n\n\n

Categories Errors

\n\n\n\n\n

categories

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
There is a limit of 10 categories for each email that is sent. You provided X categories.
For more information on how you can use categories to organize your email analytics, please visit our User Guide.
Categories must be an array of strings.
Every object that you include within the categories array must be a string. For more information on how you can use categories to organize your email analytics, please visit our User Guide.
Each category must not be longer than 255 characters. [YOUR CATEGORY] exceeds this limit
he maximum length of a category is 255 characters. For more information on how you can use categories to organize your email analytics, please visit our User Guide.
The categories must be a unique list, and you have included [YOUR CATEGORY] more than once.
You cannot include the same category more than once within the categories array. For more information on how you can use categories to organize your email analytics, please visit our User Guide.
Categories can not contain non-ASCII characters.
Each category name must only be comprised of ASCII characters. For more information on how you can use categories to organize your email analytics, please visit our User Guide.
\n\n\n\n\n

Content Errors

\n\n\n\n\n

content

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The content param is required unless you are using a transactional template and have defined a template_ID.
You may not send an email without the content parameter unless you are using a transactional template. This is to prevent you from sending an empty email to your recipients.
There must be at least one defined content block. We typically suggest both text/plain and text/html blocks are included, but only one block is required.
You must specify at least one content type and value for every email you send. We recommend that you include both text/plain and text/html to ensure that all of your recipients are able to read your email, but you are only required to define one type of content.
\n\n\n\n\n

content.type

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
A content type is required, this tells email clients how to display the email.
You must always specify the MIME type of content you are including in your email, and if you are including the text/plain type, it must be specified first, followed by text/html, and then any other MIME types you would like to specify.
The content value must be a string at least one character in length.
You may not send an email with no content.
Your content type must be a string with length of at least one character.
The content of your email must always be contained within a string when you make your request.
Cannot contain ‘;’, or CRLF characters.
When defining the type of your content, you may not include the characters ;, ,, n, or r.
\n\n\n\n\n

content.value

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
A content value is required, this is the content of the email you are sending.
We do not allow you to send an empty email to your recipients. You must always include a value for your content.
The content value must be a string at least one character in length.
We do not allow you to send an empty email to your recipients. Even if you include the content.value parameter, it must include at least one character.
Following RFC 1341, section 7.2, if either text/html or text/plain are to be sent in your email: text/plain needs to be first, followed by text/html, followed by any other content.
The order in which you specify the MIME types of your content must always be text/plain first, if you choose to include it, followed by text/html, and then any other MIME types you wish to include.
\n\n\n\n\n

Encoding Errors

\n\n\n\n\n

Encoding

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
415
Invalid UTF8 in request
Your payload must be encoded in UTF-8. This includes any attachments.
\n\n\n\n\n

From Address Errors

\n\n\n\n\n

from

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The from object must at least have an email parameter with a valid email address and may also contain a name parameter. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
While every from parameter must include a valid email address, you are not required to include a name.
The from object must be provided for every email send. It is an object that requires the email parameter, but may also contain a name parameter. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
You are required to provide a from address whenever you send an email through SendGrid. This is used for authentication purposes and helps to build a positive sending reputation with your recipients' ISPs. You are not required to include a name within the from parameter.
\n\n\n\n\n

Headers Errors

\n\n\n\n\n

headers

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The header values must be strings.
The object type of every header that you include must be a string. You cannot include headers that are integers, booleans, or arrays.
The headers cannot contain duplicate keys.
You may not include the same header more than once.
Header keys cannot contain non-ASCII characters and empty spaces.
When defining the headers that you would like to use, you must make sure that the string contains only ASCII characters.
Header can not be one of the reserved keys.
Some header keys are reserved. You may not include any of the following reserved headers: x-sg-id, x-sg-eid, received, dkim-signature, Content-Type, Content-Transfer-Encoding, To, From, Subject, Reply-To, CC, BCC.
\n\n\n\n\n

IP Pool Errors

\n\n\n\n\n

ip_pool_name

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The name of your IP pool must be a string.
The IP Pool name must be a valid pool name for your account. You provided [YOUR IP POOL NAME].
\n\n\n\n\n

Reply To Errors

\n\n\n\n\n

reply_to

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The reply_to object, when used, must at least have an email parameter with a valid email address and it may also contain a name parameter. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
For every carbon copy of your email, you must include one, valid recipient email address. However, you are not required to include a corresponding name with the recipient email address. For more information on how to use personalizations to define who you want to send your email to, please visit our Classroom.
\n\n\n\n\n

Sections Errors

\n\n\n\n\n

sections

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The section values must be strings.
The values of your sections parameter will be substituted into the content of your email. We will only perform substitutions using strings, so please make sure that your section values are always defined as strings.
\n\n\n\n\n

Send At Errors

\n\n\n\n\n

send_at

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The send_at parameter is expecting a Unix timestamp as an integer. We will send immediately if you include a send_at timestamp that is in the past.
send_at accepts a unix timestamp representing when you want your email to be sent from SendGrid. If you want the email to be sent at the time of your API request, simply omit the send_at parameter.
Scheduling more than 72 hours in advance is forbidden.
The send_at parameter allows you to schedule your email to be sent up to 72 hours in advance, but due to our constraints, we cannot schedule emails more than 72 hours in the future. For more information on scheduling parameters, please see our API Reference.
\n\n\n\n\n

Subject Line Errors

\n\n\n\n\n

subject

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The subject of your email must be a string at least one character in length.
You are required to include a subject for every email you send, and you may not include an empty subject. The minimum length of your subject is one character.
The subject is required. You can get around this requirement if you use a template with a subject defined or if every personalization has a subject defined.
Every email must have a subject. This can be accomplished 3 ways: you include a template that has a subject, you define a global subject, or every single personalizations object has a subject.
\n\n\n\n\n

Template Errors

\n\n\n\n\n

template_id

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The template ID must be a string, you provided [YOUR TEMPLATE ID].
Template IDs are always strings.
The Template ID must be a valid template id for your account. You provided [YOUR TEMPLATE ID].
We do not allow you to send an empty email, so in the event that the only content of your email is contained within your template, we want to make sure that the included template exists, and is valid.
Must be a valid template.
We do not allow you to send an empty email, so in the event that the only content of your email is contained within your template, we want to make sure that the included template exists, and is valid.
\n\n\n\n\n

Mail Settings Errors

\n\n\n\n\n

mail_settings.bcc.email

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The bcc email recipient object must at least have an email address and may also contain a name. e.g. {\"email\": \"example@example.com\"} or {\"email\": \"example@example.com\", \"name\": \"Example Recipient\"}
You must include a recipient object when using the bcc mail setting.
\n\n\n\n\n

mail_settings.bcc.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The bcc enable param should be a boolean value.
\n\n\n\n\n

mail_settings.bypass_list_management.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The bypass list management enable param should be a boolean value.
\n\n\n\n\n

mail_settings.footer.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The footer enable param should be a boolean value.
\n\n\n\n\n

mail_settings.footer.html

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The text/html version of your footer should be a string.
\n\n\n\n\n

mail_settings.footer.text

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The text/plain version of your footer should be a string.
\n\n\n\n\n

mail_settings.sandbox_mode.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The sandbox mode enable param should be a boolean value.
\n\n\n\n\n

mail_settings.spam_check.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The spam check enable param should be a boolean value.
\n\n\n\n\n

mail_settings.spam_check.post_to_url

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The spam check url must be a string.
You must include the url to post to when using the spam check mail setting.
The `post_to_url` parameter must start with `http://` or `https://`.
\n\n\n\n\n

mail_settings.spam_check.threshold

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The spam check threshold is between 1 and 10, with the lower numbers being the most strict filtering.
You must include the spam check threshold when using the spam check mail setting.
\n\n\n\n\n

Tracking Settings Errors

\n\n\n\n\n

tracking_settings.click_tracking.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The click tracking enable param should be a boolean value.
\n\n\n\n\n

tracking_settings.click_tracking.enable_text

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The click tracking enable text must be a boolean value.
\n\n\n\n\n

tracking_settings.ganalytics.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The Google Analytics enable param must be a boolean value.
\n\n\n\n\n

tracking_settings.ganalytics.utm_campaign

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The Google Analytics utm_campaign must be a string value.
\n\n\n\n\n

tracking_settings.ganalytics.utm_content

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The Google Analytics utm_content must be a string value.
\n\n\n\n\n

tracking_settings.ganalytics.utm_medium

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The Google Analytics utm_medium must be a string value.
\n\n\n\n\n

tracking_settings.ganalytics.utm_source

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The Google Analytics utm_source must be a string value.
\n\n\n\n\n

tracking_settings.ganalytics.utm_term

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The Google Analytics utm_term must be a string value.
\n\n\n\n\n

tracking_settings.open_tracking.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The open tracking enable param should be a boolean value.
\n\n\n\n\n

tracking_settings.open_tracking.substitution_tag

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The open tracking substitution tag must be a string.
\n\n\n\n\n

tracking_settings.subscription_tracking.enable

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The subscription tracking enable param should be a boolean value.
\n\n\n\n\n

tracking_settings.subscription_tracking.html

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The subscription tracking unsubscribe content for text/html messages must be a string.
\n\n\n\n\n

tracking_settings.subscription_tracking.substitution_tag

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The subscription tracking substitution tag must be a string value.
\n\n\n\n\n

tracking_settings.subscription_tracking.text

\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n\n\n \n \n \n\n\n \n \n\n\n\n \n
Error CodeError MessageDetails
400
The subscription tracking unsubscribe content for text/plain messages must be a string.
\n\n\n\n\n\n ", + "public": true + }, + "api-key-permissions": { + "id": "api-key-permissions", + "name": "API Key Permissions", + "content": "API Keys can be used to authenticate the use of SendGrid’s v3 API, or the [Mail API endpoint](#v3-mail-send). API Keys may be assigned certain permissions, or scopes, that limit which API endpoints they are able to access. For a more detailed explanation of how you can use API Key permissions, please visit our [Classroom](https://sendgrid.com/docs/Classroom/Basics/API/api_key_permissions.html). \n\nThe following is a complete list of all possible permissions that you may assign to an API Key.\n\n* [Admin API Key Permissions](#Admin-API-Key-Permissions)\n* [Alerts](#Alerts)\n* [API Keys](#API-Keys)\n* [ASM Groups](#ASM-Groups)\n* [Billing](#Billing)\n* [Categories](#Categories)\n* [Clients](#Clients)\n* [Credentials](#Credentials)\n* [IPs](#IPs)\n* [Mail Settings](#Mail-Settings)\n* [Mail](#Mail)\n* [Marketing Campaigns](#Marketing-Campaigns)\n* [Partner Settings](#Partner-Settings)\n* [Scheduled Sends](#Scheduled-Sends)\n* [Stats](#Stats)\n* [Subusers](#Subusers)\n* [Suppressions](#Suppressions)\n* [Teammates](#Teammates)\n* [Templates](#Templates)\n* [Tracking](#Tracking)\n* [User Settings](#User-Settings)\n* [Webhook](#Webhook)\n* [Whitelabel](#Whitelabel)\n* [Whitelist](#Whitelist)\n\n

\n \n Admin API Key Permissions\n \n

\n\nBelow is a complete list of every API Key permission that should be given to an admin level API Key.\n\n```json\n\"scopes\": [\n \"access_settings.activity.read\",\n \"access_settings.whitelist.create\",\n \"access_settings.whitelist.delete\",\n \"access_settings.whitelist.read\",\n \"access_settings.whitelist.update\",\n \"alerts.create\",\n \"alerts.delete\",\n \"alerts.read\",\n \"alerts.update\",\n \"api_keys.create\",\n \"api_keys.delete\",\n \"api_keys.read\",\n \"api_keys.update\",\n \"asm.groups.create\",\n \"asm.groups.delete\",\n \"asm.groups.read\",\n \"asm.groups.update\",\n \"billing.create\",\n \"billing.delete\",\n \"billing.read\",\n \"billing.update\",\n \"browsers.stats.read\",\n \"categories.create\",\n \"categories.delete\",\n \"categories.read\",\n \"categories.stats.read\",\n \"categories.stats.sums.read\",\n \"categories.update\",\n \"clients.desktop.stats.read\",\n \"clients.phone.stats.read\",\n \"clients.stats.read\",\n \"clients.tablet.stats.read\",\n \"clients.webmail.stats.read\",\n \"credentials.create\",\n \"credentials.delete\",\n \"credentials.read\",\n \"credentials.update\",\n \"devices.stats.read\",\n \"email_activity.read\",\n \"geo.stats.read\",\n \"ips.assigned.read\",\n \"ips.pools.create\",\n \"ips.pools.delete\",\n \"ips.pools.ips.create\",\n \"ips.pools.ips.delete\",\n \"ips.pools.ips.read\",\n \"ips.pools.ips.update\",\n \"ips.pools.read\",\n \"ips.pools.update\",\n \"ips.read\",\n \"ips.warmup.create\",\n \"ips.warmup.delete\",\n \"ips.warmup.read\",\n \"ips.warmup.update\",\n \"mail_settings.address_whitelist.read\",\n \"mail_settings.address_whitelist.update\",\n \"mail_settings.bcc.read\",\n \"mail_settings.bcc.update\",\n \"mail_settings.bounce_purge.read\",\n \"mail_settings.bounce_purge.update\",\n \"mail_settings.footer.read\",\n \"mail_settings.footer.update\",\n \"mail_settings.forward_bounce.read\",\n \"mail_settings.forward_bounce.update\",\n \"mail_settings.forward_spam.read\",\n \"mail_settings.forward_spam.update\",\n \"mail_settings.plain_content.read\",\n \"mail_settings.plain_content.update\",\n \"mail_settings.read\",\n \"mail_settings.spam_check.read\",\n \"mail_settings.spam_check.update\",\n \"mail_settings.template.read\",\n \"mail_settings.template.update\",\n \"mail.batch.create\",\n \"mail.batch.delete\",\n \"mail.batch.read\",\n \"mail.batch.update\",\n \"mail.send\",\n \"mailbox_providers.stats.read\",\n \"marketing_campaigns.create\",\n \"marketing_campaigns.delete\",\n \"marketing_campaigns.read\",\n \"marketing_campaigns.update\",\n \"newsletter.create\",\n \"newsletter.delete\",\n \"newsletter.read\",\n \"newsletter.update\",\n \"partner_settings.new_relic.read\",\n \"partner_settings.new_relic.update\",\n \"partner_settings.read\",\n \"partner_settings.sendwithus.read\",\n \"partner_settings.sendwithus.update\",\n \"stats.global.read\",\n \"stats.read\",\n \"subusers.create\",\n \"subusers.credits.create\",\n \"subusers.credits.delete\",\n \"subusers.credits.read\",\n \"subusers.credits.remaining.create\",\n \"subusers.credits.remaining.delete\",\n \"subusers.credits.remaining.read\",\n \"subusers.credits.remaining.update\",\n \"subusers.credits.update\",\n \"subusers.delete\",\n \"subusers.monitor.create\",\n \"subusers.monitor.delete\",\n \"subusers.monitor.read\",\n \"subusers.monitor.update\",\n \"subusers.read\",\n \"subusers.reputations.read\",\n \"subusers.stats.monthly.read\",\n \"subusers.stats.read\",\n \"subusers.stats.sums.read\",\n \"subusers.summary.read\",\n \"subusers.update\",\n \"suppression.blocks.create\",\n \"suppression.blocks.delete\",\n \"suppression.blocks.read\",\n \"suppression.blocks.update\",\n \"suppression.bounces.create\",\n \"suppression.bounces.delete\",\n \"suppression.bounces.read\",\n \"suppression.bounces.update\",\n \"suppression.create\",\n \"suppression.delete\",\n \"suppression.invalid_emails.create\",\n \"suppression.invalid_emails.delete\",\n \"suppression.invalid_emails.read\",\n \"suppression.invalid_emails.update\",\n \"suppression.read\",\n \"suppression.spam_reports.create\",\n \"suppression.spam_reports.delete\",\n \"suppression.spam_reports.read\",\n \"suppression.spam_reports.update\",\n \"suppression.unsubscribes.create\",\n \"suppression.unsubscribes.delete\",\n \"suppression.unsubscribes.read\",\n \"suppression.unsubscribes.update\",\n \"suppression.update\",\n \"templates.create\",\n \"templates.delete\",\n \"templates.read\",\n \"templates.update\",\n \"templates.versions.activate.create\",\n \"templates.versions.activate.delete\",\n \"templates.versions.activate.read\",\n \"templates.versions.activate.update\",\n \"templates.versions.create\",\n \"templates.versions.delete\",\n \"templates.versions.read\",\n \"templates.versions.update\",\n \"tracking_settings.click.read\",\n \"tracking_settings.click.update\",\n \"tracking_settings.google_analytics.read\",\n \"tracking_settings.google_analytics.update\",\n \"tracking_settings.open.read\",\n \"tracking_settings.open.update\",\n \"tracking_settings.read\",\n \"tracking_settings.subscription.read\",\n \"tracking_settings.subscription.update\",\n \"user.account.read\",\n \"user.credits.read\",\n \"user.email.create\",\n \"user.email.delete\",\n \"user.email.read\",\n \"user.email.update\",\n \"user.multifactor_authentication.create\",\n \"user.multifactor_authentication.delete\",\n \"user.multifactor_authentication.read\",\n \"user.multifactor_authentication.update\",\n \"user.password.read\",\n \"user.password.update\",\n \"user.profile.read\",\n \"user.profile.update\",\n \"user.scheduled_sends.create\",\n \"user.scheduled_sends.delete\",\n \"user.scheduled_sends.read\",\n \"user.scheduled_sends.update\",\n \"user.settings.enforced_tls.read\",\n \"user.settings.enforced_tls.update\",\n \"user.timezone.read\",\n \"user.username.read\",\n \"user.username.update\",\n \"user.webhooks.event.settings.read\",\n \"user.webhooks.event.settings.update\",\n \"user.webhooks.event.test.create\",\n \"user.webhooks.event.test.read\",\n \"user.webhooks.event.test.update\",\n \"user.webhooks.parse.settings.create\",\n \"user.webhooks.parse.settings.delete\",\n \"user.webhooks.parse.settings.read\",\n \"user.webhooks.parse.settings.update\",\n \"user.webhooks.parse.stats.read\",\n \"whitelabel.create\",\n \"whitelabel.delete\",\n \"whitelabel.read\",\n \"whitelabel.update\"\n]\n```\n\n

\n \n Alerts\n \n

\n\n```json\n\"scopes\": [\n \"alerts.create\",\n \"alerts.delete\",\n \"alerts.read\",\n \"alerts.update\"\n]\n```\n\n

\n \n API Keys\n \n

\n\n```json\n\"scopes\": [\n \"api_keys.create\",\n \"api_keys.delete\",\n \"api_keys.read\",\n \"api_keys.update\"\n]\n```\n\n

\n \n ASM Groups\n \n

\n\n```json\n\"scopes\": [\n \"asm.groups.create\",\n \"asm.groups.delete\",\n \"asm.groups.read\",\n \"asm.groups.update\"\n]\n```\n\n

\n \n Billing\n \n

\n\n**As explained in the [Classroom](https://sendgrid.com/docs/Classroom/Basics/API/api_key_permissions.html), Billing permissions are mutually exclusive from all other permissions. An API key can _either_ Billing permissions, or any other set of permissions, but not _both_.**\n\n```json\n\"scopes\": [\n \"billing.create\",\n \"billing.delete\",\n \"billing.read\",\n \"billing.update\"\n]\n```\n\n

\n \n Categories\n \n

\n\n```json\n\"scopes\": [\n \"categories.create\",\n \"categories.delete\",\n \"categories.read\",\n \"categories.update\",\n \"categories.stats.read\",\n \"categories.stats.sums.read\"\n]\n```\n\n

\n \n Clients\n \n

\n\n```json\n\"scopes\": [\n \"clients.desktop.stats.read\",\n \"clients.phone.stats.read\",\n \"clients.stats.read\",\n \"clients.tablet.stats.read\",\n \"clients.webmail.stats.read\"\n]\n```\n\n\n

\n \n Credentials\n \n

\n\n```json\n\"scopes\": [\n \"credentials.create\",\n \"credentials.delete\",\n \"credentials.read\",\n \"credentials.update\"\n]\n```\n\n

\n \n IPs\n \n

\n\n```json\n\"scopes\": [\n \"ips.assigned.read\",\n \"ips.read\",\n \"ips.pools.create\",\n \"ips.pools.delete\",\n \"ips.pools.read\",\n \"ips.pools.update\",\n \"ips.pools.ips.create\",\n \"ips.pools.ips.delete\",\n \"ips.pools.ips.read\",\n \"ips.pools.ips.update\",\n \"ips.warmup.create\",\n \"ips.warmup.delete\",\n \"ips.warmup.read\",\n \"ips.warmup.update\"\n]\n```\n\n

\n \n Mail Settings\n \n

\n\n```json\n\"scopes\": [\n \"mail_settings.address_whitelist.read\",\n \"mail_settings.address_whitelist.update\",\n \"mail_settings.bcc.read\",\n \"mail_settings.bcc.update\",\n \"mail_settings.bounce_purge.read\",\n \"mail_settings.bounce_purge.update\",\n \"mail_settings.footer.read\",\n \"mail_settings.footer.update\",\n \"mail_settings.forward_bounce.read\",\n \"mail_settings.forward_bounce.update\",\n \"mail_settings.forward_spam.read\",\n \"mail_settings.forward_spam.update\",\n \"mail_settings.plain_content.read\",\n \"mail_settings.plain_content.update\",\n \"mail_settings.read\",\n \"mail_settings.spam_check.read\",\n \"mail_settings.spam_check.update\",\n \"mail_settings.template.read\",\n \"mail_settings.template.update\"\n]\n```\n\n

\n \n Mail\n \n

\n\n```json\n\"scopes\": [\n \"mail.batch.create\",\n \"mail.batch.delete\",\n \"mail.batch.read\",\n \"mail.batch.update\",\n \"mail.send\"\n]\n```\n\n

\n \n Marketing Campaigns\n \n

\n\n```json\n\"scopes\": [\n \"marketing_campaigns.create\",\n \"marketing_campaigns.delete\",\n \"marketing_campaigns.read\",\n \"marketing_campaigns.update\"\n]\n```\n\n

\n \n Newsletter\n \n

\n\n```json\n\"scopes\": [\n \"newsletter.create\",\n \"newsletter.delete\",\n \"newsletter.read\",\n \"newsletter.update\"\n]\n```\n\n

\n \n Partner-Settings\n \n

\n\n```json\n\"scopes\": [\n \"partner_settings.new_relic.read\",\n \"partner_settings.new_relic.update\",\n \"partner_settings.read\",\n \"partner_settings.sendwithus.read\",\n \"partner_settings.sendwithus.update\"\n]\n```\n\n

\n \n Scheduled Sends\n \n

\n\n```json\n\"scopes\": [\n \"user.scheduled_sends.create\",\n \"user.scheduled_sends.delete\",\n \"user.scheduled_sends.read\",\n \"user.scheduled_sends.update\"\n]\n```\n\n

\n \n Stats\n \n

\n\n```json\n\"scopes\": [\n \"email_activity.read\",\n \"stats.read\",\n \"stats.global.read\",\n \"browsers.stats.read\",\n \"devices.stats.read\",\n \"geo.stats.read\",\n \"mailbox_providers.stats.read\",\n \"clients.desktop.stats.read\",\n \"clients.phone.stats.read\",\n \"clients.stats.read\",\n \"clients.tablet.stats.read\",\n \"clients.webmail.stats.read\"\n]\n```\n\n

\n \n Subusers\n \n

\n\n```json\n\"scopes\": [\n \"subusers.create\",\n \"subusers.delete\",\n \"subusers.read\",\n \"subusers.update\",\n \"subusers.credits.create\",\n \"subusers.credits.delete\",\n \"subusers.credits.read\",\n \"subusers.credits.update\",\n \"subusers.credits.remaining.create\",\n \"subusers.credits.remaining.delete\",\n \"subusers.credits.remaining.read\",\n \"subusers.credits.remaining.update\",\n \"subusers.monitor.create\",\n \"subusers.monitor.delete\",\n \"subusers.monitor.read\",\n \"subusers.monitor.update\",\n \"subusers.reputations.read\",\n \"subusers.stats.read\",\n \"subusers.stats.monthly.read\",\n \"subusers.stats.sums.read\"\n \"subusers.summary.read\"\n]\n```\n\n

\n \n Suppressions\n \n

\n\n```json\n\"scopes\": [\n \"suppression.create\",\n \"suppression.delete\",\n \"suppression.read\",\n \"suppression.update\",\n \"suppression.bounces.create\",\n \"suppression.bounces.read\",\n \"suppression.bounces.update\",\n \"suppression.bounces.delete\",\n \"suppression.blocks.create\",\n \"suppression.blocks.read\",\n \"suppression.blocks.update\",\n \"suppression.blocks.delete\",\n \"suppression.invalid_emails.create\",\n \"suppression.invalid_emails.read\",\n \"suppression.invalid_emails.update\",\n \"suppression.invalid_emails.delete\",\n \"suppression.spam_reports.create\",\n \"suppression.spam_reports.read\",\n \"suppression.spam_reports.update\",\n \"suppression.spam_reports.delete\",\n \"suppression.unsubscribes.create\",\n \"suppression.unsubscribes.read\",\n \"suppression.unsubscribes.update\",\n \"suppression.unsubscribes.delete\"\n]\n```\n

\n \n Teammates\n \n

\n\n```json\n\"scopes\": [\n \"teammates.create\",\n \"teammates.read\",\n \"teammates.update\",\n \"teammates.delete\"\n]\n```\n

\n \n Templates\n \n

\n\n```json\n\"scopes\": [\n \"templates.create\",\n \"templates.delete\",\n \"templates.read\",\n \"templates.update\",\n \"templates.versions.activate.create\",\n \"templates.versions.activate.delete\",\n \"templates.versions.activate.read\",\n \"templates.versions.activate.update\",\n \"templates.versions.create\",\n \"templates.versions.delete\",\n \"templates.versions.read\",\n \"templates.versions.update\"\n]\n```\n\n

\n \n Tracking\n \n

\n\n```json\n\"scopes\": [\n \"tracking_settings.click.read\",\n \"tracking_settings.click.update\",\n \"tracking_settings.google_analytics.read\",\n \"tracking_settings.google_analytics.update\",\n \"tracking_settings.open.read\",\n \"tracking_settings.open.update\",\n \"tracking_settings.read\",\n \"tracking_settings.subscription.read\",\n \"tracking_settings.subscription.update\"\n]\n```\n\n

\n \n User Settings\n \n

\n\n```json\n\"scopes\": [\n \"user.account.read\",\n \"user.credits.read\",\n \"user.email.create\",\n \"user.email.delete\",\n \"user.email.read\",\n \"user.email.update\",\n \"user.multifactor_authentication.create\",\n \"user.multifactor_authentication.delete\",\n \"user.multifactor_authentication.read\",\n \"user.multifactor_authentication.update\",\n \"user.password.read\",\n \"user.password.update\",\n \"user.profile.read\",\n \"user.profile.update\",\n \"user.settings.enforced_tls.read\",\n \"user.settings.enforced_tls.update\",\n \"user.timezone.read\",\n \"user.timezone.update\",\n \"user.username.read\",\n \"user.username.update\"\n]\n```\n\n\n

\n \n Webhook\n \n

\n\n```json\n\"scopes\": [\n \"user.webhooks.event.settings.read\",\n \"user.webhooks.event.settings.update\",\n \"user.webhooks.event.test.create\",\n \"user.webhooks.event.test.read\",\n \"user.webhooks.event.test.update\",\n \"user.webhooks.parse.settings.create\",\n \"user.webhooks.parse.settings.delete\",\n \"user.webhooks.parse.settings.read\",\n \"user.webhooks.parse.settings.update\",\n \"user.webhooks.parse.stats.read\"\n]\n```\n\n

\n \n Whitelabel\n \n

\n\n```json\n\"scopes\": [\n \"whitelabel.create\",\n \"whitelabel.delete\",\n \"whitelabel.read\",\n \"whitelabel.update\"\n]\n```\n\n

\n \n Whitelist\n \n

\n\n```json\n\"scopes\": [\n \"access_settings.activity.read\",\n \"access_settings.whitelist.create\",\n \"access_settings.whitelist.delete\",\n \"access_settings.whitelist.read\",\n \"access_settings.whitelist.update\"\n]\n```", + "public": true + }, + "api-authorization": { + "id": "api-authorization", + "name": "Authorization", + "content": "# API Key Permissions List\n\n[API Keys](https://sendgrid.com/docs/API_Reference/Web_API_v3/API_Keys/index.html) can be used to authenticate the use of SendGrid’s v3 Web API, or the [Mail API endpoint](https://sendgrid.com/docs/API_Reference/api_v3.html). API Keys may be assigned certain permissions, or scopes, that limit which API endpoints they are able to access. For a more detailed explanation of how you can use API Key permissions, please visit our [Classroom](https://sendgrid.com/docs/Classroom/Basics/API/api_key_permissions.html). \n\nThe following is a complete list of all possible permissions that you may assign to an API Key.\n\n## Table of Contents\n\n\n\n\n\n\n\n\n\n\n
AlertsMail SettingsTeammates
API KeysMailTemplates
ASM GroupsMarketing CampaignsSuppressions
BillingPartner SettingsTracking
CategoriesScheduled SendsUser Settings
StatsWebhookIPs
SubusersWhitelabelWhitelist
Admin API Key Scopes
\n\n\n

Alerts

\n\n```json\n\"scopes\": [\n \"alerts.create\",\n \"alerts.delete\",\n \"alerts.read\",\n \"alerts.update\"\n]\n```\n\n

API Keys

\n\n```json\n\"scopes\": [\n \"api_keys.create\",\n \"api_keys.delete\",\n \"api_keys.read\",\n \"api_keys.update\"\n]\n```\n\n

ASM Groups

\n\n```json\n\"scopes\": [\n \"asm.groups.create\",\n \"asm.groups.delete\",\n \"asm.groups.read\",\n \"asm.groups.update\"\n]\n```\n\n\n

Billing

\n\n```json\n\"scopes\": [\n \"billing.create\",\n \"billing.delete\",\n \"billing.read\",\n \"billing.update\"\n]\n```\n\n\n**As explained in the Classroom, Billing permissions are mutually exclusive from all others. An API Key can *either* have Billing Permissions, or any other set of Permissions.**\n\n\n

Categories

\n\n```json\n\"scopes\": [\n \"categories.create\",\n \"categories.delete\",\n \"categories.read\",\n \"categories.update\",\n \"categories.stats.read\",\n \"categories.stats.sums.read\"\n]\n```\n\n

Stats

\n\n```json\n\"scopes\": [\n \"email_activity.read\",\n \"stats.read\",\n \"stats.global.read\",\n \"browsers.stats.read\",\n \"devices.stats.read\",\n \"geo.stats.read\",\n \"mailbox_providers.stats.read\",\n \"clients.desktop.stats.read\",\n \"clients.phone.stats.read\",\n \"clients.stats.read\",\n \"clients.tablet.stats.read\",\n \"clients.webmail.stats.read\"\n]\n```\n\n

IPs

\n\n```json\n\"scopes\": [\n \"ips.assigned.read\",\n \"ips.read\",\n \"ips.pools.create\",\n \"ips.pools.delete\",\n \"ips.pools.read\",\n \"ips.pools.update\",\n \"ips.pools.ips.create\",\n \"ips.pools.ips.delete\",\n \"ips.pools.ips.read\",\n \"ips.pools.ips.update\",\n \"ips.warmup.create\",\n \"ips.warmup.delete\",\n \"ips.warmup.read\",\n \"ips.warmup.update\"\n]\n```\n\n

Mail Settings

\n\n```json\n\"scopes\": [\n \"mail_settings.address_whitelist.read\",\n \"mail_settings.address_whitelist.update\",\n \"mail_settings.bcc.read\",\n \"mail_settings.bcc.update\",\n \"mail_settings.bounce_purge.read\",\n \"mail_settings.bounce_purge.update\",\n \"mail_settings.footer.read\",\n \"mail_settings.footer.update\",\n \"mail_settings.forward_bounce.read\",\n \"mail_settings.forward_bounce.update\",\n \"mail_settings.forward_spam.read\",\n \"mail_settings.forward_spam.update\",\n \"mail_settings.plain_content.read\",\n \"mail_settings.plain_content.update\",\n \"mail_settings.read\",\n \"mail_settings.spam_check.read\",\n \"mail_settings.spam_check.update\",\n \"mail_settings.template.read\",\n \"mail_settings.template.update\"\n]\n```\n\n

Mail

\n\n```json\n\"scopes\": [\n \"mail.batch.create\",\n \"mail.batch.delete\",\n \"mail.batch.read\",\n \"mail.batch.update\",\n \"mail.send\"\n]\n```\n\n

Marketing Campaigns

\n\n```json\n\"scopes\": [\n \"marketing_campaigns.create\",\n \"marketing_campaigns.delete\",\n \"marketing_campaigns.read\",\n \"marketing_campaigns.update\"\n]\n```\n\n

Newsletter

\n\n```json\n\"scopes\": [\n \"newsletter.create\",\n \"newsletter.delete\",\n \"newsletter.read\",\n \"newsletter.update\"\n]\n```\n\n

Partner Settings

\n\n```json\n\"scopes\": [\n \"partner_settings.new_relic.read\",\n \"partner_settings.new_relic.update\",\n \"partner_settings.read\",\n \"partner_settings.sendwithus.read\",\n \"partner_settings.sendwithus.update\"\n]\n```\n\n

Scheduled Sends

\n\n```json\n\"scopes\": [\n \"user.scheduled_sends.create\",\n \"user.scheduled_sends.delete\",\n \"user.scheduled_sends.read\",\n \"user.scheduled_sends.update\"\n]\n```\n\n

Subusers

\n\n```json\n\"scopes\": [\n \"subusers.create\",\n \"subusers.delete\",\n \"subusers.read\",\n \"subusers.update\",\n \"subusers.credits.create\",\n \"subusers.credits.delete\",\n \"subusers.credits.read\",\n \"subusers.credits.update\",\n \"subusers.credits.remaining.create\",\n \"subusers.credits.remaining.delete\",\n \"subusers.credits.remaining.read\",\n \"subusers.credits.remaining.update\",\n \"subusers.monitor.create\",\n \"subusers.monitor.delete\",\n \"subusers.monitor.read\",\n \"subusers.monitor.update\",\n \"subusers.reputations.read\",\n \"subusers.stats.read\",\n \"subusers.stats.monthly.read\",\n \"subusers.stats.sums.read\"\n \"subusers.summary.read\"\n]\n```\n\n

Suppressions

\n\n```json\n\"scopes\": [\n \"suppression.create\",\n \"suppression.delete\",\n \"suppression.read\",\n \"suppression.update\",\n \"suppression.bounces.create\",\n \"suppression.bounces.read\",\n \"suppression.bounces.update\",\n \"suppression.bounces.delete\",\n \"suppression.blocks.create\",\n \"suppression.blocks.read\",\n \"suppression.blocks.update\",\n \"suppression.blocks.delete\",\n \"suppression.invalid_emails.create\",\n \"suppression.invalid_emails.read\",\n \"suppression.invalid_emails.update\",\n \"suppression.invalid_emails.delete\",\n \"suppression.spam_reports.create\",\n \"suppression.spam_reports.read\",\n \"suppression.spam_reports.update\",\n \"suppression.spam_reports.delete\",\n \"suppression.unsubscribes.create\",\n \"suppression.unsubscribes.read\",\n \"suppression.unsubscribes.update\",\n \"suppression.unsubscribes.delete\"\n]\n```\n\n

Teammates

\n\n```json\n\"scopes\": [\n \"teammates.create\",\n \"teammates.read\",\n \"teammates.update\",\n \"teammates.delete\"\n]\n```\n\n

Templates

\n\n```json\n\"scopes\": [\n \"templates.create\",\n \"templates.delete\",\n \"templates.read\",\n \"templates.update\",\n \"templates.versions.activate.create\",\n \"templates.versions.activate.delete\",\n \"templates.versions.activate.read\",\n \"templates.versions.activate.update\",\n \"templates.versions.create\",\n \"templates.versions.delete\",\n \"templates.versions.read\",\n \"templates.versions.update\"\n]\n```\n\n

Tracking

\n\n```json\n\"scopes\": [\n \"tracking_settings.click.read\",\n \"tracking_settings.click.update\",\n \"tracking_settings.google_analytics.read\",\n \"tracking_settings.google_analytics.update\",\n \"tracking_settings.open.read\",\n \"tracking_settings.open.update\",\n \"tracking_settings.read\",\n \"tracking_settings.subscription.read\",\n \"tracking_settings.subscription.update\"\n]\n```\n\n

User Settings

\n\n```json\n\"scopes\": [\n \"user.account.read\",\n \"user.credits.read\",\n \"user.email.create\",\n \"user.email.delete\",\n \"user.email.read\",\n \"user.email.update\",\n \"user.multifactor_authentication.create\",\n \"user.multifactor_authentication.delete\",\n \"user.multifactor_authentication.read\",\n \"user.multifactor_authentication.update\",\n \"user.password.read\",\n \"user.password.update\",\n \"user.profile.read\",\n \"user.profile.update\",\n \"user.settings.enforced_tls.read\",\n \"user.settings.enforced_tls.update\",\n \"user.timezone.read\",\n \"user.timezone.update\",\n \"user.username.read\",\n \"user.username.update\"\n]\n```\n\n

Webhook

\n\n```json\n\"scopes\": [\n \"user.webhooks.event.settings.read\",\n \"user.webhooks.event.settings.update\",\n \"user.webhooks.event.test.create\",\n \"user.webhooks.event.test.read\",\n \"user.webhooks.event.test.update\",\n \"user.webhooks.parse.settings.create\",\n \"user.webhooks.parse.settings.delete\",\n \"user.webhooks.parse.settings.read\",\n \"user.webhooks.parse.settings.update\",\n \"user.webhooks.parse.stats.read\"\n]\n```\n\n

Whitelabel

\n\n```json\n\"scopes\": [\n \"whitelabel.create\",\n \"whitelabel.delete\",\n \"whitelabel.read\",\n \"whitelabel.update\"\n]\n```\n\n

Whitelist

\n\n```json\n\"scopes\": [\n \"access_settings.activity.read\",\n \"access_settings.whitelist.create\",\n \"access_settings.whitelist.delete\",\n \"access_settings.whitelist.read\",\n \"access_settings.whitelist.update\"\n]\n```\n\n

Admin API Key Scopes

\n\nBelow is a complete list of every API Key scope to be given to an admin level API Key.\n\n```json\n\"scopes\": [\n \"access_settings.activity.read\",\n \"access_settings.whitelist.create\",\n \"access_settings.whitelist.delete\",\n \"access_settings.whitelist.read\",\n \"access_settings.whitelist.update\",\n \"alerts.create\",\n \"alerts.delete\",\n \"alerts.read\",\n \"alerts.update\",\n \"api_keys.create\",\n \"api_keys.delete\",\n \"api_keys.read\",\n \"api_keys.update\",\n \"asm.groups.create\",\n \"asm.groups.delete\",\n \"asm.groups.read\",\n \"asm.groups.update\",\n \"billing.create\",\n \"billing.delete\",\n \"billing.read\",\n \"billing.update\",\n \"browsers.stats.read\",\n \"categories.create\",\n \"categories.delete\",\n \"categories.read\",\n \"categories.stats.read\",\n \"categories.stats.sums.read\",\n \"categories.update\",\n \"clients.desktop.stats.read\",\n \"clients.phone.stats.read\",\n \"clients.stats.read\",\n \"clients.tablet.stats.read\",\n \"clients.webmail.stats.read\",\n \"devices.stats.read\",\n \"email_activity.read\",\n \"geo.stats.read\",\n \"ips.assigned.read\",\n \"ips.pools.create\",\n \"ips.pools.delete\",\n \"ips.pools.ips.create\",\n \"ips.pools.ips.delete\",\n \"ips.pools.ips.read\",\n \"ips.pools.ips.update\",\n \"ips.pools.read\",\n \"ips.pools.update\",\n \"ips.read\",\n \"ips.warmup.create\",\n \"ips.warmup.delete\",\n \"ips.warmup.read\",\n \"ips.warmup.update\",\n \"mail_settings.address_whitelist.read\",\n \"mail_settings.address_whitelist.update\",\n \"mail_settings.bcc.read\",\n \"mail_settings.bcc.update\",\n \"mail_settings.bounce_purge.read\",\n \"mail_settings.bounce_purge.update\",\n \"mail_settings.footer.read\",\n \"mail_settings.footer.update\",\n \"mail_settings.forward_bounce.read\",\n \"mail_settings.forward_bounce.update\",\n \"mail_settings.forward_spam.read\",\n \"mail_settings.forward_spam.update\",\n \"mail_settings.plain_content.read\",\n \"mail_settings.plain_content.update\",\n \"mail_settings.read\",\n \"mail_settings.spam_check.read\",\n \"mail_settings.spam_check.update\",\n \"mail_settings.template.read\",\n \"mail_settings.template.update\",\n \"mail.batch.create\",\n \"mail.batch.delete\",\n \"mail.batch.read\",\n \"mail.batch.update\",\n \"mail.send\",\n \"mailbox_providers.stats.read\",\n \"marketing_campaigns.create\",\n \"marketing_campaigns.delete\",\n \"marketing_campaigns.read\",\n \"marketing_campaigns.update\",\n \"newsletter.create\",\n \"newsletter.delete\",\n \"newsletter.read\",\n \"newsletter.update\",\n \"partner_settings.new_relic.read\",\n \"partner_settings.new_relic.update\",\n \"partner_settings.read\",\n \"partner_settings.sendwithus.read\",\n \"partner_settings.sendwithus.update\",\n \"stats.global.read\",\n \"stats.read\",\n \"subusers.create\",\n \"subusers.credits.create\",\n \"subusers.credits.delete\",\n \"subusers.credits.read\",\n \"subusers.credits.remaining.create\",\n \"subusers.credits.remaining.delete\",\n \"subusers.credits.remaining.read\",\n \"subusers.credits.remaining.update\",\n \"subusers.credits.update\",\n \"subusers.delete\",\n \"subusers.monitor.create\",\n \"subusers.monitor.delete\",\n \"subusers.monitor.read\",\n \"subusers.monitor.update\",\n \"subusers.read\",\n \"subusers.reputations.read\",\n \"subusers.stats.monthly.read\",\n \"subusers.stats.read\",\n \"subusers.stats.sums.read\",\n \"subusers.summary.read\",\n \"subusers.update\",\n \"suppression.blocks.create\",\n \"suppression.blocks.delete\",\n \"suppression.blocks.read\",\n \"suppression.blocks.update\",\n \"suppression.bounces.create\",\n \"suppression.bounces.delete\",\n \"suppression.bounces.read\",\n \"suppression.bounces.update\",\n \"suppression.create\",\n \"suppression.delete\",\n \"suppression.invalid_emails.create\",\n \"suppression.invalid_emails.delete\",\n \"suppression.invalid_emails.read\",\n \"suppression.invalid_emails.update\",\n \"suppression.read\",\n \"suppression.spam_reports.create\",\n \"suppression.spam_reports.delete\",\n \"suppression.spam_reports.read\",\n \"suppression.spam_reports.update\",\n \"suppression.unsubscribes.create\",\n \"suppression.unsubscribes.delete\",\n \"suppression.unsubscribes.read\",\n \"suppression.unsubscribes.update\",\n \"suppression.update\",\n \"teammates.create\",\n \"teammates.read\",\n \"teammates.update\",\n \"teammates.delete\",\n \"templates.create\",\n \"templates.delete\",\n \"templates.read\",\n \"templates.update\",\n \"templates.versions.activate.create\",\n \"templates.versions.activate.delete\",\n \"templates.versions.activate.read\",\n \"templates.versions.activate.update\",\n \"templates.versions.create\",\n \"templates.versions.delete\",\n \"templates.versions.read\",\n \"templates.versions.update\",\n \"tracking_settings.click.read\",\n \"tracking_settings.click.update\",\n \"tracking_settings.google_analytics.read\",\n \"tracking_settings.google_analytics.update\",\n \"tracking_settings.open.read\",\n \"tracking_settings.open.update\",\n \"tracking_settings.read\",\n \"tracking_settings.subscription.read\",\n \"tracking_settings.subscription.update\",\n \"user.account.read\",\n \"user.credits.read\",\n \"user.email.create\",\n \"user.email.delete\",\n \"user.email.read\",\n \"user.email.update\",\n \"user.multifactor_authentication.create\",\n \"user.multifactor_authentication.delete\",\n \"user.multifactor_authentication.read\",\n \"user.multifactor_authentication.update\",\n \"user.password.read\",\n \"user.password.update\",\n \"user.profile.read\",\n \"user.profile.update\",\n \"user.scheduled_sends.create\",\n \"user.scheduled_sends.delete\",\n \"user.scheduled_sends.read\",\n \"user.scheduled_sends.update\",\n \"user.settings.enforced_tls.read\",\n \"user.settings.enforced_tls.update\",\n \"user.timezone.read\",\n \"user.username.read\",\n \"user.username.update\",\n \"user.webhooks.event.settings.read\",\n \"user.webhooks.event.settings.update\",\n \"user.webhooks.event.test.create\",\n \"user.webhooks.event.test.read\",\n \"user.webhooks.event.test.update\",\n \"user.webhooks.parse.settings.create\",\n \"user.webhooks.parse.settings.delete\",\n \"user.webhooks.parse.settings.read\",\n \"user.webhooks.parse.settings.update\",\n \"user.webhooks.parse.stats.read\",\n \"whitelabel.create\",\n \"whitelabel.delete\",\n \"whitelabel.read\",\n \"whitelabel.update\"\n]\n```", + "public": true + }, + "on-behalf-of": { + "id": "on-behalf-of", + "name": "On Behalf of Subuser", + "content": "Use the *on-behalf-of* header to make calls for a particular subuser through the parent account. Use this header to automate bulk updates, or to administer a subuser without changing the authentication in your code.\n\nTo use the feature, add the *on-behalf-of* header:\n\n`on-behalf-of: subuser_`\n\nThis header generates the API call as if the subuser account was making the call.\n\nWhen authenticating using the *on-behalf-of* header, you need to use the API key credentials of the **parent account**. For example:\n\n```curl -X GET \\\n 'https://api.sendgrid.com/v3/stats?start_date=2016-01-01&end_date=2017-01-01&aggregated_by=month' \\\n -H 'authorization: ' \\\n -H 'on-behalf-of: subuser_' \\\n ```\n\n**Note**: The *on-behalf-of* header does not work with the mail.send API.", + "public": true + } + }, + "mock": { + "enabled": false, + "dynamic": false + } + } +} \ No newline at end of file