SpreadWebServcie.UpdateCampaignStatus Method

 

更新邮件活动状态

参数

参数

类型

描述

loginEmail

String

Spread账号的邮箱地址

password

String

Spread账号的密码或者  API Key

campaignID

Integer

待更新的邮件活动ID

campaignStatus

CampaignStatus

新的邮件活动状态(只有邮件活动状态为"Sending"或者"Waiting"才能更新至"Pause",或者邮件活动状态为"Pause"可以被更新至"Waiting")

返回结果

True - 成功更新邮件活动状态。

False - 未能成功更新邮件活动状态。

例子

string loginEmail = "Spread@reasonables.com";

string loginPassword = "Spread";

int campaignID = 1;

campaignStatus campaignStatus = CampaignStatus.Pause;

SpreadAPI. SpreadWebService MySpread = new SpreadAPI. SpreadWebService ();

bool result = MySpread.UpdateCampaignStatus(loginEmail, loginPassword, campaignID, campaignStatus);

参见

SpreadWebService Class | Spread Web Service Namespace