获取指定条件下的发送数据
public void testSenderStatisticsByTagNameAndBatchID() {
IAcsClient client = IAcsClientUtil.getiAcsClient();
SenderStatisticsByTagNameAndBatchIDRequest request = new SenderStatisticsByTagNameAndBatchIDRequest();
try {
request.setAccountName("test***@example.net");
request.setTagName("testtag");
request.setStartTime("2018-07-31");
request.setEndTime("2018-08-05");
SenderStatisticsByTagNameAndBatchIDResponse httpResponse = client.getAcsResponse(request);
System.out.println("------testSenderStatisticsByTagNameAndBatchID------" + JSON.toJSONString(httpResponse));
} catch (ServerException e) {
e.printStackTrace();
} catch (ClientException e) {
e.printStackTrace();
}
}
邮件跟踪获取指定条件下的发送数据
public void testGetTrackListByMailFromAndTagName() {
IAcsClient client = IAcsClientUtil.getiAcsClient();
GetTrackListByMailFromAndTagNameRequest request = new GetTrackListByMailFromAndTagNameRequest();
try {
request.setAccountName("test***@example.net");
request.setTagName("testtag");
request.setStartTime("2018-09-22");
request.setEndTime("2018-10-03");
GetTrackListByMailFromAndTagNameResponse httpResponse = client.getAcsResponse(request);
System.out.println("------getTrackListByMailFromAndTagName------" + JSON.toJSONString(httpResponse));
} catch (ServerException e) {
e.printStackTrace();
}
catch (ClientException e) {
e.printStackTrace();
}
}
API服务地址:API服务地址
文档内容是否对您有帮助?