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.
Files changed (55) hide show
  1. checksums.yaml +5 -13
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +0 -2
  4. data/lib/yotpo.rb +1 -1
  5. data/lib/yotpo/api/account_social.rb +39 -0
  6. data/lib/yotpo/api/answer.rb +16 -0
  7. data/lib/yotpo/api/comment.rb +38 -0
  8. data/lib/yotpo/api/feature.rb +12 -0
  9. data/lib/yotpo/api/oauth.rb +13 -0
  10. data/lib/yotpo/api/owner_feature.rb +48 -0
  11. data/lib/yotpo/api/owner_feature_setting.rb +37 -0
  12. data/lib/yotpo/api/product.rb +13 -0
  13. data/lib/yotpo/api/question.rb +44 -0
  14. data/lib/yotpo/api/review.rb +4 -1
  15. data/lib/yotpo/api/user.rb +5 -0
  16. data/lib/yotpo/client.rb +21 -5
  17. data/lib/yotpo/core/response_parser.rb +5 -3
  18. data/lib/yotpo/version.rb +1 -1
  19. data/spec/api/account_social_spec.rb +59 -0
  20. data/spec/api/answer_spec.rb +32 -0
  21. data/spec/api/comment_spec.rb +74 -0
  22. data/spec/api/feature_spec.rb +21 -0
  23. data/spec/api/oauth_spec.rb +22 -0
  24. data/spec/api/owner_feature_setting_spec.rb +79 -0
  25. data/spec/api/owner_feature_spec.rb +77 -0
  26. data/spec/api/product_spec.rb +18 -0
  27. data/spec/api/purchase_spec.rb +2 -2
  28. data/spec/api/question_spec.rb +53 -0
  29. data/spec/api/review_spec.rb +17 -0
  30. data/spec/api/user_spec.rb +14 -0
  31. data/spec/cassettes/add_features.yml +51 -0
  32. data/spec/cassettes/add_shop_owner_answer.yml +49 -0
  33. data/spec/cassettes/add_vote_to_review.yml +46 -0
  34. data/spec/cassettes/anonymous_user_confirmation.yml +49 -0
  35. data/spec/cassettes/create_account_social.yml +51 -0
  36. data/spec/cassettes/create_comment.yml +53 -0
  37. data/spec/cassettes/create_new_purchase.yml +23 -28
  38. data/spec/cassettes/get_account_social.yml +51 -0
  39. data/spec/cassettes/get_feature_settings.yml +50 -0
  40. data/spec/cassettes/get_features.yml +191 -0
  41. data/spec/cassettes/get_owner_features.yml +106 -0
  42. data/spec/cassettes/get_product_url.yml +93 -0
  43. data/spec/cassettes/mass_update_feature_settings.yml +48 -0
  44. data/spec/cassettes/owner_feature_settings.yml +49 -0
  45. data/spec/cassettes/question_create_by_token.yml +49 -0
  46. data/spec/cassettes/question_send_confirmation.yml +74 -0
  47. data/spec/cassettes/remove_feature.yml +49 -0
  48. data/spec/cassettes/update_account_social.yml +50 -0
  49. data/spec/cassettes/update_comment.yml +50 -0
  50. data/spec/cassettes/update_comment_avatar.yml +48 -0
  51. data/spec/cassettes/update_feature_settings.yml +48 -0
  52. data/spec/cassettes/user_enable_feature.yml +49 -0
  53. data/spec/cassettes/validate_token.yml +48 -0
  54. data/yotpo.gemspec +2 -2
  55. metadata +99 -26
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.yotpo.com/questions/create_by_token?content=Integer%20feugiat%20nunc%20non%20leo%20vehicula%20bibendum.%20Nulla%20at%20tortor%20at%20nulla%20faucibus%20suscipit.%20Curabitur%20sodales%20est%20vel%20orci%20lobortis%20convallis.%20Vestibulum%20sit%20amet%20tellus%20neque,%20ac%20euismod%20arcu.%20Phasellus%20a%20nunc%20ultrices%20erat%20condimentum%20facilisis.%20Donec%20a%20odio%20in%20ligula%20vestibulum%20lobortis.%20Mauris%20posuere,%20justo%20tincidunt%20tincidunt%20interdum,%20felis%20velit%20venenatis%20augue,%20vel%20rhoncus%20purus%20turpis%20ut%20magna.%20Quisque%20consequat%20elit%20vitae%20enim%20molestie%20mattis.%20Class%20aptent%20taciti%20sociosqu%20ad%20litora%20torquent%20per%20conubia%20nostra,%20per%20inceptos%20himenaeos.%20Curabitur%20adipiscing%20consequat%20lectus%20eu%20pulvinar.%20Vestibulum%20ante%20ipsum%20primis%20in%20faucibus%20orci%20luctus%20et%20ultrices%20posuere%20cubilia%20Curae&product_description=Nullam%20ultrices%20purus%20a%20metus%20porttitor%20hendrerit.%20Vivamus%20accumsan%20congue%20urna%20a%20viverra.%20Nam%20molestie%20euismod%20est,%20vitae%20sollicitudin%20velit%20scelerisque%20vel.%20Quisque%20feugiat,%20metus%20sed%20tempus%20malesuada,%20quam%20erat%20volutpat%20metus,%20a%20tempor%20felis%20est%20id%20purus.%20Ut%20nec%20felis%20nunc,%20id%20cursus%20magna.%20Mauris%20sollicitudin%20ultrices%20velit%20vitae%20viverra.%20Nulla%20faucibus%20lacus%20id%20nisl%20euismod%20porta.%20Curabitur%20mi%20magna,%20tempus%20tristique%20commodo%20sit%20amet,%20imperdiet%20in%20eros.%20Proin%20eros%20arcu,%20ornare%20in%20lobortis%20eu,%20posuere%20ut%20risus.%20Quisque%20fermentum%20varius%20nibh,%20id%20aliquet%20lectus%20congue%20quis.%20In%20placerat%20arcu%20at%20libero%20posuere%20eleifend.%20Donec%20lacinia%20mollis%20lacus,%20at%20aliquam%20nisi%20molestie%20nec.%20Cras%20eleifend%20gravida%20nulla,%20vitae%20mollis%20eros%20varius%20eleifend.%20Pellentesque%20elit%20sem,%20lacinia%20eget%20fringilla%20vitae,%20condimentum%20eu%20quam.%20Proin%20quis%20orci%20arcu,%20ut%20suscipit%20arcu.&product_image_url=https://www.google.com/images/srpr/logo4w.png&product_title=Product%20Title&product_url=https://www.google.com/?q=pforducturl&sku=D-4771&token=430c58a5b4880d915ef1af941d315648289c8aad&utm_campaign=general&utm_medium=general&utm_source=yotpo
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.7.7
21
+ Date:
22
+ - Mon, 07 Dec 2015 13:06:18 GMT
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Content-Length:
26
+ - '123'
27
+ Connection:
28
+ - keep-alive
29
+ Location:
30
+ - https://landing-pages.yotpo.com/question?mail_language=en
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Cache-Control:
34
+ - no-cache
35
+ X-Request-Id:
36
+ - 576fb8c8558a54abed0466072e3045bf
37
+ X-Runtime:
38
+ - '0.964410'
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: <html><body>You are being <a href="https://landing-pages.yotpo.com/question?mail_language=en">redirected</a>.</body></html>
47
+ http_version:
48
+ recorded_at: Mon, 07 Dec 2015 13:06:18 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.yotpo.com/questions/send_confirmation_mail
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"appkey":"3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy","sku":"D-4771","product_title":"Product
9
+ Title","product_url":"https://www.google.com/?q=pforducturl","display_name":"User
10
+ Name","email":"user@email.com","review_content":"Integer feugiat nunc non
11
+ leo vehicula bibendum. Nulla at tortor at nulla faucibus suscipit. Curabitur
12
+ sodales est vel orci lobortis convallis. Vestibulum sit amet tellus neque,
13
+ ac euismod arcu. Phasellus a nunc ultrices erat condimentum facilisis. Donec
14
+ a odio in ligula vestibulum lobortis. Mauris posuere, justo tincidunt tincidunt
15
+ interdum, felis velit venenatis augue, vel rhoncus purus turpis ut magna.
16
+ Quisque consequat elit vitae enim molestie mattis. Class aptent taciti sociosqu
17
+ ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur adipiscing
18
+ consequat lectus eu pulvinar. Vestibulum ante ipsum primis in faucibus orci
19
+ luctus et ultrices posuere cubilia Curae","review_source":"widget_v2","product_description":"Nullam
20
+ ultrices purus a metus porttitor hendrerit. Vivamus accumsan congue urna a
21
+ viverra. Nam molestie euismod est, vitae sollicitudin velit scelerisque vel.
22
+ Quisque feugiat, metus sed tempus malesuada, quam erat volutpat metus, a tempor
23
+ felis est id purus. Ut nec felis nunc, id cursus magna. Mauris sollicitudin
24
+ ultrices velit vitae viverra. Nulla faucibus lacus id nisl euismod porta.
25
+ Curabitur mi magna, tempus tristique commodo sit amet, imperdiet in eros.
26
+ Proin eros arcu, ornare in lobortis eu, posuere ut risus. Quisque fermentum
27
+ varius nibh, id aliquet lectus congue quis. In placerat arcu at libero posuere
28
+ eleifend. Donec lacinia mollis lacus, at aliquam nisi molestie nec. Cras eleifend
29
+ gravida nulla, vitae mollis eros varius eleifend. Pellentesque elit sem, lacinia
30
+ eget fringilla vitae, condimentum eu quam. Proin quis orci arcu, ut suscipit
31
+ arcu.","product_image_url":"https://www.google.com/images/srpr/logo4w.png"}'
32
+ headers:
33
+ User-Agent:
34
+ - Faraday v0.9.2
35
+ Yotpo-Api-Connector:
36
+ - Ruby0.1.0
37
+ Content-Type:
38
+ - application/json
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: 'OK '
43
+ headers:
44
+ Server:
45
+ - nginx/1.7.7
46
+ Date:
47
+ - Mon, 07 Dec 2015 13:05:00 GMT
48
+ Content-Type:
49
+ - application/json; charset=utf-8
50
+ Content-Length:
51
+ - '38'
52
+ Connection:
53
+ - keep-alive
54
+ X-Ua-Compatible:
55
+ - IE=Edge,chrome=1
56
+ Etag:
57
+ - '"a873ac57132fed9ae7f368e3c8c85724"'
58
+ Cache-Control:
59
+ - max-age=0, private, must-revalidate
60
+ X-Request-Id:
61
+ - cef662dbebdce1ec0403ce0a3a6a6d72
62
+ X-Runtime:
63
+ - '0.079528'
64
+ P3p:
65
+ - policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
66
+ CONi HIS OUR IND CNT", CP="CAO PSA OUR"
67
+ Access-Control-Allow-Credentials:
68
+ - 'true'
69
+ body:
70
+ encoding: UTF-8
71
+ string: '{"status":{"code":200,"message":"OK"}}'
72
+ http_version:
73
+ recorded_at: Mon, 07 Dec 2015 13:05:00 GMT
74
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/features/1?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
+ - Wed, 18 Nov 2015 10:59:23 GMT
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Content-Length:
26
+ - '38'
27
+ Connection:
28
+ - keep-alive
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - '"a873ac57132fed9ae7f368e3c8c85724"'
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 43cc993e0a47900f427184b11e860571
37
+ X-Runtime:
38
+ - '0.282038'
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"}}'
47
+ http_version:
48
+ recorded_at: Wed, 18 Nov 2015 10:59:23 GMT
49
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/account_socials/17
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC","account_social":{"access_token":123,"secret":123}}'
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:51:59 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '73'
29
+ Connection:
30
+ - keep-alive
31
+ Yotpo-Parsed-Request:
32
+ - '{"action":"update","controller":"account_socials","app_id":"3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy","id":"17"}'
33
+ X-Ua-Compatible:
34
+ - IE=Edge,chrome=1
35
+ Etag:
36
+ - '"85da173e31752dda778be7e809d4e973"'
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ X-Request-Id:
40
+ - 25461e3ee806040eef1b66b008b7cb1d
41
+ X-Runtime:
42
+ - '0.203654'
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"status":{"code":200,"message":"OK"},"response":{"account_social":true}}'
48
+ http_version:
49
+ recorded_at: Tue, 22 Mar 2016 14:51:59 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.yotpo.com/reviews/1/comments/695
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.9.4
24
+ Date:
25
+ - Wed, 25 Nov 2015 10:47:27 GMT
26
+ Content-Type:
27
+ - application/json; charset=utf-8
28
+ Content-Length:
29
+ - '197'
30
+ Connection:
31
+ - keep-alive
32
+ X-Ua-Compatible:
33
+ - IE=Edge,chrome=1
34
+ Etag:
35
+ - '"3101a22510b2a0f0895f4b3583f75c75"'
36
+ Cache-Control:
37
+ - max-age=0, private, must-revalidate
38
+ X-Request-Id:
39
+ - 134cc43e6077b6953ee7bc86b77aa374
40
+ X-Runtime:
41
+ - '0.907300'
42
+ Access-Control-Allow-Credentials:
43
+ - 'true'
44
+ body:
45
+ encoding: UTF-8
46
+ string: '{"status":{"code":200,"message":"OK"},"response":{"comment":{"id":695,"commentable_id":2,"commentable_type":"Review","content":"Comment
47
+ content","public":true,"created_at":"2015-11-25T12:44:36Z"}}}'
48
+ http_version:
49
+ recorded_at: Wed, 25 Nov 2015 10:47:27 GMT
50
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/app_comment_avatar
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"utoken":"9VxDwc2bdSH3wVUxMhrXucVETduQv5ikXnRs9Hdp","comments_avatar_data":{"original_filename":"image","data":"aW1hZ2U=\n","content_type":"image/jpg"},"comments_display_name":"Tova"}'
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, 24 Nov 2015 13:48:27 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
+ - ab5ebd536d7a9cdda569f382a6ff11ea
39
+ X-Runtime:
40
+ - '0.341311'
41
+ Access-Control-Allow-Credentials:
42
+ - 'true'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"status":{"code":200,"message":"OK"}}'
46
+ http_version:
47
+ recorded_at: Tue, 24 Nov 2015 13:48:27 GMT
48
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/features/11/feature_settings/38
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC","value":10,"key":"font_size"}'
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
+ - Sun, 20 Dec 2015 07:53:36 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
+ - 4dc487a01a6593a0a5816bad35007f86
39
+ X-Runtime:
40
+ - '2.985577'
41
+ Access-Control-Allow-Credentials:
42
+ - 'true'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"status":{"code":200,"message":"OK"}}'
46
+ http_version:
47
+ recorded_at: Sun, 20 Dec 2015 07:53:36 GMT
48
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.yotpo.com/apps/3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy/features/5
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"utoken":"Ufo5XkKXNsuh0k9ZMPndRv4DlV9324ptg730KKqC","feature":{"user_enabled":true}}'
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
+ - Wed, 25 Nov 2015 14:59:12 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '137'
29
+ Connection:
30
+ - keep-alive
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - '"51299b01b2f5c351e292806b417935ce"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 85e6b12ea15a24e2982fda9d2cb4bf32
39
+ X-Runtime:
40
+ - '0.311647'
41
+ Access-Control-Allow-Credentials:
42
+ - 'true'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"status":{"code":200,"message":"OK"},"response":{"feature":{"name":"Notifications","description":"Display
46
+ Notifications for b2b user"}}}'
47
+ http_version:
48
+ recorded_at: Wed, 25 Nov 2015 14:59:12 GMT
49
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.yotpo.com/oauth/validate_token?app_key=3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy&token=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 Mar 2016 08:56:26 GMT
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Content-Length:
26
+ - '141'
27
+ Connection:
28
+ - keep-alive
29
+ Yotpo-Parsed-Request:
30
+ - '{"controller":"token_validator","action":"show"}'
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - '"7e7fac65ce4b2dd885197aab5c6b968f"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - e439104eb1754ead52994340f1006532
39
+ X-Runtime:
40
+ - '1.145917'
41
+ Access-Control-Allow-Credentials:
42
+ - 'true'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"Status":"Success","Code":"200","user_id":301,"user_has_access_to_account":true,"application_id":"3ovRYNIb6OIAI0ddS7EfpYkHpi0oTKl6bj82Vjiy"}'
46
+ http_version:
47
+ recorded_at: Mon, 21 Mar 2016 08:56:26 GMT
48
+ recorded_with: VCR 2.9.3