Skip Navigation Links.
展开 最小化

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);

Dim MySpread As New SpreadWS.SpreadWebService()

Dim loginName As String = "Spread@reasonables.com"

Dim APIKey As String = "777465CA-4W7E-446A-824A-8970B39BFD78 "

Dim SMScontent As String = "Test"

Dim senderNumber As String = "85212345678"

Dim phoneSubscribers() As String = {"85265206520", "85265216521"}

Dim categorys() As String = {"myTestList1", "myTestList2", "myTestList3"}

Dim smsCampaignID = MySpread.SendSMS(loginName, APIKey, SMScontent, senderNumber, Now, SpreadWS.CampaignStatus.Waiting, phoneSubscribers, categorys)

No sample for PHP.
No sample.