tencentcloud-sdk-python-sms 3.1.92__py2.py3-none-any.whl → 3.1.216__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.92'
17
+ __version__ = '3.1.216'
@@ -212,6 +212,9 @@ LIMITEXCEEDED_DAILYLIMIT = 'LimitExceeded.DailyLimit'
212
212
  # 下发短信命中了频率限制策略,可自行到控制台调整短信频率限制策略,如有其他需求请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
213
213
  LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = 'LimitExceeded.DeliveryFrequencyLimit'
214
214
 
215
+ # 国际短信发送速率限制。若存在疑问可联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
216
+ LIMITEXCEEDED_GLOBALSMSSENDINGRATELIMIT = 'LimitExceeded.GlobalSmsSendingRateLimit'
217
+
215
218
  # 调用接口单次提交的手机号个数超过200个,请遵守 API 接口输入参数描述。
216
219
  LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = 'LimitExceeded.PhoneNumberCountLimit'
217
220
 
@@ -95,6 +95,9 @@ FAILEDOPERATION_TEMPLATEPARAMSETNOTMATCHAPPROVEDTEMPLATE = 'FailedOperation.Temp
95
95
  # 模板未审批或不存在。可登录 [短信控制台](https://console.cloud.tencent.com/smsv2),核查模板是否已审批并审批通过。若存在疑问可联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
96
96
  FAILEDOPERATION_TEMPLATEUNAPPROVEDORNOTEXIST = 'FailedOperation.TemplateUnapprovedOrNotExist'
97
97
 
98
+ # 内部错误。
99
+ INTERNALERROR = 'InternalError'
100
+
98
101
  # 解析用户参数失败,可联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
99
102
  INTERNALERROR_JSONPARSEFAIL = 'InternalError.JsonParseFail'
100
103
 
@@ -236,6 +239,9 @@ LIMITEXCEEDED_DAILYLIMIT = 'LimitExceeded.DailyLimit'
236
239
  # 下发短信命中了频率限制策略,可自行到控制台调整短信频率限制策略,如有其他需求请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
237
240
  LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = 'LimitExceeded.DeliveryFrequencyLimit'
238
241
 
242
+ # 国际短信发送速率限制。若存在疑问可联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
243
+ LIMITEXCEEDED_GLOBALSMSSENDINGRATELIMIT = 'LimitExceeded.GlobalSmsSendingRateLimit'
244
+
239
245
  # 调用接口单次提交的手机号个数超过200个,请遵守 API 接口输入参数描述。
240
246
  LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = 'LimitExceeded.PhoneNumberCountLimit'
241
247
 
@@ -1091,6 +1091,180 @@ class DescribePhoneNumberInfoResponse(AbstractModel):
1091
1091
  self._RequestId = params.get("RequestId")
1092
1092
 
1093
1093
 
1094
+ class DescribeSendRecordListRequest(AbstractModel):
1095
+ r"""DescribeSendRecordList请求参数结构体
1096
+
1097
+ """
1098
+
1099
+ def __init__(self):
1100
+ r"""
1101
+ :param _PhoneNumber: <p>下发的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613601238015, 其中前面有一个+号 ,86为国家码,13601238015为手机号。</p>
1102
+ :type PhoneNumber: str
1103
+ :param _SmsSdkAppId: <p>短信 SdkAppId 在 <a href="https://console.cloud.tencent.com/smsv2/app-manage">短信控制台</a> 添加应用后生成的实际 SdkAppId。</p>
1104
+ :type SmsSdkAppId: str
1105
+ :param _BeginTime: <p>查询起始时间,以短信发送时间为准,UNIX 时间戳(单位:秒)。注:最早可查询当前时间前 72 小时的数据。</p><p>单位:秒</p>
1106
+ :type BeginTime: int
1107
+ :param _EndTime: <p>查询截止时间,以短信发送时间为准,UNIX 时间戳(时间:秒)。注:不可以超过当前时间。</p><p>单位:秒</p><p>默认值:腾讯云服务当前时间</p>
1108
+ :type EndTime: int
1109
+ :param _Limit: <p>单次查询最大条数。</p><p>取值范围:[1, 50]</p><p>默认值:20</p>
1110
+ :type Limit: int
1111
+ :param _Offset: <p>偏移量。 </p><p>取值范围:[0, 1000]</p><p>默认值:0</p><p>注:查询范围内超过 1000 条记录将被截断,最大查询 1000 条,查询记录按发送时间降序。</p>
1112
+ :type Offset: int
1113
+ """
1114
+ self._PhoneNumber = None
1115
+ self._SmsSdkAppId = None
1116
+ self._BeginTime = None
1117
+ self._EndTime = None
1118
+ self._Limit = None
1119
+ self._Offset = None
1120
+
1121
+ @property
1122
+ def PhoneNumber(self):
1123
+ r"""<p>下发的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613601238015, 其中前面有一个+号 ,86为国家码,13601238015为手机号。</p>
1124
+ :rtype: str
1125
+ """
1126
+ return self._PhoneNumber
1127
+
1128
+ @PhoneNumber.setter
1129
+ def PhoneNumber(self, PhoneNumber):
1130
+ self._PhoneNumber = PhoneNumber
1131
+
1132
+ @property
1133
+ def SmsSdkAppId(self):
1134
+ r"""<p>短信 SdkAppId 在 <a href="https://console.cloud.tencent.com/smsv2/app-manage">短信控制台</a> 添加应用后生成的实际 SdkAppId。</p>
1135
+ :rtype: str
1136
+ """
1137
+ return self._SmsSdkAppId
1138
+
1139
+ @SmsSdkAppId.setter
1140
+ def SmsSdkAppId(self, SmsSdkAppId):
1141
+ self._SmsSdkAppId = SmsSdkAppId
1142
+
1143
+ @property
1144
+ def BeginTime(self):
1145
+ r"""<p>查询起始时间,以短信发送时间为准,UNIX 时间戳(单位:秒)。注:最早可查询当前时间前 72 小时的数据。</p><p>单位:秒</p>
1146
+ :rtype: int
1147
+ """
1148
+ return self._BeginTime
1149
+
1150
+ @BeginTime.setter
1151
+ def BeginTime(self, BeginTime):
1152
+ self._BeginTime = BeginTime
1153
+
1154
+ @property
1155
+ def EndTime(self):
1156
+ r"""<p>查询截止时间,以短信发送时间为准,UNIX 时间戳(时间:秒)。注:不可以超过当前时间。</p><p>单位:秒</p><p>默认值:腾讯云服务当前时间</p>
1157
+ :rtype: int
1158
+ """
1159
+ return self._EndTime
1160
+
1161
+ @EndTime.setter
1162
+ def EndTime(self, EndTime):
1163
+ self._EndTime = EndTime
1164
+
1165
+ @property
1166
+ def Limit(self):
1167
+ r"""<p>单次查询最大条数。</p><p>取值范围:[1, 50]</p><p>默认值:20</p>
1168
+ :rtype: int
1169
+ """
1170
+ return self._Limit
1171
+
1172
+ @Limit.setter
1173
+ def Limit(self, Limit):
1174
+ self._Limit = Limit
1175
+
1176
+ @property
1177
+ def Offset(self):
1178
+ r"""<p>偏移量。 </p><p>取值范围:[0, 1000]</p><p>默认值:0</p><p>注:查询范围内超过 1000 条记录将被截断,最大查询 1000 条,查询记录按发送时间降序。</p>
1179
+ :rtype: int
1180
+ """
1181
+ return self._Offset
1182
+
1183
+ @Offset.setter
1184
+ def Offset(self, Offset):
1185
+ self._Offset = Offset
1186
+
1187
+
1188
+ def _deserialize(self, params):
1189
+ self._PhoneNumber = params.get("PhoneNumber")
1190
+ self._SmsSdkAppId = params.get("SmsSdkAppId")
1191
+ self._BeginTime = params.get("BeginTime")
1192
+ self._EndTime = params.get("EndTime")
1193
+ self._Limit = params.get("Limit")
1194
+ self._Offset = params.get("Offset")
1195
+ memeber_set = set(params.keys())
1196
+ for name, value in vars(self).items():
1197
+ property_name = name[1:]
1198
+ if property_name in memeber_set:
1199
+ memeber_set.remove(property_name)
1200
+ if len(memeber_set) > 0:
1201
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1202
+
1203
+
1204
+
1205
+ class DescribeSendRecordListResponse(AbstractModel):
1206
+ r"""DescribeSendRecordList返回参数结构体
1207
+
1208
+ """
1209
+
1210
+ def __init__(self):
1211
+ r"""
1212
+ :param _SendRecordSet: <p>短信下发记录集合。</p>
1213
+ :type SendRecordSet: list of SendRecord
1214
+ :param _TotalCount: <p>查询时间范围内的下发记录总数,注:最大支持查询单个下发手机号码 72 小时内的 1000 条记录。</p>
1215
+ :type TotalCount: int
1216
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1217
+ :type RequestId: str
1218
+ """
1219
+ self._SendRecordSet = None
1220
+ self._TotalCount = None
1221
+ self._RequestId = None
1222
+
1223
+ @property
1224
+ def SendRecordSet(self):
1225
+ r"""<p>短信下发记录集合。</p>
1226
+ :rtype: list of SendRecord
1227
+ """
1228
+ return self._SendRecordSet
1229
+
1230
+ @SendRecordSet.setter
1231
+ def SendRecordSet(self, SendRecordSet):
1232
+ self._SendRecordSet = SendRecordSet
1233
+
1234
+ @property
1235
+ def TotalCount(self):
1236
+ r"""<p>查询时间范围内的下发记录总数,注:最大支持查询单个下发手机号码 72 小时内的 1000 条记录。</p>
1237
+ :rtype: int
1238
+ """
1239
+ return self._TotalCount
1240
+
1241
+ @TotalCount.setter
1242
+ def TotalCount(self, TotalCount):
1243
+ self._TotalCount = TotalCount
1244
+
1245
+ @property
1246
+ def RequestId(self):
1247
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1248
+ :rtype: str
1249
+ """
1250
+ return self._RequestId
1251
+
1252
+ @RequestId.setter
1253
+ def RequestId(self, RequestId):
1254
+ self._RequestId = RequestId
1255
+
1256
+
1257
+ def _deserialize(self, params):
1258
+ if params.get("SendRecordSet") is not None:
1259
+ self._SendRecordSet = []
1260
+ for item in params.get("SendRecordSet"):
1261
+ obj = SendRecord()
1262
+ obj._deserialize(item)
1263
+ self._SendRecordSet.append(obj)
1264
+ self._TotalCount = params.get("TotalCount")
1265
+ self._RequestId = params.get("RequestId")
1266
+
1267
+
1094
1268
  class DescribeSignListStatus(AbstractModel):
1095
1269
  r"""获取短信签名信息响应
1096
1270
 
@@ -3510,6 +3684,162 @@ class SendMultiStatus(AbstractModel):
3510
3684
 
3511
3685
 
3512
3686
 
3687
+ class SendRecord(AbstractModel):
3688
+ r"""短信发送记录信息
3689
+
3690
+ """
3691
+
3692
+ def __init__(self):
3693
+ r"""
3694
+ :param _PhoneNumber: <p>下发的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613601238015, 其中前面有一个+号 ,86为国家码,13601238015为手机号。</p>
3695
+ :type PhoneNumber: str
3696
+ :param _SerialNo: <p>发送流水号,与短信发送接口返回的发送流水号一致。</p>
3697
+ :type SerialNo: str
3698
+ :param _SendStatus: <p>发送状态。</p><p>枚举值:</p><ul><li>1: 提交失败</li><li>2: 提交成功,送达成功</li><li>3: 提交成功,发送中</li><li>4: 提交成功,送达失败</li></ul>
3699
+ :type SendStatus: int
3700
+ :param _RequestCode: <p>请求状态码,可参考 <a href="https://cloud.tencent.com/document/api/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">短信 API 3.0 发送错误码</a>。</p>
3701
+ :type RequestCode: str
3702
+ :param _StatusCode: <p>回执状态码,仅发送状态为 2(提交成功,送达成功)和 4(提交成功,送达失败)时有值,其余状态为空字符串,可参考 <a href="https://cloud.tencent.com/document/product/382/59177#.E5.9B.9E.E6.89.A7.E7.8A.B6.E6.80.81.E9.94.99.E8.AF.AF.E7.A0.81">回执状态错误码</a>。</p>
3703
+ :type StatusCode: str
3704
+ :param _IsoCode: <p>国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 <a href="https://cloud.tencent.com/document/product/382/18051#402a55da-83ac-4e79-a604-b9de0c507756">国际/港澳台短信价格总览</a>。</p>
3705
+ :type IsoCode: str
3706
+ :param _Content: <p>短信下发内容,为保证信息安全,短信中的部分入参信息会脱敏存储,对应发送记录查询结果中包含的打码内容,用户实际接收到的短信内容为正常完整内容。有疑问可咨询 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云小助手</a> 。</p>
3707
+ :type Content: str
3708
+ :param _SendTime: <p>发送时间,UNIX 时间戳(秒)。</p><p>单位:秒</p>
3709
+ :type SendTime: int
3710
+ :param _UserReceiveTime: <p>用户实际收到短信的时间,UNIX 时间戳(秒),仅发送状态为2(提交成功,送达成功)时有值 ,其余状态默认为 0 。</p><p>单位:秒</p>
3711
+ :type UserReceiveTime: int
3712
+ """
3713
+ self._PhoneNumber = None
3714
+ self._SerialNo = None
3715
+ self._SendStatus = None
3716
+ self._RequestCode = None
3717
+ self._StatusCode = None
3718
+ self._IsoCode = None
3719
+ self._Content = None
3720
+ self._SendTime = None
3721
+ self._UserReceiveTime = None
3722
+
3723
+ @property
3724
+ def PhoneNumber(self):
3725
+ r"""<p>下发的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613601238015, 其中前面有一个+号 ,86为国家码,13601238015为手机号。</p>
3726
+ :rtype: str
3727
+ """
3728
+ return self._PhoneNumber
3729
+
3730
+ @PhoneNumber.setter
3731
+ def PhoneNumber(self, PhoneNumber):
3732
+ self._PhoneNumber = PhoneNumber
3733
+
3734
+ @property
3735
+ def SerialNo(self):
3736
+ r"""<p>发送流水号,与短信发送接口返回的发送流水号一致。</p>
3737
+ :rtype: str
3738
+ """
3739
+ return self._SerialNo
3740
+
3741
+ @SerialNo.setter
3742
+ def SerialNo(self, SerialNo):
3743
+ self._SerialNo = SerialNo
3744
+
3745
+ @property
3746
+ def SendStatus(self):
3747
+ r"""<p>发送状态。</p><p>枚举值:</p><ul><li>1: 提交失败</li><li>2: 提交成功,送达成功</li><li>3: 提交成功,发送中</li><li>4: 提交成功,送达失败</li></ul>
3748
+ :rtype: int
3749
+ """
3750
+ return self._SendStatus
3751
+
3752
+ @SendStatus.setter
3753
+ def SendStatus(self, SendStatus):
3754
+ self._SendStatus = SendStatus
3755
+
3756
+ @property
3757
+ def RequestCode(self):
3758
+ r"""<p>请求状态码,可参考 <a href="https://cloud.tencent.com/document/api/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">短信 API 3.0 发送错误码</a>。</p>
3759
+ :rtype: str
3760
+ """
3761
+ return self._RequestCode
3762
+
3763
+ @RequestCode.setter
3764
+ def RequestCode(self, RequestCode):
3765
+ self._RequestCode = RequestCode
3766
+
3767
+ @property
3768
+ def StatusCode(self):
3769
+ r"""<p>回执状态码,仅发送状态为 2(提交成功,送达成功)和 4(提交成功,送达失败)时有值,其余状态为空字符串,可参考 <a href="https://cloud.tencent.com/document/product/382/59177#.E5.9B.9E.E6.89.A7.E7.8A.B6.E6.80.81.E9.94.99.E8.AF.AF.E7.A0.81">回执状态错误码</a>。</p>
3770
+ :rtype: str
3771
+ """
3772
+ return self._StatusCode
3773
+
3774
+ @StatusCode.setter
3775
+ def StatusCode(self, StatusCode):
3776
+ self._StatusCode = StatusCode
3777
+
3778
+ @property
3779
+ def IsoCode(self):
3780
+ r"""<p>国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF,具体支持列表请参考 <a href="https://cloud.tencent.com/document/product/382/18051#402a55da-83ac-4e79-a604-b9de0c507756">国际/港澳台短信价格总览</a>。</p>
3781
+ :rtype: str
3782
+ """
3783
+ return self._IsoCode
3784
+
3785
+ @IsoCode.setter
3786
+ def IsoCode(self, IsoCode):
3787
+ self._IsoCode = IsoCode
3788
+
3789
+ @property
3790
+ def Content(self):
3791
+ r"""<p>短信下发内容,为保证信息安全,短信中的部分入参信息会脱敏存储,对应发送记录查询结果中包含的打码内容,用户实际接收到的短信内容为正常完整内容。有疑问可咨询 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云小助手</a> 。</p>
3792
+ :rtype: str
3793
+ """
3794
+ return self._Content
3795
+
3796
+ @Content.setter
3797
+ def Content(self, Content):
3798
+ self._Content = Content
3799
+
3800
+ @property
3801
+ def SendTime(self):
3802
+ r"""<p>发送时间,UNIX 时间戳(秒)。</p><p>单位:秒</p>
3803
+ :rtype: int
3804
+ """
3805
+ return self._SendTime
3806
+
3807
+ @SendTime.setter
3808
+ def SendTime(self, SendTime):
3809
+ self._SendTime = SendTime
3810
+
3811
+ @property
3812
+ def UserReceiveTime(self):
3813
+ r"""<p>用户实际收到短信的时间,UNIX 时间戳(秒),仅发送状态为2(提交成功,送达成功)时有值 ,其余状态默认为 0 。</p><p>单位:秒</p>
3814
+ :rtype: int
3815
+ """
3816
+ return self._UserReceiveTime
3817
+
3818
+ @UserReceiveTime.setter
3819
+ def UserReceiveTime(self, UserReceiveTime):
3820
+ self._UserReceiveTime = UserReceiveTime
3821
+
3822
+
3823
+ def _deserialize(self, params):
3824
+ self._PhoneNumber = params.get("PhoneNumber")
3825
+ self._SerialNo = params.get("SerialNo")
3826
+ self._SendStatus = params.get("SendStatus")
3827
+ self._RequestCode = params.get("RequestCode")
3828
+ self._StatusCode = params.get("StatusCode")
3829
+ self._IsoCode = params.get("IsoCode")
3830
+ self._Content = params.get("Content")
3831
+ self._SendTime = params.get("SendTime")
3832
+ self._UserReceiveTime = params.get("UserReceiveTime")
3833
+ memeber_set = set(params.keys())
3834
+ for name, value in vars(self).items():
3835
+ property_name = name[1:]
3836
+ if property_name in memeber_set:
3837
+ memeber_set.remove(property_name)
3838
+ if len(memeber_set) > 0:
3839
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3840
+
3841
+
3842
+
3513
3843
  class SendSmsRequest(AbstractModel):
3514
3844
  r"""SendSms请求参数结构体
3515
3845
 
@@ -3912,18 +4242,15 @@ class SendStatusStatisticsRequest(AbstractModel):
3912
4242
 
3913
4243
  def __init__(self):
3914
4244
  r"""
3915
- :param _BeginTime: 起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。
4245
+ :param _BeginTime: <p>起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。注:统计范围包含当前小时。</p><p>参数格式:yyyymmddhh</p>
3916
4246
  :type BeginTime: str
3917
- :param _EndTime: 结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。
3918
- 注:EndTime 必须大于等于 BeginTime。
4247
+ :param _EndTime: <p>结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。注:EndTime 必须大于等于 BeginTime,统计范围包含当前小时。</p><p>参数格式:yyyymmddhh</p>
3919
4248
  :type EndTime: str
3920
- :param _SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
4249
+ :param _SmsSdkAppId: <p>短信 SdkAppId 在 <a href="https://console.cloud.tencent.com/smsv2/app-manage">短信控制台</a> 添加应用后生成的实际 SdkAppId,示例如1400006666。</p>
3921
4250
  :type SmsSdkAppId: str
3922
- :param _Limit: 最大上限。
3923
- 注:目前固定设置为0。
4251
+ :param _Limit: <p>最大上限。<br>注:目前固定设置为0。</p>
3924
4252
  :type Limit: int
3925
- :param _Offset: 偏移量。
3926
- 注:目前固定设置为0。
4253
+ :param _Offset: <p>偏移量。<br>注:目前固定设置为0。</p>
3927
4254
  :type Offset: int
3928
4255
  """
3929
4256
  self._BeginTime = None
@@ -3934,7 +4261,7 @@ class SendStatusStatisticsRequest(AbstractModel):
3934
4261
 
3935
4262
  @property
3936
4263
  def BeginTime(self):
3937
- r"""起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。
4264
+ r"""<p>起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。注:统计范围包含当前小时。</p><p>参数格式:yyyymmddhh</p>
3938
4265
  :rtype: str
3939
4266
  """
3940
4267
  return self._BeginTime
@@ -3945,8 +4272,7 @@ class SendStatusStatisticsRequest(AbstractModel):
3945
4272
 
3946
4273
  @property
3947
4274
  def EndTime(self):
3948
- r"""结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。
3949
- 注:EndTime 必须大于等于 BeginTime。
4275
+ r"""<p>结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。注:EndTime 必须大于等于 BeginTime,统计范围包含当前小时。</p><p>参数格式:yyyymmddhh</p>
3950
4276
  :rtype: str
3951
4277
  """
3952
4278
  return self._EndTime
@@ -3957,7 +4283,7 @@ class SendStatusStatisticsRequest(AbstractModel):
3957
4283
 
3958
4284
  @property
3959
4285
  def SmsSdkAppId(self):
3960
- r"""短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
4286
+ r"""<p>短信 SdkAppId 在 <a href="https://console.cloud.tencent.com/smsv2/app-manage">短信控制台</a> 添加应用后生成的实际 SdkAppId,示例如1400006666。</p>
3961
4287
  :rtype: str
3962
4288
  """
3963
4289
  return self._SmsSdkAppId
@@ -3968,8 +4294,7 @@ class SendStatusStatisticsRequest(AbstractModel):
3968
4294
 
3969
4295
  @property
3970
4296
  def Limit(self):
3971
- r"""最大上限。
3972
- 注:目前固定设置为0。
4297
+ r"""<p>最大上限。<br>注:目前固定设置为0。</p>
3973
4298
  :rtype: int
3974
4299
  """
3975
4300
  return self._Limit
@@ -3980,8 +4305,7 @@ class SendStatusStatisticsRequest(AbstractModel):
3980
4305
 
3981
4306
  @property
3982
4307
  def Offset(self):
3983
- r"""偏移量。
3984
- 注:目前固定设置为0。
4308
+ r"""<p>偏移量。<br>注:目前固定设置为0。</p>
3985
4309
  :rtype: int
3986
4310
  """
3987
4311
  return self._Offset
@@ -4014,7 +4338,7 @@ class SendStatusStatisticsResponse(AbstractModel):
4014
4338
 
4015
4339
  def __init__(self):
4016
4340
  r"""
4017
- :param _SendStatusStatistics: 发送数据统计响应包体。
4341
+ :param _SendStatusStatistics: <p>发送数据统计响应包体。</p>
4018
4342
  :type SendStatusStatistics: :class:`tencentcloud.sms.v20210111.models.SendStatusStatistics`
4019
4343
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4020
4344
  :type RequestId: str
@@ -4024,7 +4348,7 @@ class SendStatusStatisticsResponse(AbstractModel):
4024
4348
 
4025
4349
  @property
4026
4350
  def SendStatusStatistics(self):
4027
- r"""发送数据统计响应包体。
4351
+ r"""<p>发送数据统计响应包体。</p>
4028
4352
  :rtype: :class:`tencentcloud.sms.v20210111.models.SendStatusStatistics`
4029
4353
  """
4030
4354
  return self._SendStatusStatistics
@@ -4185,18 +4509,15 @@ class SmsPackagesStatisticsRequest(AbstractModel):
4185
4509
 
4186
4510
  def __init__(self):
4187
4511
  r"""
4188
- :param _SmsSdkAppId: 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
4512
+ :param _SmsSdkAppId: <p>短信 SdkAppId 在 <a href="https://console.cloud.tencent.com/smsv2/app-manage">短信控制台</a> 添加应用后生成的实际 SdkAppId,示例如1400006666。</p>
4189
4513
  :type SmsSdkAppId: str
4190
- :param _Limit: 最大上限(需要拉取的套餐包个数)。
4191
- 注:Limit默认最大值为500,可结合Offset实现分页查询。
4514
+ :param _Limit: <p>最大上限(需要拉取的套餐包个数)。<br>注:Limit默认最大值为500,可结合Offset实现分页查询。</p>
4192
4515
  :type Limit: int
4193
- :param _Offset: 偏移量。
4516
+ :param _Offset: <p>偏移量。</p>
4194
4517
  :type Offset: int
4195
- :param _BeginTime: 起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。
4196
- 注:接口会返回 BeginTime 到 EndTime 之间创建的套餐包的统计信息。
4518
+ :param _BeginTime: <p>起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。<br>注:接口会返回 BeginTime 到 EndTime 之间创建的套餐包的统计信息。</p>
4197
4519
  :type BeginTime: str
4198
- :param _EndTime: 结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。
4199
- 注:EndTime 必须大于 BeginTime 且小于当前时间。
4520
+ :param _EndTime: <p>结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。<br>注:EndTime 必须大于 BeginTime 且小于当前时间。</p>
4200
4521
  :type EndTime: str
4201
4522
  """
4202
4523
  self._SmsSdkAppId = None
@@ -4207,7 +4528,7 @@ class SmsPackagesStatisticsRequest(AbstractModel):
4207
4528
 
4208
4529
  @property
4209
4530
  def SmsSdkAppId(self):
4210
- r"""短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
4531
+ r"""<p>短信 SdkAppId 在 <a href="https://console.cloud.tencent.com/smsv2/app-manage">短信控制台</a> 添加应用后生成的实际 SdkAppId,示例如1400006666。</p>
4211
4532
  :rtype: str
4212
4533
  """
4213
4534
  return self._SmsSdkAppId
@@ -4218,8 +4539,7 @@ class SmsPackagesStatisticsRequest(AbstractModel):
4218
4539
 
4219
4540
  @property
4220
4541
  def Limit(self):
4221
- r"""最大上限(需要拉取的套餐包个数)。
4222
- 注:Limit默认最大值为500,可结合Offset实现分页查询。
4542
+ r"""<p>最大上限(需要拉取的套餐包个数)。<br>注:Limit默认最大值为500,可结合Offset实现分页查询。</p>
4223
4543
  :rtype: int
4224
4544
  """
4225
4545
  return self._Limit
@@ -4230,7 +4550,7 @@ class SmsPackagesStatisticsRequest(AbstractModel):
4230
4550
 
4231
4551
  @property
4232
4552
  def Offset(self):
4233
- r"""偏移量。
4553
+ r"""<p>偏移量。</p>
4234
4554
  :rtype: int
4235
4555
  """
4236
4556
  return self._Offset
@@ -4241,8 +4561,7 @@ class SmsPackagesStatisticsRequest(AbstractModel):
4241
4561
 
4242
4562
  @property
4243
4563
  def BeginTime(self):
4244
- r"""起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。
4245
- 注:接口会返回 BeginTime 到 EndTime 之间创建的套餐包的统计信息。
4564
+ r"""<p>起始时间,格式为yyyymmddhh,精确到小时,例如2024050113,表示2024年5月1号13时。<br>注:接口会返回 BeginTime 到 EndTime 之间创建的套餐包的统计信息。</p>
4246
4565
  :rtype: str
4247
4566
  """
4248
4567
  return self._BeginTime
@@ -4253,8 +4572,7 @@ class SmsPackagesStatisticsRequest(AbstractModel):
4253
4572
 
4254
4573
  @property
4255
4574
  def EndTime(self):
4256
- r"""结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。
4257
- 注:EndTime 必须大于 BeginTime 且小于当前时间。
4575
+ r"""<p>结束时间,格式为yyyymmddhh,精确到小时,例如2024050118,表示2024年5月1号18时。<br>注:EndTime 必须大于 BeginTime 且小于当前时间。</p>
4258
4576
  :rtype: str
4259
4577
  """
4260
4578
  return self._EndTime
@@ -4287,7 +4605,7 @@ class SmsPackagesStatisticsResponse(AbstractModel):
4287
4605
 
4288
4606
  def __init__(self):
4289
4607
  r"""
4290
- :param _SmsPackagesStatisticsSet: 发送数据统计响应包体。
4608
+ :param _SmsPackagesStatisticsSet: <p>套餐包统计信息响应包体。</p>
4291
4609
  :type SmsPackagesStatisticsSet: list of SmsPackagesStatistics
4292
4610
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4293
4611
  :type RequestId: str
@@ -4297,7 +4615,7 @@ class SmsPackagesStatisticsResponse(AbstractModel):
4297
4615
 
4298
4616
  @property
4299
4617
  def SmsPackagesStatisticsSet(self):
4300
- r"""发送数据统计响应包体。
4618
+ r"""<p>套餐包统计信息响应包体。</p>
4301
4619
  :rtype: list of SmsPackagesStatistics
4302
4620
  """
4303
4621
  return self._SmsPackagesStatisticsSet
@@ -75,7 +75,8 @@ class SmsClient(AbstractClient):
75
75
 
76
76
 
77
77
  def CallbackStatusStatistics(self, request):
78
- r"""本接口 (CallbackStatusStatistics) 用于统计用户回执的数据。
78
+ r"""本接口 (CallbackStatusStatistics) 用于查询回执统计数据。
79
+ <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>本接口仅支持查询国内短信回执统计数据。</li></ul></blockquote>
79
80
 
80
81
  :param request: Request instance for CallbackStatusStatistics.
81
82
  :type request: :class:`tencentcloud.sms.v20210111.models.CallbackStatusStatisticsRequest`
@@ -169,6 +170,29 @@ class SmsClient(AbstractClient):
169
170
  raise TencentCloudSDKException(type(e).__name__, str(e))
170
171
 
171
172
 
173
+ def DescribeSendRecordList(self, request):
174
+ r"""本接口 (DescribeSendRecordList) 用于查询单个手机号在指定时间范围内的短信下发记录。
175
+
176
+ :param request: Request instance for DescribeSendRecordList.
177
+ :type request: :class:`tencentcloud.sms.v20210111.models.DescribeSendRecordListRequest`
178
+ :rtype: :class:`tencentcloud.sms.v20210111.models.DescribeSendRecordListResponse`
179
+
180
+ """
181
+ try:
182
+ params = request._serialize()
183
+ headers = request.headers
184
+ body = self.call("DescribeSendRecordList", params, headers=headers)
185
+ response = json.loads(body)
186
+ model = models.DescribeSendRecordListResponse()
187
+ model._deserialize(response["Response"])
188
+ return model
189
+ except Exception as e:
190
+ if isinstance(e, TencentCloudSDKException):
191
+ raise
192
+ else:
193
+ raise TencentCloudSDKException(type(e).__name__, str(e))
194
+
195
+
172
196
  def DescribeSmsSignList(self, request):
173
197
  r"""本接口 (DescribeSmsSignList) 用于查询短信签名状态。
174
198
  <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>个人认证用户不支持使用 API 查询短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 查询短信签名。</li></ul></blockquote>
@@ -433,7 +457,7 @@ class SmsClient(AbstractClient):
433
457
 
434
458
 
435
459
  def SendStatusStatistics(self, request):
436
- r"""本接口 (SendStatusStatistics) 用于统计用户发送短信的数据。
460
+ r"""本接口 (SendStatusStatistics) 用于查询用户发送短信的统计数据。
437
461
 
438
462
  :param request: Request instance for SendStatusStatistics.
439
463
  :type request: :class:`tencentcloud.sms.v20210111.models.SendStatusStatisticsRequest`
@@ -456,7 +480,8 @@ class SmsClient(AbstractClient):
456
480
 
457
481
 
458
482
  def SmsPackagesStatistics(self, request):
459
- r"""本接口 (SmsPackagesStatistics) 用于统计用户套餐包数据。
483
+ r"""本接口 (SmsPackagesStatistics) 用于查询国内短信套餐包统计信息。
484
+ <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>本接口仅支持查询国内短信套餐包统计信息。</li></ul></blockquote>
460
485
 
461
486
  :param request: Request instance for SmsPackagesStatistics.
462
487
  :type request: :class:`tencentcloud.sms.v20210111.models.SmsPackagesStatisticsRequest`
@@ -69,7 +69,8 @@ class SmsClient(AbstractClient):
69
69
  opts: Dict = None,
70
70
  ) -> models.CallbackStatusStatisticsResponse:
71
71
  """
72
- 本接口 (CallbackStatusStatistics) 用于统计用户回执的数据。
72
+ 本接口 (CallbackStatusStatistics) 用于查询回执统计数据。
73
+ <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>本接口仅支持查询国内短信回执统计数据。</li></ul></blockquote>
73
74
  """
74
75
 
75
76
  kwargs = {}
@@ -138,6 +139,24 @@ class SmsClient(AbstractClient):
138
139
 
139
140
  return await self.call_and_deserialize(**kwargs)
140
141
 
142
+ async def DescribeSendRecordList(
143
+ self,
144
+ request: models.DescribeSendRecordListRequest,
145
+ opts: Dict = None,
146
+ ) -> models.DescribeSendRecordListResponse:
147
+ """
148
+ 本接口 (DescribeSendRecordList) 用于查询单个手机号在指定时间范围内的短信下发记录。
149
+ """
150
+
151
+ kwargs = {}
152
+ kwargs["action"] = "DescribeSendRecordList"
153
+ kwargs["params"] = request._serialize()
154
+ kwargs["resp_cls"] = models.DescribeSendRecordListResponse
155
+ kwargs["headers"] = request.headers
156
+ kwargs["opts"] = opts or {}
157
+
158
+ return await self.call_and_deserialize(**kwargs)
159
+
141
160
  async def DescribeSmsSignList(
142
161
  self,
143
162
  request: models.DescribeSmsSignListRequest,
@@ -352,7 +371,7 @@ class SmsClient(AbstractClient):
352
371
  opts: Dict = None,
353
372
  ) -> models.SendStatusStatisticsResponse:
354
373
  """
355
- 本接口 (SendStatusStatistics) 用于统计用户发送短信的数据。
374
+ 本接口 (SendStatusStatistics) 用于查询用户发送短信的统计数据。
356
375
  """
357
376
 
358
377
  kwargs = {}
@@ -370,7 +389,8 @@ class SmsClient(AbstractClient):
370
389
  opts: Dict = None,
371
390
  ) -> models.SmsPackagesStatisticsResponse:
372
391
  """
373
- 本接口 (SmsPackagesStatistics) 用于统计用户套餐包数据。
392
+ 本接口 (SmsPackagesStatistics) 用于查询国内短信套餐包统计信息。
393
+ <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>本接口仅支持查询国内短信套餐包统计信息。</li></ul></blockquote>
374
394
  """
375
395
 
376
396
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-sms
3
- Version: 3.1.92
3
+ Version: 3.1.216
4
4
  Summary: Tencent Cloud Sms SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.92
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.216
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,16 @@
1
+ tencentcloud/__init__.py,sha256=H9mc7Ur8-pPFe5qO0JhCA9WvQnVP4A5JbfUvcEK3gHY,630
2
+ tencentcloud/sms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/sms/v20190711/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/sms/v20190711/errorcodes.py,sha256=nkR7L_xYc_ofL20MnjPvxqajvzQ1HnT_cW-wi1SmwVE,20872
5
+ tencentcloud/sms/v20190711/models.py,sha256=eu1oaeoX3APy2afXoxaoE4euWA7KmuodVnm5AKatfkc,132215
6
+ tencentcloud/sms/v20190711/sms_client.py,sha256=sPjol8WNAtAZUiVVNnfnsOaVytq7J108OnWbPIZCOl4,22551
7
+ tencentcloud/sms/v20190711/sms_client_async.py,sha256=ayKOTpQMd590fsCLxWqx3ES-TdStMf2n95uxvUE5zWI,17661
8
+ tencentcloud/sms/v20210111/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ tencentcloud/sms/v20210111/errorcodes.py,sha256=n6LMeRUWuX0gH_pLL15ztpmRTZbXLNlZUTY14TNqR2M,22109
10
+ tencentcloud/sms/v20210111/models.py,sha256=k9iDECJgVyZGyGQksa1Eo-f-5EKMqjVfl495rIvpAXg,177601
11
+ tencentcloud/sms/v20210111/sms_client.py,sha256=YfMn7dBTppSp3yKHEizWmaxE5g_Y_M9Rs1cKCTaH8_U,27988
12
+ tencentcloud/sms/v20210111/sms_client_async.py,sha256=coPWyW6qZVsOtybsDLuqw0fnpDvTrwgyltZ7luOTitg,21891
13
+ tencentcloud_sdk_python_sms-3.1.216.dist-info/METADATA,sha256=gI2ahHhibdI5EfgAXbbY7DWHtkZlXtYBEg2UqN6ZGQ0,1497
14
+ tencentcloud_sdk_python_sms-3.1.216.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
15
+ tencentcloud_sdk_python_sms-3.1.216.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
16
+ tencentcloud_sdk_python_sms-3.1.216.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- tencentcloud/__init__.py,sha256=EUEEjOEQBP42Oi4kHs4rln5Jo2Z4bhQufHp87s6O3lk,629
2
- tencentcloud/sms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/sms/v20190711/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/sms/v20190711/errorcodes.py,sha256=Ri8_LGgqCjgn6yOm7nVXtHu0BXuMEu17-DoOExp4TjE,20607
5
- tencentcloud/sms/v20190711/models.py,sha256=eu1oaeoX3APy2afXoxaoE4euWA7KmuodVnm5AKatfkc,132215
6
- tencentcloud/sms/v20190711/sms_client.py,sha256=sPjol8WNAtAZUiVVNnfnsOaVytq7J108OnWbPIZCOl4,22551
7
- tencentcloud/sms/v20190711/sms_client_async.py,sha256=ayKOTpQMd590fsCLxWqx3ES-TdStMf2n95uxvUE5zWI,17661
8
- tencentcloud/sms/v20210111/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- tencentcloud/sms/v20210111/errorcodes.py,sha256=2JJVmsorzAMfvefOS0KPdg0PYfBnxOlmEkvEPYZI0vM,21793
10
- tencentcloud/sms/v20210111/models.py,sha256=xRGiinUhCNyKSQHRa5i5lP8Z1E-jQWZvaBTxf3gjZtE,162707
11
- tencentcloud/sms/v20210111/sms_client.py,sha256=b1PfwtVL1LmWV3_9p_6L_K8NWUCzHpHZjDkNKIBwQd8,26472
12
- tencentcloud/sms/v20210111/sms_client_async.py,sha256=5GO3_oXlT6RTaygKu-axEzKUutrKjC5vLHAaJey2J4E,20679
13
- tencentcloud_sdk_python_sms-3.1.92.dist-info/METADATA,sha256=u-NouG2RZLTQabzG3V6col-eDp3MFn4GhJMAMA6Oo9A,1495
14
- tencentcloud_sdk_python_sms-3.1.92.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
15
- tencentcloud_sdk_python_sms-3.1.92.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
16
- tencentcloud_sdk_python_sms-3.1.92.dist-info/RECORD,,