Skip to content

Commit 7c1302f

Browse files
publish jdcloud-sdk-python 1.6.130
1 parent 2b091ef commit 7c1302f

5 files changed

Lines changed: 81 additions & 6 deletions

File tree

jdcloud_sdk/services/ydsms/ChangeLog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 更新历史 #
2-
API版本:1.0.6
2+
API版本:1.0.8
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
@@ -9,3 +9,5 @@ API版本:1.0.6
99
|2020-11-03 |1.0.3 |增加删除任务和编辑任务接口 | * 短信任务相关接口
1010
|2020-12-08 |1.0.4 |增加修改签名、模板状态接口 | * 增加修改签名、模板状态接口
1111
|2021-04-13 |1.0.5 |增加根据订单号、pin发短信接口 | * 增加根据订单号、pin发短信接口
12+
|2021-04-13 |1.0.7 |创建应用接口修改入参 | * 创建应用接口修改入参
13+
|2022-01-06 |1.0.8 |增加根据加密pin发短信接口 | * 增加根据加密pin发短信接口

jdcloud_sdk/services/ydsms/apis/CreateSmsAppUsingPOSTRequest.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,33 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class CreateSmsAppUsingPOSTParameters(object):
3434

35-
def __init__(self, appDesc, appId, appName):
35+
def __init__(self, appDesc, appName, ):
3636
"""
3737
:param appDesc: 应用描述
38-
:param appId: 云鼎应用id
3938
:param appName: 应用名称
4039
"""
4140

4241
self.appDesc = appDesc
43-
self.appId = appId
42+
self.appId = None
4443
self.appName = appName
44+
self.accessKeyId = None
45+
self.accessKeySecret = None
46+
47+
def setAppId(self, appId):
48+
"""
49+
:param appId: (Optional) 云鼎应用id
50+
"""
51+
self.appId = appId
52+
53+
def setAccessKeyId(self, accessKeyId):
54+
"""
55+
:param accessKeyId: (Optional) accessKeyId
56+
"""
57+
self.accessKeyId = accessKeyId
58+
59+
def setAccessKeySecret(self, accessKeySecret):
60+
"""
61+
:param accessKeySecret: (Optional) accessKeySecret
62+
"""
63+
self.accessKeySecret = accessKeySecret
4564

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class SendMessagesByEncPinUsingPOSTRequest(JDCloudRequest):
23+
"""
24+
根据加密pin发送短信
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SendMessagesByEncPinUsingPOSTRequest, self).__init__(
29+
'/sendMessagesByEncPin', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SendMessagesByEncPinUsingPOSTParameters(object):
34+
35+
def __init__(self, appId, signId, templateId, encPins, ):
36+
"""
37+
:param appId: 应用id
38+
:param signId: 签名id
39+
:param templateId: 模板id
40+
:param encPins: 加密pin集合,不能超过100个
41+
"""
42+
43+
self.appId = appId
44+
self.signId = signId
45+
self.templateId = templateId
46+
self.encPins = encPins
47+
self.params = None
48+
49+
def setParams(self, params):
50+
"""
51+
:param params: (Optional) 短信模板变量对应的数据值
52+
"""
53+
self.params = params
54+

jdcloud_sdk/services/ydsms/client/YdsmsClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('ydsms.jdcloud-api.com')
2828

29-
super(YdsmsClient, self).__init__(credential, config, 'ydsms', '1.0.6', logger)
29+
super(YdsmsClient, self).__init__(credential, config, 'ydsms', '1.0.8', logger)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.129",
12+
version="1.6.130",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)