tencentcloud-sdk-sms 3.0.388 → 3.0.389

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48648d66f5fda5be855ad74d43aed65fcebbbafd
4
- data.tar.gz: 66f5a9b81b84de9e7eb1b8cf94bc37799bb149b0
3
+ metadata.gz: 1a1e2c2406b7c136e68c4a29b217dcc079ff6ad9
4
+ data.tar.gz: b2db3066b9c88897b663fbf74a6a0a5823f942f8
5
5
  SHA512:
6
- metadata.gz: c7fc37a65c50470eeaf82275bc8adb4df0653831c51cb9d99faf2d9477669025edf75d981fdf69c09528b29445f4116866c9a67c6747732b9c406050b0bc22fc
7
- data.tar.gz: 01dd6a74d45448f08889c9c422f537bc2b27539b035e883d245ea2be8a895a2d13fccd95a7fae37415fa6d1a4a8e1339c70b3cf89c515a83b1890b7688a06ff3
6
+ metadata.gz: 725e822ed105fdfa7a9e299f081b66bcfc3e298d80687bf2a69638297bea982a5b3de354e36a44a9f32838cd2d56567993c9735c5675948f86967c3a280f93dd
7
+ data.tar.gz: eedf5549e3d773bd9c145ae1909cb23aeee89b368f72806eb1623315d561cfc98ac710075bdf5cd8265caa5adcfde680f8924d972ce3f1c5884487251c820821
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.388
1
+ 3.0.389
@@ -404,6 +404,31 @@ module TencentCloud
404
404
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
405
405
  end
406
406
 
407
+ # 短信转化率上报。将已接收到短信的流水号上报到腾讯云短信服务。
408
+ # >- 注:当前接口以白名单方式对外开放,如有需要请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
409
+
410
+ # @param request: Request instance for ReportConversion.
411
+ # @type request: :class:`Tencentcloud::sms::V20210111::ReportConversionRequest`
412
+ # @rtype: :class:`Tencentcloud::sms::V20210111::ReportConversionResponse`
413
+ def ReportConversion(request)
414
+ body = send_request('ReportConversion', request.serialize)
415
+ response = JSON.parse(body)
416
+ if response['Response'].key?('Error') == false
417
+ model = ReportConversionResponse.new
418
+ model.deserialize(response['Response'])
419
+ model
420
+ else
421
+ code = response['Response']['Error']['Code']
422
+ message = response['Response']['Error']['Message']
423
+ reqid = response['Response']['RequestId']
424
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
425
+ end
426
+ rescue TencentCloud::Common::TencentCloudSDKException => e
427
+ raise e
428
+ rescue StandardError => e
429
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
430
+ end
431
+
407
432
  # 短信发送接口,用于给用户发短信验证码、通知类短信或营销短信。
408
433
  # >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
409
434
  # >- 注:您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
@@ -1189,6 +1189,73 @@ module TencentCloud
1189
1189
  end
1190
1190
  end
1191
1191
 
1192
+ # ReportConversion请求参数结构体
1193
+ class ReportConversionRequest < TencentCloud::Common::AbstractModel
1194
+ # @param SmsSdkAppId: 短信应用ID。在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId,示例如1400006666。
1195
+ # @type SmsSdkAppId: String
1196
+ # @param SerialNo: 发送短信返回的流水号。
1197
+ # @type SerialNo: String
1198
+ # @param ConversionTime: 用户回填时间,UNIX 时间戳(单位:秒)。
1199
+ # @type ConversionTime: Integer
1200
+
1201
+ attr_accessor :SmsSdkAppId, :SerialNo, :ConversionTime
1202
+
1203
+ def initialize(smssdkappid=nil, serialno=nil, conversiontime=nil)
1204
+ @SmsSdkAppId = smssdkappid
1205
+ @SerialNo = serialno
1206
+ @ConversionTime = conversiontime
1207
+ end
1208
+
1209
+ def deserialize(params)
1210
+ @SmsSdkAppId = params['SmsSdkAppId']
1211
+ @SerialNo = params['SerialNo']
1212
+ @ConversionTime = params['ConversionTime']
1213
+ end
1214
+ end
1215
+
1216
+ # ReportConversion返回参数结构体
1217
+ class ReportConversionResponse < TencentCloud::Common::AbstractModel
1218
+ # @param ReportConversionStatus: 转化率上报响应包体。
1219
+ # @type ReportConversionStatus: :class:`Tencentcloud::Sms.v20210111.models.ReportConversionStatus`
1220
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1221
+ # @type RequestId: String
1222
+
1223
+ attr_accessor :ReportConversionStatus, :RequestId
1224
+
1225
+ def initialize(reportconversionstatus=nil, requestid=nil)
1226
+ @ReportConversionStatus = reportconversionstatus
1227
+ @RequestId = requestid
1228
+ end
1229
+
1230
+ def deserialize(params)
1231
+ unless params['ReportConversionStatus'].nil?
1232
+ @ReportConversionStatus = ReportConversionStatus.new
1233
+ @ReportConversionStatus.deserialize(params['ReportConversionStatus'])
1234
+ end
1235
+ @RequestId = params['RequestId']
1236
+ end
1237
+ end
1238
+
1239
+ # 转化率上报响应。
1240
+ class ReportConversionStatus < TencentCloud::Common::AbstractModel
1241
+ # @param Code: 错误码。上报成功返回 ok。
1242
+ # @type Code: String
1243
+ # @param Message: 错误码描述。
1244
+ # @type Message: String
1245
+
1246
+ attr_accessor :Code, :Message
1247
+
1248
+ def initialize(code=nil, message=nil)
1249
+ @Code = code
1250
+ @Message = message
1251
+ end
1252
+
1253
+ def deserialize(params)
1254
+ @Code = params['Code']
1255
+ @Message = params['Message']
1256
+ end
1257
+ end
1258
+
1192
1259
  # SendSms请求参数结构体
1193
1260
  class SendSmsRequest < TencentCloud::Common::AbstractModel
1194
1261
  # @param PhoneNumberSet: 下发手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.388
4
+ version: 3.0.389
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-16 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common