yotpo 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yotpo/api/product.rb +1 -1
- data/lib/yotpo/version.rb +1 -1
- data/spec/cassettes/check_products_information.yml +52 -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: 30a4afe6dcf9fd106b06eafcf3e1993b2670c3b4d63a781263a45bd3b00191cf
|
4
|
+
data.tar.gz: af933d50164d18c60c77fc4b5da2426588a88c40ece2275e135cb8679430c22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6a2d157834a1ec93cb93aba761548e373931d5e2b9c551c3e3ead1c1d26b8a93f4a5aff41c0d50f3ab318db2b0dae97ecec199171ede97fd04aea7b81897de6
|
7
|
+
data.tar.gz: c6e7bf290fd8594f3fe37ce9a77ea30e56a2f8defef30fa0430b0792b812b10d8f713be3d5fa07090b1f690df3e1d5b9358669947fd84f4e5b69d2e2092b6397
|
data/lib/yotpo/api/product.rb
CHANGED
@@ -13,7 +13,7 @@ module Yotpo
|
|
13
13
|
|
14
14
|
def get_products_information(params)
|
15
15
|
app_key = params[:app_key]
|
16
|
-
get("/v1/widget/#{app_key}/products/products_information", { domain_keys: params[:domain_keys] })
|
16
|
+
get("/v1/widget/#{app_key}/products/products_information", { domain_keys: params[:domain_keys], ref_name: params[:ref_name] })
|
17
17
|
end
|
18
18
|
|
19
19
|
#
|
data/lib/yotpo/version.rb
CHANGED
@@ -52,4 +52,56 @@ http_interactions:
|
|
52
52
|
Bird","domain_key":"1","product_link":"https://yotpo.com/go/mEiK6Ji5","product_url":"http://yotpo.mysimplestore.com/products/angry-bird","image_url":"https://s3.amazonaws.com/yotpo-images-test/Product/88/123/square.png?1503838853","score":null,"reviews_count":null}}}}'
|
53
53
|
http_version:
|
54
54
|
recorded_at: Tue, 05 Dec 2017 15:45:28 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://api.yotpo.com/v1/widget/vzStmYud6bHLto5ksn5DoGoA7ghM0kzjMdH2DS5T/products/products_information?domain_keys%5B%5D=1&domain_keys%5B%5D=2&ref_name
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- Faraday v0.9.2
|
64
|
+
Yotpo-Api-Connector:
|
65
|
+
- Ruby1.0.3
|
66
|
+
response:
|
67
|
+
status:
|
68
|
+
code: 200
|
69
|
+
message: OK
|
70
|
+
headers:
|
71
|
+
Server:
|
72
|
+
- nginx/1.8.1
|
73
|
+
Date:
|
74
|
+
- Mon, 18 Dec 2017 09:31:27 GMT
|
75
|
+
Content-Type:
|
76
|
+
- application/json; charset=utf-8
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Connection:
|
80
|
+
- keep-alive
|
81
|
+
X-Frame-Options:
|
82
|
+
- SAMEORIGIN
|
83
|
+
X-Xss-Protection:
|
84
|
+
- 1; mode=block
|
85
|
+
X-Content-Type-Options:
|
86
|
+
- nosniff
|
87
|
+
Yotpo-Parsed-Request:
|
88
|
+
- '{"format":"json","controller":"widget/products","action":"products_information","app_key":"vzStmYud6bHLto5ksn5DoGoA7ghM0kzjMdH2DS5T"}'
|
89
|
+
Etag:
|
90
|
+
- W/"b8bb74f4e812cc9bb09d713b88bc2b0c"
|
91
|
+
Cache-Control:
|
92
|
+
- max-age=0, private, must-revalidate
|
93
|
+
X-Request-Id:
|
94
|
+
- ad543165-d0c0-4adc-9f22-201bd782ecac
|
95
|
+
X-Runtime:
|
96
|
+
- '0.747649'
|
97
|
+
Access-Control-Allow-Credentials:
|
98
|
+
- 'true'
|
99
|
+
Strict-Transport-Security:
|
100
|
+
- max-age=31536000; includeSubDomains
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"products":{"1":{"id":88,"name":"Angry
|
104
|
+
Bird","domain_key":"1","product_link":"https://yotpo.com/go/mEiK6Ji5","product_url":"http://yotpo.mysimplestore.com/products/angry-bird","image_url":"https://s3.amazonaws.com/yotpo-images-test/Product/88/123/square.png?1503838853","score":null,"reviews_count":null}}}}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 18 Dec 2017 09:31:27 GMT
|
55
107
|
recorded_with: VCR 3.0.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yotpo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Shub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|