Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Closed
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target
/.settings
/.classpath
/.project
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>
<groupId>com.cribbstechnologies.clients</groupId>
<artifactId>mandrillClient</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1-2</version>
<packaging>jar</packaging>
<name>Java Mandrill Wrapper</name>
<description>A Java wrapper for Mandrill</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

public class MessageResponse extends BaseMandrillResponse {

String email;
String email;
String status;
String _id;
String _id;
String reject_reason;

public String getEmail() {
return email;
Expand All @@ -24,11 +25,19 @@ public void setStatus(String status) {
this.status = status;
}

public String get_id() {
return _id;
}
public String get_id() {
return _id;
}

public void set_id(String _id) {
this._id = _id;
}

public void set_id(String _id) {
this._id = _id;
}
public void setReject_reason(String reject_reason) {
this.reject_reason = reject_reason;
}

public String getReject_reason() {
return reject_reason;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private BaseMandrillResponse performPostRequest(BaseMandrillRequest request, Str
request.setKey(config.getApiKey());
HttpPost postRequest = new HttpPost(config.getServiceUrl() + serviceMethod);
String postData = getPostData(request);
StringEntity input = new StringEntity(postData);
StringEntity input = new StringEntity(postData, "UTF-8");
input.setContentType("application/json");
postRequest.setEntity(input);

Expand Down