コード例 #1
0
ファイル: DialogueService_V1.cs プロジェクト: ZhouAnPing/Mail
 public void exportReportToFtp(String contactDatabaseId, String ftpAccountId, String fileName, DateTime startTime, DateTime endTime)
 {
     ExportAction exportAction = new ExportAction(this.client, this.userName, this.password, this.oWebProxy);
     exportAction.exportReportToFtp(contactDatabaseId, ftpAccountId, fileName + "_SENT" + ".csv", startTime, endTime, ReportType.SENT);
     exportAction.exportReportToFtp(contactDatabaseId, ftpAccountId, fileName + "_OPENED" + ".csv", startTime, endTime, ReportType.OPENED);
     exportAction.exportReportToFtp(contactDatabaseId, ftpAccountId, fileName + "_CLICKED" + ".csv", startTime, endTime, ReportType.CLICKED);
     exportAction.exportReportToFtp(contactDatabaseId, ftpAccountId, fileName + "_BOUNCED" + ".csv", startTime, endTime, ReportType.BOUNCED);
 }
コード例 #2
0
ファイル: DialogueService_V1.cs プロジェクト: ZhouAnPing/Mail
        /// <summary>
        /// Export Report
        /// </summary>
        /// <param name="contactDatabaseId"></param>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        public ExportReportData exportReport(String contactDatabaseId, DateTime startTime, DateTime endTime)
        {
            ExportReportData mailReport = new ExportReportData();
            ExportAction exportAction = new ExportAction(this.client, this.userName, this.password, this.oWebProxy);

            mailReport.sent =  exportAction.ExportReport(contactDatabaseId, startTime, endTime, ReportType.SENT);

            mailReport.opened = exportAction.ExportReport(contactDatabaseId, startTime, endTime, ReportType.OPENED);

            mailReport.clicked = exportAction.ExportReport(contactDatabaseId, startTime, endTime, ReportType.CLICKED);

            mailReport.bounced  = exportAction.ExportReport(contactDatabaseId, startTime, endTime, ReportType.BOUNCED);
           
            //mailReport.links = exportAction.ExportReport(contactDatabaseId, startTime, endTime, ReportType.LINKS);

            return mailReport;
        }