Skip to content

Commit 668083b

Browse files
authored
Merge pull request #129 from Tanc009/master
publish jdcloud-sdk-python 1.6.99
2 parents b7a91d2 + 22061e3 commit 668083b

5 files changed

Lines changed: 114 additions & 3 deletions

File tree

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
@@ -8,3 +8,4 @@ API版本:1.0.4
88
|2020-08-21 |1.0.2 |通用设置相关接口 | * 通用设置相关接口
99
|2020-11-03 |1.0.3 |增加删除任务和编辑任务接口 | * 短信任务相关接口
1010
|2020-12-08 |1.0.4 |增加修改签名、模板状态接口 | * 增加修改签名、模板状态接口
11+
|2021-04-13 |1.0.5 |增加根据订单号、pin发短信接口 | * 增加根据订单号、pin发短信接口
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 SendMessagesByOrderIdUsingPOSTRequest(JDCloudRequest):
23+
"""
24+
根据订单号发送短信
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SendMessagesByOrderIdUsingPOSTRequest, self).__init__(
29+
'/sendMessagesByOrderId', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SendMessagesByOrderIdUsingPOSTParameters(object):
34+
35+
def __init__(self, appId, signId, templateId, venderId, orderId, ):
36+
"""
37+
:param appId: 应用id
38+
:param signId: 签名id
39+
:param templateId: 模板id
40+
:param venderId: 商家id
41+
:param orderId: 订单编号
42+
"""
43+
44+
self.appId = appId
45+
self.signId = signId
46+
self.templateId = templateId
47+
self.venderId = venderId
48+
self.orderId = orderId
49+
self.params = None
50+
51+
def setParams(self, params):
52+
"""
53+
:param params: (Optional) 短信模板变量对应的数据值
54+
"""
55+
self.params = params
56+
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 SendMessagesByPinUsingPOSTRequest(JDCloudRequest):
23+
"""
24+
根据pin发送短信
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SendMessagesByPinUsingPOSTRequest, self).__init__(
29+
'/sendMessagesByPin', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SendMessagesByPinUsingPOSTParameters(object):
34+
35+
def __init__(self, appId, signId, templateId, pin, ):
36+
"""
37+
:param appId: 应用id
38+
:param signId: 签名id
39+
:param templateId: 模板id
40+
:param pin: 用户pin
41+
"""
42+
43+
self.appId = appId
44+
self.signId = signId
45+
self.templateId = templateId
46+
self.pin = pin
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.4', logger)
29+
super(YdsmsClient, self).__init__(credential, config, 'ydsms', '1.0.5', 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.98",
12+
version="1.6.99",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)