SpreadWebServcie.AddSubscriberByEmail Method

 

添加一个单一的订阅者通过他/她的电子邮件.

public bool addSubscriberByEmail (

string loginEmail,

string password,

string subscriberEmail,

string subscription,

DoubleOptIn optInType

)

参数

参数

类型

描述

loginEmail

String

Spread账号的邮箱地址

password

String

Spread账号的密码或者API Key.

subscriberEmail

String

被添加订阅者的邮件地址

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 SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

confirmIsNeeded = MySpread.addSubscriberByEmail (loginName, loginPassword, customerEmail, targetSubscription, addOption);

参见

SpreadWebService Class | Spread Web Service Namespace

DoubleOptIn Enumeration