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