tencentcloud-sdk-python-sms 3.0.1459__tar.gz → 3.0.1482__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud_sdk_python_sms-3.0.1482/PKG-INFO +46 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/setup.py +1 -1
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20190711/errorcodes.py +1 -1
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20190711/models.py +18 -8
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20190711/sms_client.py +3 -3
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20210111/errorcodes.py +1 -1
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20210111/models.py +18 -10
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20210111/sms_client.py +3 -3
- tencentcloud_sdk_python_sms-3.0.1482/tencentcloud_sdk_python_sms.egg-info/PKG-INFO +46 -0
- tencentcloud_sdk_python_sms-3.0.1482/tencentcloud_sdk_python_sms.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-sms-3.0.1459/PKG-INFO +0 -45
- tencentcloud-sdk-python-sms-3.0.1459/tencentcloud_sdk_python_sms.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-sms-3.0.1459/tencentcloud_sdk_python_sms.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/README.rst +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/setup.cfg +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/__init__.py +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20190711/__init__.py +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud/sms/v20210111/__init__.py +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud_sdk_python_sms.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud_sdk_python_sms.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-sms-3.0.1459 → tencentcloud_sdk_python_sms-3.0.1482}/tencentcloud_sdk_python_sms.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-sms
|
|
3
|
+
Version: 3.0.1482
|
|
4
|
+
Summary: Tencent Cloud Sms SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1482
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Sms SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-sms
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common sms
|
|
46
|
+
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-sms',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1482,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Sms SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -131,7 +131,7 @@ INVALIDPARAMETER_INVALIDPARAMETERS = 'InvalidParameter.InvalidParameters'
|
|
|
131
131
|
# 参数 BeginTime 校验失败。
|
|
132
132
|
INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = 'InvalidParameterValue.BeginTimeVerifyFail'
|
|
133
133
|
|
|
134
|
-
# 请求的短信内容太长,短信长度规则请参考 [国内短信内容长度计算规则](https://cloud.tencent.com/document/product/382/18058)。
|
|
134
|
+
# 请求的短信内容太长,短信长度规则请参考 [国内短信内容长度计算规则](https://cloud.tencent.com/document/product/382/18058) 或 [国际/港澳台短信内容长度计算规则](https://cloud.tencent.com/document/product/382/18052#size)。
|
|
135
135
|
INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = 'InvalidParameterValue.ContentLengthLimit'
|
|
136
136
|
|
|
137
137
|
# 参数 EndTime 校验失败。
|
|
@@ -1073,7 +1073,9 @@ class DescribeSignListStatus(AbstractModel):
|
|
|
1073
1073
|
0:表示国内短信。
|
|
1074
1074
|
1:表示国际/港澳台短信。
|
|
1075
1075
|
:type International: int
|
|
1076
|
-
:param _StatusCode:
|
|
1076
|
+
:param _StatusCode: 签名状态,其中:
|
|
1077
|
+
国内短信0表示签名可用,1表示审核中,2表示审核通过待生效,-1表示审核未通过、审核失败或未完成首次报备等原因导致签名不可用。具体可参考 [国内短信签名状态值说明](https://cloud.tencent.com/document/product/382/39022#ea7b2b63-ee71-404f-a525-c5a572d12ccd)。
|
|
1078
|
+
国际短信0表示审核通过且已生效,1表示审核中,2表示审核通过待生效,-1表示审核未通过或审核失败。
|
|
1077
1079
|
:type StatusCode: int
|
|
1078
1080
|
:param _ReviewReply: 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
|
|
1079
1081
|
:type ReviewReply: str
|
|
@@ -1127,7 +1129,9 @@ class DescribeSignListStatus(AbstractModel):
|
|
|
1127
1129
|
|
|
1128
1130
|
@property
|
|
1129
1131
|
def StatusCode(self):
|
|
1130
|
-
r"""
|
|
1132
|
+
r"""签名状态,其中:
|
|
1133
|
+
国内短信0表示签名可用,1表示审核中,2表示审核通过待生效,-1表示审核未通过、审核失败或未完成首次报备等原因导致签名不可用。具体可参考 [国内短信签名状态值说明](https://cloud.tencent.com/document/product/382/39022#ea7b2b63-ee71-404f-a525-c5a572d12ccd)。
|
|
1134
|
+
国际短信0表示审核通过且已生效,1表示审核中,2表示审核通过待生效,-1表示审核未通过或审核失败。
|
|
1131
1135
|
:rtype: int
|
|
1132
1136
|
"""
|
|
1133
1137
|
return self._StatusCode
|
|
@@ -2459,7 +2463,8 @@ class PullSmsSendStatus(AbstractModel):
|
|
|
2459
2463
|
:type PhoneNumber: str
|
|
2460
2464
|
:param _SerialNo: 本次发送标识 ID。
|
|
2461
2465
|
:type SerialNo: str
|
|
2462
|
-
:param _ReportStatus:
|
|
2466
|
+
:param _ReportStatus: 实际是否收到的短信接收状态,SUCCESS(下发成功)、FAIL(下发失败)。
|
|
2467
|
+
注:仅当运营商有返回短信接收状态时回包中才会有状态数据。
|
|
2463
2468
|
:type ReportStatus: str
|
|
2464
2469
|
:param _Description: 用户接收短信状态描述。
|
|
2465
2470
|
:type Description: str
|
|
@@ -2541,7 +2546,8 @@ class PullSmsSendStatus(AbstractModel):
|
|
|
2541
2546
|
|
|
2542
2547
|
@property
|
|
2543
2548
|
def ReportStatus(self):
|
|
2544
|
-
r"""
|
|
2549
|
+
r"""实际是否收到的短信接收状态,SUCCESS(下发成功)、FAIL(下发失败)。
|
|
2550
|
+
注:仅当运营商有返回短信接收状态时回包中才会有状态数据。
|
|
2545
2551
|
:rtype: str
|
|
2546
2552
|
"""
|
|
2547
2553
|
return self._ReportStatus
|
|
@@ -2865,7 +2871,8 @@ class SendSmsRequest(AbstractModel):
|
|
|
2865
2871
|
:type ExtendCode: str
|
|
2866
2872
|
:param _SessionContext: 用户的 session 内容,可以携带用户侧 ID 等上下文信息,server 会原样返回。注意长度需小于512字节。
|
|
2867
2873
|
:type SessionContext: str
|
|
2868
|
-
:param _SenderId:
|
|
2874
|
+
:param _SenderId: 国际/港澳台短信 Sender ID。可参考 [Sender ID 说明](https://cloud.tencent.com/document/product/382/102831)。
|
|
2875
|
+
注:国内短信无需填写该项;国际/港澳台短信已申请独立 SenderId 需要填写该字段,默认使用公共 SenderId,无需填写该字段。
|
|
2869
2876
|
:type SenderId: str
|
|
2870
2877
|
"""
|
|
2871
2878
|
self._PhoneNumberSet = None
|
|
@@ -2957,7 +2964,8 @@ class SendSmsRequest(AbstractModel):
|
|
|
2957
2964
|
|
|
2958
2965
|
@property
|
|
2959
2966
|
def SenderId(self):
|
|
2960
|
-
r"""
|
|
2967
|
+
r"""国际/港澳台短信 Sender ID。可参考 [Sender ID 说明](https://cloud.tencent.com/document/product/382/102831)。
|
|
2968
|
+
注:国内短信无需填写该项;国际/港澳台短信已申请独立 SenderId 需要填写该字段,默认使用公共 SenderId,无需填写该字段。
|
|
2961
2969
|
:rtype: str
|
|
2962
2970
|
"""
|
|
2963
2971
|
return self._SenderId
|
|
@@ -2994,6 +3002,7 @@ class SendSmsResponse(AbstractModel):
|
|
|
2994
3002
|
def __init__(self):
|
|
2995
3003
|
r"""
|
|
2996
3004
|
:param _SendStatusSet: 短信发送状态。
|
|
3005
|
+
注:可参考 <a href="#4.-.E7.A4.BA.E4.BE.8B">示例</a> ,包含短信发送成功和发送失败的输出示例。
|
|
2997
3006
|
:type SendStatusSet: list of SendStatus
|
|
2998
3007
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2999
3008
|
:type RequestId: str
|
|
@@ -3004,6 +3013,7 @@ class SendSmsResponse(AbstractModel):
|
|
|
3004
3013
|
@property
|
|
3005
3014
|
def SendStatusSet(self):
|
|
3006
3015
|
r"""短信发送状态。
|
|
3016
|
+
注:可参考 <a href="#4.-.E7.A4.BA.E4.BE.8B">示例</a> ,包含短信发送成功和发送失败的输出示例。
|
|
3007
3017
|
:rtype: list of SendStatus
|
|
3008
3018
|
"""
|
|
3009
3019
|
return self._SendStatusSet
|
|
@@ -3049,7 +3059,7 @@ class SendStatus(AbstractModel):
|
|
|
3049
3059
|
:type Fee: int
|
|
3050
3060
|
:param _SessionContext: 用户Session内容。
|
|
3051
3061
|
:type SessionContext: str
|
|
3052
|
-
:param _Code:
|
|
3062
|
+
:param _Code: 短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/product/382/59177#.E7.9F.AD.E4.BF.A1-API-3.0-.E5.8F.91.E9.80.81.E9.94.99.E8.AF.AF.E7.A0.81)。
|
|
3053
3063
|
:type Code: str
|
|
3054
3064
|
:param _Message: 短信请求错误码描述。
|
|
3055
3065
|
:type Message: str
|
|
@@ -3110,7 +3120,7 @@ class SendStatus(AbstractModel):
|
|
|
3110
3120
|
|
|
3111
3121
|
@property
|
|
3112
3122
|
def Code(self):
|
|
3113
|
-
r"""
|
|
3123
|
+
r"""短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/product/382/59177#.E7.9F.AD.E4.BF.A1-API-3.0-.E5.8F.91.E9.80.81.E9.94.99.E8.AF.AF.E7.A0.81)。
|
|
3114
3124
|
:rtype: str
|
|
3115
3125
|
"""
|
|
3116
3126
|
return self._Code
|
|
@@ -243,7 +243,7 @@ class SmsClient(AbstractClient):
|
|
|
243
243
|
|
|
244
244
|
def PullSmsReplyStatus(self, request):
|
|
245
245
|
r"""本接口 (PullSmsReplyStatus) 用于拉取短信回复状态。
|
|
246
|
-
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a>
|
|
246
|
+
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>上行回复也支持 <a href="https://cloud.tencent.com/document/product/382/42907">配置回复回调</a> 的方式获取。</li></ul></blockquote>
|
|
247
247
|
|
|
248
248
|
:param request: Request instance for PullSmsReplyStatus.
|
|
249
249
|
:type request: :class:`tencentcloud.sms.v20190711.models.PullSmsReplyStatusRequest`
|
|
@@ -291,7 +291,7 @@ class SmsClient(AbstractClient):
|
|
|
291
291
|
|
|
292
292
|
def PullSmsSendStatus(self, request):
|
|
293
293
|
r"""本接口 (PullSmsSendStatus) 用于拉取短信下发状态。
|
|
294
|
-
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a>
|
|
294
|
+
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
|
|
295
295
|
|
|
296
296
|
:param request: Request instance for PullSmsSendStatus.
|
|
297
297
|
:type request: :class:`tencentcloud.sms.v20190711.models.PullSmsSendStatusRequest`
|
|
@@ -315,7 +315,7 @@ class SmsClient(AbstractClient):
|
|
|
315
315
|
|
|
316
316
|
def PullSmsSendStatusByPhoneNumber(self, request):
|
|
317
317
|
r"""本接口 (PullSmsSendStatusByPhoneNumber) 用于拉取单个号码短信下发状态。
|
|
318
|
-
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809
|
|
318
|
+
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
|
|
319
319
|
|
|
320
320
|
:param request: Request instance for PullSmsSendStatusByPhoneNumber.
|
|
321
321
|
:type request: :class:`tencentcloud.sms.v20190711.models.PullSmsSendStatusByPhoneNumberRequest`
|
|
@@ -140,7 +140,7 @@ INVALIDPARAMETER_INVALIDPARAMETERS = 'InvalidParameter.InvalidParameters'
|
|
|
140
140
|
# 参数 BeginTime 校验失败。
|
|
141
141
|
INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = 'InvalidParameterValue.BeginTimeVerifyFail'
|
|
142
142
|
|
|
143
|
-
# 请求的短信内容太长,短信长度规则请参考 [国内短信内容长度计算规则](https://cloud.tencent.com/document/product/382/18058)。
|
|
143
|
+
# 请求的短信内容太长,短信长度规则请参考 [国内短信内容长度计算规则](https://cloud.tencent.com/document/product/382/18058) 或 [国际/港澳台短信内容长度计算规则](https://cloud.tencent.com/document/product/382/18052#size)。
|
|
144
144
|
INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = 'InvalidParameterValue.ContentLengthLimit'
|
|
145
145
|
|
|
146
146
|
# 参数 EndTime 校验失败。
|
|
@@ -1142,7 +1142,9 @@ class DescribeSignListStatus(AbstractModel):
|
|
|
1142
1142
|
:type SignId: int
|
|
1143
1143
|
:param _International: 是否国际/港澳台短信,其中0表示国内短信,1表示国际/港澳台短信。
|
|
1144
1144
|
:type International: int
|
|
1145
|
-
:param _StatusCode:
|
|
1145
|
+
:param _StatusCode: 签名状态,其中:
|
|
1146
|
+
国内短信0表示签名可用,1表示审核中,2表示审核通过待生效,-1表示审核未通过、审核失败或未完成首次报备等原因导致签名不可用。具体可参考 [国内短信签名状态值说明](https://cloud.tencent.com/document/product/382/39022#ea7b2b63-ee71-404f-a525-c5a572d12ccd)。
|
|
1147
|
+
国际短信0表示审核通过且已生效,1表示审核中,2表示审核通过待生效,-1表示审核未通过或审核失败。
|
|
1146
1148
|
:type StatusCode: int
|
|
1147
1149
|
:param _ReviewReply: 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
|
|
1148
1150
|
:type ReviewReply: str
|
|
@@ -1194,7 +1196,9 @@ class DescribeSignListStatus(AbstractModel):
|
|
|
1194
1196
|
|
|
1195
1197
|
@property
|
|
1196
1198
|
def StatusCode(self):
|
|
1197
|
-
r"""
|
|
1199
|
+
r"""签名状态,其中:
|
|
1200
|
+
国内短信0表示签名可用,1表示审核中,2表示审核通过待生效,-1表示审核未通过、审核失败或未完成首次报备等原因导致签名不可用。具体可参考 [国内短信签名状态值说明](https://cloud.tencent.com/document/product/382/39022#ea7b2b63-ee71-404f-a525-c5a572d12ccd)。
|
|
1201
|
+
国际短信0表示审核通过且已生效,1表示审核中,2表示审核通过待生效,-1表示审核未通过或审核失败。
|
|
1198
1202
|
:rtype: int
|
|
1199
1203
|
"""
|
|
1200
1204
|
return self._StatusCode
|
|
@@ -2686,7 +2690,8 @@ class PullSmsSendStatus(AbstractModel):
|
|
|
2686
2690
|
:type PhoneNumber: str
|
|
2687
2691
|
:param _SerialNo: 本次发送标识 ID。
|
|
2688
2692
|
:type SerialNo: str
|
|
2689
|
-
:param _ReportStatus:
|
|
2693
|
+
:param _ReportStatus: 实际是否收到的短信接收状态,SUCCESS(下发成功)、FAIL(下发失败)。
|
|
2694
|
+
注:仅当运营商有返回短信接收状态时回包中才会有状态数据。
|
|
2690
2695
|
:type ReportStatus: str
|
|
2691
2696
|
:param _Description: 用户接收短信状态描述。
|
|
2692
2697
|
:type Description: str
|
|
@@ -2759,7 +2764,8 @@ class PullSmsSendStatus(AbstractModel):
|
|
|
2759
2764
|
|
|
2760
2765
|
@property
|
|
2761
2766
|
def ReportStatus(self):
|
|
2762
|
-
r"""
|
|
2767
|
+
r"""实际是否收到的短信接收状态,SUCCESS(下发成功)、FAIL(下发失败)。
|
|
2768
|
+
注:仅当运营商有返回短信接收状态时回包中才会有状态数据。
|
|
2763
2769
|
:rtype: str
|
|
2764
2770
|
"""
|
|
2765
2771
|
return self._ReportStatus
|
|
@@ -3260,8 +3266,8 @@ class SendSmsRequest(AbstractModel):
|
|
|
3260
3266
|
:type ExtendCode: str
|
|
3261
3267
|
:param _SessionContext: 用户的 session 内容,可以携带用户侧 ID 等上下文信息,server 会原样返回。注意长度需小于512字节。
|
|
3262
3268
|
:type SessionContext: str
|
|
3263
|
-
:param _SenderId:
|
|
3264
|
-
|
|
3269
|
+
:param _SenderId: 国际/港澳台短信 Sender ID。可参考 [Sender ID 说明](https://cloud.tencent.com/document/product/382/102831)。
|
|
3270
|
+
注:国内短信无需填写该项;国际/港澳台短信已申请独立 SenderId 需要填写该字段,默认使用公共 SenderId,无需填写该字段。
|
|
3265
3271
|
:type SenderId: str
|
|
3266
3272
|
"""
|
|
3267
3273
|
self._PhoneNumberSet = None
|
|
@@ -3357,8 +3363,8 @@ class SendSmsRequest(AbstractModel):
|
|
|
3357
3363
|
|
|
3358
3364
|
@property
|
|
3359
3365
|
def SenderId(self):
|
|
3360
|
-
r"""
|
|
3361
|
-
|
|
3366
|
+
r"""国际/港澳台短信 Sender ID。可参考 [Sender ID 说明](https://cloud.tencent.com/document/product/382/102831)。
|
|
3367
|
+
注:国内短信无需填写该项;国际/港澳台短信已申请独立 SenderId 需要填写该字段,默认使用公共 SenderId,无需填写该字段。
|
|
3362
3368
|
:rtype: str
|
|
3363
3369
|
"""
|
|
3364
3370
|
return self._SenderId
|
|
@@ -3395,6 +3401,7 @@ class SendSmsResponse(AbstractModel):
|
|
|
3395
3401
|
def __init__(self):
|
|
3396
3402
|
r"""
|
|
3397
3403
|
:param _SendStatusSet: 短信发送状态。
|
|
3404
|
+
注:可参考 <a href="#4.-.E7.A4.BA.E4.BE.8B">示例</a> ,包含短信发送成功和发送失败的输出示例。
|
|
3398
3405
|
:type SendStatusSet: list of SendStatus
|
|
3399
3406
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3400
3407
|
:type RequestId: str
|
|
@@ -3405,6 +3412,7 @@ class SendSmsResponse(AbstractModel):
|
|
|
3405
3412
|
@property
|
|
3406
3413
|
def SendStatusSet(self):
|
|
3407
3414
|
r"""短信发送状态。
|
|
3415
|
+
注:可参考 <a href="#4.-.E7.A4.BA.E4.BE.8B">示例</a> ,包含短信发送成功和发送失败的输出示例。
|
|
3408
3416
|
:rtype: list of SendStatus
|
|
3409
3417
|
"""
|
|
3410
3418
|
return self._SendStatusSet
|
|
@@ -3450,7 +3458,7 @@ class SendStatus(AbstractModel):
|
|
|
3450
3458
|
:type Fee: int
|
|
3451
3459
|
:param _SessionContext: 用户 session 内容。
|
|
3452
3460
|
:type SessionContext: str
|
|
3453
|
-
:param _Code: 短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/
|
|
3461
|
+
:param _Code: 短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/product/382/59177#.E7.9F.AD.E4.BF.A1-API-3.0-.E5.8F.91.E9.80.81.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
|
|
3454
3462
|
:type Code: str
|
|
3455
3463
|
:param _Message: 短信请求错误码描述。
|
|
3456
3464
|
:type Message: str
|
|
@@ -3511,7 +3519,7 @@ class SendStatus(AbstractModel):
|
|
|
3511
3519
|
|
|
3512
3520
|
@property
|
|
3513
3521
|
def Code(self):
|
|
3514
|
-
r"""短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/
|
|
3522
|
+
r"""短信请求错误码,具体含义请参考 [错误码](https://cloud.tencent.com/document/product/382/59177#.E7.9F.AD.E4.BF.A1-API-3.0-.E5.8F.91.E9.80.81.E9.94.99.E8.AF.AF.E7.A0.81),发送成功返回 "Ok"。
|
|
3515
3523
|
:rtype: str
|
|
3516
3524
|
"""
|
|
3517
3525
|
return self._Code
|
|
@@ -267,7 +267,7 @@ class SmsClient(AbstractClient):
|
|
|
267
267
|
|
|
268
268
|
def PullSmsReplyStatus(self, request):
|
|
269
269
|
r"""本接口 (PullSmsReplyStatus) 用于拉取短信回复状态。
|
|
270
|
-
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a>
|
|
270
|
+
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>上行回复也支持 <a href="https://cloud.tencent.com/document/product/382/42907">配置回复回调</a> 的方式获取。</li></ul></blockquote>
|
|
271
271
|
|
|
272
272
|
:param request: Request instance for PullSmsReplyStatus.
|
|
273
273
|
:type request: :class:`tencentcloud.sms.v20210111.models.PullSmsReplyStatusRequest`
|
|
@@ -315,7 +315,7 @@ class SmsClient(AbstractClient):
|
|
|
315
315
|
|
|
316
316
|
def PullSmsSendStatus(self, request):
|
|
317
317
|
r"""本接口 (PullSmsSendStatus) 用于拉取短信下发状态。
|
|
318
|
-
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a>
|
|
318
|
+
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
|
|
319
319
|
|
|
320
320
|
:param request: Request instance for PullSmsSendStatus.
|
|
321
321
|
:type request: :class:`tencentcloud.sms.v20210111.models.PullSmsSendStatusRequest`
|
|
@@ -339,7 +339,7 @@ class SmsClient(AbstractClient):
|
|
|
339
339
|
|
|
340
340
|
def PullSmsSendStatusByPhoneNumber(self, request):
|
|
341
341
|
r"""本接口 (PullSmsSendStatusByPhoneNumber) 用于拉取单个号码短信下发状态。
|
|
342
|
-
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809
|
|
342
|
+
<blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
|
|
343
343
|
|
|
344
344
|
:param request: Request instance for PullSmsSendStatusByPhoneNumber.
|
|
345
345
|
:type request: :class:`tencentcloud.sms.v20210111.models.PullSmsSendStatusByPhoneNumberRequest`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-sms
|
|
3
|
+
Version: 3.0.1482
|
|
4
|
+
Summary: Tencent Cloud Sms SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.0.1482
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Sms SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-sms
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common sms
|
|
46
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1482
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-sms
|
|
3
|
-
Version: 3.0.1459
|
|
4
|
-
Summary: Tencent Cloud Sms SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Sms SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-sms
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common sms
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-sms
|
|
3
|
-
Version: 3.0.1459
|
|
4
|
-
Summary: Tencent Cloud Sms SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Sms SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-sms
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common sms
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1459
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|