yotpo 0.1.0 → 1.0.0
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.
- checksums.yaml +5 -13
- data/.ruby-version +1 -1
- data/.travis.yml +0 -2
- data/lib/yotpo.rb +1 -1
- data/lib/yotpo/api/account_social.rb +39 -0
- data/lib/yotpo/api/answer.rb +16 -0
- data/lib/yotpo/api/comment.rb +38 -0
- data/lib/yotpo/api/feature.rb +12 -0
- data/lib/yotpo/api/oauth.rb +13 -0
- data/lib/yotpo/api/owner_feature.rb +48 -0
- data/lib/yotpo/api/owner_feature_setting.rb +37 -0
- data/lib/yotpo/api/product.rb +13 -0
- data/lib/yotpo/api/question.rb +44 -0
- data/lib/yotpo/api/review.rb +4 -1
- data/lib/yotpo/api/user.rb +5 -0
- data/lib/yotpo/client.rb +21 -5
- data/lib/yotpo/core/response_parser.rb +5 -3
- data/lib/yotpo/version.rb +1 -1
- data/spec/api/account_social_spec.rb +59 -0
- data/spec/api/answer_spec.rb +32 -0
- data/spec/api/comment_spec.rb +74 -0
- data/spec/api/feature_spec.rb +21 -0
- data/spec/api/oauth_spec.rb +22 -0
- data/spec/api/owner_feature_setting_spec.rb +79 -0
- data/spec/api/owner_feature_spec.rb +77 -0
- data/spec/api/product_spec.rb +18 -0
- data/spec/api/purchase_spec.rb +2 -2
- data/spec/api/question_spec.rb +53 -0
- data/spec/api/review_spec.rb +17 -0
- data/spec/api/user_spec.rb +14 -0
- data/spec/cassettes/add_features.yml +51 -0
- data/spec/cassettes/add_shop_owner_answer.yml +49 -0
- data/spec/cassettes/add_vote_to_review.yml +46 -0
- data/spec/cassettes/anonymous_user_confirmation.yml +49 -0
- data/spec/cassettes/create_account_social.yml +51 -0
- data/spec/cassettes/create_comment.yml +53 -0
- data/spec/cassettes/create_new_purchase.yml +23 -28
- data/spec/cassettes/get_account_social.yml +51 -0
- data/spec/cassettes/get_feature_settings.yml +50 -0
- data/spec/cassettes/get_features.yml +191 -0
- data/spec/cassettes/get_owner_features.yml +106 -0
- data/spec/cassettes/get_product_url.yml +93 -0
- data/spec/cassettes/mass_update_feature_settings.yml +48 -0
- data/spec/cassettes/owner_feature_settings.yml +49 -0
- data/spec/cassettes/question_create_by_token.yml +49 -0
- data/spec/cassettes/question_send_confirmation.yml +74 -0
- data/spec/cassettes/remove_feature.yml +49 -0
- data/spec/cassettes/update_account_social.yml +50 -0
- data/spec/cassettes/update_comment.yml +50 -0
- data/spec/cassettes/update_comment_avatar.yml +48 -0
- data/spec/cassettes/update_feature_settings.yml +48 -0
- data/spec/cassettes/user_enable_feature.yml +49 -0
- data/spec/cassettes/validate_token.yml +48 -0
- data/yotpo.gemspec +2 -2
- metadata +99 -26
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/features
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC","id":1}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.7.7
|
23
|
+
Date:
|
24
|
+
- Wed, 18 Nov 2015 10:55:26 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Content-Length:
|
28
|
+
- '38'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Etag:
|
34
|
+
- '"a873ac57132fed9ae7f368e3c8c85724"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 834bdaa67d599bcc8ed9daca6806607c
|
39
|
+
X-Runtime:
|
40
|
+
- '4.551751'
|
41
|
+
P3p:
|
42
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
43
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
44
|
+
Access-Control-Allow-Credentials:
|
45
|
+
- 'true'
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"status":{"code":200,"message":"OK"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Wed, 18 Nov 2015 10:55:26 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/questions/451/answers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"comment":{"content":"This is the answer","public":true},"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.9.4
|
23
|
+
Date:
|
24
|
+
- Tue, 08 Dec 2015 12:48:33 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Content-Length:
|
28
|
+
- '422'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Etag:
|
34
|
+
- '"2a3c73cd6422206e1d7f124d8ffcf057"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 09e9de22e14d3441e5039362fe57c441
|
39
|
+
X-Runtime:
|
40
|
+
- '0.797563'
|
41
|
+
Access-Control-Allow-Credentials:
|
42
|
+
- 'true'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"comment":{"id":773,"commentable_id":451,"commentable_type":"Question","content":"This
|
46
|
+
is the answer","votes_up":0,"votes_down":0,"public":true,"approved":true,"created_at":"2015-12-08T12:48:32Z","store_owner_comment":true,"answerer":{"id":5,"display_name":"Tova","slug":"faye_buckridge","social_image":null,"is_social_connected":false,"bio":null,"score":0,"badges":[]}}}}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Tue, 08 Dec 2015 12:48:33 GMT
|
49
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/reviews/2/vote/up
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: 'OK '
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.9.4
|
21
|
+
Date:
|
22
|
+
- Thu, 17 Dec 2015 11:51:15 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Content-Length:
|
26
|
+
- '69'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Ua-Compatible:
|
30
|
+
- IE=Edge,chrome=1
|
31
|
+
Etag:
|
32
|
+
- '"f32366c832113a7fc943052719cfc37a"'
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 59fd3f4ef2fd9f59402cbf55f1990bcc
|
37
|
+
X-Runtime:
|
38
|
+
- '0.526908'
|
39
|
+
Access-Control-Allow-Credentials:
|
40
|
+
- 'true'
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"vote":{"id":807}}}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Thu, 17 Dec 2015 11:51:15 GMT
|
46
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/users/anonymous/PC3yqmddeS434jWW1bVi
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 302
|
17
|
+
message: 'Found '
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.9.4
|
21
|
+
Date:
|
22
|
+
- Thu, 17 Dec 2015 09:28:40 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/html; charset=utf-8
|
25
|
+
Content-Length:
|
26
|
+
- '96'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Location:
|
30
|
+
- https://www.yotpo.com/500.html
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- 63ab5b8381e62be57067df53d435b48c
|
37
|
+
X-Runtime:
|
38
|
+
- '0.387431'
|
39
|
+
Set-Cookie:
|
40
|
+
- _yotpo-api-1_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTAxYTZmYTZhNDY5ODZlMDYwMmEzNGY1ZmQyMzAxMTUyBjsAVA%3D%3D--bb13a54336487f16af84fc3cb16218bccc921a9c;
|
41
|
+
path=/; HttpOnly
|
42
|
+
Access-Control-Allow-Credentials:
|
43
|
+
- 'true'
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: <html><body>You are being <a href="https://www.yotpo.com/500.html">redirected</a>.</body></html>
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 17 Dec 2015 09:28:40 GMT
|
49
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/account_socials
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"account_social":{"social_network_name":"INSTAGRAM","access_token":78910,"social_id":111213141516,"secret":null,"page_token":null,"page_id":null,"message":null,"social_push_type_id":null,"invalidated_at":null},"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: 'OK '
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.7.7
|
23
|
+
Date:
|
24
|
+
- Tue, 22 Mar 2016 14:50:08 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Content-Length:
|
28
|
+
- '416'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Yotpo-Parsed-Request:
|
32
|
+
- '{"action":"create","controller":"account_socials","app_id":"3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy"}'
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- '"103fc14187a0c64fe3c8f4569de2d8f3"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 01a8dc21d0a64b8df60810e5acb88bc4
|
41
|
+
X-Runtime:
|
42
|
+
- '0.402897'
|
43
|
+
Access-Control-Allow-Credentials:
|
44
|
+
- 'true'
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"account_social":{"id":17,"social_network":{"name":"INSTAGRAM"},"access_token":78910,"secret":null,"social_id":111213141516,"page_token":null,"page_id":null,"message":null,"message_with_default":"Thinking
|
48
|
+
about buying {product}? Read our latest review of the product by {user}.","installed_on_page":false,"social_push_type":{"name":"MANUAL"},"invalidated_at":null}}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Tue, 22 Mar 2016 14:50:08 GMT
|
51
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/reviews/1/comments
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC","comment":{"content":"Comment
|
9
|
+
content","public":true}}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.9.2
|
13
|
+
Yotpo-Api-Connector:
|
14
|
+
- Ruby0.1.0
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: 'OK '
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- nginx/1.7.7
|
24
|
+
Date:
|
25
|
+
- Wed, 18 Nov 2015 16:24:10 GMT
|
26
|
+
Content-Type:
|
27
|
+
- application/json; charset=utf-8
|
28
|
+
Content-Length:
|
29
|
+
- '195'
|
30
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
X-Ua-Compatible:
|
33
|
+
- IE=Edge,chrome=1
|
34
|
+
Etag:
|
35
|
+
- '"30fb2876c993419b3bd21dc27db52145"'
|
36
|
+
Cache-Control:
|
37
|
+
- max-age=0, private, must-revalidate
|
38
|
+
X-Request-Id:
|
39
|
+
- 4c70b4d5d4a741959ab36b375f266612
|
40
|
+
X-Runtime:
|
41
|
+
- '56.877712'
|
42
|
+
P3p:
|
43
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
44
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
45
|
+
Access-Control-Allow-Credentials:
|
46
|
+
- 'true'
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"comment":{"id":5,"commentable_id":1,"commentable_type":"Review","content":"Comment
|
50
|
+
content","public":true,"created_at":"2015-11-18T16:24:10Z"}}}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Wed, 18 Nov 2015 16:24:10 GMT
|
53
|
+
recorded_with: VCR 2.9.3
|
@@ -6,50 +6,45 @@ http_interactions:
|
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC","email":"some@one.com","customer_name":"Customer
|
9
|
-
Name","order_date":null,"currency_iso":null,"order_id":"123","platform":"shopify","products":
|
10
|
-
is the description of a product"}}
|
9
|
+
Name","order_date":null,"currency_iso":null,"order_id":"123","platform":"shopify","products":{"p1":{"url":"http://example_product_url1.com","name":"product1","image":"http://example_product_image_url1.com","description":"this
|
10
|
+
is the description of a product"}}}'
|
11
11
|
headers:
|
12
12
|
User-Agent:
|
13
|
-
- Faraday v0.9.
|
13
|
+
- Faraday v0.9.2
|
14
14
|
Yotpo-Api-Connector:
|
15
|
-
- Ruby0.0
|
15
|
+
- Ruby0.1.0
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
18
|
response:
|
19
19
|
status:
|
20
20
|
code: 200
|
21
|
-
message: OK
|
21
|
+
message: 'OK '
|
22
22
|
headers:
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
23
|
+
Server:
|
24
|
+
- nginx/1.9.4
|
25
|
+
Date:
|
26
|
+
- Mon, 30 Nov 2015 07:49:25 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
|
-
Date:
|
30
|
-
- Sun, 19 Jul 2015 07:31:39 GMT
|
31
|
-
Etag:
|
32
|
-
- '"ff338c05e925e0da825f92d06e112107"'
|
33
|
-
P3p:
|
34
|
-
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
35
|
-
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
36
|
-
Server:
|
37
|
-
- nginx
|
38
|
-
Status:
|
39
|
-
- 200 OK
|
40
|
-
X-Request-Id:
|
41
|
-
- 9d186752f753abed9ce9bb2a1ef08aff
|
42
|
-
X-Runtime:
|
43
|
-
- '0.024236'
|
44
|
-
X-Ua-Compatible:
|
45
|
-
- IE=Edge,chrome=1
|
46
29
|
Content-Length:
|
47
30
|
- '27'
|
48
31
|
Connection:
|
49
32
|
- keep-alive
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- '"ff338c05e925e0da825f92d06e112107"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 844411edc9364411fd82dcbc81e9c2b8
|
41
|
+
X-Runtime:
|
42
|
+
- '4.195039'
|
43
|
+
Access-Control-Allow-Credentials:
|
44
|
+
- 'true'
|
50
45
|
body:
|
51
46
|
encoding: UTF-8
|
52
47
|
string: '{"code":200,"message":"OK"}'
|
53
48
|
http_version:
|
54
|
-
recorded_at:
|
55
|
-
recorded_with: VCR
|
49
|
+
recorded_at: Mon, 30 Nov 2015 07:49:25 GMT
|
50
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/account_socials?utoken=Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: 'OK '
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.9.4
|
21
|
+
Date:
|
22
|
+
- Mon, 21 Mar 2016 16:08:17 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Content-Length:
|
26
|
+
- '1627'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Yotpo-Parsed-Request:
|
30
|
+
- '{"action":"index","controller":"account_socials","app_id":"3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy"}'
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Etag:
|
34
|
+
- '"a2aea1f9267128278c7348011f9b1fcd"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 43f64be9da45a45f5ee8a407a92792f9
|
39
|
+
X-Runtime:
|
40
|
+
- '0.337512'
|
41
|
+
Access-Control-Allow-Credentials:
|
42
|
+
- 'true'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"account_socials":[{"id":1,"social_network":{"name":"FACEBOOK"},"access_token":"CAADNqneQuJsBAERaUohrMSmxwcjFnIS2x8DWVWDYCuYnGqAh2X1zUeYWZBYCpLBtgfKQ5ZBZBM9rdomGk0oF4ufZAnO6xwz1ZAzfvFBc84TvjYLeCuZCNu7TxAZAkyZCVQtijZC0NqP2YUjyNGxEoxGPsfZC2E5JPwnMgFn6WpHpsqfSU7ZBRuef9FJ3ZB5W2Blq3pmDKkn2wpPoygZDZD","secret":null,"social_id":"100002479484292","page_token":"CAADNqneQuJsBAIH7OZBzND53mdyrHLan1jgV2VETeSMJaGQ1CTijvpfDfoXLIrrKFdtHMZAdX1CCkNQneWcRGR46oR1el23zv7NX4ZBLZBqM8rtMe6MEQ3d7bMZANG8BvoS0BZBHEpyZAeJ8l8xPOOH0PnWWKChEXK0tpEKbqrzFUkaD5k0bWcML5iNBKUa2qMZD","page_id":"177401432329456","message":null,"message_with_default":"Thinking
|
46
|
+
about buying {product}? Read our latest review of the product by {user}.","installed_on_page":false,"social_push_type":{"name":"MANUAL"},"invalidated_at":null},{"id":2,"social_network":{"name":"TWITTER"},"access_token":"618926851-5bwa3c00enRo2zBky3bwq6snUw7XNBNmkUWwZwgH","secret":"LgXW4yI25y5bkX15XEDbeVaeLDwrBHEniZ3Jok0CbcHey","social_id":"618926851","page_token":null,"page_id":null,"message":null,"message_with_default":"Thinking
|
47
|
+
about buying {product}? Read our latest review of the product by {user}.","installed_on_page":false,"social_push_type":{"name":"MANUAL"},"invalidated_at":null},{"id":4,"social_network":{"name":"INSTAGRAM"},"access_token":"78910","secret":null,"social_id":"111213141516","page_token":null,"page_id":null,"message":null,"message_with_default":"Thinking
|
48
|
+
about buying {product}? Read our latest review of the product by {user}.","installed_on_page":false,"social_push_type":{"name":"MANUAL"},"invalidated_at":null}]}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 21 Mar 2016 16:08:17 GMT
|
51
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/features/11/get_multiple_owners_settings?owner_ids%5B%5D=300&utoken=Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.2
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- Ruby0.1.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: 'OK '
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.7.7
|
21
|
+
Date:
|
22
|
+
- Mon, 21 Dec 2015 15:56:08 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Content-Length:
|
26
|
+
- '557'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Ua-Compatible:
|
30
|
+
- IE=Edge,chrome=1
|
31
|
+
Etag:
|
32
|
+
- '"56b166d636c4f6f81a409f9495268ebc"'
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- a0ce1a38df6b3d5b0b6df0276786c085
|
37
|
+
X-Runtime:
|
38
|
+
- '1.352584'
|
39
|
+
P3p:
|
40
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
41
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
42
|
+
Access-Control-Allow-Credentials:
|
43
|
+
- 'true'
|
44
|
+
body:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"status":{"code":200,"message":"OK"},"response":{"300":{"widget_size":{"unit":"percentage","value":100},"font_size":"14","font_type":"Open
|
47
|
+
Sans","background_color":{"transparent":true,"color":"#ffffff"},"color_primary":"#3085c7","color_d1":"#26649f","color_d2":"#1d5077","color_l1":"#599dd2","color_l2":"#83b6dd","color_l3":"#accee9","color_l4":"#d6e7f4","color_stars":"#ffd200","color_text_white":"#ffffff","theme":"light","color_text_gray_light":"#e3e3e3","color_text_gray":"#a2a2a2","color_text_gray_dark":"#737373","color_text_gray_darker":"#4f4f4f"}}}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 21 Dec 2015 15:56:08 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|