string
loginName
= "spread@reasonables.com";
string
loginPassword
= "spread";
string
customerEmail
= "alan@reasonables.com";
string
targetSubscription
= "NoClone
VIP";
DoubleOptIn addOption = DoubleOptIn.Off;
Dataset
errors;
//Create an
array of subscriber
Subscriber[] customer
= new
Subscriber[2];
//Create more
then one Subscriber objects
Subscriber customerA =
new Subscriber();
customerA.email =
"alan@reasonables.com";
customerA.firstName =
"Alan";
customerA.lastName =
"Wo";
customerA.company =
"Reasonable Software";
Subscriber customerB =
new Subscriber();
customerB.email =
" circle@reasonables.com";
customerB.firstName =
"Circle";
customerB.lastName =
"Ching";
customerB.jobTitle =
"CEO";
//Put the Subscriber
objects into array
customer[0]
= customerA;
customer[1]
= customerB;
//Create a SpreadWebService
object and use its method.
SpreadWebService MySpread = new
SpreadWebService();
errors = MySpread.addSubscribersByInfo
(loginName, loginPassword, customer, targetSubscription, addOption);