SpreadWebServcie.GetCampaignAbuses Method

 

下面例子展示了如何获得指定时间段内的对应邮件的投诉记录.

参数

参数

类型

描述

loginEmail

String

Spread账号的登录邮箱.

password

String

Spread账号的密码或者API Key.

campaignId

String

邮件活动的ID

startDate

DateTime

报告的起始时间.

endDate

DateTime

报告的结束时间.

返回结果

Dataset 包含一个单表,行: subscriber_email, date

例子

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.GetCampaignAbuses(loginName, loginPassword, campaignID, startTime, endTime);

参见

SpreadWebService Class | Spread Web Service Namespace