SpreadWebServcie.AddSubscriberByInfo Method

 

添加了一个单一用户进入 当前的联系人列表通过他/她的电子邮件以及其他信息.例如名字, 公司、职位等.

public bool addSubscriberByInfo (

string loginEmail,

string password,

Subscriber subscriberArgs,

string subscription,

DoubleOptIn optInType

)

参数

参数

类型

描述

loginEmail

String

Spread账号的登录邮箱

password

String

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

subscriberArgs

Subscriber

添加订阅者的信息

subscription

String

要添加到联系人列表的名称

optInType

DoubleOptIn

Double Opt-in option.

返回结果

True - 需要用户的确认.(确认信 发送给订阅者)

False - 不需要确认.

例子

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

string customerEmail = "alan@reasonables.com";

string targetSubscription = "NoClone VIP";

DoubleOptIn addOption = DoubleOptIn.Off;

bool confirmIsNeeded;

 

//Create a Subscriber object

Subscriber customer = new Subscriber();
customer.email =
"alan@reasonables.com";
customer.firstName =
"Alan";
customer.lastName =
"Wo";
customer.company =
"Reasonable Software";

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

confirmIsNeeded = MySpread.addSubscriberByInfo (loginName, loginPassword, customer, targetSubscription, addOption);

参见

SpreadWebService Class | Spread Web Service Namespace

Subscriber Class

DoubleOptIn Enumeration