Permalink
Browse files

template sends use their own URL

  • Loading branch information...
1 parent 8376d39 commit 19f628aa52d1f3ed307877cb238ca20bb3b7a9e0 @pbackx committed Jul 10, 2012
@@ -12,6 +12,7 @@
public class Messages {
public static final String SEND = "messages/send.json";
+ public static final String SEND_TEMPLATE = "messages/send-template.json";
}
public class Tags {
@@ -35,7 +35,7 @@ public SendMessageResponse sendMessage(MandrillMessageRequest messageRequest) th
public SendMessageResponse sendTemplatedMessage(MandrillTemplatedMessageRequest templateMessage) throws RequestFailedException {
SendMessageResponse response = new SendMessageResponse();
- response.setList(((BaseMandrillAnonymousListResponse<MessageResponse>) request.postRequest(templateMessage, ServiceMethods.Messages.SEND, SendMessageResponse.class, messageResponseListReference)).getList());
+ response.setList(((BaseMandrillAnonymousListResponse<MessageResponse>) request.postRequest(templateMessage, ServiceMethods.Messages.SEND_TEMPLATE, SendMessageResponse.class, messageResponseListReference)).getList());
return response;
}

0 comments on commit 19f628a

Please sign in to comment.