# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
[docs]class SendBatchMsgRequest(JDCloudRequest):
"""
指定短信Id群发短信
"""
def __init__(self, parameters, header=None, version="v2"):
super(SendBatchMsgRequest, self).__init__(
'/regions/{regionId}/sendBatchMsg', 'POST', header, version)
self.parameters = parameters
[docs]class SendBatchMsgParameters(object):
def __init__(self, regionId, appId, templateId, phone, ):
"""
:param regionId: Region ID
:param appId: 应用ID
:param templateId: 短信ID
:param phone: 群发的国内电话号码,群发时一次最多不要超过100个手机号
"""
self.regionId = regionId
self.appId = appId
self.templateId = templateId
self.phone = phone
self.params = None
[docs] def setParams(self, params):
"""
:param params: (Optional) 短信模板变量对应的数据值,Array格式
"""
self.params = params