全部產品
Search
文件中心

:發送資料資訊

更新時間:Jul 13, 2024

擷取指定條件下的發送資料

郵件跟蹤擷取指定條件下的發送資料

擷取指定條件下的發送資料

 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服務地址