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 (

SMSContent

String

The content of SMS campaign.

sender

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 loginEmail = "Spread@reasonables.com";

string APIKey = "7D2B83DF-B4A3-4E42-8D77-E6B22A1004BE";

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(loginEmail, APIKey, SMScontent, senderNumber,DateTime.Now ,SpreadAPI.CampaignStatus.Waiting , phoneSubscribers, categorys);

See Also

SpreadWebService Class | Spread Web Service Namespace

Campaign Class