SpreadWebServcie.SendSMS Method

 

創建一個SMS活動和發送.

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵件地址.

APIKey

String

Spread帳號唯一的 API Key,可以在Spread平台中獲得(

SMSContent

String

SMS的發送內容.

sender

String

SMS發送者號碼.

schedule

DateTime

创建SMS活动的时间.

campaignStatus

CampaignStatus

SMS活動的狀態.(CampaignStatus.Waiting,CampaignStatus.Draft)

phoneSubscribers

String[]

訂閱者的號碼.

category

String[]

這個SMS活動發送到聯繫人列表的名稱.

返回結果

Integer 被創建活動的ID.

例子

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

參見

SpreadWebService Class | Spread Web Service Namespace

Campaign Class