tagalys 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tagalys.rb +24 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31003cf5c24d081cf8bf474e84093bfa3e3b8d8e67ffcb00e670d17f29f66525
|
4
|
+
data.tar.gz: f8ea87b9296ca7762f017f382212ada98bdd892ed09bf8665b7b3d6af32650f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30f583a77d3629ef3cdf7115d97361807a9e506a464da31b7631977c2de810c5e447820341bf7734872483ec387375c7743aa460d54feb10fc13eab91a12ae9e
|
7
|
+
data.tar.gz: a0191230df50f7866a9db39e6a5a7dd7d7d438dde12dd91364b7268c445b59e14f4121ccff47e931e4b37c398d32c583a3c679e11b30fd5f6e85ade823c7e4fc
|
data/lib/tagalys.rb
CHANGED
@@ -96,6 +96,30 @@ module Tagalys
|
|
96
96
|
search_response = request_tagalys("/products/#{product_id}/similar", request_body)
|
97
97
|
end
|
98
98
|
|
99
|
+
def get_best_selling_products
|
100
|
+
request_body = {
|
101
|
+
identification: identification,
|
102
|
+
max_products: 16,
|
103
|
+
request: [
|
104
|
+
"details",
|
105
|
+
"results"
|
106
|
+
]
|
107
|
+
}.compact
|
108
|
+
search_response = request_tagalys("/recommendations/bestsellers", request_body)
|
109
|
+
end
|
110
|
+
|
111
|
+
def get_new_arrivals
|
112
|
+
request_body = {
|
113
|
+
identification: identification,
|
114
|
+
max_products: 16,
|
115
|
+
request: [
|
116
|
+
"details",
|
117
|
+
"results"
|
118
|
+
]
|
119
|
+
}.compact
|
120
|
+
search_response = request_tagalys("/recommendations/new_arrivals", request_body)
|
121
|
+
end
|
122
|
+
|
99
123
|
def create_store(currencies, fields, tag_sets, sort_options)
|
100
124
|
request_body = {
|
101
125
|
identification: identification,
|