yotpo 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +1 -0
- data/lib/yotpo/api/user.rb +4 -4
- data/lib/yotpo/client.rb +14 -0
- data/lib/yotpo/version.rb +1 -1
- data/spec/api/account_platform_spec.rb +5 -7
- data/spec/api/account_spec.rb +10 -11
- data/spec/api/product_spec.rb +10 -14
- data/spec/api/purchase_spec.rb +16 -18
- data/spec/api/reminder_spec.rb +6 -7
- data/spec/api/review_spec.rb +14 -14
- data/spec/api/user_spec.rb +14 -12
- data/spec/cassettes/check_minisite_subdomain.yml +99 -0
- data/spec/cassettes/create_account_platform.yml +58 -0
- data/spec/cassettes/create_new_purchase.yml +57 -0
- data/spec/cassettes/create_new_purchases.yml +57 -0
- data/spec/cassettes/create_review.yml +59 -0
- data/spec/cassettes/create_user.yml +57 -0
- data/spec/cassettes/get_login_url.yml +51 -0
- data/spec/cassettes/get_oauth_token.yml +53 -0
- data/spec/cassettes/get_product_bottom_line.yml +51 -0
- data/spec/cassettes/get_product_reviews.yml +72 -0
- data/spec/cassettes/get_purchases.yml +51 -0
- data/spec/cassettes/send_test_reminder.yml +56 -0
- data/spec/cassettes/update_account.yml +61 -0
- data/spec/helper.rb +15 -2
- metadata +27 -1
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/apps/nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG/account_platform
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"account_platform":{"shop_token":"asdasdadads","shop_domain":"schmitt.com","plan_name":"test
|
9
|
+
plan","platform_type_id":1,"deleted":false},"utoken":"mz3AdCKGsoxJB00u0gmq2usGE3HI8HDHFZC5dlLl"}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.8.7
|
13
|
+
Yotpo-Api-Connector:
|
14
|
+
- 0.0.4
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- nginx/1.2.1
|
24
|
+
Date:
|
25
|
+
- Thu, 23 May 2013 12:01:38 GMT
|
26
|
+
Content-Type:
|
27
|
+
- application/json; charset=utf-8
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Status:
|
33
|
+
- 200 OK
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Etag:
|
37
|
+
- ! '"a256df543f1a87337d22e71180e5dd02"'
|
38
|
+
Cache-Control:
|
39
|
+
- max-age=0, private, must-revalidate
|
40
|
+
Set-Cookie:
|
41
|
+
- _yotpo-api-1_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWRjNmNlYTNmODhiNTljMzk2ZjAyODdjOWRhNGNkOGQ1BjsAVA%3D%3D--a24cde851f83bd2ec3d4204c54bbef4677d591d9;
|
42
|
+
path=/; HttpOnly
|
43
|
+
X-Request-Id:
|
44
|
+
- 394f43cf6428d562fe172c3886f0c629
|
45
|
+
X-Runtime:
|
46
|
+
- '0.068062'
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=2592000; includeSubdomains
|
49
|
+
P3p:
|
50
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
51
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":{"code":200,"message":"OK"},"response":{"account_platform":{"id":1,"shop_token":null,"shop_domain":null,"plan_name":null,"platform_type":{"id":2,"name":"general","description":"users
|
55
|
+
that signup for general purpose","billable":false},"deleted":null,"shop_user_name":null,"secondary_cancelled_charge_at":null,"secondary_activated_charge_at":null,"secondary_recurring_charge_id":null,"secondary_shop_token":null}}}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Thu, 23 May 2013 12:01:38 GMT
|
58
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/apps/nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"utoken":"mz3AdCKGsoxJB00u0gmq2usGE3HI8HDHFZC5dlLl","email":"rosetta.boehm@heaney.co.uk","customer_name":"freda","order_id":"123","platform":"shopify","products":[{"p1":{"url":"http://example_product_url1.com","name":"product1","image":"http://example_product_image_url1.com","description":"this
|
9
|
+
is the description of a product"}}]}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.8.7
|
13
|
+
Yotpo-Api-Connector:
|
14
|
+
- 0.0.4
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- nginx/1.2.1
|
24
|
+
Date:
|
25
|
+
- Thu, 23 May 2013 12:01:39 GMT
|
26
|
+
Content-Type:
|
27
|
+
- application/json; charset=utf-8
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Status:
|
33
|
+
- 200 OK
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Etag:
|
37
|
+
- ! '"ff338c05e925e0da825f92d06e112107"'
|
38
|
+
Cache-Control:
|
39
|
+
- max-age=0, private, must-revalidate
|
40
|
+
Set-Cookie:
|
41
|
+
- _yotpo-api-1_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTE1MDk5NjIxODgyNzMzZjY3Nzg3YzMwNThiNDY5YzZlBjsAVA%3D%3D--11c63a78e376459e63d3021737b05fee58151605;
|
42
|
+
path=/; HttpOnly
|
43
|
+
X-Request-Id:
|
44
|
+
- a7637b4192cd687d998864ad0decdfb2
|
45
|
+
X-Runtime:
|
46
|
+
- '0.086851'
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=2592000; includeSubdomains
|
49
|
+
P3p:
|
50
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
51
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"code":200,"message":"OK"}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Thu, 23 May 2013 12:01:39 GMT
|
57
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/apps/nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG/purchases/mass_create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"utoken":"mz3AdCKGsoxJB00u0gmq2usGE3HI8HDHFZC5dlLl","orders":[{"email":"brandt@kuhnboehm.us","customer_name":"myles","order_id":"123","platform":"shopify","products":[{"p1":{"url":"http://example_product_url1.com","name":"product1","image":"http://example_product_image_url1.com","description":"this
|
9
|
+
is the description of a product"}}]}]}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.8.7
|
13
|
+
Yotpo-Api-Connector:
|
14
|
+
- 0.0.4
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- nginx/1.2.1
|
24
|
+
Date:
|
25
|
+
- Thu, 23 May 2013 12:01:39 GMT
|
26
|
+
Content-Type:
|
27
|
+
- application/json; charset=utf-8
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Status:
|
33
|
+
- 200 OK
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Etag:
|
37
|
+
- ! '"c09c7c5e1681219e88278dab7a45d672"'
|
38
|
+
Cache-Control:
|
39
|
+
- max-age=0, private, must-revalidate
|
40
|
+
Set-Cookie:
|
41
|
+
- _yotpo-api-1_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTkyNjYzZWRiOGMwYTY0N2Y2Mzc3YTcyZTk5OWVlMmU1BjsAVA%3D%3D--777f0339aa72348f3d67e84635da2593168d542b;
|
42
|
+
path=/; HttpOnly
|
43
|
+
X-Request-Id:
|
44
|
+
- cb21364a6c9ecf5431da6bb43c71d3c6
|
45
|
+
X-Runtime:
|
46
|
+
- '0.074285'
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=2592000; includeSubdomains
|
49
|
+
P3p:
|
50
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
51
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"code":500,"message":"Failure. no such platform: "}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Thu, 23 May 2013 12:01:39 GMT
|
57
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/reviews/dynamic_create?appkey=nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG&display_name=diana&email=golden@feeneyokon.ca&product_description=Minima%20cupiditate%20ut%20delectus%20vitae.%20Enim%20et%20eligendi%20illum.%20Totam%20vero%20quo%20sit%20quas.%20Hic%20deserunt%20vero%20suscipit%20qui%20pariatur%20voluptatem%20labore.%20Sed%20rerum%20ea%20magnam%20nulla%20vel.&product_image_url=https://www.google.com/images/srpr/logo4w.png&product_title=Finsync%20Power%20System&product_url=http://oconnell.uk&review_content=Odit%20dolorem%20necessitatibus%20libero%20doloribus.%20Veniam%20repudiandae%20voluptas%20voluptatem%20aut%20fugit%20ut.%20Quos%20eos%20nam%20consequuntur%20sed%20animi%20incidunt.%20Amet%20qui%20at%20libero%20molestias.%20Quis%20repudiandae%20ducimus%20facilis%20quae%20dolorem%20quasi%20consequatur%20quod.&review_score=0&review_title=Non%20dolor%20ipsam%20unde%20tenetur%20rerum%20et%20eius.&sku=D-4771
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- 0.0.4
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.2.1
|
21
|
+
Date:
|
22
|
+
- Thu, 23 May 2013 12:08:00 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Status:
|
30
|
+
- 200 OK
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Etag:
|
34
|
+
- ! '"71de43ff171532a15238c11fe27bb6e6"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Set-Cookie:
|
38
|
+
- _yotpo-api-1_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTE0NTg2YjJiODBhNThjNGI3MTkyOTdiYWE3Mzk1NmJjBjsAVEkiFmFub255bW91c191c2VyX2lkBjsARmls--b18c07011fb9a2971a16c5e21de480310f84f8af;
|
39
|
+
path=/; HttpOnly
|
40
|
+
X-Request-Id:
|
41
|
+
- 47f1ff371dfbf7479268252be2ac9dbf
|
42
|
+
X-Runtime:
|
43
|
+
- '1.340902'
|
44
|
+
Strict-Transport-Security:
|
45
|
+
- max-age=2592000; includeSubdomains
|
46
|
+
P3p:
|
47
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
48
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! '{"status":{"code":200,"message":"OK"},"response":{"reviews":[{"id":107,"content":"Odit
|
52
|
+
dolorem necessitatibus libero doloribus. Veniam repudiandae voluptas voluptatem
|
53
|
+
aut fugit ut. Quos eos nam consequuntur sed animi incidunt. Amet qui at libero
|
54
|
+
molestias. Quis repudiandae ducimus facilis quae dolorem quasi consequatur
|
55
|
+
quod.","title":"Non dolor ipsam unde tenetur rerum et eius.","score":0,"user":{"id":103,"display_name":"diana","social_image":"https://ddcfq0gxiontw.cloudfront.net/images/anonymous_user.png"},"user_type":"AnonymousUser","users":[],"products":[{"Location_idx":[0,0],"Product":{"product_url":"http://oconnell.uk","id":1,"name":"Finsync
|
56
|
+
Power System","slug":"finsync-power-system","shorten_url":"https://yotpo.com/go/q","images":[{"id":2,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/2/square.png?1368972049"},{"id":4,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/4/square.png?1369057866"},{"id":5,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/5/square.png?1369057869"},{"id":7,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/7/square.png?1369057872"},{"id":8,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/8/square.png?1369057872"},{"id":19,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/19/square.png?1369057960"},{"id":21,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/21/square.png?1369057964"},{"id":22,"image_url":"http://s3.amazonaws.com/yotpo-images-test/Product/1/22/square.png?1369057968"}],"social_network_links":{"facebook":"https://yotpo.com/go/r","twitter":"https://yotpo.com/go/s","linkedin":"https://yotpo.com/go/t","google_oauth2":"https://yotpo.com/go/u"},"facebook_testemonials_page_product_url":"https://yotpo.com/go/v"}}],"votes_up":0,"votes_down":0,"user_vote":0,"created_at":"2013-05-23T12:07:59Z","deleted":false,"new":true,"distance":999,"verified_buyer":false,"archived":false,"facebook_pushed":false,"twitter_pushed":false,"social_pushed":false,"account":{"id":5,"domain":"hammes.biz"}}]}}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 23 May 2013 12:08:00 GMT
|
59
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/users
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"user":{"email":"pete@goodwin.name","display_name":"doug","first_name":"Destiny","last_name":"Waelchi","website_name":"breitenberg.us","password":"doloribus
|
9
|
+
dolor suscipit","support_url":"http://abernathyabbott.us","callback_url":"http://kemmer.com","url":"http://nienow.biz"}}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.8.7
|
13
|
+
Yotpo-Api-Connector:
|
14
|
+
- 0.0.4
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 200
|
20
|
+
message: OK
|
21
|
+
headers:
|
22
|
+
Server:
|
23
|
+
- nginx/1.2.1
|
24
|
+
Date:
|
25
|
+
- Thu, 23 May 2013 12:00:54 GMT
|
26
|
+
Content-Type:
|
27
|
+
- application/json; charset=utf-8
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Connection:
|
31
|
+
- keep-alive
|
32
|
+
Status:
|
33
|
+
- 200 OK
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Etag:
|
37
|
+
- ! '"9c81cf7440d9e1dae8bc324ca96d8b76"'
|
38
|
+
Cache-Control:
|
39
|
+
- max-age=0, private, must-revalidate
|
40
|
+
Set-Cookie:
|
41
|
+
- _yotpo-api-1_session=BAh7CEkiGXdhcmRlbi51c2VyLnVzZXIua2V5BjoGRVRbCEkiCVVzZXIGOwBGWwZpDUkiFGFzZGZhZHNmYXNkZmFkcwY7AEZJIh13YXJkZW4udXNlci51c2VyLnNlc3Npb24GOwBUewZJIhRsYXN0X3JlcXVlc3RfYXQGOwBGSXU6CVRpbWUN7FIcwEaSXQMGOgtAX3pvbmVJIghVVEMGOwBUSSIPc2Vzc2lvbl9pZAY7AEZJIiUzMTlhYjQ1ZDY1YTdhMjNkMWI5MWE4ZWRhOTBmZjg4OQY7AFQ%3D--31a9cfc34c14f7f267b4f83ca7725249a5b71dad;
|
42
|
+
path=/; HttpOnly
|
43
|
+
X-Request-Id:
|
44
|
+
- 65ac0796d3e9d56a393ebd6523ebd0d0
|
45
|
+
X-Runtime:
|
46
|
+
- '0.840719'
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=2592000; includeSubdomains
|
49
|
+
P3p:
|
50
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
51
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ! '{"status":{"code":200,"message":"OK"},"response":{"user_id":8,"token":"GJ7Nab513wIJ4NiYMcFTZ2c0Q3cIonpPAtBnUrPN","app_key":"iRpux0cHoeX5aSex6wwv1dvYBLF0d4ZRetPJpspU","secret":"ObSAkmUFj87v8qh7eRzZzUy0AnaAisB0OQ7sf0or"}}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Thu, 23 May 2013 12:00:54 GMT
|
57
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/users/b2blogin.json?app_key=nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG&secret=YUFV3FrFHGbAJLPsOR8JebwUUhGJg9Z42XKj3Umm
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- 0.0.4
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.2.1
|
21
|
+
Date:
|
22
|
+
- Thu, 23 May 2013 12:04:25 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Status:
|
30
|
+
- 200 OK
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Etag:
|
34
|
+
- ! '"0070754770a0ace493837f6d90602af6"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 8e752fac60eb34c98ec2bc81f2a638e7
|
39
|
+
X-Runtime:
|
40
|
+
- '0.152249'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=2592000; includeSubdomains
|
43
|
+
P3p:
|
44
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
45
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: ! '{"status":{"code":200,"message":"OK"},"response":{"code":"gmzR1OSUxtRHClgTTJm8","signin_url":"https://www.yotpo.com/callbacks/login?code=gmzR1OSUxtRHClgTTJm8"}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Thu, 23 May 2013 12:04:25 GMT
|
51
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.yotpo.com/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"client_id":"nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG","client_secret":"YUFV3FrFHGbAJLPsOR8JebwUUhGJg9Z42XKj3Umm","grant_type":"client_credentials"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- 0.0.4
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.2.1
|
23
|
+
Date:
|
24
|
+
- Thu, 23 May 2013 12:00:52 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- ! '"544441b4753b99aa4b0d51467fa541b0"'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 84cac11b404bc5061dca10753ef6c75a
|
41
|
+
X-Runtime:
|
42
|
+
- '0.137149'
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=2592000; includeSubdomains
|
45
|
+
P3p:
|
46
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
47
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ! '{"access_token":"mz3AdCKGsoxJB00u0gmq2usGE3HI8HDHFZC5dlLl","token_type":"bearer"}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Thu, 23 May 2013 12:00:52 GMT
|
53
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.yotpo.com/products/nNgGNA54ETOqaXQ7hRZymxqdtwwetJKDVs0v8qGG/D-4771/bottomline
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Yotpo-Api-Connector:
|
13
|
+
- 0.0.4
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Server:
|
20
|
+
- nginx/1.2.1
|
21
|
+
Date:
|
22
|
+
- Thu, 23 May 2013 12:01:38 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Status:
|
30
|
+
- 200 OK
|
31
|
+
X-Ua-Compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
Etag:
|
34
|
+
- ! '"a4d380f1871e0cae0e5176bbd3645fcf"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 7ad55add6d3e24b218ba247636ef565e
|
39
|
+
X-Runtime:
|
40
|
+
- '0.130978'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=2592000; includeSubdomains
|
43
|
+
P3p:
|
44
|
+
- policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi
|
45
|
+
CONi HIS OUR IND CNT", CP="CAO PSA OUR"
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: ! '{"status":{"code":200,"message":"OK"},"response":{"bottomline":{"average_score":3.0,"total_reviews":100}}}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Thu, 23 May 2013 12:01:38 GMT
|
51
|
+
recorded_with: VCR 2.2.5
|