SpreadWebServcie.getCampaignID Method

 

通过邮件名称获取对应ID。

public int getCampaignID (

string loginEmail,

string APIKey,

string CampaignName

)

参数

参数

类型

描述

loginEmail

String

Spread账号的登录邮件地址.

APIKey

String

Spread账号的登录密码或者 API Key

CampaignName

String

邮件名称

返回结果

Integer 被创建活动的ID

例子

string loginName = "spread@reasonables.com";

string APIKey = "434F3A43-04CB-40C2-890D-247A24F86DF3"; 

string CampaignName= "NoClone Promotion";

  

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

int campaignID = MySpread.getCampaignID (loginName, loginPassword, CampaignName);

参见

SpreadWebService Class | Spread Web Service Namespace