全部产品
云市场

发送数据信息

更新时间:2018-10-19 09:00:15

获取指定条件下的发送数据

邮件跟踪获取指定条件下的发送数据

获取指定条件下的发送数据

  1. public void testSenderStatisticsByTagNameAndBatchID() {
  2. IAcsClient client = IAcsClientUtil.getiAcsClient();
  3. SenderStatisticsByTagNameAndBatchIDRequest request = new SenderStatisticsByTagNameAndBatchIDRequest();
  4. try {
  5. request.setAccountName("noreply@first.dmtest.club");
  6. request.setTagName("testtag");
  7. request.setStartTime("2018-07-31");
  8. request.setEndTime("2018-08-05");
  9. SenderStatisticsByTagNameAndBatchIDResponse httpResponse = client.getAcsResponse(request);
  10. System.out.println("------testSenderStatisticsByTagNameAndBatchID------" + JSON.toJSONString(httpResponse));
  11. } catch (ServerException e) {
  12. e.printStackTrace();
  13. } catch (ClientException e) {
  14. e.printStackTrace();
  15. }
  16. }

邮件跟踪获取指定条件下的发送数据

  1. public void testGetTrackListByMailFromAndTagName() {
  2. // 如果是除杭州region外的其它region(如新加坡、澳洲Region),需要将下面的"cn-hangzhou"替换为"ap-southeast-1"、或"ap-southeast-2"。
  3. IAcsClient client = IAcsClientUtil.getiAcsClient();
  4. GetTrackListByMailFromAndTagNameRequest request = new GetTrackListByMailFromAndTagNameRequest();
  5. try {
  6. request.setAccountName("noreply@first.dmtest.club");
  7. request.setTagName("testtag");
  8. request.setStartTime("2018-09-22");
  9. request.setEndTime("2018-10-03");
  10. GetTrackListByMailFromAndTagNameResponse httpResponse = client.getAcsResponse(request);
  11. System.out.println("------getTrackListByMailFromAndTagName------" + JSON.toJSONString(httpResponse));
  12. } catch (ServerException e) {
  13. e.printStackTrace();
  14. }
  15. catch (ClientException e) {
  16. e.printStackTrace();
  17. }
  18. }