SpreadWebServcie.GetCampaignOpens Method
The following examples demonstrate
how to get campaign open detail.
Parameters
Parameter
|
Type
|
Description
|
loginEmail
|
String
|
The login email of your Spread account.
|
password
|
String
|
The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).
|
campaignId
|
String
|
The ID of the email campaign.
|
startDate
|
DateTime
|
The starting time of report.
|
endDate
|
DateTime
|
The ending time of report.
|
Return Value
Dataset containing a single table with columns subscriber_email and email_opening_time
Example
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.GetCampaignOpens(loginName, loginPassword, campaignID, startTime, endTime);
See Also
SpreadWebService
Class | Spread Web Service Namespace