tagalys 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tagalys.rb +15 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dda224cf36a945f15d25788e77332e3e5a0917c0e46364a94a1e42d040383ca6
|
|
4
|
+
data.tar.gz: 26408c5840d0b6aeb7dec5f55ac417b2ce31dd8885ae28d36e852fae4697fd1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e9e20e56dc9a9a1e94b9df606f79fa6b225e82e489dc0e2bd4deb2c173cd36a67a7cce5ec6c6f844427539f3517be3323964c8cca1f9cbe8b4ee2aaec3dfed4
|
|
7
|
+
data.tar.gz: 1c7c2899da938e26bd5ee1b539baebe094476f5f226ca9cf0771754be907f7d45a3e3ae42b43fe79eb549625c688ca6c1a11e2b9b8b3f77241b181e1d74a3541
|
data/lib/tagalys.rb
CHANGED
|
@@ -123,6 +123,21 @@ module Tagalys
|
|
|
123
123
|
search_response = request_tagalys("/recommendations/" + recommendation_name, request_body)
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
# merchandisable similar products, it is a add-on feature on Taglys, please contact Tagalys to enable this feature.
|
|
127
|
+
# the recommendation_id can be obtained from the Tagalys dashboard via the embed code for the merchandisable similar product feature
|
|
128
|
+
def get_merchandisable_similar_products(product_id, recommendation_id)
|
|
129
|
+
request_body = {
|
|
130
|
+
identification: identification,
|
|
131
|
+
max_products: 16,
|
|
132
|
+
product_id: product_id,
|
|
133
|
+
request: [
|
|
134
|
+
"details",
|
|
135
|
+
"results"
|
|
136
|
+
]
|
|
137
|
+
}.compact
|
|
138
|
+
search_response = request_tagalys("/recommendations/" + recommendation_id, request_body)
|
|
139
|
+
end
|
|
140
|
+
|
|
126
141
|
|
|
127
142
|
|
|
128
143
|
def create_store(currencies, fields, tag_sets, sort_options)
|
|
@@ -172,7 +187,6 @@ module Tagalys
|
|
|
172
187
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
173
188
|
http.use_ssl = true
|
|
174
189
|
request = Net::HTTP::Post.new(uri.request_uri, header)
|
|
175
|
-
puts request_body.to_json
|
|
176
190
|
request.body = request_body.to_json
|
|
177
191
|
# Send the request
|
|
178
192
|
response = http.request(request)
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tagalys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anbazhagan Palani
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2019-05-13 00:00:00.000000000 Z
|
|
@@ -22,7 +22,7 @@ homepage: https://github.com/commutatus/tagalys
|
|
|
22
22
|
licenses:
|
|
23
23
|
- MIT
|
|
24
24
|
metadata: {}
|
|
25
|
-
post_install_message:
|
|
25
|
+
post_install_message:
|
|
26
26
|
rdoc_options: []
|
|
27
27
|
require_paths:
|
|
28
28
|
- lib
|
|
@@ -37,8 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
38
|
version: '0'
|
|
39
39
|
requirements: []
|
|
40
|
-
rubygems_version: 3.
|
|
41
|
-
signing_key:
|
|
40
|
+
rubygems_version: 3.2.3
|
|
41
|
+
signing_key:
|
|
42
42
|
specification_version: 4
|
|
43
43
|
summary: Tagalys gem is written for rails.
|
|
44
44
|
test_files: []
|