tagalys 0.1.6 → 0.1.7
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 +10 -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: 674ce097620d8de3d465429d978576fefdd189e04009404b075dc045eb1ecc45
|
4
|
+
data.tar.gz: faf8ac41a4f2461b3649a98dc438be2bd9086418f95607e4b66e88cc3e9c2228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db4739d0073a45f792ae5005b35360701d70f180b174a0b323f194cbb6fd23920083ffb7025b25499d8d38d350c878c223668f72feca88278164b1b2097bcb4
|
7
|
+
data.tar.gz: 73d5a282a123672143a3a49dd407c699ce38cbc64373be5d0b0f7f23686dda657e5458f231deb4bc71897d6e77e6e6385a64aa6243480a364a9ea7c2ffbd3042
|
data/lib/tagalys.rb
CHANGED
@@ -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'}
|