tencentcloud-sdk-irp 3.0.525 → 3.0.526
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220805/client.rb +72 -0
- data/lib/v20220805/models.rb +455 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40ed6cea2d4e4ffd5160d72dd39f84ea95fb92f8
|
4
|
+
data.tar.gz: 0b136b09694d5ca0259f9c71f867d7c369666e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01d2370d2fdf59c043446474ae56687b1f3e4e04750c7e5418380a9a2cd9b82f1972800e535ab624462c15149a062820baa43dcf37b1620a64ca55a876be1eae
|
7
|
+
data.tar.gz: 1eda574cd1a969d892854084786982347deb5655954b91a304c403ef86cf7b073f3a47c3df4d8d0c53c0bfb66beaf74a1e75c3472957ee2ba8c5f0bfbc6dccab
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.526
|
data/lib/v20220805/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 获取电商类推荐结果
|
33
|
+
|
34
|
+
# @param request: Request instance for DescribeGoodsRecommend.
|
35
|
+
# @type request: :class:`Tencentcloud::irp::V20220805::DescribeGoodsRecommendRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::irp::V20220805::DescribeGoodsRecommendResponse`
|
37
|
+
def DescribeGoodsRecommend(request)
|
38
|
+
body = send_request('DescribeGoodsRecommend', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeGoodsRecommendResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 获取信息流推荐结果
|
33
57
|
|
34
58
|
# @param request: Request instance for FeedRecommend.
|
@@ -125,6 +149,54 @@ module TencentCloud
|
|
125
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
150
|
end
|
127
151
|
|
152
|
+
# 上报电商类行为数据
|
153
|
+
|
154
|
+
# @param request: Request instance for ReportGoodsBehavior.
|
155
|
+
# @type request: :class:`Tencentcloud::irp::V20220805::ReportGoodsBehaviorRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::irp::V20220805::ReportGoodsBehaviorResponse`
|
157
|
+
def ReportGoodsBehavior(request)
|
158
|
+
body = send_request('ReportGoodsBehavior', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = ReportGoodsBehaviorResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
176
|
+
# 上报电商类商品信息
|
177
|
+
|
178
|
+
# @param request: Request instance for ReportGoodsInfo.
|
179
|
+
# @type request: :class:`Tencentcloud::irp::V20220805::ReportGoodsInfoRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::irp::V20220805::ReportGoodsInfoResponse`
|
181
|
+
def ReportGoodsInfo(request)
|
182
|
+
body = send_request('ReportGoodsInfo', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = ReportGoodsInfoResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
128
200
|
|
129
201
|
end
|
130
202
|
end
|
data/lib/v20220805/models.rb
CHANGED
@@ -17,6 +17,91 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Irp
|
19
19
|
module V20220805
|
20
|
+
# DescribeGoodsRecommend请求参数结构体
|
21
|
+
class DescribeGoodsRecommendRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param InstanceId: 实例ID,在控制台获取
|
23
|
+
# @type InstanceId: String
|
24
|
+
# @param SceneId: 场景ID,在控制台创建场景后获取
|
25
|
+
# @type SceneId: String
|
26
|
+
# @param UserId: 用户唯一ID,客户自定义用户ID,作为一个用户的唯一标识,需和行为数据上报接口中的UserId一致,否则影响特征关联
|
27
|
+
# @type UserId: String
|
28
|
+
# @param UserIdList: 用户设备ID数组,可传入用户的多个类型ID,用于关联画像信息
|
29
|
+
# @type UserIdList: Array
|
30
|
+
# @param GoodsCnt: 推荐返回数量,默认10个,最多支持50个的内容返回。如果有更多数量要求,<a href="https://console.cloud.tencent.com/workorder/category" target="_blank">提单</a>沟通解决
|
31
|
+
# @type GoodsCnt: Integer
|
32
|
+
# @param CurrentGoodsId: 当场景是相关推荐时该值必填,场景是非相关推荐时该值无效
|
33
|
+
# @type CurrentGoodsId: String
|
34
|
+
# @param UserPortraitInfo: 用户的实时特征信息,用作特征
|
35
|
+
# @type UserPortraitInfo: :class:`Tencentcloud::Irp.v20220805.models.UserPortraitInfo`
|
36
|
+
# @param BlackGoodsList: 本次请求针对该用户需要过滤的物品列表(不超过100个)
|
37
|
+
# @type BlackGoodsList: Array
|
38
|
+
# @param Extension: json字符串,扩展字段
|
39
|
+
# @type Extension: String
|
40
|
+
|
41
|
+
attr_accessor :InstanceId, :SceneId, :UserId, :UserIdList, :GoodsCnt, :CurrentGoodsId, :UserPortraitInfo, :BlackGoodsList, :Extension
|
42
|
+
|
43
|
+
def initialize(instanceid=nil, sceneid=nil, userid=nil, useridlist=nil, goodscnt=nil, currentgoodsid=nil, userportraitinfo=nil, blackgoodslist=nil, extension=nil)
|
44
|
+
@InstanceId = instanceid
|
45
|
+
@SceneId = sceneid
|
46
|
+
@UserId = userid
|
47
|
+
@UserIdList = useridlist
|
48
|
+
@GoodsCnt = goodscnt
|
49
|
+
@CurrentGoodsId = currentgoodsid
|
50
|
+
@UserPortraitInfo = userportraitinfo
|
51
|
+
@BlackGoodsList = blackgoodslist
|
52
|
+
@Extension = extension
|
53
|
+
end
|
54
|
+
|
55
|
+
def deserialize(params)
|
56
|
+
@InstanceId = params['InstanceId']
|
57
|
+
@SceneId = params['SceneId']
|
58
|
+
@UserId = params['UserId']
|
59
|
+
unless params['UserIdList'].nil?
|
60
|
+
@UserIdList = []
|
61
|
+
params['UserIdList'].each do |i|
|
62
|
+
struseridinfo_tmp = StrUserIdInfo.new
|
63
|
+
struseridinfo_tmp.deserialize(i)
|
64
|
+
@UserIdList << struseridinfo_tmp
|
65
|
+
end
|
66
|
+
end
|
67
|
+
@GoodsCnt = params['GoodsCnt']
|
68
|
+
@CurrentGoodsId = params['CurrentGoodsId']
|
69
|
+
unless params['UserPortraitInfo'].nil?
|
70
|
+
@UserPortraitInfo = UserPortraitInfo.new
|
71
|
+
@UserPortraitInfo.deserialize(params['UserPortraitInfo'])
|
72
|
+
end
|
73
|
+
@BlackGoodsList = params['BlackGoodsList']
|
74
|
+
@Extension = params['Extension']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# DescribeGoodsRecommend返回参数结构体
|
79
|
+
class DescribeGoodsRecommendResponse < TencentCloud::Common::AbstractModel
|
80
|
+
# @param DataList: 推荐返回的商品信息列表
|
81
|
+
# @type DataList: Array
|
82
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
83
|
+
# @type RequestId: String
|
84
|
+
|
85
|
+
attr_accessor :DataList, :RequestId
|
86
|
+
|
87
|
+
def initialize(datalist=nil, requestid=nil)
|
88
|
+
@DataList = datalist
|
89
|
+
@RequestId = requestid
|
90
|
+
end
|
91
|
+
|
92
|
+
def deserialize(params)
|
93
|
+
unless params['DataList'].nil?
|
94
|
+
@DataList = []
|
95
|
+
params['DataList'].each do |i|
|
96
|
+
recgoodsdata_tmp = RecGoodsData.new
|
97
|
+
recgoodsdata_tmp.deserialize(i)
|
98
|
+
@DataList << recgoodsdata_tmp
|
99
|
+
end
|
100
|
+
end
|
101
|
+
@RequestId = params['RequestId']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
20
105
|
# 不喜欢信息
|
21
106
|
class DislikeInfo < TencentCloud::Common::AbstractModel
|
22
107
|
# @param Type: 过滤的类别:<br>● author 作者名<br/>(如当前类型不满足,请<a href="https://console.cloud.tencent.com/workorder/category" target="_blank">提单</a>沟通解决方案)
|
@@ -433,6 +518,268 @@ module TencentCloud
|
|
433
518
|
end
|
434
519
|
end
|
435
520
|
|
521
|
+
# 电商行为
|
522
|
+
class GoodsBehaviorInfo < TencentCloud::Common::AbstractModel
|
523
|
+
# @param UserId: 用户唯一ID,客户自定义用户ID,作为一个用户的唯一标识
|
524
|
+
# @type UserId: String
|
525
|
+
# @param GoodsId: 商品唯一ID,skuId或spuId,客户根据需求自行决定商品主键粒度
|
526
|
+
# @type GoodsId: String
|
527
|
+
# @param BehaviorType: 行为类型:<br> ● expose - 曝光,<b>必须</b><br> ● click - 点击,<b>必须</b><br/> ● stay - 详情页停留时长,<b>强烈建议</b><br/> ● videoover - 视频播放时长,<b>强烈建议</b><br/> ● like - 点赞&喜欢,<b>正效果</b><br/> ● collect - 收藏,<b>正效果</b><br/> ● share - 转发&分享,<b>正效果</b><br/> ● reward - 打赏,<b>正效果</b><br/> ● unlike - 踩&不喜欢,<b>负效果</b><br/> ● comment - 评论<br/> ● order - 下单<br/> ● buy - 购买成功<br/> ● addcart - 加入购物车<br/>
|
528
|
+
# 不支持的行为类型,可以映射到未被使用的其他行为类型。如实际业务数据中有私信行为,没有收藏行为,可以将私信行为映射到收藏行为
|
529
|
+
# @type BehaviorType: String
|
530
|
+
# @param BehaviorValue: 行为类型对应的行为值:<br/> ● expose - 曝光,固定填1<br/> ● click - 点击,固定填1<br/> ● stay - 详情页停留时长,填停留秒数,取值[1-86400]<br/> ● videoover - 视频播放时长,填播放结束的秒数,取值[1-86400]<br/> ● like - 点赞&喜欢,固定填1<br/> ● collect - 收藏,固定填1<br/> ● share - 转发&分享,固定填1<br/> ● reward - 打赏,填打赏金额,没有则填1<br/> ● unlike - 踩&不喜欢,填不喜欢的原因,没有则填1<br/> ● comment - 评论,填评论内容,如“上海加油”<br/> ● order - 下单,固定填1<br/> ● buy - 购买成功,固定填1<br/> ● addcart - 加入购物车,固定填1
|
531
|
+
# @type BehaviorValue: String
|
532
|
+
# @param BehaviorTimestamp: 行为发生的时间戳: 秒级时间戳,尽量实时上报,最长不超过半小时否则会影响推荐结果的准确性
|
533
|
+
# @type BehaviorTimestamp: Integer
|
534
|
+
# @param SceneId: 行为发生的场景ID,在控制台创建场景后获取
|
535
|
+
# @type SceneId: String
|
536
|
+
# @param Source: 算法来源: <br>● business 业务自己的算法对照组<br/> ● tencent 腾讯算法<br/> ● other 其他算法<br/>默认为tencent,区分行为来源于哪个算法,<b>用于Poc阶段的效果对比验证</b>
|
537
|
+
# @type Source: String
|
538
|
+
# @param Page: 标识行为发生在app内哪个页面,取值客户自定,可以是明文或id,建议传明文便于理解、分析,如首页,发现页,用户中心等
|
539
|
+
# <b>用作上下文特征,刻画不同场景用户行为分布的差异</b>
|
540
|
+
# @type Page: String
|
541
|
+
# @param Module: 标识行为发生在页面的哪一区块,取值客户自定,可以是明文或id,建议传明文便于理解、分析,如横幅、广告位、猜你喜欢等
|
542
|
+
# <b>用作上下文特征,刻画不同模块用户行为分布的差异</b>
|
543
|
+
# @type Module: String
|
544
|
+
# @param GoodsTraceId: 推荐追踪ID,使用推荐结果中返回的GoodsTraceId填入。
|
545
|
+
# 注意:如果和推荐结果中的GoodsTraceId不同,会影响行为特征归因,影响推荐算法效果。<b>强烈建议</b>
|
546
|
+
# @type GoodsTraceId: String
|
547
|
+
# @param ReferrerGoodsId: 相关推荐场景点击进入详情页的内容id,该字段用来注明行为发生于哪个内容的详情页推荐中,<b>相关推荐场景强烈建议</b>
|
548
|
+
# @type ReferrerGoodsId: String
|
549
|
+
# @param OrderGoodsCnt: 订单商品购买个数,当behaviorType=order,buy或addcart时有值,<b>用作特征</b>
|
550
|
+
# @type OrderGoodsCnt: Integer
|
551
|
+
# @param OrderAmount: 订单总金额,当behaviorType=order或buy时有值(单位:元,统一货币体系,如统一为RMB,美元等),<b>用作特征</b>
|
552
|
+
# @type OrderAmount: Float
|
553
|
+
# @param UserIdList: 用户设备ID数组,可传入用户的多个类型ID,详见UserIdInfo结构体,建议补齐,<b>用于构建用户画像信息</b>
|
554
|
+
# @type UserIdList: Array
|
555
|
+
# @param UserPortraitInfo: 行为发生时用户基础特征信息,<b>用作特征</b>
|
556
|
+
# @type UserPortraitInfo: :class:`Tencentcloud::Irp.v20220805.models.UserPortraitInfo`
|
557
|
+
# @param Position: 标识行为发生在模块内的具体位置,如1、2、...
|
558
|
+
# <b>用作上下文特征,刻画不同位置用户行为分布的差异</b>
|
559
|
+
# @type Position: Integer
|
560
|
+
# @param Extension: json字符串,<b>用于行为数据的扩展</b>
|
561
|
+
# @type Extension: String
|
562
|
+
|
563
|
+
attr_accessor :UserId, :GoodsId, :BehaviorType, :BehaviorValue, :BehaviorTimestamp, :SceneId, :Source, :Page, :Module, :GoodsTraceId, :ReferrerGoodsId, :OrderGoodsCnt, :OrderAmount, :UserIdList, :UserPortraitInfo, :Position, :Extension
|
564
|
+
|
565
|
+
def initialize(userid=nil, goodsid=nil, behaviortype=nil, behaviorvalue=nil, behaviortimestamp=nil, sceneid=nil, source=nil, page=nil, _module=nil, goodstraceid=nil, referrergoodsid=nil, ordergoodscnt=nil, orderamount=nil, useridlist=nil, userportraitinfo=nil, position=nil, extension=nil)
|
566
|
+
@UserId = userid
|
567
|
+
@GoodsId = goodsid
|
568
|
+
@BehaviorType = behaviortype
|
569
|
+
@BehaviorValue = behaviorvalue
|
570
|
+
@BehaviorTimestamp = behaviortimestamp
|
571
|
+
@SceneId = sceneid
|
572
|
+
@Source = source
|
573
|
+
@Page = page
|
574
|
+
@Module = _module
|
575
|
+
@GoodsTraceId = goodstraceid
|
576
|
+
@ReferrerGoodsId = referrergoodsid
|
577
|
+
@OrderGoodsCnt = ordergoodscnt
|
578
|
+
@OrderAmount = orderamount
|
579
|
+
@UserIdList = useridlist
|
580
|
+
@UserPortraitInfo = userportraitinfo
|
581
|
+
@Position = position
|
582
|
+
@Extension = extension
|
583
|
+
end
|
584
|
+
|
585
|
+
def deserialize(params)
|
586
|
+
@UserId = params['UserId']
|
587
|
+
@GoodsId = params['GoodsId']
|
588
|
+
@BehaviorType = params['BehaviorType']
|
589
|
+
@BehaviorValue = params['BehaviorValue']
|
590
|
+
@BehaviorTimestamp = params['BehaviorTimestamp']
|
591
|
+
@SceneId = params['SceneId']
|
592
|
+
@Source = params['Source']
|
593
|
+
@Page = params['Page']
|
594
|
+
@Module = params['Module']
|
595
|
+
@GoodsTraceId = params['GoodsTraceId']
|
596
|
+
@ReferrerGoodsId = params['ReferrerGoodsId']
|
597
|
+
@OrderGoodsCnt = params['OrderGoodsCnt']
|
598
|
+
@OrderAmount = params['OrderAmount']
|
599
|
+
unless params['UserIdList'].nil?
|
600
|
+
@UserIdList = []
|
601
|
+
params['UserIdList'].each do |i|
|
602
|
+
struseridinfo_tmp = StrUserIdInfo.new
|
603
|
+
struseridinfo_tmp.deserialize(i)
|
604
|
+
@UserIdList << struseridinfo_tmp
|
605
|
+
end
|
606
|
+
end
|
607
|
+
unless params['UserPortraitInfo'].nil?
|
608
|
+
@UserPortraitInfo = UserPortraitInfo.new
|
609
|
+
@UserPortraitInfo.deserialize(params['UserPortraitInfo'])
|
610
|
+
end
|
611
|
+
@Position = params['Position']
|
612
|
+
@Extension = params['Extension']
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# 电商物料内容
|
617
|
+
class GoodsInfo < TencentCloud::Common::AbstractModel
|
618
|
+
# @param GoodsId: 商品唯一ID,skuId或spuId,客户根据需求自行决定商品主键粒度。建议限制在128字符以内
|
619
|
+
# @type GoodsId: String
|
620
|
+
# @param GoodsType: 商品物料展示类型:<br/>● article -图文<br>● text -纯文本<br/>● video -视频<br/>● short_video -时长15秒以内的视频<br/>● mini_video -竖屏视频<br/>● image -纯图片<br/>(如当前类型不满足,请<a href="https://console.cloud.tencent.com/workorder/category" target="_blank">提单</a>沟通解决方案)
|
621
|
+
# @type GoodsType: String
|
622
|
+
# @param Status: 商品状态:
|
623
|
+
# ● 1 - 上架
|
624
|
+
# ● 2 - 下架
|
625
|
+
# Status=2的内容不会在推荐结果中出现
|
626
|
+
# 需要下架内容时,把Status的值修改为2即可
|
627
|
+
# @type Status: Integer
|
628
|
+
# @param PublishTimestamp: 商品生成时间,秒级时间戳(1639624786),需大于0,<b>用作特征和物料管理</b>
|
629
|
+
# @type PublishTimestamp: Integer
|
630
|
+
# @param ExpireTimestamp: 商品过期时间,秒级时间戳(1639624786),如未填,则默认PublishTimestamp往后延一年,<b>用作特征</b>,过期则不会被推荐,<b>强烈建议</b>
|
631
|
+
# @type ExpireTimestamp: Integer
|
632
|
+
# @param SpuId: spu((Standard Product Unit))维度id,商品聚合信息的最小单位,<b>强烈建议</b>
|
633
|
+
# @type SpuId: String
|
634
|
+
# @param CategoryLevel: 类目层级数,例如3级类目,则填3,和CategoryPath字段的类数据匹配,<b>强烈建议</b>
|
635
|
+
# @type CategoryLevel: Integer
|
636
|
+
# @param CategoryPath: 类目路径,一级二级三级等依次用英文冒号联接,和CategoryLevel字段值匹配,如体育:“女装:裙子:半身裙”。<b>用于物料池管理,强烈建议</b>
|
637
|
+
# @type CategoryPath: String
|
638
|
+
# @param Title: 商品标题,<b>主要用于语义分析</b>,<b>强烈建议</b>
|
639
|
+
# @type Title: String
|
640
|
+
# @param Tags: 商品标签,多个标签用英文冒号联接,<b>用作特征,强烈建议</b>
|
641
|
+
# @type Tags: String
|
642
|
+
# @param Brand: 商品对应的品牌,取值用户自定义,可以是品牌id或品牌明文,<b>用作特征以及打散/过滤规则,强烈建议</b>
|
643
|
+
# @type Brand: String
|
644
|
+
# @param ShopId: 商品所属店铺ID,取值客户自定义,<b>用作特征,强烈建议</b>
|
645
|
+
# @type ShopId: String
|
646
|
+
# @param OrgPrice: 商品原始价格(单位:元,统一货币体系,如统一为RMB或美元等),<b>用作特征,强烈建议</b>
|
647
|
+
# @type OrgPrice: Float
|
648
|
+
# @param CurPrice: 商品当前价格(单位:元,统一货币体系,如统一为RMB或美元等),<b>用作特征,强烈建议</b>
|
649
|
+
# @type CurPrice: Float
|
650
|
+
# @param SourceId: 商品来源类型,客户自定义,<b>用于物料池管理</b>
|
651
|
+
# @type SourceId: String
|
652
|
+
# @param Content: 商品正文关键片段,建议控制在500字符以内,<b>主要用于语义分析</b>
|
653
|
+
# @type Content: String
|
654
|
+
# @param ContentUrl: 商品正文详情,主要用于语义分析,当内容过大时建议用ContentUrl传递,<b>与Content可二选一</b>
|
655
|
+
# @type ContentUrl: String
|
656
|
+
# @param PicUrlList: 商品封面url,不超过10个,<b>用作特征</b>
|
657
|
+
# @type PicUrlList: Array
|
658
|
+
# @param Country: 卖家所在国家,ISO 3166-1 alpha-2编码,参考<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank">ISO 3166-1 alpha-2</a>,中国:“CN”,<b>用作特征</b>
|
659
|
+
# @type Country: String
|
660
|
+
# @param Province: 卖家所在省份,ISO 3166-2行政区编码,如中国参考<a href="https://zh.wikipedia.org/wiki/ISO_3166-2:CN" target="_blank">ISO_3166-2:CN</a>,广东省:“CN-GD”,<b>用作特征</b>
|
661
|
+
# @type Province: String
|
662
|
+
# @param City: 卖家所在城市地区,统一用国家最新标准地区行政编码,如:<a href="https://www.mca.gov.cn/article/sj/xzqh/2020/" target="_blank">2020年行政区编码</a>,其他国家统一用国际公认城市简称或者城市编码,<b>用作特征</b>
|
663
|
+
# @type City: String
|
664
|
+
# @param FreeShipping: 商品是否包邮;1:包邮;2:不包邮;3:满足条件包邮,<b>用作特征</b>
|
665
|
+
# @type FreeShipping: Integer
|
666
|
+
# @param ShippingPrice: 商品邮费(单位:元,统一货币体系,如统一为RMB或美元等),<b>用作特征</b>
|
667
|
+
# @type ShippingPrice: Float
|
668
|
+
# @param PraiseCnt: 商品累计好评次数,<b>用作特征</b>
|
669
|
+
# @type PraiseCnt: Integer
|
670
|
+
# @param CommentCnt: 商品累计评论次数,<b>用作特征</b>
|
671
|
+
# @type CommentCnt: Integer
|
672
|
+
# @param ShareCnt: 商品累计分享次数,<b>用作特征</b>
|
673
|
+
# @type ShareCnt: Integer
|
674
|
+
# @param CollectCnt: 商品累计收藏次数,<b>用作特征</b>
|
675
|
+
# @type CollectCnt: Integer
|
676
|
+
# @param OrderCnt: 商品累积成交次数,<b>用作特征</b>
|
677
|
+
# @type OrderCnt: Integer
|
678
|
+
# @param Score: 商品平均客户评分,取值范围用户自定,<b>用作特征</b>
|
679
|
+
# @type Score: Float
|
680
|
+
# @param Extension: json字符串,<b>用于物料池管理的自定义扩展</b>
|
681
|
+
# @type Extension: String
|
682
|
+
|
683
|
+
attr_accessor :GoodsId, :GoodsType, :Status, :PublishTimestamp, :ExpireTimestamp, :SpuId, :CategoryLevel, :CategoryPath, :Title, :Tags, :Brand, :ShopId, :OrgPrice, :CurPrice, :SourceId, :Content, :ContentUrl, :PicUrlList, :Country, :Province, :City, :FreeShipping, :ShippingPrice, :PraiseCnt, :CommentCnt, :ShareCnt, :CollectCnt, :OrderCnt, :Score, :Extension
|
684
|
+
|
685
|
+
def initialize(goodsid=nil, goodstype=nil, status=nil, publishtimestamp=nil, expiretimestamp=nil, spuid=nil, categorylevel=nil, categorypath=nil, title=nil, tags=nil, brand=nil, shopid=nil, orgprice=nil, curprice=nil, sourceid=nil, content=nil, contenturl=nil, picurllist=nil, country=nil, province=nil, city=nil, freeshipping=nil, shippingprice=nil, praisecnt=nil, commentcnt=nil, sharecnt=nil, collectcnt=nil, ordercnt=nil, score=nil, extension=nil)
|
686
|
+
@GoodsId = goodsid
|
687
|
+
@GoodsType = goodstype
|
688
|
+
@Status = status
|
689
|
+
@PublishTimestamp = publishtimestamp
|
690
|
+
@ExpireTimestamp = expiretimestamp
|
691
|
+
@SpuId = spuid
|
692
|
+
@CategoryLevel = categorylevel
|
693
|
+
@CategoryPath = categorypath
|
694
|
+
@Title = title
|
695
|
+
@Tags = tags
|
696
|
+
@Brand = brand
|
697
|
+
@ShopId = shopid
|
698
|
+
@OrgPrice = orgprice
|
699
|
+
@CurPrice = curprice
|
700
|
+
@SourceId = sourceid
|
701
|
+
@Content = content
|
702
|
+
@ContentUrl = contenturl
|
703
|
+
@PicUrlList = picurllist
|
704
|
+
@Country = country
|
705
|
+
@Province = province
|
706
|
+
@City = city
|
707
|
+
@FreeShipping = freeshipping
|
708
|
+
@ShippingPrice = shippingprice
|
709
|
+
@PraiseCnt = praisecnt
|
710
|
+
@CommentCnt = commentcnt
|
711
|
+
@ShareCnt = sharecnt
|
712
|
+
@CollectCnt = collectcnt
|
713
|
+
@OrderCnt = ordercnt
|
714
|
+
@Score = score
|
715
|
+
@Extension = extension
|
716
|
+
end
|
717
|
+
|
718
|
+
def deserialize(params)
|
719
|
+
@GoodsId = params['GoodsId']
|
720
|
+
@GoodsType = params['GoodsType']
|
721
|
+
@Status = params['Status']
|
722
|
+
@PublishTimestamp = params['PublishTimestamp']
|
723
|
+
@ExpireTimestamp = params['ExpireTimestamp']
|
724
|
+
@SpuId = params['SpuId']
|
725
|
+
@CategoryLevel = params['CategoryLevel']
|
726
|
+
@CategoryPath = params['CategoryPath']
|
727
|
+
@Title = params['Title']
|
728
|
+
@Tags = params['Tags']
|
729
|
+
@Brand = params['Brand']
|
730
|
+
@ShopId = params['ShopId']
|
731
|
+
@OrgPrice = params['OrgPrice']
|
732
|
+
@CurPrice = params['CurPrice']
|
733
|
+
@SourceId = params['SourceId']
|
734
|
+
@Content = params['Content']
|
735
|
+
@ContentUrl = params['ContentUrl']
|
736
|
+
@PicUrlList = params['PicUrlList']
|
737
|
+
@Country = params['Country']
|
738
|
+
@Province = params['Province']
|
739
|
+
@City = params['City']
|
740
|
+
@FreeShipping = params['FreeShipping']
|
741
|
+
@ShippingPrice = params['ShippingPrice']
|
742
|
+
@PraiseCnt = params['PraiseCnt']
|
743
|
+
@CommentCnt = params['CommentCnt']
|
744
|
+
@ShareCnt = params['ShareCnt']
|
745
|
+
@CollectCnt = params['CollectCnt']
|
746
|
+
@OrderCnt = params['OrderCnt']
|
747
|
+
@Score = params['Score']
|
748
|
+
@Extension = params['Extension']
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
752
|
+
# 推荐返回的内容信息
|
753
|
+
class RecGoodsData < TencentCloud::Common::AbstractModel
|
754
|
+
# @param GoodsId: 推荐返回的商品ID
|
755
|
+
# @type GoodsId: String
|
756
|
+
# @param Score: 推荐结果分,取值范围[0,1000000]
|
757
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
758
|
+
# @type Score: Float
|
759
|
+
# @param GoodsTraceId: 推荐追踪id,本次推荐内容产生的后续行为上报均要用该GoodsTraceId上报。每次接口调用返回的GoodsTraceId不同
|
760
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
761
|
+
# @type GoodsTraceId: String
|
762
|
+
# @param Position: 商品所在位置
|
763
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
764
|
+
# @type Position: Integer
|
765
|
+
|
766
|
+
attr_accessor :GoodsId, :Score, :GoodsTraceId, :Position
|
767
|
+
|
768
|
+
def initialize(goodsid=nil, score=nil, goodstraceid=nil, position=nil)
|
769
|
+
@GoodsId = goodsid
|
770
|
+
@Score = score
|
771
|
+
@GoodsTraceId = goodstraceid
|
772
|
+
@Position = position
|
773
|
+
end
|
774
|
+
|
775
|
+
def deserialize(params)
|
776
|
+
@GoodsId = params['GoodsId']
|
777
|
+
@Score = params['Score']
|
778
|
+
@GoodsTraceId = params['GoodsTraceId']
|
779
|
+
@Position = params['Position']
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
436
783
|
# 推荐返回的内容信息
|
437
784
|
class RecItemData < TencentCloud::Common::AbstractModel
|
438
785
|
# @param ItemId: 推荐的内容ID
|
@@ -593,6 +940,103 @@ module TencentCloud
|
|
593
940
|
end
|
594
941
|
end
|
595
942
|
|
943
|
+
# ReportGoodsBehavior请求参数结构体
|
944
|
+
class ReportGoodsBehaviorRequest < TencentCloud::Common::AbstractModel
|
945
|
+
# @param InstanceId: 实例ID,在控制台获取
|
946
|
+
# @type InstanceId: String
|
947
|
+
# @param GoodsBehaviorList: 上报的商品对应的用户行为数据数组,数量不超过50
|
948
|
+
# @type GoodsBehaviorList: Array
|
949
|
+
|
950
|
+
attr_accessor :InstanceId, :GoodsBehaviorList
|
951
|
+
|
952
|
+
def initialize(instanceid=nil, goodsbehaviorlist=nil)
|
953
|
+
@InstanceId = instanceid
|
954
|
+
@GoodsBehaviorList = goodsbehaviorlist
|
955
|
+
end
|
956
|
+
|
957
|
+
def deserialize(params)
|
958
|
+
@InstanceId = params['InstanceId']
|
959
|
+
unless params['GoodsBehaviorList'].nil?
|
960
|
+
@GoodsBehaviorList = []
|
961
|
+
params['GoodsBehaviorList'].each do |i|
|
962
|
+
goodsbehaviorinfo_tmp = GoodsBehaviorInfo.new
|
963
|
+
goodsbehaviorinfo_tmp.deserialize(i)
|
964
|
+
@GoodsBehaviorList << goodsbehaviorinfo_tmp
|
965
|
+
end
|
966
|
+
end
|
967
|
+
end
|
968
|
+
end
|
969
|
+
|
970
|
+
# ReportGoodsBehavior返回参数结构体
|
971
|
+
class ReportGoodsBehaviorResponse < TencentCloud::Common::AbstractModel
|
972
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
973
|
+
# @type RequestId: String
|
974
|
+
|
975
|
+
attr_accessor :RequestId
|
976
|
+
|
977
|
+
def initialize(requestid=nil)
|
978
|
+
@RequestId = requestid
|
979
|
+
end
|
980
|
+
|
981
|
+
def deserialize(params)
|
982
|
+
@RequestId = params['RequestId']
|
983
|
+
end
|
984
|
+
end
|
985
|
+
|
986
|
+
# ReportGoodsInfo请求参数结构体
|
987
|
+
class ReportGoodsInfoRequest < TencentCloud::Common::AbstractModel
|
988
|
+
# @param InstanceId: 实例ID,在控制台获取
|
989
|
+
# @type InstanceId: String
|
990
|
+
# @param GoodsList: 上报的商品数组,一次数量不超过50
|
991
|
+
# @type GoodsList: Array
|
992
|
+
|
993
|
+
attr_accessor :InstanceId, :GoodsList
|
994
|
+
|
995
|
+
def initialize(instanceid=nil, goodslist=nil)
|
996
|
+
@InstanceId = instanceid
|
997
|
+
@GoodsList = goodslist
|
998
|
+
end
|
999
|
+
|
1000
|
+
def deserialize(params)
|
1001
|
+
@InstanceId = params['InstanceId']
|
1002
|
+
unless params['GoodsList'].nil?
|
1003
|
+
@GoodsList = []
|
1004
|
+
params['GoodsList'].each do |i|
|
1005
|
+
goodsinfo_tmp = GoodsInfo.new
|
1006
|
+
goodsinfo_tmp.deserialize(i)
|
1007
|
+
@GoodsList << goodsinfo_tmp
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# ReportGoodsInfo返回参数结构体
|
1014
|
+
class ReportGoodsInfoResponse < TencentCloud::Common::AbstractModel
|
1015
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1016
|
+
# @type RequestId: String
|
1017
|
+
|
1018
|
+
attr_accessor :RequestId
|
1019
|
+
|
1020
|
+
def initialize(requestid=nil)
|
1021
|
+
@RequestId = requestid
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
def deserialize(params)
|
1025
|
+
@RequestId = params['RequestId']
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# 用户信息
|
1030
|
+
class StrUserIdInfo < TencentCloud::Common::AbstractModel
|
1031
|
+
|
1032
|
+
|
1033
|
+
def initialize()
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
def deserialize(params)
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
|
596
1040
|
# 用户ID信息
|
597
1041
|
class UserIdInfo < TencentCloud::Common::AbstractModel
|
598
1042
|
# @param Type: 用户ID类型: <br/>● qq: qq号码 <br/>● qq_md5:qq的md5值 <br/>● imei:设备imei <br/>● imei_md5:imei的md5值 <br/>● idfa: Apple 向用户设备随机分配的设备标识符 <br/>● idfa_md5:idfa的md5值 <br/>● oaid:安卓10之后一种非永久性设备标识符 <br/>● oaid_md5:md5后的oaid <br/>● wx_openid:微信openid <br/>● qq_openid:QQ的openid <br/>● phone:电话号码 <br/>● phone_md5:md5后的电话号码 <br/>● phone_sha256:SHA256加密的手机号 <br/>● phone_sm3:国密SM3加密的手机号 <br/>(如当前类型不满足,请<a href="https://console.cloud.tencent.com/workorder/category" target="_blank">提单</a>沟通解决方案)
|
@@ -613,6 +1057,17 @@ module TencentCloud
|
|
613
1057
|
end
|
614
1058
|
end
|
615
1059
|
|
1060
|
+
# 用户基础画像
|
1061
|
+
class UserPortraitInfo < TencentCloud::Common::AbstractModel
|
1062
|
+
|
1063
|
+
|
1064
|
+
def initialize()
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
def deserialize(params)
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
616
1071
|
end
|
617
1072
|
end
|
618
1073
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-irp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.526
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|