tencentcloud-sdk-irp 3.0.386 → 3.0.387

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: 4db215972808c376c346317a5609ca7895810d6c
4
- data.tar.gz: f3c95ccdc9c9968115ab471ce30d84515df8fd69
3
+ metadata.gz: aea2d55c3ba8e74364c83145235966773613369d
4
+ data.tar.gz: fe6426195fd242166feba4ef5dbb51e85ad6ec4b
5
5
  SHA512:
6
- metadata.gz: 7febef5ec2769bb15e40292c557442b752121c9f77a044f7322c51909bf7276b62a5733abb357c93fc3e5630980d65496cc8c472638e55a1d7d4b26124a49cf6
7
- data.tar.gz: 4c2162fe494ecf020b4b703360603d5dfaca233e03aacccd2bcb60cdded0903ce86f7424d122e9a1279c9b0e9ed6c09114d56898abe0559cb3e20bea3a673f65
6
+ metadata.gz: a8dd767d376a0e999a447cd8105ebc7728afc745ce55020f517f509d35c34db14aef511fc14dc82c1929131e6409cc56de719e87620a0d2349724e2ae546a3cc
7
+ data.tar.gz: 1abd0143a470f0e24c53813e3e4f2c82104aa909782dc8709a27083f31c9e8a3e416af82e0f476bb1901a5e679a42eddd9804d84e50a928a95d55ecaab8de4fe
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.386
1
+ 3.0.387
@@ -5,6 +5,9 @@ require 'tencentcloud-sdk-common'
5
5
  require_relative 'v20220324/client'
6
6
  require_relative 'v20220324/models'
7
7
 
8
+ require_relative 'v20220805/client'
9
+ require_relative 'v20220805/models'
10
+
8
11
  module TencentCloud
9
12
  module Irp
10
13
  end
@@ -0,0 +1,132 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Irp
21
+ module V20220805
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-08-05'
26
+ api_endpoint = 'irp.tencentcloudapi.com'
27
+ sdk_version = 'IRP_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 获取信息流推荐结果
33
+
34
+ # @param request: Request instance for FeedRecommend.
35
+ # @type request: :class:`Tencentcloud::irp::V20220805::FeedRecommendRequest`
36
+ # @rtype: :class:`Tencentcloud::irp::V20220805::FeedRecommendResponse`
37
+ def FeedRecommend(request)
38
+ body = send_request('FeedRecommend', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = FeedRecommendResponse.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
+
56
+ # 上报场景内的行为数据,随着数据的积累,模型的效果会逐渐稳定。
57
+
58
+ # @param request: Request instance for ReportFeedBehavior.
59
+ # @type request: :class:`Tencentcloud::irp::V20220805::ReportFeedBehaviorRequest`
60
+ # @rtype: :class:`Tencentcloud::irp::V20220805::ReportFeedBehaviorResponse`
61
+ def ReportFeedBehavior(request)
62
+ body = send_request('ReportFeedBehavior', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = ReportFeedBehaviorResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 上报被用于推荐的信息流内容
81
+
82
+ # @param request: Request instance for ReportFeedItem.
83
+ # @type request: :class:`Tencentcloud::irp::V20220805::ReportFeedItemRequest`
84
+ # @rtype: :class:`Tencentcloud::irp::V20220805::ReportFeedItemResponse`
85
+ def ReportFeedItem(request)
86
+ body = send_request('ReportFeedItem', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = ReportFeedItemResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 上报用户信息,请务必确认用户的唯一性,并在请求推荐结果时指定用户的唯一标识信息(UserId),否则将无法进行千人千面的推荐
105
+
106
+ # @param request: Request instance for ReportFeedUser.
107
+ # @type request: :class:`Tencentcloud::irp::V20220805::ReportFeedUserRequest`
108
+ # @rtype: :class:`Tencentcloud::irp::V20220805::ReportFeedUserResponse`
109
+ def ReportFeedUser(request)
110
+ body = send_request('ReportFeedUser', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = ReportFeedUserResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+
129
+ end
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,619 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Irp
19
+ module V20220805
20
+ # 不喜欢信息
21
+ class DislikeInfo < TencentCloud::Common::AbstractModel
22
+ # @param Type: 过滤的类别:<br>● author 作者名<br/>(如当前类型不满足,请<a href="https://console.cloud.tencent.com/workorder/category" target="_blank">提单</a>沟通解决方案)
23
+ # @type Type: String
24
+ # @param Value: Type对应字段名的值,如:需要过滤的作者名
25
+ # @type Value: String
26
+
27
+ attr_accessor :Type, :Value
28
+
29
+ def initialize(type=nil, value=nil)
30
+ @Type = type
31
+ @Value = value
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Type = params['Type']
36
+ @Value = params['Value']
37
+ end
38
+ end
39
+
40
+ # 信息流内容
41
+ class DocItem < TencentCloud::Common::AbstractModel
42
+ # @param ItemId: 内容唯一id,建议限制在128字符以内
43
+ # @type ItemId: String
44
+ # @param ItemType: 内容类型:<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>沟通解决方案)
45
+ # @type ItemType: String
46
+ # @param Status: 内容状态:
47
+ # ● 1 - 上架
48
+ # ● 2 - 下架
49
+ # Status=2的内容不会在推荐结果中出现
50
+ # 需要下架内容时,把Status的值修改为2即可
51
+ # @type Status: Integer
52
+ # @param PublishTimestamp: 内容生成时间,秒级时间戳(1639624786),需大于0,<b>用作特征和物料管理</b>
53
+ # @type PublishTimestamp: Integer
54
+ # @param ExpireTimestamp: 内容过期时间,秒级时间戳(1639624786),如未填,则默认PublishTimestamp往后延一年,用作特征,过期则不会被推荐,<b>强烈建议</b>
55
+ # @type ExpireTimestamp: Integer
56
+ # @param CategoryLevel: 类目层级数,例如3级类目,则填3,和CategoryPath字段的类数据匹配,<b>强烈建议</b>
57
+ # @type CategoryLevel: Integer
58
+ # @param CategoryPath: 类目路径,一级二级三级等依次用英文冒号联接,和CategoryLevel字段值匹配,如体育:“足球:巴塞罗那”。<b>用于物料池管理,强烈建议</b>
59
+ # @type CategoryPath: String
60
+ # @param Tags: 内容标签,多个标签用英文冒号联接,<b>用作特征,强烈建议</b>
61
+ # @type Tags: String
62
+ # @param Author: 作者名,需保证作者名唯一,若有重名需要加编号区分。<b>用于召回过滤、规则打散,强烈建议</b>
63
+ # @type Author: String
64
+ # @param SourceId: 内容来源类型,客户自定义,<b>用于物料池管理</b>
65
+ # @type SourceId: String
66
+ # @param Title: 内容标题,<b>主要用于语义分析</b>
67
+ # @type Title: String
68
+ # @param Content: 正文关键片段,建议控制在500字符以内,<b>主要用于语义分析</b>
69
+ # @type Content: String
70
+ # @param ContentUrl: 正文详情,主要用于语义分析,当内容过大时建议用ContentUrl传递,<b>与Content可二选一</b>
71
+ # @type ContentUrl: String
72
+ # @param VideoDuration: 视频时长,时间秒,大于等于0,小于 3600 * 10。<b>视频内容必填,其它内容非必填,用作特征</b>
73
+ # @type VideoDuration: Integer
74
+ # @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>
75
+ # @type Country: String
76
+ # @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>
77
+ # @type Province: String
78
+ # @param City: 城市地区,统一用国家最新标准地区行政编码,如:<a href="https://www.mca.gov.cn/article/sj/xzqh/2020/" target="_blank">2020年行政区编码</a>,其他国家统一用国际公认城市简称或者城市编码,<b>用作特征</b>
79
+ # @type City: String
80
+ # @param AuthorFans: 作者粉丝数,<b>用作特征</b>
81
+ # @type AuthorFans: Integer
82
+ # @param AuthorLevel: 作者评级,<b>用作特征</b>
83
+ # @type AuthorLevel: String
84
+ # @param CollectCnt: 内容累计收藏次数,<b>用作特征</b>
85
+ # @type CollectCnt: Integer
86
+ # @param PraiseCnt: 内容累积点赞次数,<b>用作特征</b>
87
+ # @type PraiseCnt: Integer
88
+ # @param CommentCnt: 内容累计评论次数,<b>用作特征</b>
89
+ # @type CommentCnt: Integer
90
+ # @param ShareCnt: 内容累计分享次数,<b>用作特征</b>
91
+ # @type ShareCnt: Integer
92
+ # @param RewardCnt: 内容累积打赏数,<b>用作特征</b>
93
+ # @type RewardCnt: Integer
94
+ # @param Score: 内容质量评分,<b>用作特征</b>
95
+ # @type Score: Float
96
+ # @param Extension: json字符串,<b>用于物料池管理的自定义扩展</b>
97
+ # @type Extension: String
98
+
99
+ attr_accessor :ItemId, :ItemType, :Status, :PublishTimestamp, :ExpireTimestamp, :CategoryLevel, :CategoryPath, :Tags, :Author, :SourceId, :Title, :Content, :ContentUrl, :VideoDuration, :Country, :Province, :City, :AuthorFans, :AuthorLevel, :CollectCnt, :PraiseCnt, :CommentCnt, :ShareCnt, :RewardCnt, :Score, :Extension
100
+
101
+ def initialize(itemid=nil, itemtype=nil, status=nil, publishtimestamp=nil, expiretimestamp=nil, categorylevel=nil, categorypath=nil, tags=nil, author=nil, sourceid=nil, title=nil, content=nil, contenturl=nil, videoduration=nil, country=nil, province=nil, city=nil, authorfans=nil, authorlevel=nil, collectcnt=nil, praisecnt=nil, commentcnt=nil, sharecnt=nil, rewardcnt=nil, score=nil, extension=nil)
102
+ @ItemId = itemid
103
+ @ItemType = itemtype
104
+ @Status = status
105
+ @PublishTimestamp = publishtimestamp
106
+ @ExpireTimestamp = expiretimestamp
107
+ @CategoryLevel = categorylevel
108
+ @CategoryPath = categorypath
109
+ @Tags = tags
110
+ @Author = author
111
+ @SourceId = sourceid
112
+ @Title = title
113
+ @Content = content
114
+ @ContentUrl = contenturl
115
+ @VideoDuration = videoduration
116
+ @Country = country
117
+ @Province = province
118
+ @City = city
119
+ @AuthorFans = authorfans
120
+ @AuthorLevel = authorlevel
121
+ @CollectCnt = collectcnt
122
+ @PraiseCnt = praisecnt
123
+ @CommentCnt = commentcnt
124
+ @ShareCnt = sharecnt
125
+ @RewardCnt = rewardcnt
126
+ @Score = score
127
+ @Extension = extension
128
+ end
129
+
130
+ def deserialize(params)
131
+ @ItemId = params['ItemId']
132
+ @ItemType = params['ItemType']
133
+ @Status = params['Status']
134
+ @PublishTimestamp = params['PublishTimestamp']
135
+ @ExpireTimestamp = params['ExpireTimestamp']
136
+ @CategoryLevel = params['CategoryLevel']
137
+ @CategoryPath = params['CategoryPath']
138
+ @Tags = params['Tags']
139
+ @Author = params['Author']
140
+ @SourceId = params['SourceId']
141
+ @Title = params['Title']
142
+ @Content = params['Content']
143
+ @ContentUrl = params['ContentUrl']
144
+ @VideoDuration = params['VideoDuration']
145
+ @Country = params['Country']
146
+ @Province = params['Province']
147
+ @City = params['City']
148
+ @AuthorFans = params['AuthorFans']
149
+ @AuthorLevel = params['AuthorLevel']
150
+ @CollectCnt = params['CollectCnt']
151
+ @PraiseCnt = params['PraiseCnt']
152
+ @CommentCnt = params['CommentCnt']
153
+ @ShareCnt = params['ShareCnt']
154
+ @RewardCnt = params['RewardCnt']
155
+ @Score = params['Score']
156
+ @Extension = params['Extension']
157
+ end
158
+ end
159
+
160
+ # 信息流行为
161
+ class FeedBehaviorInfo < TencentCloud::Common::AbstractModel
162
+ # @param UserId: 用户唯一ID,客户自定义用户ID,作为一个用户的唯一标识
163
+ # @type UserId: String
164
+ # @param ItemId: 内容唯一id
165
+ # @type ItemId: String
166
+ # @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/> 不支持的行为类型,可以映射到未被使用的其他行为类型。如实际业务数据中有私信行为,没有收藏行为,可以将私信行为映射到收藏行为
167
+ # @type BehaviorType: String
168
+ # @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 - 评论,填评论内容,如“上海加油”
169
+ # @type BehaviorValue: String
170
+ # @param BehaviorTimestamp: 行为发生的时间戳: 秒级时间戳,尽量实时上报,最长不超过半小时否则会影响推荐结果的准确性
171
+ # @type BehaviorTimestamp: Integer
172
+ # @param SceneId: 行为发生的场景ID,在控制台创建场景后获取
173
+ # @type SceneId: String
174
+ # @param ItemTraceId: 推荐追踪ID,使用推荐结果中返回的ItemTraceId填入。
175
+ # 注意:如果和推荐结果中的ItemTraceId不同,会影响行为特征归因,影响推荐算法效果
176
+ # @type ItemTraceId: String
177
+ # @param ItemType: 内容类型,跟内容上报类型一致,用于效果分析,不做内容校验,<b>强烈建议</b>
178
+ # @type ItemType: String
179
+ # @param ReferrerItemId: 相关推荐场景点击进入详情页的内容id,该字段用来注明行为发生于哪个内容的详情页推荐中,<b>相关推荐场景强烈建议</b>
180
+ # @type ReferrerItemId: String
181
+ # @param UserIdList: 用户设备ID数组,可传入用户的多个类型ID,详见UserIdInfo结构体,建议补齐,<b>用于构建用户画像信息</b>
182
+ # @type UserIdList: Array
183
+ # @param Source: 算法来源: <br>● business 业务自己的算法对照组<br/> ● tencent 腾讯算法<br/> ● other 其他算法<br/>默认为tencent,区分行为来源于哪个算法,<b>用于Poc阶段的效果对比验证</b>
184
+ # @type Source: String
185
+ # @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>
186
+ # @type Country: String
187
+ # @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>
188
+ # @type Province: String
189
+ # @param City: 行为发生时的城市地区,统一用国家最新标准地区行政编码,如:<a href="https://www.mca.gov.cn/article/sj/xzqh/2020/" target="_blank">2020年行政区编码</a>,其他国家统一用国际公认城市简称或者城市编码,<b>用作特征</b>
190
+ # @type City: String
191
+ # @param IP: 行为发生时的客户端ip,<b>用作特征</b>
192
+ # @type IP: String
193
+ # @param Network: 行为发生时的客户端网络类型,<b>用作特征</b>
194
+ # @type Network: String
195
+ # @param Platform: 行为发生时的客户端平台,ios/android/h5,<b>用作特征</b>
196
+ # @type Platform: String
197
+ # @param AppVersion: 行为发生时的客户端app版本,<b>用作特征</b>
198
+ # @type AppVersion: String
199
+ # @param OsVersion: 行为发生时的操作系统版本,<b>用作特征</b>
200
+ # @type OsVersion: String
201
+ # @param DeviceModel: 行为发生时的机型,<b>用作特征</b>
202
+ # @type DeviceModel: String
203
+ # @param Extension: json字符串,<b>用于行为数据的扩展</b>
204
+ # @type Extension: String
205
+
206
+ attr_accessor :UserId, :ItemId, :BehaviorType, :BehaviorValue, :BehaviorTimestamp, :SceneId, :ItemTraceId, :ItemType, :ReferrerItemId, :UserIdList, :Source, :Country, :Province, :City, :IP, :Network, :Platform, :AppVersion, :OsVersion, :DeviceModel, :Extension
207
+
208
+ def initialize(userid=nil, itemid=nil, behaviortype=nil, behaviorvalue=nil, behaviortimestamp=nil, sceneid=nil, itemtraceid=nil, itemtype=nil, referreritemid=nil, useridlist=nil, source=nil, country=nil, province=nil, city=nil, ip=nil, network=nil, platform=nil, appversion=nil, osversion=nil, devicemodel=nil, extension=nil)
209
+ @UserId = userid
210
+ @ItemId = itemid
211
+ @BehaviorType = behaviortype
212
+ @BehaviorValue = behaviorvalue
213
+ @BehaviorTimestamp = behaviortimestamp
214
+ @SceneId = sceneid
215
+ @ItemTraceId = itemtraceid
216
+ @ItemType = itemtype
217
+ @ReferrerItemId = referreritemid
218
+ @UserIdList = useridlist
219
+ @Source = source
220
+ @Country = country
221
+ @Province = province
222
+ @City = city
223
+ @IP = ip
224
+ @Network = network
225
+ @Platform = platform
226
+ @AppVersion = appversion
227
+ @OsVersion = osversion
228
+ @DeviceModel = devicemodel
229
+ @Extension = extension
230
+ end
231
+
232
+ def deserialize(params)
233
+ @UserId = params['UserId']
234
+ @ItemId = params['ItemId']
235
+ @BehaviorType = params['BehaviorType']
236
+ @BehaviorValue = params['BehaviorValue']
237
+ @BehaviorTimestamp = params['BehaviorTimestamp']
238
+ @SceneId = params['SceneId']
239
+ @ItemTraceId = params['ItemTraceId']
240
+ @ItemType = params['ItemType']
241
+ @ReferrerItemId = params['ReferrerItemId']
242
+ unless params['UserIdList'].nil?
243
+ @UserIdList = []
244
+ params['UserIdList'].each do |i|
245
+ useridinfo_tmp = UserIdInfo.new
246
+ useridinfo_tmp.deserialize(i)
247
+ @UserIdList << useridinfo_tmp
248
+ end
249
+ end
250
+ @Source = params['Source']
251
+ @Country = params['Country']
252
+ @Province = params['Province']
253
+ @City = params['City']
254
+ @IP = params['IP']
255
+ @Network = params['Network']
256
+ @Platform = params['Platform']
257
+ @AppVersion = params['AppVersion']
258
+ @OsVersion = params['OsVersion']
259
+ @DeviceModel = params['DeviceModel']
260
+ @Extension = params['Extension']
261
+ end
262
+ end
263
+
264
+ # FeedRecommend请求参数结构体
265
+ class FeedRecommendRequest < TencentCloud::Common::AbstractModel
266
+ # @param InstanceId: 实例ID,在控制台获取
267
+ # @type InstanceId: String
268
+ # @param SceneId: 场景ID,在控制台创建场景后获取
269
+ # @type SceneId: String
270
+ # @param UserId: 用户唯一ID,客户自定义用户ID,作为一个用户的唯一标识
271
+ # @type UserId: String
272
+ # @param UserIdList: 用户设备ID数组,可传入用户的多个类型ID,用于关联画像信息
273
+ # @type UserIdList: Array
274
+ # @param ItemCnt: 推荐返回数量,默认10个,最多支持50个的内容返回。如果有更多数量要求,<a href="https://console.cloud.tencent.com/workorder/category" target="_blank">提单</a>沟通解决
275
+ # @type ItemCnt: Integer
276
+ # @param CurrentItemId: 当场景是相关推荐时该值必填,场景是非相关推荐时该值无效
277
+ # @type CurrentItemId: String
278
+
279
+ attr_accessor :InstanceId, :SceneId, :UserId, :UserIdList, :ItemCnt, :CurrentItemId
280
+
281
+ def initialize(instanceid=nil, sceneid=nil, userid=nil, useridlist=nil, itemcnt=nil, currentitemid=nil)
282
+ @InstanceId = instanceid
283
+ @SceneId = sceneid
284
+ @UserId = userid
285
+ @UserIdList = useridlist
286
+ @ItemCnt = itemcnt
287
+ @CurrentItemId = currentitemid
288
+ end
289
+
290
+ def deserialize(params)
291
+ @InstanceId = params['InstanceId']
292
+ @SceneId = params['SceneId']
293
+ @UserId = params['UserId']
294
+ unless params['UserIdList'].nil?
295
+ @UserIdList = []
296
+ params['UserIdList'].each do |i|
297
+ useridinfo_tmp = UserIdInfo.new
298
+ useridinfo_tmp.deserialize(i)
299
+ @UserIdList << useridinfo_tmp
300
+ end
301
+ end
302
+ @ItemCnt = params['ItemCnt']
303
+ @CurrentItemId = params['CurrentItemId']
304
+ end
305
+ end
306
+
307
+ # FeedRecommend返回参数结构体
308
+ class FeedRecommendResponse < TencentCloud::Common::AbstractModel
309
+ # @param DataList: 推荐返回的内容信息列表
310
+ # @type DataList: Array
311
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
312
+ # @type RequestId: String
313
+
314
+ attr_accessor :DataList, :RequestId
315
+
316
+ def initialize(datalist=nil, requestid=nil)
317
+ @DataList = datalist
318
+ @RequestId = requestid
319
+ end
320
+
321
+ def deserialize(params)
322
+ unless params['DataList'].nil?
323
+ @DataList = []
324
+ params['DataList'].each do |i|
325
+ recitemdata_tmp = RecItemData.new
326
+ recitemdata_tmp.deserialize(i)
327
+ @DataList << recitemdata_tmp
328
+ end
329
+ end
330
+ @RequestId = params['RequestId']
331
+ end
332
+ end
333
+
334
+ # 信息流用户信息
335
+ class FeedUserInfo < TencentCloud::Common::AbstractModel
336
+ # @param UserId: 用户唯一ID,客户自定义用户ID,作为一个用户的唯一标识
337
+ # @type UserId: String
338
+ # @param UserIdList: 用户设备ID数组,可传入用户的多个类型ID,详见UserIdInfo结构体,建议补齐,<b>用于构建用户画像信息</b>
339
+ # @type UserIdList: Array
340
+ # @param Tags: 用户标签,多个标签用英文冒号联接,<b>用作特征,强烈建议</b>
341
+ # @type Tags: String
342
+ # @param DislikeInfoList: 过滤列表,<b>会在推荐结果里过滤掉这类内容</b>
343
+ # @type DislikeInfoList: Array
344
+ # @param Age: 用户年龄
345
+ # @type Age: Integer
346
+ # @param Gender: 用户性别: 0 - 未知 1 - 男 2 - 女
347
+ # @type Gender: Integer
348
+ # @param Degree: 用户学历 :小学,初中,高中,大专,本科,硕士,博士
349
+ # @type Degree: String
350
+ # @param School: 用户毕业学校全称
351
+ # @type School: String
352
+ # @param Occupation: 用户职业
353
+ # @type Occupation: String
354
+ # @param Industry: 用户所属行业
355
+ # @type Industry: String
356
+ # @param ResidentCountry: 用户常驻国家,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”
357
+ # @type ResidentCountry: String
358
+ # @param ResidentProvince: 用户常驻省份,ISO 3166-2行政区编码,如中国参考<a href="https://zh.wikipedia.org/wiki/ISO_3166-2:CN" target="_blank">ISO_3166-2:CN</a>,广东省:“CN-GD”
359
+ # @type ResidentProvince: String
360
+ # @param ResidentCity: 用户常驻城市,统一用国家最新标准地区行政编码,如:<a href="https://www.mca.gov.cn/article/sj/xzqh/2020/" target="_blank">2020年行政区编码</a>,
361
+ # @type ResidentCity: String
362
+ # @param RegisterTimestamp: 用户注册时间,秒级时间戳(1639624786)
363
+ # @type RegisterTimestamp: Integer
364
+ # @param MembershipLevel: 用户会员等级
365
+ # @type MembershipLevel: String
366
+ # @param LastLoginTimestamp: 用户上一次登录时间,秒级时间戳(1639624786)
367
+ # @type LastLoginTimestamp: Integer
368
+ # @param LastLoginIp: 用户上一次登录的ip
369
+ # @type LastLoginIp: String
370
+ # @param LastModifyTimestamp: 用户信息的最后修改时间戳,秒级时间戳(1639624786)
371
+ # @type LastModifyTimestamp: Integer
372
+ # @param Extension: json字符串,用于画像数据的扩展
373
+ # @type Extension: String
374
+
375
+ attr_accessor :UserId, :UserIdList, :Tags, :DislikeInfoList, :Age, :Gender, :Degree, :School, :Occupation, :Industry, :ResidentCountry, :ResidentProvince, :ResidentCity, :RegisterTimestamp, :MembershipLevel, :LastLoginTimestamp, :LastLoginIp, :LastModifyTimestamp, :Extension
376
+
377
+ def initialize(userid=nil, useridlist=nil, tags=nil, dislikeinfolist=nil, age=nil, gender=nil, degree=nil, school=nil, occupation=nil, industry=nil, residentcountry=nil, residentprovince=nil, residentcity=nil, registertimestamp=nil, membershiplevel=nil, lastlogintimestamp=nil, lastloginip=nil, lastmodifytimestamp=nil, extension=nil)
378
+ @UserId = userid
379
+ @UserIdList = useridlist
380
+ @Tags = tags
381
+ @DislikeInfoList = dislikeinfolist
382
+ @Age = age
383
+ @Gender = gender
384
+ @Degree = degree
385
+ @School = school
386
+ @Occupation = occupation
387
+ @Industry = industry
388
+ @ResidentCountry = residentcountry
389
+ @ResidentProvince = residentprovince
390
+ @ResidentCity = residentcity
391
+ @RegisterTimestamp = registertimestamp
392
+ @MembershipLevel = membershiplevel
393
+ @LastLoginTimestamp = lastlogintimestamp
394
+ @LastLoginIp = lastloginip
395
+ @LastModifyTimestamp = lastmodifytimestamp
396
+ @Extension = extension
397
+ end
398
+
399
+ def deserialize(params)
400
+ @UserId = params['UserId']
401
+ unless params['UserIdList'].nil?
402
+ @UserIdList = []
403
+ params['UserIdList'].each do |i|
404
+ useridinfo_tmp = UserIdInfo.new
405
+ useridinfo_tmp.deserialize(i)
406
+ @UserIdList << useridinfo_tmp
407
+ end
408
+ end
409
+ @Tags = params['Tags']
410
+ unless params['DislikeInfoList'].nil?
411
+ @DislikeInfoList = []
412
+ params['DislikeInfoList'].each do |i|
413
+ dislikeinfo_tmp = DislikeInfo.new
414
+ dislikeinfo_tmp.deserialize(i)
415
+ @DislikeInfoList << dislikeinfo_tmp
416
+ end
417
+ end
418
+ @Age = params['Age']
419
+ @Gender = params['Gender']
420
+ @Degree = params['Degree']
421
+ @School = params['School']
422
+ @Occupation = params['Occupation']
423
+ @Industry = params['Industry']
424
+ @ResidentCountry = params['ResidentCountry']
425
+ @ResidentProvince = params['ResidentProvince']
426
+ @ResidentCity = params['ResidentCity']
427
+ @RegisterTimestamp = params['RegisterTimestamp']
428
+ @MembershipLevel = params['MembershipLevel']
429
+ @LastLoginTimestamp = params['LastLoginTimestamp']
430
+ @LastLoginIp = params['LastLoginIp']
431
+ @LastModifyTimestamp = params['LastModifyTimestamp']
432
+ @Extension = params['Extension']
433
+ end
434
+ end
435
+
436
+ # 推荐返回的内容信息
437
+ class RecItemData < TencentCloud::Common::AbstractModel
438
+ # @param ItemId: 推荐的内容ID
439
+ # @type ItemId: String
440
+ # @param ItemType: 内容类型,同内容上报类型一致
441
+ # 注意:此字段可能返回 null,表示取不到有效值。
442
+ # @type ItemType: String
443
+ # @param ItemTraceId: 推荐追踪id,本次推荐内容产生的后续行为上报均要用该ItemTraceId上报。每次接口调用返回的ItemTraceId不同
444
+ # 注意:此字段可能返回 null,表示取不到有效值。
445
+ # @type ItemTraceId: String
446
+ # @param Score: 推荐结果分,取值范围[0,1000000]
447
+ # 注意:此字段可能返回 null,表示取不到有效值。
448
+ # @type Score: Float
449
+
450
+ attr_accessor :ItemId, :ItemType, :ItemTraceId, :Score
451
+
452
+ def initialize(itemid=nil, itemtype=nil, itemtraceid=nil, score=nil)
453
+ @ItemId = itemid
454
+ @ItemType = itemtype
455
+ @ItemTraceId = itemtraceid
456
+ @Score = score
457
+ end
458
+
459
+ def deserialize(params)
460
+ @ItemId = params['ItemId']
461
+ @ItemType = params['ItemType']
462
+ @ItemTraceId = params['ItemTraceId']
463
+ @Score = params['Score']
464
+ end
465
+ end
466
+
467
+ # ReportFeedBehavior请求参数结构体
468
+ class ReportFeedBehaviorRequest < TencentCloud::Common::AbstractModel
469
+ # @param InstanceId: 实例ID,在控制台获取
470
+ # @type InstanceId: String
471
+ # @param FeedBehaviorList: 上报的行为数据数组,数量不超过50
472
+ # @type FeedBehaviorList: Array
473
+
474
+ attr_accessor :InstanceId, :FeedBehaviorList
475
+
476
+ def initialize(instanceid=nil, feedbehaviorlist=nil)
477
+ @InstanceId = instanceid
478
+ @FeedBehaviorList = feedbehaviorlist
479
+ end
480
+
481
+ def deserialize(params)
482
+ @InstanceId = params['InstanceId']
483
+ unless params['FeedBehaviorList'].nil?
484
+ @FeedBehaviorList = []
485
+ params['FeedBehaviorList'].each do |i|
486
+ feedbehaviorinfo_tmp = FeedBehaviorInfo.new
487
+ feedbehaviorinfo_tmp.deserialize(i)
488
+ @FeedBehaviorList << feedbehaviorinfo_tmp
489
+ end
490
+ end
491
+ end
492
+ end
493
+
494
+ # ReportFeedBehavior返回参数结构体
495
+ class ReportFeedBehaviorResponse < TencentCloud::Common::AbstractModel
496
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
497
+ # @type RequestId: String
498
+
499
+ attr_accessor :RequestId
500
+
501
+ def initialize(requestid=nil)
502
+ @RequestId = requestid
503
+ end
504
+
505
+ def deserialize(params)
506
+ @RequestId = params['RequestId']
507
+ end
508
+ end
509
+
510
+ # ReportFeedItem请求参数结构体
511
+ class ReportFeedItemRequest < TencentCloud::Common::AbstractModel
512
+ # @param InstanceId: 实例ID,在控制台获取
513
+ # @type InstanceId: String
514
+ # @param FeedItemList: 上报的信息流内容数组,一次数量不超过50
515
+ # @type FeedItemList: Array
516
+
517
+ attr_accessor :InstanceId, :FeedItemList
518
+
519
+ def initialize(instanceid=nil, feeditemlist=nil)
520
+ @InstanceId = instanceid
521
+ @FeedItemList = feeditemlist
522
+ end
523
+
524
+ def deserialize(params)
525
+ @InstanceId = params['InstanceId']
526
+ unless params['FeedItemList'].nil?
527
+ @FeedItemList = []
528
+ params['FeedItemList'].each do |i|
529
+ docitem_tmp = DocItem.new
530
+ docitem_tmp.deserialize(i)
531
+ @FeedItemList << docitem_tmp
532
+ end
533
+ end
534
+ end
535
+ end
536
+
537
+ # ReportFeedItem返回参数结构体
538
+ class ReportFeedItemResponse < TencentCloud::Common::AbstractModel
539
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
540
+ # @type RequestId: String
541
+
542
+ attr_accessor :RequestId
543
+
544
+ def initialize(requestid=nil)
545
+ @RequestId = requestid
546
+ end
547
+
548
+ def deserialize(params)
549
+ @RequestId = params['RequestId']
550
+ end
551
+ end
552
+
553
+ # ReportFeedUser请求参数结构体
554
+ class ReportFeedUserRequest < TencentCloud::Common::AbstractModel
555
+ # @param InstanceId: 实例ID,在控制台获取
556
+ # @type InstanceId: String
557
+ # @param FeedUserList: 上报的用户信息数组,数量不超过50
558
+ # @type FeedUserList: Array
559
+
560
+ attr_accessor :InstanceId, :FeedUserList
561
+
562
+ def initialize(instanceid=nil, feeduserlist=nil)
563
+ @InstanceId = instanceid
564
+ @FeedUserList = feeduserlist
565
+ end
566
+
567
+ def deserialize(params)
568
+ @InstanceId = params['InstanceId']
569
+ unless params['FeedUserList'].nil?
570
+ @FeedUserList = []
571
+ params['FeedUserList'].each do |i|
572
+ feeduserinfo_tmp = FeedUserInfo.new
573
+ feeduserinfo_tmp.deserialize(i)
574
+ @FeedUserList << feeduserinfo_tmp
575
+ end
576
+ end
577
+ end
578
+ end
579
+
580
+ # ReportFeedUser返回参数结构体
581
+ class ReportFeedUserResponse < TencentCloud::Common::AbstractModel
582
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
583
+ # @type RequestId: String
584
+
585
+ attr_accessor :RequestId
586
+
587
+ def initialize(requestid=nil)
588
+ @RequestId = requestid
589
+ end
590
+
591
+ def deserialize(params)
592
+ @RequestId = params['RequestId']
593
+ end
594
+ end
595
+
596
+ # 用户ID信息
597
+ class UserIdInfo < TencentCloud::Common::AbstractModel
598
+ # @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>沟通解决方案)
599
+ # @type Type: String
600
+ # @param Value: 用户ID值
601
+ # @type Value: String
602
+
603
+ attr_accessor :Type, :Value
604
+
605
+ def initialize(type=nil, value=nil)
606
+ @Type = type
607
+ @Value = value
608
+ end
609
+
610
+ def deserialize(params)
611
+ @Type = params['Type']
612
+ @Value = params['Value']
613
+ end
614
+ end
615
+
616
+ end
617
+ end
618
+ end
619
+
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.386
4
+ version: 3.0.387
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-12 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,6 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - lib/v20220805/models.rb
37
+ - lib/v20220805/client.rb
36
38
  - lib/v20220324/models.rb
37
39
  - lib/v20220324/client.rb
38
40
  - lib/tencentcloud-sdk-irp.rb