SpreadWebServcie.SendSMS Method

 

創建一個SMS活動和發送.

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵件地址.

APIKey

String

Spread帳號唯一的 API Key,可以在Spread平台中獲得(My account=> Settings).

SMScontent

String

SMS的發送內容.

senderNumber

String

SMS發送者號碼.

schedule

DateTime

创建SMS活动的时间.

campaignStatus

CampaignStatus

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

phoneSubscribers

String[]

訂閱者的號碼.

category

String[]

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

返回結果

Integer 被創建活動的ID.

例子

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

參見

SpreadWebService Class | Spread Web Service Namespace

Campaign Class