tencentcloud-sdk-mvj 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-mvj.rb +11 -0
- data/lib/v20190926/client.rb +62 -0
- data/lib/v20190926/models.rb +114 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aea27789bdf9b4dd7b3dea07e3012f64d6f6a60e
|
4
|
+
data.tar.gz: 961efde025741af4e2ac36ed5dabeabddd7a9536
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a83766b8a3c93962201c96ec32174b09388fc05641b3a572f034c98e63502937cefa812a4f82137c8979cc73b85745a8c99bfa66edc6c01347f82ec7407201b9
|
7
|
+
data.tar.gz: f00d32aba8c8963e7710d05fff23051a1d0bdbd30d4bf6ae77905f272003345b4929045e280c291f2113316ab52d179df6582fed6739b91edc6ea6717e753777
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,62 @@
|
|
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 Mvj
|
21
|
+
module V20190926
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-09-26'
|
26
|
+
api_endpoint = 'mvj.tencentcloudapi.com'
|
27
|
+
sdk_version = 'MVJ_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 欢迎使用营销价值判断(Marketing Value Judgement,简称 MVJ)。
|
33
|
+
|
34
|
+
# 营销价值判断(MVJ)是针对零售场景的风控服务,通过识别高价值顾客,以帮助零售商保障营销资金
|
35
|
+
|
36
|
+
# @param request: Request instance for MarketingValueJudgement.
|
37
|
+
# @type request: :class:`Tencentcloud::mvj::V20190926::MarketingValueJudgementRequest`
|
38
|
+
# @rtype: :class:`Tencentcloud::mvj::V20190926::MarketingValueJudgementResponse`
|
39
|
+
def MarketingValueJudgement(request)
|
40
|
+
body = send_request('MarketingValueJudgement', request.serialize)
|
41
|
+
response = JSON.parse(body)
|
42
|
+
if response['Response'].key?('Error') == false
|
43
|
+
model = MarketingValueJudgementResponse.new
|
44
|
+
model.deserialize(response['Response'])
|
45
|
+
model
|
46
|
+
else
|
47
|
+
code = response['Response']['Error']['Code']
|
48
|
+
message = response['Response']['Error']['Message']
|
49
|
+
reqid = response['Response']['RequestId']
|
50
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
51
|
+
end
|
52
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
53
|
+
raise e
|
54
|
+
rescue StandardError => e
|
55
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
|
+
end
|
57
|
+
|
58
|
+
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,114 @@
|
|
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 Mvj
|
19
|
+
module V20190926
|
20
|
+
# 返回结构
|
21
|
+
class Data < TencentCloud::Common::AbstractModel
|
22
|
+
# @param PostTime: 操作时间戳,单位秒
|
23
|
+
# @type PostTime: Integer
|
24
|
+
# @param Uid: 用户ID
|
25
|
+
# accountType不同对应不同的用户ID。如果是QQ或微信用户则填入对应的openId
|
26
|
+
# @type Uid: String
|
27
|
+
# @param UserIp: 操作来源的外网IP
|
28
|
+
# @type UserIp: String
|
29
|
+
# @param ValueScore: 0~100:营销价值评分,分值越高,价值越大
|
30
|
+
# [0,50]低价值
|
31
|
+
# [50,70]价值一般
|
32
|
+
# [70,100]高价值
|
33
|
+
# @type ValueScore: Integer
|
34
|
+
|
35
|
+
attr_accessor :PostTime, :Uid, :UserIp, :ValueScore
|
36
|
+
|
37
|
+
def initialize(posttime=nil, uid=nil, userip=nil, valuescore=nil)
|
38
|
+
@PostTime = posttime
|
39
|
+
@Uid = uid
|
40
|
+
@UserIp = userip
|
41
|
+
@ValueScore = valuescore
|
42
|
+
end
|
43
|
+
|
44
|
+
def deserialize(params)
|
45
|
+
@PostTime = params['PostTime']
|
46
|
+
@Uid = params['Uid']
|
47
|
+
@UserIp = params['UserIp']
|
48
|
+
@ValueScore = params['ValueScore']
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# MarketingValueJudgement请求参数结构体
|
53
|
+
class MarketingValueJudgementRequest < TencentCloud::Common::AbstractModel
|
54
|
+
# @param AccountType: 手机账号类型填写4
|
55
|
+
# @type AccountType: Integer
|
56
|
+
# @param Uid: 填写手机号码,如15317537488
|
57
|
+
# @type Uid: String
|
58
|
+
# @param UserIp: 用户请求时的客户端外网IP
|
59
|
+
# @type UserIp: String
|
60
|
+
# @param PostTime: 用户操作时间戳,单位秒(格林威治时间精确到秒,如1501590972)
|
61
|
+
# @type PostTime: Integer
|
62
|
+
# @param Imei: 用户设备号imei/idfa(建议填写)
|
63
|
+
# @type Imei: String
|
64
|
+
# @param Referer: 活动链接(建议填写)
|
65
|
+
# @type Referer: String
|
66
|
+
|
67
|
+
attr_accessor :AccountType, :Uid, :UserIp, :PostTime, :Imei, :Referer
|
68
|
+
|
69
|
+
def initialize(accounttype=nil, uid=nil, userip=nil, posttime=nil, imei=nil, referer=nil)
|
70
|
+
@AccountType = accounttype
|
71
|
+
@Uid = uid
|
72
|
+
@UserIp = userip
|
73
|
+
@PostTime = posttime
|
74
|
+
@Imei = imei
|
75
|
+
@Referer = referer
|
76
|
+
end
|
77
|
+
|
78
|
+
def deserialize(params)
|
79
|
+
@AccountType = params['AccountType']
|
80
|
+
@Uid = params['Uid']
|
81
|
+
@UserIp = params['UserIp']
|
82
|
+
@PostTime = params['PostTime']
|
83
|
+
@Imei = params['Imei']
|
84
|
+
@Referer = params['Referer']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# MarketingValueJudgement返回参数结构体
|
89
|
+
class MarketingValueJudgementResponse < TencentCloud::Common::AbstractModel
|
90
|
+
# @param Data: 返回数据
|
91
|
+
# @type Data: :class:`Tencentcloud::Mvj.v20190926.models.Data`
|
92
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
93
|
+
# @type RequestId: String
|
94
|
+
|
95
|
+
attr_accessor :Data, :RequestId
|
96
|
+
|
97
|
+
def initialize(data=nil, requestid=nil)
|
98
|
+
@Data = data
|
99
|
+
@RequestId = requestid
|
100
|
+
end
|
101
|
+
|
102
|
+
def deserialize(params)
|
103
|
+
unless params['Data'].nil?
|
104
|
+
@Data = Data.new
|
105
|
+
@Data.deserialize(params['Data'])
|
106
|
+
end
|
107
|
+
@RequestId = params['RequestId']
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-mvj
|
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
|
+
MVJ.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-mvj.rb
|
38
|
+
- lib/v20190926/client.rb
|
39
|
+
- lib/v20190926/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-mvj
|
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 - MVJ
|
66
|
+
test_files: []
|