tagalys 0.1.6 → 0.1.7

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tagalys.rb +10 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7b706aafd40ed781d319434c30c1354413763a77b171bb9177831101285fb30
4
- data.tar.gz: 184a2687ce7bd12e408e77716ff396f818f178b2353372df1a7e3ab7b2e3b864
3
+ metadata.gz: 674ce097620d8de3d465429d978576fefdd189e04009404b075dc045eb1ecc45
4
+ data.tar.gz: faf8ac41a4f2461b3649a98dc438be2bd9086418f95607e4b66e88cc3e9c2228
5
5
  SHA512:
6
- metadata.gz: d53c9f5019ce99851c72e4bfc170e308796b8ce43ad8e62963c9d5fea10ad28fa0b2676a87f4aa850aafbb95a56840550f494fe3145730fc2697f782cffcdc04
7
- data.tar.gz: 186d264ac59359db48422b5ef3d0c2dfeb69e3b5adb1d9d395998c96c4657bd169857f9d0cb617e9d251047970dca3a1bab008b173475d4c47942498fe7eb9f6
6
+ metadata.gz: 7db4739d0073a45f792ae5005b35360701d70f180b174a0b323f194cbb6fd23920083ffb7025b25499d8d38d350c878c223668f72feca88278164b1b2097bcb4
7
+ data.tar.gz: 73d5a282a123672143a3a49dd407c699ce38cbc64373be5d0b0f7f23686dda657e5458f231deb4bc71897d6e77e6e6385a64aa6243480a364a9ea7c2ffbd3042
@@ -114,6 +114,16 @@ module Tagalys
114
114
  create_response = request_tagalys('/products/sync_updates', request_body)
115
115
  end
116
116
 
117
+ def full_product_sync(link, product_count, callback_url = nil)
118
+ request_body = {
119
+ identification: identification,
120
+ link: link,
121
+ updates_count: product_count,
122
+ callback_url: callback_url
123
+ }
124
+ create_response = request_tagalys('/products/sync_updates', request_body)
125
+ end
126
+
117
127
  def request_tagalys(path, request_body)
118
128
  uri = URI.parse("https://api-r1.tagalys.com/v1/" + path)
119
129
  header = {'Content-Type': 'application/json'}
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anbazhagan Palani