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