tagalys 0.2.4 → 0.2.6
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 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b4b77fdbf3cbeab49f3199a1e67494e6e4e931d621947158e5c1766df1b62d
|
4
|
+
data.tar.gz: 29b223cce20ed1a622dd029436e7ab427f572cf857821f70f278176e635b890d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1a84e727893e7c5187661025fa8fcdab2997b429ce1ae5fee0ed7f6ac8e5bf2d5e451a321dd787be4c55d043ba9e64cf7b74307f7c53c6664eb5e42ff8bcdc4
|
7
|
+
data.tar.gz: 2561c222890d20f3cbe262b20e0853364f99372ab5b0d1c649d49ef86a9dca7981a8f932f9e533c253d1504ebc62047449ed51e5639edd85ff5ceb526f502556
|
data/lib/tagalys.rb
CHANGED
@@ -122,6 +122,21 @@ module Tagalys
|
|
122
122
|
}.compact
|
123
123
|
search_response = request_tagalys("/recommendations/" + recommendation_name, request_body)
|
124
124
|
end
|
125
|
+
|
126
|
+
# 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_recommendations_for_product(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
|
125
140
|
|
126
141
|
# merchandisable similar products, it is a add-on feature on Taglys, please contact Tagalys to enable this feature.
|
127
142
|
# the recommendation_id can be obtained from the Tagalys dashboard via the embed code for the merchandisable similar product feature
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anbazhagan Palani
|
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
|
-
rubygems_version: 3.
|
40
|
+
rubygems_version: 3.5.9
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
43
|
summary: Tagalys gem is written for rails.
|