tagalys 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tagalys.rb +24 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c612a1c338b89ca0674c1708ae4cd0fd930a32a1fa18bae017e0906eac021c2
4
- data.tar.gz: 0fc17701c812406a8e02139943fdc84e277ace196163580f815bd813490c0f79
3
+ metadata.gz: 31003cf5c24d081cf8bf474e84093bfa3e3b8d8e67ffcb00e670d17f29f66525
4
+ data.tar.gz: f8ea87b9296ca7762f017f382212ada98bdd892ed09bf8665b7b3d6af32650f1
5
5
  SHA512:
6
- metadata.gz: 33ff8343454f9e434992cbd9a3c4f6d1ba68222a8bacfd8bbed557481f6e3fd65da24e013a188af09445ba0079d7abdc9fa9e45e4bab18f64931185cdf4226df
7
- data.tar.gz: e19a79c805243dc9cc6489bf6b44350a5deb16a1346c4c3f70be22d9b28ff02d866d4b8dfcecab4f3e5968e46d9118c29b7edd1d177e8d1c1d199476350cbf5a
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,
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.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anbazhagan Palani