SpreadWebServcie.GetCampaignSents Method

 

下面的例子演示 如何獲得郵件發送的細節.

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵箱.

password

String

Spread賬號的密碼或者API Key.

campaignId

String

郵件活動的ID.

startDate

DateTime

報告的起始時間.

endDate

DateTime

報告的截止時間.

返回結果

Dataset 包含一個單表,行: subscriber_email, isSuccess and sending_status_time

例子

string loginName = "Spread@reasonables.com";
string loginPassword = "Spread";

int campaignID = 12345;
// suggest dateTime string format "dd MMM yyyy HH:mm:ss" ,such as "22 Feb 2013 12:11:21" .
DateTime startTime = DateTime.Parse("22 Feb 2013 12:11:21");
DateTime endTime = DateTime.Parse("23 Feb 2013 12:11:21");

//Create a SpreadWebService object and use its method.
SpreadWebService MySpread = new SpreadWebService();
DataSet result = MySpread.GetCampaignSents(loginName, loginPassword, campaignID, startTime, endTime);

參見

SpreadWebService Class | Spread Web Service Namespace