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