SpreadWebServcie.SendSMS Method
It creates an SMS campaign and sends it out .
Parameters
Parameter
|
Type
|
Description
|
loginEmail
|
String
|
The login email of your Spread account.
|
APIKey
|
String
|
Unique
API Key of Spread account which can be retrieved from your Spread account (My account=> Settings).
|
SMScontent
|
String
|
The content of SMS campaign.
|
senderNumber
|
String
|
The Number of SMS campaign sender.
|
schedule
|
DateTime
|
The date of when to establish the email campaign.
|
campaignStatus
|
CampaignStatus
|
The status of SMS campaign.(CampaignStatus.Waiting,CampaignStatus.Draft)
|
phoneSubscribers
|
String[]
|
The phone number of Subscribers.
|
category
|
String[]
|
The names of target subscriptions
the campaign sent to.
|
Return Value
Integer
of the
ID of the created campaign.
Example
string
loginName = "Spread@reasonables.com";
string
APIKey = "777465CA-4W7E-446A-824A-8970B39BFD78";
string
SMScontent ="Test";
string
senderNumber="85212345678";
string[]
phoneSubscribers ={"85265206520",
"85265216521"};
string []
categorys = {"myTestList1",
"myTestList2", "myTestList3"};
SpreadAPI.SpreadWebService MySpread =
new SpreadAPI.SpreadWebService();
int
smsCampaignID = MySpread.SendSMS(loginName, APIKey, SMScontent,
senderNumber,DateTime.Now ,SpreadAPI.CampaignStatus.Waiting , phoneSubscribers,
categorys);
See Also
SpreadWebService
Class | Spread Web Service Namespace
Campaign
Class