SpreadWebServcie.AddSubscriberByInfo Method
It adds a single subscriber into
an existing subscription by his/her email as well as other Info. Such as First Name,
Company, Job Title, etc.
public bool addSubscriberByInfo
(
string loginEmail,
string
password,
Subscriber subscriberArgs,
string subscription,
DoubleOptIn optInType
)
Parameters
Parameter
|
Type
|
Description
|
loginEmail
|
String
|
The login email of your Spread account.
|
password
|
String
|
The password of your Spread account or
API Key which you can retrieve from your Spread account (My account=> Settings).
|
subscriberArgs
|
Subscriber
|
The info of subscriber to be added.
|
subscription
|
String
|
The name of target subscription
to be added.
|
optInType
|
DoubleOptIn
|
Double Opt-in option.
|
Return Value
True
- Confirmation is needed by subscriber. (Confirmation Letter
is sent to subscriber)
False
- Confirmation is not needed.
Example
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);
See Also
SpreadWebService
Class | Spread Web Service Namespace
Subscriber
Class
DoubleOptIn
Enumeration
|