readmill 0.0.1 → 0.1.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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/readmill/client.rb +14 -0
  3. data/lib/readmill/client/books.rb +14 -1
  4. data/lib/readmill/client/closing_remarks.rb +22 -0
  5. data/lib/readmill/client/comments.rb +34 -0
  6. data/lib/readmill/client/highlights.rb +52 -0
  7. data/lib/readmill/client/locations.rb +22 -0
  8. data/lib/readmill/client/periods.rb +22 -0
  9. data/lib/readmill/client/readings.rb +77 -0
  10. data/lib/readmill/client/users.rb +33 -0
  11. data/lib/readmill/version.rb +1 -1
  12. data/spec/cassettes/readmill/client/books_book/should_request_a_book_from_readmill.yml +4 -4
  13. data/spec/cassettes/readmill/client/books_book/should_return_a_book.yml +4 -4
  14. data/spec/cassettes/readmill/client/books_book/with_closing_remarks_true_should_request_readers_for_a_book_from_readmill.yml +58 -0
  15. data/spec/cassettes/readmill/client/books_book/with_closing_remarks_true_should_return_an_array_of_users.yml +58 -0
  16. data/spec/cassettes/readmill/client/books_book/with_readers_true_should_request_readers_for_a_book_from_readmill.yml +52 -0
  17. data/spec/cassettes/readmill/client/books_book/with_readers_true_should_return_an_array_of_users.yml +52 -0
  18. data/spec/cassettes/readmill/client/books_books/should_request_all_books_from_readmill.yml +67 -17
  19. data/spec/cassettes/readmill/client/books_books/should_return_an_array_of_books.yml +66 -47
  20. data/spec/cassettes/readmill/client/closing_remarks_closing_remark/should_request_a_closing_remark_from_readmill.yml +54 -0
  21. data/spec/cassettes/readmill/client/closing_remarks_closing_remark/should_return_a_closing_remark.yml +54 -0
  22. data/spec/cassettes/readmill/client/comments_comment/should_request_a_comment_from_readmill.yml +53 -0
  23. data/spec/cassettes/readmill/client/comments_comment/should_return_a_comment.yml +53 -0
  24. data/spec/cassettes/readmill/client/comments_comments/should_request_all_comments_from_readmill.yml +54 -0
  25. data/spec/cassettes/readmill/client/comments_comments/should_return_an_array_of_comments.yml +54 -0
  26. data/spec/cassettes/readmill/client/highlights_highlight/should_request_a_highlight_from_readmill.yml +61 -0
  27. data/spec/cassettes/readmill/client/highlights_highlight/should_return_a_highlight.yml +61 -0
  28. data/spec/cassettes/readmill/client/highlights_highlight/with_comments_true_should_return_an_array_of_comments.yml +54 -0
  29. data/spec/cassettes/readmill/client/highlights_highlight/with_comments_true_should_return_comments_for_the_highlight_from_readmill.yml +54 -0
  30. data/spec/cassettes/readmill/client/highlights_highlights/should_request_all_highlights_from_readmill.yml +182 -0
  31. data/spec/cassettes/readmill/client/highlights_highlights/should_return_an_array_of_highlights.yml +182 -0
  32. data/spec/cassettes/readmill/client/highlights_highlights/with_a_reading_id_should_request_all_highlights_for_the_reading.yml +66 -0
  33. data/spec/cassettes/readmill/client/highlights_highlights/with_a_user_id_should_request_all_highlights_for_the_user.yml +191 -0
  34. data/spec/cassettes/readmill/client/locations_locations/should_request_all_locations_from_readmill.yml +52 -0
  35. data/spec/cassettes/readmill/client/locations_locations/should_return_an_array_of_locations.yml +52 -0
  36. data/spec/cassettes/readmill/client/periods_periods/should_request_all_periods_from_readmill.yml +52 -0
  37. data/spec/cassettes/readmill/client/periods_periods/should_return_an_array_of_periods.yml +52 -0
  38. data/spec/cassettes/readmill/client/readings_reading/should_request_a_reading_from_readmill.yml +54 -0
  39. data/spec/cassettes/readmill/client/readings_reading/should_return_a_reading.yml +54 -0
  40. data/spec/cassettes/readmill/client/readings_reading/with_highlights_true_should_request_highlights_for_the_reading_from_readmill.yml +90 -0
  41. data/spec/cassettes/readmill/client/readings_reading/with_highlights_true_should_return_an_array_of_highlights.yml +90 -0
  42. data/spec/cassettes/readmill/client/readings_reading/with_locations_true_should_request_locations_for_the_reading_from_readmill.yml +52 -0
  43. data/spec/cassettes/readmill/client/readings_reading/with_locations_true_should_return_an_array_of_locations.yml +52 -0
  44. data/spec/cassettes/readmill/client/readings_reading/with_periods_true_and_locations_true_should_raise_an_argument_error.yml +52 -0
  45. data/spec/cassettes/readmill/client/readings_reading/with_periods_true_should_request_periods_for_the_reading_from_readmill.yml +52 -0
  46. data/spec/cassettes/readmill/client/readings_reading/with_periods_true_should_return_an_array_of_periods.yml +52 -0
  47. data/spec/cassettes/readmill/client/readings_readings/should_request_all_readings_from_readmill.yml +85 -0
  48. data/spec/cassettes/readmill/client/readings_readings/should_return_an_array_of_readings.yml +85 -0
  49. data/spec/cassettes/readmill/client/readings_readings/with_a_book_id_should_request_all_readings_for_the_book.yml +54 -0
  50. data/spec/cassettes/readmill/client/readings_readings/with_a_book_id_should_return_an_array_of_readings.yml +54 -0
  51. data/spec/cassettes/readmill/client/readings_readings/with_a_user_id_should_request_all_readings_for_the_user.yml +94 -0
  52. data/spec/cassettes/readmill/client/readings_readings/with_a_user_id_should_return_an_array_of_readings.yml +94 -0
  53. data/spec/cassettes/readmill/client/users_user/should_request_a_user_from_readmill.yml +54 -0
  54. data/spec/cassettes/readmill/client/users_user/should_return_a_user.yml +54 -0
  55. data/spec/cassettes/readmill/client/users_user/with_followers_true_should_request_all_followers_for_a_user.yml +86 -0
  56. data/spec/cassettes/readmill/client/users_user/with_followers_true_should_return_an_array_of_users.yml +86 -0
  57. data/spec/cassettes/readmill/client/users_user/with_followings_true_should_request_all_followings_for_a_user.yml +80 -0
  58. data/spec/cassettes/readmill/client/users_user/with_followings_true_should_return_an_array_of_users.yml +80 -0
  59. data/spec/readmill/client/books_spec.rb +44 -5
  60. data/spec/readmill/client/closing_remarks_spec.rb +19 -0
  61. data/spec/readmill/client/comments_spec.rb +33 -0
  62. data/spec/readmill/client/highlights_spec.rb +69 -0
  63. data/spec/readmill/client/locations_spec.rb +19 -0
  64. data/spec/readmill/client/periods_spec.rb +19 -0
  65. data/spec/readmill/client/readings_spec.rb +127 -0
  66. data/spec/readmill/client/users_spec.rb +57 -0
  67. metadata +108 -1
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/closing_remarks/9088
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 17:38:12 GMT
29
+ Etag:
30
+ - '"089abb631405170d26a87fe9ed602a21"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - addcd6da19968d32d7f101f3cc643f2a
39
+ X-Runtime:
40
+ - '0.116654'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '633'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"closing_remark":{"id":9088,"content":"A must read for anyone building
50
+ (or planning to build) a startup.","reading":{"id":318374},"user":{"id":34764,"username":"sagmor","firstname":"Seba","fullname":"Seba
51
+ Gamboa","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Freadmill-assets.s3.amazonaws.com%252Favatars%252F7392433d1d87b8a102089db66b9a63deca58a231-original.png&width=50","followers_count":0,"followings_count":4,"permalink_url":"https://readmill.com/sagmor"},"recommended":false,"comments_count":0,"likes_count":0,"created_at":"2013-10-17T13:18:25Z"},"status":200}'
52
+ http_version:
53
+ recorded_at: Mon, 16 Dec 2013 17:38:12 GMT
54
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/comments/112631
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 16:16:54 GMT
29
+ Etag:
30
+ - '"87f3581289a7e2e860ca30926380a209"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - 90278e4aaa9ea2cd385c6475b99cc4bd
39
+ X-Runtime:
40
+ - '0.168099'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '602'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"comment":{"id":112631,"content":"True story.","posted_at":"2013-12-16T15:46:32Z","reading":{"id":313118},"highlight":{"id":829035},"closing_remark":null,"user":{"id":104014,"username":"G33kyGurl","firstname":"Donna","fullname":"Donna
50
+ Taylor","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Freadmill-assets.s3.amazonaws.com%252Favatars%252Fd50e2c82d21c92c9cbf938dd77b9b38bcf59b379-original.png&width=50","followers_count":4,"followings_count":4,"permalink_url":"https://readmill.com/G33kyGurl"},"entities":{"hashtags":[]}},"status":200}'
51
+ http_version:
52
+ recorded_at: Mon, 16 Dec 2013 16:16:53 GMT
53
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/comments/112631
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 16:16:55 GMT
29
+ Etag:
30
+ - '"87f3581289a7e2e860ca30926380a209"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - 08ca81d93d1cc3bf604e1b677dc5cfcf
39
+ X-Runtime:
40
+ - '0.782487'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '602'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"comment":{"id":112631,"content":"True story.","posted_at":"2013-12-16T15:46:32Z","reading":{"id":313118},"highlight":{"id":829035},"closing_remark":null,"user":{"id":104014,"username":"G33kyGurl","firstname":"Donna","fullname":"Donna
50
+ Taylor","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Freadmill-assets.s3.amazonaws.com%252Favatars%252Fd50e2c82d21c92c9cbf938dd77b9b38bcf59b379-original.png&width=50","followers_count":4,"followings_count":4,"permalink_url":"https://readmill.com/G33kyGurl"},"entities":{"hashtags":[]}},"status":200}'
51
+ http_version:
52
+ recorded_at: Mon, 16 Dec 2013 16:16:55 GMT
53
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/highlights/829035/comments
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 16:16:52 GMT
29
+ Etag:
30
+ - '"a6ac51b874e196a825c611f0e6f1ffa1"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - c80490ad17b6881c9e400f0d8b966f1e
39
+ X-Runtime:
40
+ - '0.316842'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '641'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"pagination":{"next":null},"items":[{"comment":{"id":112631,"content":"True
50
+ story.","posted_at":"2013-12-16T15:46:32Z","reading":{"id":313118},"highlight":{"id":829035},"closing_remark":null,"user":{"id":104014,"username":"G33kyGurl","firstname":"Donna","fullname":"Donna
51
+ Taylor","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Freadmill-assets.s3.amazonaws.com%252Favatars%252Fd50e2c82d21c92c9cbf938dd77b9b38bcf59b379-original.png&width=50","followers_count":4,"followings_count":4,"permalink_url":"https://readmill.com/G33kyGurl"},"entities":{"hashtags":[]}}}],"status":200}'
52
+ http_version:
53
+ recorded_at: Mon, 16 Dec 2013 16:16:52 GMT
54
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/highlights/829035/comments
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 16:16:53 GMT
29
+ Etag:
30
+ - '"a6ac51b874e196a825c611f0e6f1ffa1"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - cb8789015caa98d2c0a9395fc1074321
39
+ X-Runtime:
40
+ - '0.071079'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '641'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"pagination":{"next":null},"items":[{"comment":{"id":112631,"content":"True
50
+ story.","posted_at":"2013-12-16T15:46:32Z","reading":{"id":313118},"highlight":{"id":829035},"closing_remark":null,"user":{"id":104014,"username":"G33kyGurl","firstname":"Donna","fullname":"Donna
51
+ Taylor","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Freadmill-assets.s3.amazonaws.com%252Favatars%252Fd50e2c82d21c92c9cbf938dd77b9b38bcf59b379-original.png&width=50","followers_count":4,"followings_count":4,"permalink_url":"https://readmill.com/G33kyGurl"},"entities":{"hashtags":[]}}}],"status":200}'
52
+ http_version:
53
+ recorded_at: Mon, 16 Dec 2013 16:16:53 GMT
54
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/highlights/827438
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 06:18:49 GMT
29
+ Etag:
30
+ - '"c109f25c97024f03858d022e843619be"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - 67cd9db716d4c9596277dc22f6701ecd
39
+ X-Runtime:
40
+ - '0.079577'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '1324'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"highlight":{"id":827438,"position":0.973732,"content":"He always
50
+ fell asleep as easily as some great lazing cat, he only had to close his eyes
51
+ and moments later he\u2019d be gone, while my own mind kept on whirring round
52
+ with scattered thoughts and images.","highlighted_at":"2013-12-16T06:17:21Z","permalink":"orbgva","permalink_url":"https://readmill.com/keels223/reads/the-winter-sea/highlights/orbgva","user":{"id":35202,"username":"keels223","firstname":"Keely","fullname":"Keely
53
+ Galgano","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Fd15fum6h02z48v.cloudfront.net%252Fassets%252Fdefault-avatar-original-b0c7339fbb5969b50914c1a731503733.png&width=50","followers_count":1,"followings_count":6,"permalink_url":"https://readmill.com/keels223"},"locators":{"position":0.9737325,"mid":"He
54
+ always fell asleep as easily as some great lazing cat, he only had to close
55
+ his eyes and moments later he\u2019d be gone, while my own mind kept on whirring
56
+ round with scattered thoughts and images.","post":" I felt his breathing slow
57
+ aga","rmsdk":{"start":"text/part46.xhtml#point(/1/4/2/3/67/1:47)","end":"text/part46.xhtml#point(/1/4/2/3/67/1:245)"},"pre":"I
58
+ could hear it in his voice. "},"comments_count":0,"likes_count":0,"reading":{"id":439319}},"status":200}'
59
+ http_version:
60
+ recorded_at: Mon, 16 Dec 2013 06:18:49 GMT
61
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/highlights/827438
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 06:18:50 GMT
29
+ Etag:
30
+ - '"c109f25c97024f03858d022e843619be"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - 524492e7ee96cf9d90b1faed6f6333e4
39
+ X-Runtime:
40
+ - '0.059417'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '1324'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"highlight":{"id":827438,"position":0.973732,"content":"He always
50
+ fell asleep as easily as some great lazing cat, he only had to close his eyes
51
+ and moments later he\u2019d be gone, while my own mind kept on whirring round
52
+ with scattered thoughts and images.","highlighted_at":"2013-12-16T06:17:21Z","permalink":"orbgva","permalink_url":"https://readmill.com/keels223/reads/the-winter-sea/highlights/orbgva","user":{"id":35202,"username":"keels223","firstname":"Keely","fullname":"Keely
53
+ Galgano","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Fd15fum6h02z48v.cloudfront.net%252Fassets%252Fdefault-avatar-original-b0c7339fbb5969b50914c1a731503733.png&width=50","followers_count":1,"followings_count":6,"permalink_url":"https://readmill.com/keels223"},"locators":{"position":0.9737325,"mid":"He
54
+ always fell asleep as easily as some great lazing cat, he only had to close
55
+ his eyes and moments later he\u2019d be gone, while my own mind kept on whirring
56
+ round with scattered thoughts and images.","post":" I felt his breathing slow
57
+ aga","rmsdk":{"start":"text/part46.xhtml#point(/1/4/2/3/67/1:47)","end":"text/part46.xhtml#point(/1/4/2/3/67/1:245)"},"pre":"I
58
+ could hear it in his voice. "},"comments_count":0,"likes_count":0,"reading":{"id":439319}},"status":200}'
59
+ http_version:
60
+ recorded_at: Mon, 16 Dec 2013 06:18:50 GMT
61
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.readmill.com/v2/highlights/829035/comments
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Client READMILL_CLIENT_ID
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - must-revalidate, private, max-age=0
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Date:
28
+ - Mon, 16 Dec 2013 16:11:10 GMT
29
+ Etag:
30
+ - '"a6ac51b874e196a825c611f0e6f1ffa1"'
31
+ Server:
32
+ - nginx/1.0.12
33
+ Status:
34
+ - 200 OK
35
+ X-Rack-Cache:
36
+ - miss
37
+ X-Request-Id:
38
+ - a5f63912fa422d948748f49360430f56
39
+ X-Runtime:
40
+ - '0.037523'
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Content-Length:
44
+ - '641'
45
+ Connection:
46
+ - keep-alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"pagination":{"next":null},"items":[{"comment":{"id":112631,"content":"True
50
+ story.","posted_at":"2013-12-16T15:46:32Z","reading":{"id":313118},"highlight":{"id":829035},"closing_remark":null,"user":{"id":104014,"username":"G33kyGurl","firstname":"Donna","fullname":"Donna
51
+ Taylor","avatar_url":"https://d26cmntuippvfl.cloudfront.net/?action=crop&format=png&height=50&origin=https%253A%252F%252Freadmill-assets.s3.amazonaws.com%252Favatars%252Fd50e2c82d21c92c9cbf938dd77b9b38bcf59b379-original.png&width=50","followers_count":4,"followings_count":4,"permalink_url":"https://readmill.com/G33kyGurl"},"entities":{"hashtags":[]}}}],"status":200}'
52
+ http_version:
53
+ recorded_at: Mon, 16 Dec 2013 16:11:10 GMT
54
+ recorded_with: VCR 2.8.0