Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some irony here, since this is a .md file, and this change would have been flagged had it been run through grammar.ly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lulz



[2020-08-19] Version 4.6.4
Expand Down
14 changes: 7 additions & 7 deletions FIRST_TIMERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment on lines -70 to +64

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the bright side, this repository consistently uses copy+paste (this makes fixing much easier than if it didn't...)

* [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)
Expand Down
36 changes: 18 additions & 18 deletions USAGE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion USE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/accesssettings/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion examples/ips/RetrieveAllPools.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- [Update Username](UpdateUsername.java)

## Security Settings Examples
- [Get Enforced TLS](GetEnforedTLS.java)
- [Get Enforced TLS](GetEnforcedTLS.java)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the file needs to be renamed. Oddly, the class in the file isn't named to match the file name in accordance to general Java naming conventions.

- [Update Enforced TLS](UpdateEnforcedTLS.java)

## Webhook Settings Examples
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sendgrid/RateLimitException.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/sendgrid/helpers/mail/Mail.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public List<Personalization> getPersonalization() {
}

/**
* Add a personalizaton to the email.
* Add a personalization to the email.
*
* @param personalization a personalization.
*/
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/sendgrid/helpers/AttachmentBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"))));
}

Expand Down