tencentcloud-sdk-youmall 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-youmall.rb +11 -0
- data/lib/v20180228/client.rb +781 -0
- data/lib/v20180228/models.rb +2998 -0
- metadata +66 -0
@@ -0,0 +1,781 @@
|
|
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 Youmall
|
21
|
+
module V20180228
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-02-28'
|
26
|
+
api_endpoint = 'youmall.tencentcloudapi.com'
|
27
|
+
sdk_version = 'YOUMALL_' + 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 CreateAccount.
|
35
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::CreateAccountRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::CreateAccountResponse`
|
37
|
+
def CreateAccount(request)
|
38
|
+
body = send_request('CreateAccount', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateAccountResponse.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 CreateFacePicture.
|
59
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::CreateFacePictureRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::CreateFacePictureResponse`
|
61
|
+
def CreateFacePicture(request)
|
62
|
+
body = send_request('CreateFacePicture', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateFacePictureResponse.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 DeletePersonFeature.
|
83
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DeletePersonFeatureRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DeletePersonFeatureResponse`
|
85
|
+
def DeletePersonFeature(request)
|
86
|
+
body = send_request('DeletePersonFeature', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DeletePersonFeatureResponse.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
|
+
# 通过指定设备ID和指定时段,获取该时段内中收银台摄像设备抓取到顾客头像及身份ID
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeCameraPerson.
|
107
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeCameraPersonRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeCameraPersonResponse`
|
109
|
+
def DescribeCameraPerson(request)
|
110
|
+
body = send_request('DescribeCameraPerson', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeCameraPersonResponse.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
|
+
|
130
|
+
# @param request: Request instance for DescribeClusterPersonArrivedMall.
|
131
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeClusterPersonArrivedMallRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeClusterPersonArrivedMallResponse`
|
133
|
+
def DescribeClusterPersonArrivedMall(request)
|
134
|
+
body = send_request('DescribeClusterPersonArrivedMall', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeClusterPersonArrivedMallResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
152
|
+
# 输出开始时间到结束时间段内的进出场数据。按天聚合的情况下,每天多次进出场算一次,以最初进场时间为进场时间,最后离场时间为离场时间。
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeClusterPersonTrace.
|
155
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeClusterPersonTraceRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeClusterPersonTraceResponse`
|
157
|
+
def DescribeClusterPersonTrace(request)
|
158
|
+
body = send_request('DescribeClusterPersonTrace', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeClusterPersonTraceResponse.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
|
+
# 通过DescribeCameraPerson接口上报的收银台身份ID查询顾客的FaceID。查询最佳时间为收银台上报的次日1点后。
|
177
|
+
|
178
|
+
# @param request: Request instance for DescribeFaceIdByTempId.
|
179
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeFaceIdByTempIdRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeFaceIdByTempIdResponse`
|
181
|
+
def DescribeFaceIdByTempId(request)
|
182
|
+
body = send_request('DescribeFaceIdByTempId', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeFaceIdByTempIdResponse.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
|
+
|
200
|
+
# 返回当前门店历史网络状态数据
|
201
|
+
|
202
|
+
# @param request: Request instance for DescribeHistoryNetworkInfo.
|
203
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeHistoryNetworkInfoRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeHistoryNetworkInfoResponse`
|
205
|
+
def DescribeHistoryNetworkInfo(request)
|
206
|
+
body = send_request('DescribeHistoryNetworkInfo', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DescribeHistoryNetworkInfoResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
224
|
+
# 返回当前门店最新网络状态数据
|
225
|
+
|
226
|
+
# @param request: Request instance for DescribeNetworkInfo.
|
227
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeNetworkInfoRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeNetworkInfoResponse`
|
229
|
+
def DescribeNetworkInfo(request)
|
230
|
+
body = send_request('DescribeNetworkInfo', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DescribeNetworkInfoResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 查询指定某一卖场的用户信息
|
249
|
+
|
250
|
+
# @param request: Request instance for DescribePerson.
|
251
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonResponse`
|
253
|
+
def DescribePerson(request)
|
254
|
+
body = send_request('DescribePerson', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DescribePersonResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 输出开始时间到结束时间段内的进出场数据。不做按天聚合的情况下,每次进出场,产生一条进出场数据。
|
273
|
+
|
274
|
+
|
275
|
+
# @param request: Request instance for DescribePersonArrivedMall.
|
276
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonArrivedMallRequest`
|
277
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonArrivedMallResponse`
|
278
|
+
def DescribePersonArrivedMall(request)
|
279
|
+
body = send_request('DescribePersonArrivedMall', request.serialize)
|
280
|
+
response = JSON.parse(body)
|
281
|
+
if response['Response'].key?('Error') == false
|
282
|
+
model = DescribePersonArrivedMallResponse.new
|
283
|
+
model.deserialize(response['Response'])
|
284
|
+
model
|
285
|
+
else
|
286
|
+
code = response['Response']['Error']['Code']
|
287
|
+
message = response['Response']['Error']['Message']
|
288
|
+
reqid = response['Response']['RequestId']
|
289
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
290
|
+
end
|
291
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
292
|
+
raise e
|
293
|
+
rescue StandardError => e
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
295
|
+
end
|
296
|
+
|
297
|
+
# 指定门店获取所有顾客详情列表,包含客户ID、图片、年龄、性别
|
298
|
+
|
299
|
+
# @param request: Request instance for DescribePersonInfo.
|
300
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonInfoRequest`
|
301
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonInfoResponse`
|
302
|
+
def DescribePersonInfo(request)
|
303
|
+
body = send_request('DescribePersonInfo', request.serialize)
|
304
|
+
response = JSON.parse(body)
|
305
|
+
if response['Response'].key?('Error') == false
|
306
|
+
model = DescribePersonInfoResponse.new
|
307
|
+
model.deserialize(response['Response'])
|
308
|
+
model
|
309
|
+
else
|
310
|
+
code = response['Response']['Error']['Code']
|
311
|
+
message = response['Response']['Error']['Message']
|
312
|
+
reqid = response['Response']['RequestId']
|
313
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
314
|
+
end
|
315
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
316
|
+
raise e
|
317
|
+
rescue StandardError => e
|
318
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
319
|
+
end
|
320
|
+
|
321
|
+
# 通过上传人脸图片检索系统face id、顾客身份信息及底图
|
322
|
+
|
323
|
+
# @param request: Request instance for DescribePersonInfoByFacePicture.
|
324
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonInfoByFacePictureRequest`
|
325
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonInfoByFacePictureResponse`
|
326
|
+
def DescribePersonInfoByFacePicture(request)
|
327
|
+
body = send_request('DescribePersonInfoByFacePicture', request.serialize)
|
328
|
+
response = JSON.parse(body)
|
329
|
+
if response['Response'].key?('Error') == false
|
330
|
+
model = DescribePersonInfoByFacePictureResponse.new
|
331
|
+
model.deserialize(response['Response'])
|
332
|
+
model
|
333
|
+
else
|
334
|
+
code = response['Response']['Error']['Code']
|
335
|
+
message = response['Response']['Error']['Message']
|
336
|
+
reqid = response['Response']['RequestId']
|
337
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
338
|
+
end
|
339
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
340
|
+
raise e
|
341
|
+
rescue StandardError => e
|
342
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
343
|
+
end
|
344
|
+
|
345
|
+
# 输出开始时间到结束时间段内的进出场数据。
|
346
|
+
|
347
|
+
# @param request: Request instance for DescribePersonTrace.
|
348
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonTraceRequest`
|
349
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonTraceResponse`
|
350
|
+
def DescribePersonTrace(request)
|
351
|
+
body = send_request('DescribePersonTrace', request.serialize)
|
352
|
+
response = JSON.parse(body)
|
353
|
+
if response['Response'].key?('Error') == false
|
354
|
+
model = DescribePersonTraceResponse.new
|
355
|
+
model.deserialize(response['Response'])
|
356
|
+
model
|
357
|
+
else
|
358
|
+
code = response['Response']['Error']['Code']
|
359
|
+
message = response['Response']['Error']['Message']
|
360
|
+
reqid = response['Response']['RequestId']
|
361
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
362
|
+
end
|
363
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
364
|
+
raise e
|
365
|
+
rescue StandardError => e
|
366
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
367
|
+
end
|
368
|
+
|
369
|
+
# 查询客户单次到场轨迹明细
|
370
|
+
|
371
|
+
# @param request: Request instance for DescribePersonTraceDetail.
|
372
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonTraceDetailRequest`
|
373
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonTraceDetailResponse`
|
374
|
+
def DescribePersonTraceDetail(request)
|
375
|
+
body = send_request('DescribePersonTraceDetail', request.serialize)
|
376
|
+
response = JSON.parse(body)
|
377
|
+
if response['Response'].key?('Error') == false
|
378
|
+
model = DescribePersonTraceDetailResponse.new
|
379
|
+
model.deserialize(response['Response'])
|
380
|
+
model
|
381
|
+
else
|
382
|
+
code = response['Response']['Error']['Code']
|
383
|
+
message = response['Response']['Error']['Message']
|
384
|
+
reqid = response['Response']['RequestId']
|
385
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
386
|
+
end
|
387
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
388
|
+
raise e
|
389
|
+
rescue StandardError => e
|
390
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
391
|
+
end
|
392
|
+
|
393
|
+
# 获取门店指定时间范围内的所有用户到访信息记录,支持的时间范围:过去365天,含当天。
|
394
|
+
|
395
|
+
# @param request: Request instance for DescribePersonVisitInfo.
|
396
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribePersonVisitInfoRequest`
|
397
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribePersonVisitInfoResponse`
|
398
|
+
def DescribePersonVisitInfo(request)
|
399
|
+
body = send_request('DescribePersonVisitInfo', request.serialize)
|
400
|
+
response = JSON.parse(body)
|
401
|
+
if response['Response'].key?('Error') == false
|
402
|
+
model = DescribePersonVisitInfoResponse.new
|
403
|
+
model.deserialize(response['Response'])
|
404
|
+
model
|
405
|
+
else
|
406
|
+
code = response['Response']['Error']['Code']
|
407
|
+
message = response['Response']['Error']['Message']
|
408
|
+
reqid = response['Response']['RequestId']
|
409
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
410
|
+
end
|
411
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
412
|
+
raise e
|
413
|
+
rescue StandardError => e
|
414
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
415
|
+
end
|
416
|
+
|
417
|
+
# 按小时提供查询日期范围内门店的每天每小时累计客流人数数据,支持的时间范围:过去365天,含当天。
|
418
|
+
|
419
|
+
# @param request: Request instance for DescribeShopHourTrafficInfo.
|
420
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeShopHourTrafficInfoRequest`
|
421
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeShopHourTrafficInfoResponse`
|
422
|
+
def DescribeShopHourTrafficInfo(request)
|
423
|
+
body = send_request('DescribeShopHourTrafficInfo', request.serialize)
|
424
|
+
response = JSON.parse(body)
|
425
|
+
if response['Response'].key?('Error') == false
|
426
|
+
model = DescribeShopHourTrafficInfoResponse.new
|
427
|
+
model.deserialize(response['Response'])
|
428
|
+
model
|
429
|
+
else
|
430
|
+
code = response['Response']['Error']['Code']
|
431
|
+
message = response['Response']['Error']['Message']
|
432
|
+
reqid = response['Response']['RequestId']
|
433
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
434
|
+
end
|
435
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
436
|
+
raise e
|
437
|
+
rescue StandardError => e
|
438
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
439
|
+
end
|
440
|
+
|
441
|
+
# 根据客户身份标识获取客户下所有的门店信息列表
|
442
|
+
|
443
|
+
# @param request: Request instance for DescribeShopInfo.
|
444
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeShopInfoRequest`
|
445
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeShopInfoResponse`
|
446
|
+
def DescribeShopInfo(request)
|
447
|
+
body = send_request('DescribeShopInfo', request.serialize)
|
448
|
+
response = JSON.parse(body)
|
449
|
+
if response['Response'].key?('Error') == false
|
450
|
+
model = DescribeShopInfoResponse.new
|
451
|
+
model.deserialize(response['Response'])
|
452
|
+
model
|
453
|
+
else
|
454
|
+
code = response['Response']['Error']['Code']
|
455
|
+
message = response['Response']['Error']['Message']
|
456
|
+
reqid = response['Response']['RequestId']
|
457
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
458
|
+
end
|
459
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
460
|
+
raise e
|
461
|
+
rescue StandardError => e
|
462
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
463
|
+
end
|
464
|
+
|
465
|
+
# 按天提供查询日期范围内门店的单日累计客流人数,支持的时间范围:过去365天,含当天。
|
466
|
+
|
467
|
+
# @param request: Request instance for DescribeShopTrafficInfo.
|
468
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeShopTrafficInfoRequest`
|
469
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeShopTrafficInfoResponse`
|
470
|
+
def DescribeShopTrafficInfo(request)
|
471
|
+
body = send_request('DescribeShopTrafficInfo', request.serialize)
|
472
|
+
response = JSON.parse(body)
|
473
|
+
if response['Response'].key?('Error') == false
|
474
|
+
model = DescribeShopTrafficInfoResponse.new
|
475
|
+
model.deserialize(response['Response'])
|
476
|
+
model
|
477
|
+
else
|
478
|
+
code = response['Response']['Error']['Code']
|
479
|
+
message = response['Response']['Error']['Message']
|
480
|
+
reqid = response['Response']['RequestId']
|
481
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
482
|
+
end
|
483
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
484
|
+
raise e
|
485
|
+
rescue StandardError => e
|
486
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
487
|
+
end
|
488
|
+
|
489
|
+
# 获取动线轨迹信息
|
490
|
+
|
491
|
+
# @param request: Request instance for DescribeTrajectoryData.
|
492
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeTrajectoryDataRequest`
|
493
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeTrajectoryDataResponse`
|
494
|
+
def DescribeTrajectoryData(request)
|
495
|
+
body = send_request('DescribeTrajectoryData', request.serialize)
|
496
|
+
response = JSON.parse(body)
|
497
|
+
if response['Response'].key?('Error') == false
|
498
|
+
model = DescribeTrajectoryDataResponse.new
|
499
|
+
model.deserialize(response['Response'])
|
500
|
+
model
|
501
|
+
else
|
502
|
+
code = response['Response']['Error']['Code']
|
503
|
+
message = response['Response']['Error']['Message']
|
504
|
+
reqid = response['Response']['RequestId']
|
505
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
506
|
+
end
|
507
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
508
|
+
raise e
|
509
|
+
rescue StandardError => e
|
510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
511
|
+
end
|
512
|
+
|
513
|
+
# 获取指定区域人流各年龄占比
|
514
|
+
|
515
|
+
# @param request: Request instance for DescribeZoneFlowAgeInfoByZoneId.
|
516
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowAgeInfoByZoneIdRequest`
|
517
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowAgeInfoByZoneIdResponse`
|
518
|
+
def DescribeZoneFlowAgeInfoByZoneId(request)
|
519
|
+
body = send_request('DescribeZoneFlowAgeInfoByZoneId', request.serialize)
|
520
|
+
response = JSON.parse(body)
|
521
|
+
if response['Response'].key?('Error') == false
|
522
|
+
model = DescribeZoneFlowAgeInfoByZoneIdResponse.new
|
523
|
+
model.deserialize(response['Response'])
|
524
|
+
model
|
525
|
+
else
|
526
|
+
code = response['Response']['Error']['Code']
|
527
|
+
message = response['Response']['Error']['Message']
|
528
|
+
reqid = response['Response']['RequestId']
|
529
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
530
|
+
end
|
531
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
532
|
+
raise e
|
533
|
+
rescue StandardError => e
|
534
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
535
|
+
end
|
536
|
+
|
537
|
+
# 获取区域人流和停留时间
|
538
|
+
|
539
|
+
# @param request: Request instance for DescribeZoneFlowAndStayTime.
|
540
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowAndStayTimeRequest`
|
541
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowAndStayTimeResponse`
|
542
|
+
def DescribeZoneFlowAndStayTime(request)
|
543
|
+
body = send_request('DescribeZoneFlowAndStayTime', request.serialize)
|
544
|
+
response = JSON.parse(body)
|
545
|
+
if response['Response'].key?('Error') == false
|
546
|
+
model = DescribeZoneFlowAndStayTimeResponse.new
|
547
|
+
model.deserialize(response['Response'])
|
548
|
+
model
|
549
|
+
else
|
550
|
+
code = response['Response']['Error']['Code']
|
551
|
+
message = response['Response']['Error']['Message']
|
552
|
+
reqid = response['Response']['RequestId']
|
553
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
554
|
+
end
|
555
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
556
|
+
raise e
|
557
|
+
rescue StandardError => e
|
558
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
|
+
end
|
560
|
+
|
561
|
+
# 获取指定区域每日客流量
|
562
|
+
|
563
|
+
# @param request: Request instance for DescribeZoneFlowDailyByZoneId.
|
564
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowDailyByZoneIdRequest`
|
565
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowDailyByZoneIdResponse`
|
566
|
+
def DescribeZoneFlowDailyByZoneId(request)
|
567
|
+
body = send_request('DescribeZoneFlowDailyByZoneId', request.serialize)
|
568
|
+
response = JSON.parse(body)
|
569
|
+
if response['Response'].key?('Error') == false
|
570
|
+
model = DescribeZoneFlowDailyByZoneIdResponse.new
|
571
|
+
model.deserialize(response['Response'])
|
572
|
+
model
|
573
|
+
else
|
574
|
+
code = response['Response']['Error']['Code']
|
575
|
+
message = response['Response']['Error']['Message']
|
576
|
+
reqid = response['Response']['RequestId']
|
577
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
578
|
+
end
|
579
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
580
|
+
raise e
|
581
|
+
rescue StandardError => e
|
582
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
583
|
+
end
|
584
|
+
|
585
|
+
# 获取指定区域不同年龄段男女平均停留时间
|
586
|
+
|
587
|
+
# @param request: Request instance for DescribeZoneFlowGenderAvrStayTimeByZoneId.
|
588
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowGenderAvrStayTimeByZoneIdRequest`
|
589
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowGenderAvrStayTimeByZoneIdResponse`
|
590
|
+
def DescribeZoneFlowGenderAvrStayTimeByZoneId(request)
|
591
|
+
body = send_request('DescribeZoneFlowGenderAvrStayTimeByZoneId', request.serialize)
|
592
|
+
response = JSON.parse(body)
|
593
|
+
if response['Response'].key?('Error') == false
|
594
|
+
model = DescribeZoneFlowGenderAvrStayTimeByZoneIdResponse.new
|
595
|
+
model.deserialize(response['Response'])
|
596
|
+
model
|
597
|
+
else
|
598
|
+
code = response['Response']['Error']['Code']
|
599
|
+
message = response['Response']['Error']['Message']
|
600
|
+
reqid = response['Response']['RequestId']
|
601
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
602
|
+
end
|
603
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
604
|
+
raise e
|
605
|
+
rescue StandardError => e
|
606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
607
|
+
end
|
608
|
+
|
609
|
+
# 获取指定区域性别占比
|
610
|
+
|
611
|
+
# @param request: Request instance for DescribeZoneFlowGenderInfoByZoneId.
|
612
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowGenderInfoByZoneIdRequest`
|
613
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowGenderInfoByZoneIdResponse`
|
614
|
+
def DescribeZoneFlowGenderInfoByZoneId(request)
|
615
|
+
body = send_request('DescribeZoneFlowGenderInfoByZoneId', request.serialize)
|
616
|
+
response = JSON.parse(body)
|
617
|
+
if response['Response'].key?('Error') == false
|
618
|
+
model = DescribeZoneFlowGenderInfoByZoneIdResponse.new
|
619
|
+
model.deserialize(response['Response'])
|
620
|
+
model
|
621
|
+
else
|
622
|
+
code = response['Response']['Error']['Code']
|
623
|
+
message = response['Response']['Error']['Message']
|
624
|
+
reqid = response['Response']['RequestId']
|
625
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
626
|
+
end
|
627
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
628
|
+
raise e
|
629
|
+
rescue StandardError => e
|
630
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
631
|
+
end
|
632
|
+
|
633
|
+
# 获取指定区域分时客流量
|
634
|
+
|
635
|
+
# @param request: Request instance for DescribeZoneFlowHourlyByZoneId.
|
636
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowHourlyByZoneIdRequest`
|
637
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneFlowHourlyByZoneIdResponse`
|
638
|
+
def DescribeZoneFlowHourlyByZoneId(request)
|
639
|
+
body = send_request('DescribeZoneFlowHourlyByZoneId', request.serialize)
|
640
|
+
response = JSON.parse(body)
|
641
|
+
if response['Response'].key?('Error') == false
|
642
|
+
model = DescribeZoneFlowHourlyByZoneIdResponse.new
|
643
|
+
model.deserialize(response['Response'])
|
644
|
+
model
|
645
|
+
else
|
646
|
+
code = response['Response']['Error']['Code']
|
647
|
+
message = response['Response']['Error']['Message']
|
648
|
+
reqid = response['Response']['RequestId']
|
649
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
650
|
+
end
|
651
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
652
|
+
raise e
|
653
|
+
rescue StandardError => e
|
654
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
655
|
+
end
|
656
|
+
|
657
|
+
# 按天提供查询日期范围内,客户指定门店下的所有区域(优Mall部署时已配置区域)的累计客流人次和平均停留时间。支持的时间范围:过去365天,含当天。
|
658
|
+
|
659
|
+
# @param request: Request instance for DescribeZoneTrafficInfo.
|
660
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::DescribeZoneTrafficInfoRequest`
|
661
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::DescribeZoneTrafficInfoResponse`
|
662
|
+
def DescribeZoneTrafficInfo(request)
|
663
|
+
body = send_request('DescribeZoneTrafficInfo', request.serialize)
|
664
|
+
response = JSON.parse(body)
|
665
|
+
if response['Response'].key?('Error') == false
|
666
|
+
model = DescribeZoneTrafficInfoResponse.new
|
667
|
+
model.deserialize(response['Response'])
|
668
|
+
model
|
669
|
+
else
|
670
|
+
code = response['Response']['Error']['Code']
|
671
|
+
message = response['Response']['Error']['Message']
|
672
|
+
reqid = response['Response']['RequestId']
|
673
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
674
|
+
end
|
675
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
676
|
+
raise e
|
677
|
+
rescue StandardError => e
|
678
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
679
|
+
end
|
680
|
+
|
681
|
+
# 支持修改黑白名单类型的顾客特征
|
682
|
+
|
683
|
+
# @param request: Request instance for ModifyPersonFeatureInfo.
|
684
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::ModifyPersonFeatureInfoRequest`
|
685
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::ModifyPersonFeatureInfoResponse`
|
686
|
+
def ModifyPersonFeatureInfo(request)
|
687
|
+
body = send_request('ModifyPersonFeatureInfo', request.serialize)
|
688
|
+
response = JSON.parse(body)
|
689
|
+
if response['Response'].key?('Error') == false
|
690
|
+
model = ModifyPersonFeatureInfoResponse.new
|
691
|
+
model.deserialize(response['Response'])
|
692
|
+
model
|
693
|
+
else
|
694
|
+
code = response['Response']['Error']['Code']
|
695
|
+
message = response['Response']['Error']['Message']
|
696
|
+
reqid = response['Response']['RequestId']
|
697
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
698
|
+
end
|
699
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
700
|
+
raise e
|
701
|
+
rescue StandardError => e
|
702
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
703
|
+
end
|
704
|
+
|
705
|
+
# 标记到店顾客的身份类型,例如黑名单、白名单等
|
706
|
+
|
707
|
+
# @param request: Request instance for ModifyPersonTagInfo.
|
708
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::ModifyPersonTagInfoRequest`
|
709
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::ModifyPersonTagInfoResponse`
|
710
|
+
def ModifyPersonTagInfo(request)
|
711
|
+
body = send_request('ModifyPersonTagInfo', request.serialize)
|
712
|
+
response = JSON.parse(body)
|
713
|
+
if response['Response'].key?('Error') == false
|
714
|
+
model = ModifyPersonTagInfoResponse.new
|
715
|
+
model.deserialize(response['Response'])
|
716
|
+
model
|
717
|
+
else
|
718
|
+
code = response['Response']['Error']['Code']
|
719
|
+
message = response['Response']['Error']['Message']
|
720
|
+
reqid = response['Response']['RequestId']
|
721
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
722
|
+
end
|
723
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
724
|
+
raise e
|
725
|
+
rescue StandardError => e
|
726
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
727
|
+
end
|
728
|
+
|
729
|
+
# 修改顾客身份类型接口
|
730
|
+
|
731
|
+
# @param request: Request instance for ModifyPersonType.
|
732
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::ModifyPersonTypeRequest`
|
733
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::ModifyPersonTypeResponse`
|
734
|
+
def ModifyPersonType(request)
|
735
|
+
body = send_request('ModifyPersonType', request.serialize)
|
736
|
+
response = JSON.parse(body)
|
737
|
+
if response['Response'].key?('Error') == false
|
738
|
+
model = ModifyPersonTypeResponse.new
|
739
|
+
model.deserialize(response['Response'])
|
740
|
+
model
|
741
|
+
else
|
742
|
+
code = response['Response']['Error']['Code']
|
743
|
+
message = response['Response']['Error']['Message']
|
744
|
+
reqid = response['Response']['RequestId']
|
745
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
746
|
+
end
|
747
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
748
|
+
raise e
|
749
|
+
rescue StandardError => e
|
750
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
751
|
+
end
|
752
|
+
|
753
|
+
# 调用本接口在优Mall中注册自己集团的到店通知回调接口地址,接口协议为HTTP或HTTPS。注册后,若集团有特殊身份(例如老客)到店通知,优Mall后台将主动将到店信息push给该接口
|
754
|
+
|
755
|
+
# @param request: Request instance for RegisterCallback.
|
756
|
+
# @type request: :class:`Tencentcloud::youmall::V20180228::RegisterCallbackRequest`
|
757
|
+
# @rtype: :class:`Tencentcloud::youmall::V20180228::RegisterCallbackResponse`
|
758
|
+
def RegisterCallback(request)
|
759
|
+
body = send_request('RegisterCallback', request.serialize)
|
760
|
+
response = JSON.parse(body)
|
761
|
+
if response['Response'].key?('Error') == false
|
762
|
+
model = RegisterCallbackResponse.new
|
763
|
+
model.deserialize(response['Response'])
|
764
|
+
model
|
765
|
+
else
|
766
|
+
code = response['Response']['Error']['Code']
|
767
|
+
message = response['Response']['Error']['Message']
|
768
|
+
reqid = response['Response']['RequestId']
|
769
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
770
|
+
end
|
771
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
772
|
+
raise e
|
773
|
+
rescue StandardError => e
|
774
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
775
|
+
end
|
776
|
+
|
777
|
+
|
778
|
+
end
|
779
|
+
end
|
780
|
+
end
|
781
|
+
end
|