tencentcloud-sdk-aa 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-aa.rb +11 -0
- data/lib/v20200224/client.rb +108 -0
- data/lib/v20200224/models.rb +953 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 64e4efc3a996b737d7340605b14eea77c602c7f4
|
4
|
+
data.tar.gz: d6af5d43bcb3298d84bce19cccbfd1141f993f04
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 485f997b3aeb249044345a8cb91078ddc096fe15730d647051aba36a2c9939c56260edc379ee85c4ce15ee675ae378f24af7dc7c0c5c2f2e187880665469e2d8
|
7
|
+
data.tar.gz: 0db511a281b7437be6623bf531c85b80a70fe1ab6a83f8ebfb9ee2ba4142c3944374ac687bcbd201b00f510a546f34dbb240cf540e210652f732af5f00eac94a
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,108 @@
|
|
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 Aa
|
21
|
+
module V20200224
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2020-02-24'
|
26
|
+
api_endpoint = 'aa.tencentcloudapi.com'
|
27
|
+
sdk_version = 'AA_' + 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 ManageMarketingRisk.
|
35
|
+
# @type request: :class:`Tencentcloud::aa::V20200224::ManageMarketingRiskRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::aa::V20200224::ManageMarketingRiskResponse`
|
37
|
+
def ManageMarketingRisk(request)
|
38
|
+
body = send_request('ManageMarketingRisk', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ManageMarketingRiskResponse.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
|
+
# 腾讯云活动防刷(ActivityAntiRush,AA)是针对电商、O2O、P2P、游戏、支付等行业在促销活动中遇到“羊毛党”恶意刷取优惠福利的行为时,通过防刷引擎,精准识别出“薅羊毛”恶意行为的活动防刷服务,避免了企业被刷带来的巨大经济损失。
|
57
|
+
|
58
|
+
# @param request: Request instance for QueryActivityAntiRush.
|
59
|
+
# @type request: :class:`Tencentcloud::aa::V20200224::QueryActivityAntiRushRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::aa::V20200224::QueryActivityAntiRushResponse`
|
61
|
+
def QueryActivityAntiRush(request)
|
62
|
+
body = send_request('QueryActivityAntiRush', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = QueryActivityAntiRushResponse.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 QueryActivityAntiRushAdvanced.
|
83
|
+
# @type request: :class:`Tencentcloud::aa::V20200224::QueryActivityAntiRushAdvancedRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::aa::V20200224::QueryActivityAntiRushAdvancedResponse`
|
85
|
+
def QueryActivityAntiRushAdvanced(request)
|
86
|
+
body = send_request('QueryActivityAntiRushAdvanced', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = QueryActivityAntiRushAdvancedResponse.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
|
+
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,953 @@
|
|
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 Aa
|
19
|
+
module V20200224
|
20
|
+
# 账号信息。
|
21
|
+
class AccountInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AccountType: 用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
23
|
+
# 1:QQ开放账号。
|
24
|
+
# 2:微信开放账号。
|
25
|
+
# 4:手机号(暂仅支持国内手机号)。
|
26
|
+
# 8:设备号(imei/imeiMD5/idfa/idfaMd5)。
|
27
|
+
# 0:其他。
|
28
|
+
# 10004:手机号MD5(标准中国大陆手机号11位,MD5后取32位小写值)
|
29
|
+
# @type AccountType: Integer
|
30
|
+
# @param QQAccount: QQ账号信息,AccountType是1时,该字段必填。
|
31
|
+
# @type QQAccount: :class:`Tencentcloud::Aa.v20200224.models.QQAccountInfo`
|
32
|
+
# @param WeChatAccount: 微信账号信息,AccountType是2时,该字段必填。
|
33
|
+
# @type WeChatAccount: :class:`Tencentcloud::Aa.v20200224.models.WeChatAccountInfo`
|
34
|
+
# @param OtherAccount: 其它账号信息,AccountType是0、4、8或10004时,该字段必填。
|
35
|
+
# @type OtherAccount: :class:`Tencentcloud::Aa.v20200224.models.OtherAccountInfo`
|
36
|
+
|
37
|
+
attr_accessor :AccountType, :QQAccount, :WeChatAccount, :OtherAccount
|
38
|
+
|
39
|
+
def initialize(accounttype=nil, qqaccount=nil, wechataccount=nil, otheraccount=nil)
|
40
|
+
@AccountType = accounttype
|
41
|
+
@QQAccount = qqaccount
|
42
|
+
@WeChatAccount = wechataccount
|
43
|
+
@OtherAccount = otheraccount
|
44
|
+
end
|
45
|
+
|
46
|
+
def deserialize(params)
|
47
|
+
@AccountType = params['AccountType']
|
48
|
+
unless params['QQAccount'].nil?
|
49
|
+
@QQAccount = QQAccountInfo.new
|
50
|
+
@QQAccount.deserialize(params['QQAccount'])
|
51
|
+
end
|
52
|
+
unless params['WeChatAccount'].nil?
|
53
|
+
@WeChatAccount = WeChatAccountInfo.new
|
54
|
+
@WeChatAccount.deserialize(params['WeChatAccount'])
|
55
|
+
end
|
56
|
+
unless params['OtherAccount'].nil?
|
57
|
+
@OtherAccount = OtherAccountInfo.new
|
58
|
+
@OtherAccount.deserialize(params['OtherAccount'])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# 网赚防刷相关参数
|
64
|
+
class CrowdAntiRushInfo < TencentCloud::Common::AbstractModel
|
65
|
+
# @param SponsorOpenId: 助力场景建议填写:活动发起人微信OpenID。
|
66
|
+
# @type SponsorOpenId: String
|
67
|
+
# @param SponsorDeviceNumber: 助力场景建议填写:发起人设备号。
|
68
|
+
# @type SponsorDeviceNumber: String
|
69
|
+
# @param SponsorPhone: 助力场景建议填写:发起人手机号。
|
70
|
+
# @type SponsorPhone: String
|
71
|
+
# @param SponsorIp: 助力场景建议填写:发起人IP。
|
72
|
+
# @type SponsorIp: String
|
73
|
+
# @param CampaignUrl: 助力场景建议填写:活动链接。
|
74
|
+
# @type CampaignUrl: String
|
75
|
+
|
76
|
+
attr_accessor :SponsorOpenId, :SponsorDeviceNumber, :SponsorPhone, :SponsorIp, :CampaignUrl
|
77
|
+
|
78
|
+
def initialize(sponsoropenid=nil, sponsordevicenumber=nil, sponsorphone=nil, sponsorip=nil, campaignurl=nil)
|
79
|
+
@SponsorOpenId = sponsoropenid
|
80
|
+
@SponsorDeviceNumber = sponsordevicenumber
|
81
|
+
@SponsorPhone = sponsorphone
|
82
|
+
@SponsorIp = sponsorip
|
83
|
+
@CampaignUrl = campaignurl
|
84
|
+
end
|
85
|
+
|
86
|
+
def deserialize(params)
|
87
|
+
@SponsorOpenId = params['SponsorOpenId']
|
88
|
+
@SponsorDeviceNumber = params['SponsorDeviceNumber']
|
89
|
+
@SponsorPhone = params['SponsorPhone']
|
90
|
+
@SponsorIp = params['SponsorIp']
|
91
|
+
@CampaignUrl = params['CampaignUrl']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# 活动防刷高级版业务入参。
|
96
|
+
class InputActivityAntiRushAdvanced < TencentCloud::Common::AbstractModel
|
97
|
+
# @param Account: 账号信息。
|
98
|
+
# @type Account: :class:`Tencentcloud::Aa.v20200224.models.AccountInfo`
|
99
|
+
# @param UserIp: 用户IP(外网有效IP地址)。
|
100
|
+
# @type UserIp: String
|
101
|
+
# @param PostTime: 用户操作时间戳,单位秒(格林威治时间精确到秒,如1501590972)。
|
102
|
+
# @type PostTime: Integer
|
103
|
+
# @param Sponsor: 可选填写。详情请跳转至SponsorInfo查看。
|
104
|
+
# @type Sponsor: :class:`Tencentcloud::Aa.v20200224.models.SponsorInfo`
|
105
|
+
# @param OnlineScam: 可选填写。详情请跳转至OnlineScamInfo查看。
|
106
|
+
# @type OnlineScam: :class:`Tencentcloud::Aa.v20200224.models.OnlineScamInfo`
|
107
|
+
# @param BusinessId: 业务ID。网站或应用在多个业务中使用此服务,通过此ID区分统计数据。
|
108
|
+
# @type BusinessId: Integer
|
109
|
+
# @param Nickname: 昵称,UTF-8 编码。
|
110
|
+
# @type Nickname: String
|
111
|
+
# @param EmailAddress: 用户邮箱地址(非系统自动生成)。
|
112
|
+
# @type EmailAddress: String
|
113
|
+
# @param CheckDevice: 是否识别设备异常:
|
114
|
+
# 0:不识别。
|
115
|
+
# 1:识别。
|
116
|
+
# @type CheckDevice: Integer
|
117
|
+
# @param CookieHash: 用户HTTP请求中的Cookie进行2次hash的值,只要保证相同Cookie的hash值一致即可。
|
118
|
+
# @type CookieHash: String
|
119
|
+
# @param Referer: 用户HTTP请求的Referer值。
|
120
|
+
# @type Referer: String
|
121
|
+
# @param UserAgent: 用户HTTP请求的User-Agent值。
|
122
|
+
# @type UserAgent: String
|
123
|
+
# @param XForwardedFor: 用户HTTP请求的X-Forwarded-For值。
|
124
|
+
# @type XForwardedFor: String
|
125
|
+
# @param MacAddress: MAC地址或设备唯一标识。
|
126
|
+
# @type MacAddress: String
|
127
|
+
# @param VendorId: 手机制造商ID,如果手机注册,请带上此信息。
|
128
|
+
# @type VendorId: String
|
129
|
+
|
130
|
+
attr_accessor :Account, :UserIp, :PostTime, :Sponsor, :OnlineScam, :BusinessId, :Nickname, :EmailAddress, :CheckDevice, :CookieHash, :Referer, :UserAgent, :XForwardedFor, :MacAddress, :VendorId
|
131
|
+
|
132
|
+
def initialize(account=nil, userip=nil, posttime=nil, sponsor=nil, onlinescam=nil, businessid=nil, nickname=nil, emailaddress=nil, checkdevice=nil, cookiehash=nil, referer=nil, useragent=nil, xforwardedfor=nil, macaddress=nil, vendorid=nil)
|
133
|
+
@Account = account
|
134
|
+
@UserIp = userip
|
135
|
+
@PostTime = posttime
|
136
|
+
@Sponsor = sponsor
|
137
|
+
@OnlineScam = onlinescam
|
138
|
+
@BusinessId = businessid
|
139
|
+
@Nickname = nickname
|
140
|
+
@EmailAddress = emailaddress
|
141
|
+
@CheckDevice = checkdevice
|
142
|
+
@CookieHash = cookiehash
|
143
|
+
@Referer = referer
|
144
|
+
@UserAgent = useragent
|
145
|
+
@XForwardedFor = xforwardedfor
|
146
|
+
@MacAddress = macaddress
|
147
|
+
@VendorId = vendorid
|
148
|
+
end
|
149
|
+
|
150
|
+
def deserialize(params)
|
151
|
+
unless params['Account'].nil?
|
152
|
+
@Account = AccountInfo.new
|
153
|
+
@Account.deserialize(params['Account'])
|
154
|
+
end
|
155
|
+
@UserIp = params['UserIp']
|
156
|
+
@PostTime = params['PostTime']
|
157
|
+
unless params['Sponsor'].nil?
|
158
|
+
@Sponsor = SponsorInfo.new
|
159
|
+
@Sponsor.deserialize(params['Sponsor'])
|
160
|
+
end
|
161
|
+
unless params['OnlineScam'].nil?
|
162
|
+
@OnlineScam = OnlineScamInfo.new
|
163
|
+
@OnlineScam.deserialize(params['OnlineScam'])
|
164
|
+
end
|
165
|
+
@BusinessId = params['BusinessId']
|
166
|
+
@Nickname = params['Nickname']
|
167
|
+
@EmailAddress = params['EmailAddress']
|
168
|
+
@CheckDevice = params['CheckDevice']
|
169
|
+
@CookieHash = params['CookieHash']
|
170
|
+
@Referer = params['Referer']
|
171
|
+
@UserAgent = params['UserAgent']
|
172
|
+
@XForwardedFor = params['XForwardedFor']
|
173
|
+
@MacAddress = params['MacAddress']
|
174
|
+
@VendorId = params['VendorId']
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# 入参的详细参数信息
|
179
|
+
class InputDetails < TencentCloud::Common::AbstractModel
|
180
|
+
# @param FieldName: 字段名称
|
181
|
+
# @type FieldName: String
|
182
|
+
# @param FieldValue: 字段值
|
183
|
+
# @type FieldValue: String
|
184
|
+
|
185
|
+
attr_accessor :FieldName, :FieldValue
|
186
|
+
|
187
|
+
def initialize(fieldname=nil, fieldvalue=nil)
|
188
|
+
@FieldName = fieldname
|
189
|
+
@FieldValue = fieldvalue
|
190
|
+
end
|
191
|
+
|
192
|
+
def deserialize(params)
|
193
|
+
@FieldName = params['FieldName']
|
194
|
+
@FieldValue = params['FieldValue']
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# 营销风控入参
|
199
|
+
class InputManageMarketingRisk < TencentCloud::Common::AbstractModel
|
200
|
+
# @param Account: 账号信息。
|
201
|
+
# @type Account: :class:`Tencentcloud::Aa.v20200224.models.AccountInfo`
|
202
|
+
# @param UserIp: 登录来源的外网IP
|
203
|
+
# @type UserIp: String
|
204
|
+
# @param PostTime: 用户操作时间戳,单位秒(格林威治时间精确到秒,如1501590972)。
|
205
|
+
# @type PostTime: Integer
|
206
|
+
# @param SceneType: 场景类型。(后续不再支持,请使用SceneCode字段)
|
207
|
+
# 1:活动防刷
|
208
|
+
# 2:登录保护
|
209
|
+
# 3:注册保护
|
210
|
+
# 4:活动防刷高级版(网赚)
|
211
|
+
# @type SceneType: Integer
|
212
|
+
# @param UserId: 用户唯一标识。
|
213
|
+
# @type UserId: String
|
214
|
+
# @param DeviceToken: 设备指纹token。
|
215
|
+
# @type DeviceToken: String
|
216
|
+
# @param DeviceBusinessId: 设备指纹BusinessId
|
217
|
+
# @type DeviceBusinessId: Integer
|
218
|
+
# @param BusinessId: 业务ID。网站或应用在多个业务中使用此服务,通过此ID区分统计数据。
|
219
|
+
# @type BusinessId: Integer
|
220
|
+
# @param Nickname: 昵称,UTF-8 编码。
|
221
|
+
# @type Nickname: String
|
222
|
+
# @param EmailAddress: 用户邮箱地址(非系统自动生成)。
|
223
|
+
# @type EmailAddress: String
|
224
|
+
# @param CheckDevice: 是否识别设备异常:
|
225
|
+
# 0:不识别。
|
226
|
+
# 1:识别。
|
227
|
+
# @type CheckDevice: Integer
|
228
|
+
# @param CookieHash: 用户HTTP请求中的Cookie进行2次hash的值,只要保证相同Cookie的hash值一致即可。
|
229
|
+
# @type CookieHash: String
|
230
|
+
# @param Referer: 用户HTTP请求的Referer值。
|
231
|
+
# @type Referer: String
|
232
|
+
# @param UserAgent: 用户HTTP请求的User-Agent值。
|
233
|
+
# @type UserAgent: String
|
234
|
+
# @param XForwardedFor: 用户HTTP请求的X-Forwarded-For值。
|
235
|
+
# @type XForwardedFor: String
|
236
|
+
# @param MacAddress: MAC地址或设备唯一标识。
|
237
|
+
# @type MacAddress: String
|
238
|
+
# @param CrowdAntiRush: 网赚防刷相关信息。SceneType为4时填写。
|
239
|
+
# @type CrowdAntiRush: :class:`Tencentcloud::Aa.v20200224.models.CrowdAntiRushInfo`
|
240
|
+
# @param SceneCode: 场景Code,控制台上获取
|
241
|
+
# @type SceneCode: String
|
242
|
+
# @param Details: 详细信息
|
243
|
+
# @type Details: Array
|
244
|
+
# @param DeviceType: 设备类型:
|
245
|
+
# 1:Android
|
246
|
+
# 2:IOS
|
247
|
+
# @type DeviceType: Integer
|
248
|
+
|
249
|
+
attr_accessor :Account, :UserIp, :PostTime, :SceneType, :UserId, :DeviceToken, :DeviceBusinessId, :BusinessId, :Nickname, :EmailAddress, :CheckDevice, :CookieHash, :Referer, :UserAgent, :XForwardedFor, :MacAddress, :CrowdAntiRush, :SceneCode, :Details, :DeviceType
|
250
|
+
|
251
|
+
def initialize(account=nil, userip=nil, posttime=nil, scenetype=nil, userid=nil, devicetoken=nil, devicebusinessid=nil, businessid=nil, nickname=nil, emailaddress=nil, checkdevice=nil, cookiehash=nil, referer=nil, useragent=nil, xforwardedfor=nil, macaddress=nil, crowdantirush=nil, scenecode=nil, details=nil, devicetype=nil)
|
252
|
+
@Account = account
|
253
|
+
@UserIp = userip
|
254
|
+
@PostTime = posttime
|
255
|
+
@SceneType = scenetype
|
256
|
+
@UserId = userid
|
257
|
+
@DeviceToken = devicetoken
|
258
|
+
@DeviceBusinessId = devicebusinessid
|
259
|
+
@BusinessId = businessid
|
260
|
+
@Nickname = nickname
|
261
|
+
@EmailAddress = emailaddress
|
262
|
+
@CheckDevice = checkdevice
|
263
|
+
@CookieHash = cookiehash
|
264
|
+
@Referer = referer
|
265
|
+
@UserAgent = useragent
|
266
|
+
@XForwardedFor = xforwardedfor
|
267
|
+
@MacAddress = macaddress
|
268
|
+
@CrowdAntiRush = crowdantirush
|
269
|
+
@SceneCode = scenecode
|
270
|
+
@Details = details
|
271
|
+
@DeviceType = devicetype
|
272
|
+
end
|
273
|
+
|
274
|
+
def deserialize(params)
|
275
|
+
unless params['Account'].nil?
|
276
|
+
@Account = AccountInfo.new
|
277
|
+
@Account.deserialize(params['Account'])
|
278
|
+
end
|
279
|
+
@UserIp = params['UserIp']
|
280
|
+
@PostTime = params['PostTime']
|
281
|
+
@SceneType = params['SceneType']
|
282
|
+
@UserId = params['UserId']
|
283
|
+
@DeviceToken = params['DeviceToken']
|
284
|
+
@DeviceBusinessId = params['DeviceBusinessId']
|
285
|
+
@BusinessId = params['BusinessId']
|
286
|
+
@Nickname = params['Nickname']
|
287
|
+
@EmailAddress = params['EmailAddress']
|
288
|
+
@CheckDevice = params['CheckDevice']
|
289
|
+
@CookieHash = params['CookieHash']
|
290
|
+
@Referer = params['Referer']
|
291
|
+
@UserAgent = params['UserAgent']
|
292
|
+
@XForwardedFor = params['XForwardedFor']
|
293
|
+
@MacAddress = params['MacAddress']
|
294
|
+
unless params['CrowdAntiRush'].nil?
|
295
|
+
@CrowdAntiRush = CrowdAntiRushInfo.new
|
296
|
+
@CrowdAntiRush.deserialize(params['CrowdAntiRush'])
|
297
|
+
end
|
298
|
+
@SceneCode = params['SceneCode']
|
299
|
+
unless params['Details'].nil?
|
300
|
+
@Details = []
|
301
|
+
params['Details'].each do |i|
|
302
|
+
inputdetails_tmp = InputDetails.new
|
303
|
+
inputdetails_tmp.deserialize(i)
|
304
|
+
@Details << inputdetails_tmp
|
305
|
+
end
|
306
|
+
end
|
307
|
+
@DeviceType = params['DeviceType']
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
# ManageMarketingRisk请求参数结构体
|
312
|
+
class ManageMarketingRiskRequest < TencentCloud::Common::AbstractModel
|
313
|
+
# @param BusinessSecurityData: 业务入参
|
314
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Aa.v20200224.models.InputManageMarketingRisk`
|
315
|
+
|
316
|
+
attr_accessor :BusinessSecurityData
|
317
|
+
|
318
|
+
def initialize(businesssecuritydata=nil)
|
319
|
+
@BusinessSecurityData = businesssecuritydata
|
320
|
+
end
|
321
|
+
|
322
|
+
def deserialize(params)
|
323
|
+
unless params['BusinessSecurityData'].nil?
|
324
|
+
@BusinessSecurityData = InputManageMarketingRisk.new
|
325
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
326
|
+
end
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# ManageMarketingRisk返回参数结构体
|
331
|
+
class ManageMarketingRiskResponse < TencentCloud::Common::AbstractModel
|
332
|
+
# @param Data: 业务出参
|
333
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
334
|
+
# @type Data: :class:`Tencentcloud::Aa.v20200224.models.OutputManageMarketingRisk`
|
335
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
336
|
+
# @type RequestId: String
|
337
|
+
|
338
|
+
attr_accessor :Data, :RequestId
|
339
|
+
|
340
|
+
def initialize(data=nil, requestid=nil)
|
341
|
+
@Data = data
|
342
|
+
@RequestId = requestid
|
343
|
+
end
|
344
|
+
|
345
|
+
def deserialize(params)
|
346
|
+
unless params['Data'].nil?
|
347
|
+
@Data = OutputManageMarketingRisk.new
|
348
|
+
@Data.deserialize(params['Data'])
|
349
|
+
end
|
350
|
+
@RequestId = params['RequestId']
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
# 诈骗信息。
|
355
|
+
class OnlineScamInfo < TencentCloud::Common::AbstractModel
|
356
|
+
# @param ContentLabel: 内容标签。
|
357
|
+
# @type ContentLabel: String
|
358
|
+
# @param ContentRiskLevel: 内容风险等级:
|
359
|
+
# 0:正常。
|
360
|
+
# 1:可疑。
|
361
|
+
# @type ContentRiskLevel: Integer
|
362
|
+
# @param ContentType: 内容产生形式:
|
363
|
+
# 0:对话。
|
364
|
+
# 1:广播。
|
365
|
+
# @type ContentType: Integer
|
366
|
+
# @param FraudType: 诈骗账号类型:
|
367
|
+
# 1:11位手机号。
|
368
|
+
# 2:QQ账号。
|
369
|
+
# @type FraudType: Integer
|
370
|
+
# @param FraudAccount: 诈骗账号,手机号或QQ账号。
|
371
|
+
# @type FraudAccount: String
|
372
|
+
|
373
|
+
attr_accessor :ContentLabel, :ContentRiskLevel, :ContentType, :FraudType, :FraudAccount
|
374
|
+
|
375
|
+
def initialize(contentlabel=nil, contentrisklevel=nil, contenttype=nil, fraudtype=nil, fraudaccount=nil)
|
376
|
+
@ContentLabel = contentlabel
|
377
|
+
@ContentRiskLevel = contentrisklevel
|
378
|
+
@ContentType = contenttype
|
379
|
+
@FraudType = fraudtype
|
380
|
+
@FraudAccount = fraudaccount
|
381
|
+
end
|
382
|
+
|
383
|
+
def deserialize(params)
|
384
|
+
@ContentLabel = params['ContentLabel']
|
385
|
+
@ContentRiskLevel = params['ContentRiskLevel']
|
386
|
+
@ContentType = params['ContentType']
|
387
|
+
@FraudType = params['FraudType']
|
388
|
+
@FraudAccount = params['FraudAccount']
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# 其它账号信息。
|
393
|
+
class OtherAccountInfo < TencentCloud::Common::AbstractModel
|
394
|
+
# @param AccountId: 其它账号信息:
|
395
|
+
# AccountType是4时,填入真实的手机号(如13123456789)。
|
396
|
+
# AccountType是8时,支持 imei、idfa、imeiMD5、idfaMD5 入参。
|
397
|
+
# AccountType是0时,填入账号信息。
|
398
|
+
# AccountType是10004时,填入手机号的MD5值。
|
399
|
+
# 注:imeiMd5 加密方式为:imei 明文小写后,进行 MD5 加密,加密后取小写值。IdfaMd5 加密方式为:idfa 明文大写后,进行 MD5 加密,加密后取小写值。
|
400
|
+
# @type AccountId: String
|
401
|
+
# @param MobilePhone: 手机号,若 AccountType 是4(手机号)、或10004(手机号 MD5),则无需重复填写,否则填入对应的手机号(如13123456789)。
|
402
|
+
# @type MobilePhone: String
|
403
|
+
# @param DeviceId: 用户设备号。若 AccountType 是8(设备号),则无需重复填写,否则填入对应的设备号。
|
404
|
+
# @type DeviceId: String
|
405
|
+
|
406
|
+
attr_accessor :AccountId, :MobilePhone, :DeviceId
|
407
|
+
|
408
|
+
def initialize(accountid=nil, mobilephone=nil, deviceid=nil)
|
409
|
+
@AccountId = accountid
|
410
|
+
@MobilePhone = mobilephone
|
411
|
+
@DeviceId = deviceid
|
412
|
+
end
|
413
|
+
|
414
|
+
def deserialize(params)
|
415
|
+
@AccountId = params['AccountId']
|
416
|
+
@MobilePhone = params['MobilePhone']
|
417
|
+
@DeviceId = params['DeviceId']
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
# 活动防刷高级版业务出参。
|
422
|
+
class OutputActivityAntiRushAdvanced < TencentCloud::Common::AbstractModel
|
423
|
+
# @param Code: 返回码。0表示成功,非0标识失败错误码。
|
424
|
+
# @type Code: Integer
|
425
|
+
# @param Message: UTF-8编码,出错消息。
|
426
|
+
# @type Message: String
|
427
|
+
# @param Value: 服务调用结果。
|
428
|
+
# @type Value: :class:`Tencentcloud::Aa.v20200224.models.OutputActivityAntiRushAdvancedValue`
|
429
|
+
|
430
|
+
attr_accessor :Code, :Message, :Value
|
431
|
+
|
432
|
+
def initialize(code=nil, message=nil, value=nil)
|
433
|
+
@Code = code
|
434
|
+
@Message = message
|
435
|
+
@Value = value
|
436
|
+
end
|
437
|
+
|
438
|
+
def deserialize(params)
|
439
|
+
@Code = params['Code']
|
440
|
+
@Message = params['Message']
|
441
|
+
unless params['Value'].nil?
|
442
|
+
@Value = OutputActivityAntiRushAdvancedValue.new
|
443
|
+
@Value.deserialize(params['Value'])
|
444
|
+
end
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
# 活动防刷高级版业务出参。
|
449
|
+
class OutputActivityAntiRushAdvancedValue < TencentCloud::Common::AbstractModel
|
450
|
+
# @param UserId: 账号ID。对应输入参数:
|
451
|
+
# AccountType是1时,对应QQ的OpenID。
|
452
|
+
# AccountType是2时,对应微信的OpenID/UnionID。
|
453
|
+
# AccountType是4时,对应手机号。
|
454
|
+
# AccountType是8时,对应imei、idfa、imeiMD5或者idfaMD5。
|
455
|
+
# AccountType是0时,对应账号信息。
|
456
|
+
# AccountType是10004时,对应手机号的MD5。
|
457
|
+
# @type UserId: String
|
458
|
+
# @param PostTime: 操作时间戳,单位秒(对应输入参数)。
|
459
|
+
# @type PostTime: Integer
|
460
|
+
# @param AssociateAccount: AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID(对应输入参数)。
|
461
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
462
|
+
# @type AssociateAccount: String
|
463
|
+
# @param UserIp: 操作来源的外网IP(对应输入参数)。
|
464
|
+
# @type UserIp: String
|
465
|
+
# @param Level: 风险值:
|
466
|
+
# 0:表示无恶意。
|
467
|
+
# 1~4:恶意等级由低到高。
|
468
|
+
# @type Level: Integer
|
469
|
+
# @param RiskType: 风险类型,详情请参见下文RiskType详细说明。
|
470
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
471
|
+
# @type RiskType: Array
|
472
|
+
|
473
|
+
attr_accessor :UserId, :PostTime, :AssociateAccount, :UserIp, :Level, :RiskType
|
474
|
+
|
475
|
+
def initialize(userid=nil, posttime=nil, associateaccount=nil, userip=nil, level=nil, risktype=nil)
|
476
|
+
@UserId = userid
|
477
|
+
@PostTime = posttime
|
478
|
+
@AssociateAccount = associateaccount
|
479
|
+
@UserIp = userip
|
480
|
+
@Level = level
|
481
|
+
@RiskType = risktype
|
482
|
+
end
|
483
|
+
|
484
|
+
def deserialize(params)
|
485
|
+
@UserId = params['UserId']
|
486
|
+
@PostTime = params['PostTime']
|
487
|
+
@AssociateAccount = params['AssociateAccount']
|
488
|
+
@UserIp = params['UserIp']
|
489
|
+
@Level = params['Level']
|
490
|
+
@RiskType = params['RiskType']
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
494
|
+
# 影响风控出参
|
495
|
+
class OutputManageMarketingRisk < TencentCloud::Common::AbstractModel
|
496
|
+
# @param Code: 返回码。0表示成功,非0标识失败错误码。
|
497
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
498
|
+
# @type Code: Integer
|
499
|
+
# @param Message: UTF-8编码,出错消息。
|
500
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
501
|
+
# @type Message: String
|
502
|
+
# @param Value: 业务详情。
|
503
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
504
|
+
# @type Value: :class:`Tencentcloud::Aa.v20200224.models.OutputManageMarketingRiskValue`
|
505
|
+
|
506
|
+
attr_accessor :Code, :Message, :Value
|
507
|
+
|
508
|
+
def initialize(code=nil, message=nil, value=nil)
|
509
|
+
@Code = code
|
510
|
+
@Message = message
|
511
|
+
@Value = value
|
512
|
+
end
|
513
|
+
|
514
|
+
def deserialize(params)
|
515
|
+
@Code = params['Code']
|
516
|
+
@Message = params['Message']
|
517
|
+
unless params['Value'].nil?
|
518
|
+
@Value = OutputManageMarketingRiskValue.new
|
519
|
+
@Value.deserialize(params['Value'])
|
520
|
+
end
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
# 营销风控出参值
|
525
|
+
class OutputManageMarketingRiskValue < TencentCloud::Common::AbstractModel
|
526
|
+
# @param UserId: 账号ID。对应输入参数:
|
527
|
+
# AccountType是1时,对应QQ的OpenID。
|
528
|
+
# AccountType是2时,对应微信的OpenID/UnionID。
|
529
|
+
# AccountType是4时,对应手机号。
|
530
|
+
# AccountType是8时,对应imei、idfa、imeiMD5或者idfaMD5。
|
531
|
+
# AccountType是0时,对应账号信息。
|
532
|
+
# AccountType是10004时,对应手机号的MD5。
|
533
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
534
|
+
# @type UserId: String
|
535
|
+
# @param PostTime: 操作时间戳,单位秒(对应输入参数)。
|
536
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
537
|
+
# @type PostTime: Integer
|
538
|
+
# @param AssociateAccount: 对应输入参数,AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID。
|
539
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
540
|
+
# @type AssociateAccount: String
|
541
|
+
# @param UserIp: 操作来源的外网IP(对应输入参数)。
|
542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
543
|
+
# @type UserIp: String
|
544
|
+
# @param RiskLevel: 风险值
|
545
|
+
# pass : 无恶意
|
546
|
+
# review:需要人工审核
|
547
|
+
# reject:拒绝,高风险恶意
|
548
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
549
|
+
# @type RiskLevel: String
|
550
|
+
# @param RiskType: 风险类型,请参考官网风险类型
|
551
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
552
|
+
# @type RiskType: Array
|
553
|
+
|
554
|
+
attr_accessor :UserId, :PostTime, :AssociateAccount, :UserIp, :RiskLevel, :RiskType
|
555
|
+
|
556
|
+
def initialize(userid=nil, posttime=nil, associateaccount=nil, userip=nil, risklevel=nil, risktype=nil)
|
557
|
+
@UserId = userid
|
558
|
+
@PostTime = posttime
|
559
|
+
@AssociateAccount = associateaccount
|
560
|
+
@UserIp = userip
|
561
|
+
@RiskLevel = risklevel
|
562
|
+
@RiskType = risktype
|
563
|
+
end
|
564
|
+
|
565
|
+
def deserialize(params)
|
566
|
+
@UserId = params['UserId']
|
567
|
+
@PostTime = params['PostTime']
|
568
|
+
@AssociateAccount = params['AssociateAccount']
|
569
|
+
@UserIp = params['UserIp']
|
570
|
+
@RiskLevel = params['RiskLevel']
|
571
|
+
@RiskType = params['RiskType']
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
575
|
+
# QQ账号信息。
|
576
|
+
class QQAccountInfo < TencentCloud::Common::AbstractModel
|
577
|
+
# @param QQOpenId: QQ的OpenID。
|
578
|
+
# @type QQOpenId: String
|
579
|
+
# @param AppIdUser: QQ分配给网站或应用的AppId,用来唯一标识网站或应用。
|
580
|
+
# @type AppIdUser: String
|
581
|
+
# @param AssociateAccount: 用于标识QQ用户登录后所关联业务自身的账号ID。
|
582
|
+
# @type AssociateAccount: String
|
583
|
+
# @param MobilePhone: 账号绑定的手机号。
|
584
|
+
# @type MobilePhone: String
|
585
|
+
# @param DeviceId: 用户设备号。
|
586
|
+
# @type DeviceId: String
|
587
|
+
|
588
|
+
attr_accessor :QQOpenId, :AppIdUser, :AssociateAccount, :MobilePhone, :DeviceId
|
589
|
+
|
590
|
+
def initialize(qqopenid=nil, appiduser=nil, associateaccount=nil, mobilephone=nil, deviceid=nil)
|
591
|
+
@QQOpenId = qqopenid
|
592
|
+
@AppIdUser = appiduser
|
593
|
+
@AssociateAccount = associateaccount
|
594
|
+
@MobilePhone = mobilephone
|
595
|
+
@DeviceId = deviceid
|
596
|
+
end
|
597
|
+
|
598
|
+
def deserialize(params)
|
599
|
+
@QQOpenId = params['QQOpenId']
|
600
|
+
@AppIdUser = params['AppIdUser']
|
601
|
+
@AssociateAccount = params['AssociateAccount']
|
602
|
+
@MobilePhone = params['MobilePhone']
|
603
|
+
@DeviceId = params['DeviceId']
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# QueryActivityAntiRushAdvanced请求参数结构体
|
608
|
+
class QueryActivityAntiRushAdvancedRequest < TencentCloud::Common::AbstractModel
|
609
|
+
# @param BusinessSecurityData: 业务入参
|
610
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Aa.v20200224.models.InputActivityAntiRushAdvanced`
|
611
|
+
|
612
|
+
attr_accessor :BusinessSecurityData
|
613
|
+
|
614
|
+
def initialize(businesssecuritydata=nil)
|
615
|
+
@BusinessSecurityData = businesssecuritydata
|
616
|
+
end
|
617
|
+
|
618
|
+
def deserialize(params)
|
619
|
+
unless params['BusinessSecurityData'].nil?
|
620
|
+
@BusinessSecurityData = InputActivityAntiRushAdvanced.new
|
621
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
622
|
+
end
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
# QueryActivityAntiRushAdvanced返回参数结构体
|
627
|
+
class QueryActivityAntiRushAdvancedResponse < TencentCloud::Common::AbstractModel
|
628
|
+
# @param Data: 结果信息
|
629
|
+
# @type Data: :class:`Tencentcloud::Aa.v20200224.models.OutputActivityAntiRushAdvanced`
|
630
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
631
|
+
# @type RequestId: String
|
632
|
+
|
633
|
+
attr_accessor :Data, :RequestId
|
634
|
+
|
635
|
+
def initialize(data=nil, requestid=nil)
|
636
|
+
@Data = data
|
637
|
+
@RequestId = requestid
|
638
|
+
end
|
639
|
+
|
640
|
+
def deserialize(params)
|
641
|
+
unless params['Data'].nil?
|
642
|
+
@Data = OutputActivityAntiRushAdvanced.new
|
643
|
+
@Data.deserialize(params['Data'])
|
644
|
+
end
|
645
|
+
@RequestId = params['RequestId']
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
649
|
+
# QueryActivityAntiRush请求参数结构体
|
650
|
+
class QueryActivityAntiRushRequest < TencentCloud::Common::AbstractModel
|
651
|
+
# @param AccountType: 账号类型
|
652
|
+
# @type AccountType: String
|
653
|
+
# @param Uid: uid值
|
654
|
+
# @type Uid: String
|
655
|
+
# @param UserIp: 用户的真实外网 IP。若填入非外网有效ip,会返回level=0的风控结果,risktype中会有205的风险码返回作为标识
|
656
|
+
# @type UserIp: String
|
657
|
+
# @param PostTime: 用户操作时间戳。
|
658
|
+
# @type PostTime: String
|
659
|
+
# @param AppIdU: accountType 是QQ开放账号时,该参数必填,表示 QQ 开放平台分配给网站或应用的 AppID,用来唯一标识网站或应用。
|
660
|
+
# @type AppIdU: String
|
661
|
+
# @param NickName: 昵称,UTF-8 编码。
|
662
|
+
# @type NickName: String
|
663
|
+
# @param PhoneNumber: 手机号
|
664
|
+
# @type PhoneNumber: String
|
665
|
+
# @param EmailAddress: 用户邮箱地址。
|
666
|
+
# @type EmailAddress: String
|
667
|
+
# @param RegisterTime: 注册时间戳。
|
668
|
+
# @type RegisterTime: String
|
669
|
+
# @param RegisterIp: 注册来源的外网 IP。
|
670
|
+
# @type RegisterIp: String
|
671
|
+
# @param CookieHash: 用户 HTTP 请求中的 cookie 进行2次 hash 的值,只要保证相同 cookie 的 hash 值一致即可。
|
672
|
+
# @type CookieHash: String
|
673
|
+
# @param Address: 地址。
|
674
|
+
# @type Address: String
|
675
|
+
# @param LoginSource: 登录来源:
|
676
|
+
# 0:其他。
|
677
|
+
# 1:PC 网页。
|
678
|
+
# 2:移动页面。
|
679
|
+
# 3:App。
|
680
|
+
# 4:微信公众号。
|
681
|
+
# @type LoginSource: String
|
682
|
+
# @param LoginType: 登录方式:
|
683
|
+
# 0:其他。
|
684
|
+
# 1:手动账号密码输入。
|
685
|
+
# 2:动态短信密码登录。
|
686
|
+
# 3:二维码扫描登录。
|
687
|
+
# @type LoginType: String
|
688
|
+
# @param LoginSpend: 登录耗时,单位:秒。
|
689
|
+
# @type LoginSpend: String
|
690
|
+
# @param RootId: 用户操作的目的 ID,如点赞等,该字段就是被点赞的消息 ID,如果是投票,则为被投号码的 ID。
|
691
|
+
# @type RootId: String
|
692
|
+
# @param Referer: 用户 HTTP 请求的 referer 值。
|
693
|
+
# @type Referer: String
|
694
|
+
# @param JumpUrl: 登录成功后跳转页面。
|
695
|
+
# @type JumpUrl: String
|
696
|
+
# @param UserAgent: 用户 HTTP 请求的 userAgent。
|
697
|
+
# @type UserAgent: String
|
698
|
+
# @param XForwardedFor: 用户 HTTP 请求中的 x_forward_for。
|
699
|
+
# @type XForwardedFor: String
|
700
|
+
# @param MouseClickCount: 用户操作过程中鼠标单击次数。
|
701
|
+
# @type MouseClickCount: String
|
702
|
+
# @param KeyboardClickCount: 用户操作过程中键盘单击次数。
|
703
|
+
# @type KeyboardClickCount: String
|
704
|
+
# @param MacAddress: MAC 地址或设备唯一标识。
|
705
|
+
# @type MacAddress: String
|
706
|
+
# @param VendorId: 手机制造商 ID,如果手机注册,请带上此信息。
|
707
|
+
# @type VendorId: String
|
708
|
+
# @param Imei: 手机设备号。支持以下格式:
|
709
|
+
# 1.imei明文
|
710
|
+
# 2.idfa明文,
|
711
|
+
# 3.imei小写后MD5值小写
|
712
|
+
# 4.idfa大写后MD5值小写
|
713
|
+
# @type Imei: String
|
714
|
+
# @param AppVersion: App 客户端版本。
|
715
|
+
# @type AppVersion: String
|
716
|
+
# @param BusinessId: 业务 ID 网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据。
|
717
|
+
# @type BusinessId: String
|
718
|
+
# @param WxSubType: 1:微信公众号。
|
719
|
+
# 2:微信小程序。
|
720
|
+
# @type WxSubType: String
|
721
|
+
# @param RandNum: Token 签名随机数,WxSubType为微信小程序时必填,建议16个字符。
|
722
|
+
# @type RandNum: String
|
723
|
+
# @param WxToken: token
|
724
|
+
# @type WxToken: String
|
725
|
+
# @param CheckDevice: 是否识别设备异常:
|
726
|
+
# 0:不识别。
|
727
|
+
# 1:识别。
|
728
|
+
# @type CheckDevice: String
|
729
|
+
|
730
|
+
attr_accessor :AccountType, :Uid, :UserIp, :PostTime, :AppIdU, :NickName, :PhoneNumber, :EmailAddress, :RegisterTime, :RegisterIp, :CookieHash, :Address, :LoginSource, :LoginType, :LoginSpend, :RootId, :Referer, :JumpUrl, :UserAgent, :XForwardedFor, :MouseClickCount, :KeyboardClickCount, :MacAddress, :VendorId, :Imei, :AppVersion, :BusinessId, :WxSubType, :RandNum, :WxToken, :CheckDevice
|
731
|
+
|
732
|
+
def initialize(accounttype=nil, uid=nil, userip=nil, posttime=nil, appidu=nil, nickname=nil, phonenumber=nil, emailaddress=nil, registertime=nil, registerip=nil, cookiehash=nil, address=nil, loginsource=nil, logintype=nil, loginspend=nil, rootid=nil, referer=nil, jumpurl=nil, useragent=nil, xforwardedfor=nil, mouseclickcount=nil, keyboardclickcount=nil, macaddress=nil, vendorid=nil, imei=nil, appversion=nil, businessid=nil, wxsubtype=nil, randnum=nil, wxtoken=nil, checkdevice=nil)
|
733
|
+
@AccountType = accounttype
|
734
|
+
@Uid = uid
|
735
|
+
@UserIp = userip
|
736
|
+
@PostTime = posttime
|
737
|
+
@AppIdU = appidu
|
738
|
+
@NickName = nickname
|
739
|
+
@PhoneNumber = phonenumber
|
740
|
+
@EmailAddress = emailaddress
|
741
|
+
@RegisterTime = registertime
|
742
|
+
@RegisterIp = registerip
|
743
|
+
@CookieHash = cookiehash
|
744
|
+
@Address = address
|
745
|
+
@LoginSource = loginsource
|
746
|
+
@LoginType = logintype
|
747
|
+
@LoginSpend = loginspend
|
748
|
+
@RootId = rootid
|
749
|
+
@Referer = referer
|
750
|
+
@JumpUrl = jumpurl
|
751
|
+
@UserAgent = useragent
|
752
|
+
@XForwardedFor = xforwardedfor
|
753
|
+
@MouseClickCount = mouseclickcount
|
754
|
+
@KeyboardClickCount = keyboardclickcount
|
755
|
+
@MacAddress = macaddress
|
756
|
+
@VendorId = vendorid
|
757
|
+
@Imei = imei
|
758
|
+
@AppVersion = appversion
|
759
|
+
@BusinessId = businessid
|
760
|
+
@WxSubType = wxsubtype
|
761
|
+
@RandNum = randnum
|
762
|
+
@WxToken = wxtoken
|
763
|
+
@CheckDevice = checkdevice
|
764
|
+
end
|
765
|
+
|
766
|
+
def deserialize(params)
|
767
|
+
@AccountType = params['AccountType']
|
768
|
+
@Uid = params['Uid']
|
769
|
+
@UserIp = params['UserIp']
|
770
|
+
@PostTime = params['PostTime']
|
771
|
+
@AppIdU = params['AppIdU']
|
772
|
+
@NickName = params['NickName']
|
773
|
+
@PhoneNumber = params['PhoneNumber']
|
774
|
+
@EmailAddress = params['EmailAddress']
|
775
|
+
@RegisterTime = params['RegisterTime']
|
776
|
+
@RegisterIp = params['RegisterIp']
|
777
|
+
@CookieHash = params['CookieHash']
|
778
|
+
@Address = params['Address']
|
779
|
+
@LoginSource = params['LoginSource']
|
780
|
+
@LoginType = params['LoginType']
|
781
|
+
@LoginSpend = params['LoginSpend']
|
782
|
+
@RootId = params['RootId']
|
783
|
+
@Referer = params['Referer']
|
784
|
+
@JumpUrl = params['JumpUrl']
|
785
|
+
@UserAgent = params['UserAgent']
|
786
|
+
@XForwardedFor = params['XForwardedFor']
|
787
|
+
@MouseClickCount = params['MouseClickCount']
|
788
|
+
@KeyboardClickCount = params['KeyboardClickCount']
|
789
|
+
@MacAddress = params['MacAddress']
|
790
|
+
@VendorId = params['VendorId']
|
791
|
+
@Imei = params['Imei']
|
792
|
+
@AppVersion = params['AppVersion']
|
793
|
+
@BusinessId = params['BusinessId']
|
794
|
+
@WxSubType = params['WxSubType']
|
795
|
+
@RandNum = params['RandNum']
|
796
|
+
@WxToken = params['WxToken']
|
797
|
+
@CheckDevice = params['CheckDevice']
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
# QueryActivityAntiRush返回参数结构体
|
802
|
+
class QueryActivityAntiRushResponse < TencentCloud::Common::AbstractModel
|
803
|
+
# @param PostTime: 操作时间戳,单位:秒。
|
804
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
805
|
+
# @type PostTime: String
|
806
|
+
# @param UserIp: 用户操作的真实外网 IP。
|
807
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
808
|
+
# @type UserIp: String
|
809
|
+
# @param Level: 0:表示无恶意。
|
810
|
+
# 1 - 4:恶意等级由低到高。
|
811
|
+
# @type Level: Integer
|
812
|
+
# @param RiskType: 风险类型。
|
813
|
+
|
814
|
+
# 账号风险:
|
815
|
+
|
816
|
+
# 1,账号信用低,账号近期存在因恶意被处罚历史,网络低活跃,被举报等因素;
|
817
|
+
# 2,垃圾账号,疑似批量注册小号,近期存在严重违规或大量举报;
|
818
|
+
# 3,无效账号,送检账号参数无法成功解析,请检查微信openid是否有误 ,QQopenid是否与appidU对应,手机号是否有误。
|
819
|
+
# 4,黑名单,该账号在业务侧有过拉黑记录
|
820
|
+
# 5,白名单,该账号在业务侧有过加白名单记录
|
821
|
+
|
822
|
+
# 行为风险:
|
823
|
+
# 101,批量操作,存在ip/设备/环境等因素的聚集性异常;
|
824
|
+
# 102,自动机,疑似自动机批量请求;
|
825
|
+
# 104,微信登录态无效,检查wxToken参数,是否已经失效;
|
826
|
+
|
827
|
+
# 环境风险:
|
828
|
+
# 201,环境异常,操作ip/设备/环境存在异常。当前ip为非常用ip或恶意ip段;
|
829
|
+
# 205,非公网有效ip,传进来的IP地址为内网ip地址或者ip保留地址;
|
830
|
+
# 206,设备异常,该设备存在异常的使用行为
|
831
|
+
# @type RiskType: Array
|
832
|
+
# @param AssociateAccount: accountType是QQ或微信开放账号时,用于标识QQ或微信用户登录后关联业务自身的账号ID
|
833
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
834
|
+
# @type AssociateAccount: String
|
835
|
+
# @param Uid: uid值
|
836
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
837
|
+
# @type Uid: String
|
838
|
+
# @param RootId: 用户操作的目的ID
|
839
|
+
# 比如:点赞,该字段就是被点 赞的消息 id,如果是投票,就是被投号码的 ID
|
840
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
841
|
+
# @type RootId: String
|
842
|
+
# @param CodeDesc: 业务侧错误码。成功时返回Success,错误时返回具体业务错误原因。
|
843
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
844
|
+
# @type CodeDesc: String
|
845
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
846
|
+
# @type RequestId: String
|
847
|
+
|
848
|
+
attr_accessor :PostTime, :UserIp, :Level, :RiskType, :AssociateAccount, :Uid, :RootId, :CodeDesc, :RequestId
|
849
|
+
|
850
|
+
def initialize(posttime=nil, userip=nil, level=nil, risktype=nil, associateaccount=nil, uid=nil, rootid=nil, codedesc=nil, requestid=nil)
|
851
|
+
@PostTime = posttime
|
852
|
+
@UserIp = userip
|
853
|
+
@Level = level
|
854
|
+
@RiskType = risktype
|
855
|
+
@AssociateAccount = associateaccount
|
856
|
+
@Uid = uid
|
857
|
+
@RootId = rootid
|
858
|
+
@CodeDesc = codedesc
|
859
|
+
@RequestId = requestid
|
860
|
+
end
|
861
|
+
|
862
|
+
def deserialize(params)
|
863
|
+
@PostTime = params['PostTime']
|
864
|
+
@UserIp = params['UserIp']
|
865
|
+
@Level = params['Level']
|
866
|
+
@RiskType = params['RiskType']
|
867
|
+
@AssociateAccount = params['AssociateAccount']
|
868
|
+
@Uid = params['Uid']
|
869
|
+
@RootId = params['RootId']
|
870
|
+
@CodeDesc = params['CodeDesc']
|
871
|
+
@RequestId = params['RequestId']
|
872
|
+
end
|
873
|
+
end
|
874
|
+
|
875
|
+
# 助力场景信息
|
876
|
+
class SponsorInfo < TencentCloud::Common::AbstractModel
|
877
|
+
# @param SponsorOpenId: 助力场景建议填写:活动发起人微信OpenID。
|
878
|
+
# @type SponsorOpenId: String
|
879
|
+
# @param SponsorDeviceId: 助力场景建议填写:发起人设备号。
|
880
|
+
# @type SponsorDeviceId: String
|
881
|
+
# @param SponsorPhone: 助力场景建议填写:发起人手机号。
|
882
|
+
# @type SponsorPhone: String
|
883
|
+
# @param SponsorIp: 助力场景建议填写:发起人IP。
|
884
|
+
# @type SponsorIp: String
|
885
|
+
# @param CampaignUrl: 助力场景建议填写:活动链接。
|
886
|
+
# @type CampaignUrl: String
|
887
|
+
|
888
|
+
attr_accessor :SponsorOpenId, :SponsorDeviceId, :SponsorPhone, :SponsorIp, :CampaignUrl
|
889
|
+
|
890
|
+
def initialize(sponsoropenid=nil, sponsordeviceid=nil, sponsorphone=nil, sponsorip=nil, campaignurl=nil)
|
891
|
+
@SponsorOpenId = sponsoropenid
|
892
|
+
@SponsorDeviceId = sponsordeviceid
|
893
|
+
@SponsorPhone = sponsorphone
|
894
|
+
@SponsorIp = sponsorip
|
895
|
+
@CampaignUrl = campaignurl
|
896
|
+
end
|
897
|
+
|
898
|
+
def deserialize(params)
|
899
|
+
@SponsorOpenId = params['SponsorOpenId']
|
900
|
+
@SponsorDeviceId = params['SponsorDeviceId']
|
901
|
+
@SponsorPhone = params['SponsorPhone']
|
902
|
+
@SponsorIp = params['SponsorIp']
|
903
|
+
@CampaignUrl = params['CampaignUrl']
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
907
|
+
# 微信账号信息。
|
908
|
+
class WeChatAccountInfo < TencentCloud::Common::AbstractModel
|
909
|
+
# @param WeChatOpenId: 微信的OpenID/UnionID 。
|
910
|
+
# @type WeChatOpenId: String
|
911
|
+
# @param WeChatSubType: 微信开放账号类型:
|
912
|
+
# 1:微信公众号/微信第三方登录。
|
913
|
+
# 2:微信小程序。
|
914
|
+
# @type WeChatSubType: Integer
|
915
|
+
# @param RandStr: 随机串。如果WeChatSubType是2,该字段必填。Token签名随机数,建议16个字符。
|
916
|
+
# @type RandStr: String
|
917
|
+
# @param WeChatAccessToken: 如果WeChatSubType是1,填入授权的access_token(注意:不是普通access_token,详情请参阅官方说明文档。获取网页版本的access_token时,scope字段必需填写snsapi_userinfo。
|
918
|
+
# 如果WeChatSubType是2,填入以session_key为密钥签名随机数RandStr(hmac_sha256签名算法)得到的字符串。
|
919
|
+
# @type WeChatAccessToken: String
|
920
|
+
# @param AssociateAccount: 用于标识微信用户登录后所关联业务自身的账号ID。
|
921
|
+
# @type AssociateAccount: String
|
922
|
+
# @param MobilePhone: 账号绑定的手机号。
|
923
|
+
# @type MobilePhone: String
|
924
|
+
# @param DeviceId: 用户设备号。
|
925
|
+
# @type DeviceId: String
|
926
|
+
|
927
|
+
attr_accessor :WeChatOpenId, :WeChatSubType, :RandStr, :WeChatAccessToken, :AssociateAccount, :MobilePhone, :DeviceId
|
928
|
+
|
929
|
+
def initialize(wechatopenid=nil, wechatsubtype=nil, randstr=nil, wechataccesstoken=nil, associateaccount=nil, mobilephone=nil, deviceid=nil)
|
930
|
+
@WeChatOpenId = wechatopenid
|
931
|
+
@WeChatSubType = wechatsubtype
|
932
|
+
@RandStr = randstr
|
933
|
+
@WeChatAccessToken = wechataccesstoken
|
934
|
+
@AssociateAccount = associateaccount
|
935
|
+
@MobilePhone = mobilephone
|
936
|
+
@DeviceId = deviceid
|
937
|
+
end
|
938
|
+
|
939
|
+
def deserialize(params)
|
940
|
+
@WeChatOpenId = params['WeChatOpenId']
|
941
|
+
@WeChatSubType = params['WeChatSubType']
|
942
|
+
@RandStr = params['RandStr']
|
943
|
+
@WeChatAccessToken = params['WeChatAccessToken']
|
944
|
+
@AssociateAccount = params['AssociateAccount']
|
945
|
+
@MobilePhone = params['MobilePhone']
|
946
|
+
@DeviceId = params['DeviceId']
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
end
|
951
|
+
end
|
952
|
+
end
|
953
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-aa
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.200
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
AA.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-aa.rb
|
38
|
+
- lib/v20200224/client.rb
|
39
|
+
- lib/v20200224/models.rb
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
|
+
licenses:
|
42
|
+
- Apache-2.0
|
43
|
+
metadata:
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-aa
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.6.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - AA
|
66
|
+
test_files: []
|