pinterest-ruby 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.rubocop.yml +63 -0
  4. data/.travis-gemfile +17 -0
  5. data/.travis.yml +12 -0
  6. data/.yardopts +1 -0
  7. data/CHANGELOG.md +3 -0
  8. data/Gemfile +24 -0
  9. data/README.md +34 -0
  10. data/Rakefile +44 -0
  11. data/docs/FaradayMiddleware/SafeOj.html +218 -0
  12. data/docs/FaradayMiddleware.html +125 -0
  13. data/docs/Pinterest/Board.html +410 -0
  14. data/docs/Pinterest/Client.html +1894 -0
  15. data/docs/Pinterest/Collection.html +1877 -0
  16. data/docs/Pinterest/Endpoints/Authentication.html +578 -0
  17. data/docs/Pinterest/Endpoints/Boards.html +1443 -0
  18. data/docs/Pinterest/Endpoints/Pins.html +1296 -0
  19. data/docs/Pinterest/Endpoints/Users.html +1220 -0
  20. data/docs/Pinterest/Endpoints.html +127 -0
  21. data/docs/Pinterest/Entity.html +473 -0
  22. data/docs/Pinterest/Errors/AuthorizationError.html +158 -0
  23. data/docs/Pinterest/Errors/BadRequestError.html +158 -0
  24. data/docs/Pinterest/Errors/BaseError.html +487 -0
  25. data/docs/Pinterest/Errors/MethodNotAllowedError.html +158 -0
  26. data/docs/Pinterest/Errors/NotFoundError.html +158 -0
  27. data/docs/Pinterest/Errors/NotImplementedError.html +158 -0
  28. data/docs/Pinterest/Errors/PermissionsError.html +158 -0
  29. data/docs/Pinterest/Errors/RateLimitError.html +158 -0
  30. data/docs/Pinterest/Errors/ServerError.html +158 -0
  31. data/docs/Pinterest/Errors/TimeoutError.html +158 -0
  32. data/docs/Pinterest/Errors.html +377 -0
  33. data/docs/Pinterest/Image.html +617 -0
  34. data/docs/Pinterest/Interest.html +402 -0
  35. data/docs/Pinterest/Pin.html +511 -0
  36. data/docs/Pinterest/User.html +408 -0
  37. data/docs/Pinterest/Version.html +187 -0
  38. data/docs/Pinterest.html +130 -0
  39. data/docs/_index.html +401 -0
  40. data/docs/class_list.html +51 -0
  41. data/docs/css/common.css +1 -0
  42. data/docs/css/full_list.css +58 -0
  43. data/docs/css/style.css +492 -0
  44. data/docs/file.README.html +106 -0
  45. data/docs/file_list.html +56 -0
  46. data/docs/frames.html +17 -0
  47. data/docs/index.html +106 -0
  48. data/docs/js/app.js +243 -0
  49. data/docs/js/full_list.js +216 -0
  50. data/docs/js/jquery.js +4 -0
  51. data/docs/method_list.html +643 -0
  52. data/docs/top-level-namespace.html +110 -0
  53. data/lib/pinterest/client.rb +146 -0
  54. data/lib/pinterest/collection.rb +97 -0
  55. data/lib/pinterest/endpoints/authentication.rb +99 -0
  56. data/lib/pinterest/endpoints/boards.rb +193 -0
  57. data/lib/pinterest/endpoints/pins.rb +187 -0
  58. data/lib/pinterest/endpoints/users.rb +158 -0
  59. data/lib/pinterest/errors.rb +94 -0
  60. data/lib/pinterest/models/board.rb +34 -0
  61. data/lib/pinterest/models/entity.rb +42 -0
  62. data/lib/pinterest/models/image.rb +49 -0
  63. data/lib/pinterest/models/interest.rb +30 -0
  64. data/lib/pinterest/models/pin.rb +43 -0
  65. data/lib/pinterest/models/user.rb +33 -0
  66. data/lib/pinterest/safe_oj.rb +25 -0
  67. data/lib/pinterest/version.rb +23 -0
  68. data/lib/pinterest.rb +31 -0
  69. data/pinterest.gemspec +32 -0
  70. data/spec/cassettes/Pinterest_Client/_perform_network_request_private_/should_correctly_handle_malformed_requests.yml +51 -0
  71. data/spec/cassettes/Pinterest_Endpoints_Authentication/_fetch_access_token/should_make_the_call_to_Pinterest_and_return_the_authorization_token_also_saving_it.yml +58 -0
  72. data/spec/cassettes/Pinterest_Endpoints_Authentication/_verify_access_token/should_return_an_exception_when_using_an_invalid_token.yml +52 -0
  73. data/spec/cassettes/Pinterest_Endpoints_Authentication/_verify_access_token/should_verify_the_token.yml +59 -0
  74. data/spec/cassettes/Pinterest_Endpoints_Boards/_board/should_complain_for_invalid_boards.yml +48 -0
  75. data/spec/cassettes/Pinterest_Endpoints_Boards/_board/should_get_the_current_informations.yml +63 -0
  76. data/spec/cassettes/Pinterest_Endpoints_Boards/_board/should_restrict_to_requested_fields.yml +57 -0
  77. data/spec/cassettes/Pinterest_Endpoints_Boards/_boards/should_only_get_requested_fields.yml +57 -0
  78. data/spec/cassettes/Pinterest_Endpoints_Boards/_boards/should_return_a_list_of_boards.yml +74 -0
  79. data/spec/cassettes/Pinterest_Endpoints_Boards/_create_board/should_create_the_board_and_return_it_with_only_the_requested_fields.yml +56 -0
  80. data/spec/cassettes/Pinterest_Endpoints_Boards/_delete_board/should_perform_the_call_and_return_an_error.yml +48 -0
  81. data/spec/cassettes/Pinterest_Endpoints_Boards/_delete_board/should_perform_the_call_and_return_true.yml +109 -0
  82. data/spec/cassettes/Pinterest_Endpoints_Boards/_edit_board/should_edit_the_board_and_return_it_with_only_the_requested_fields.yml +56 -0
  83. data/spec/cassettes/Pinterest_Endpoints_Boards/_follow_board/should_complain_for_invalid_boards.yml +56 -0
  84. data/spec/cassettes/Pinterest_Endpoints_Boards/_follow_board/should_perform_the_call_and_return_true.yml +109 -0
  85. data/spec/cassettes/Pinterest_Endpoints_Boards/_following_boards/should_only_get_requested_fields.yml +59 -0
  86. data/spec/cassettes/Pinterest_Endpoints_Boards/_following_boards/should_paginate_correctly.yml +72 -0
  87. data/spec/cassettes/Pinterest_Endpoints_Boards/_following_boards/should_return_the_followed_boards.yml +72 -0
  88. data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_only_get_requested_fields.yml +59 -0
  89. data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_paginate_correctly.yml +66 -0
  90. data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_search_boards.yml +75 -0
  91. data/spec/cassettes/Pinterest_Endpoints_Boards/_suggested_boards/should_return_the_suggested_boards_returning_only_the_requested_fields.yml +56 -0
  92. data/spec/cassettes/Pinterest_Endpoints_Boards/_unfollow_board/should_complain_for_invalid_boards.yml +56 -0
  93. data/spec/cassettes/Pinterest_Endpoints_Boards/_unfollow_board/should_perform_the_call_and_return_true.yml +109 -0
  94. data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_only_get_requested_fields.yml +59 -0
  95. data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_paginate_correctly.yml +85 -0
  96. data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_return_the_pins_of_the_board.yml +85 -0
  97. data/spec/cassettes/Pinterest_Endpoints_Pins/_create_pin/should_create_a_pin_by_using_a_image_URL.yml +71 -0
  98. data/spec/cassettes/Pinterest_Endpoints_Pins/_create_pin/should_create_a_pin_by_using_a_image_file.yml +1997 -0
  99. data/spec/cassettes/Pinterest_Endpoints_Pins/_create_pin/should_return_a_pin_containing_only_requested_fields.yml +56 -0
  100. data/spec/cassettes/Pinterest_Endpoints_Pins/_delete_pin/should_perform_the_call_and_return_an_error.yml +56 -0
  101. data/spec/cassettes/Pinterest_Endpoints_Pins/_delete_pin/should_perform_the_call_and_return_true.yml +109 -0
  102. data/spec/cassettes/Pinterest_Endpoints_Pins/_edit_pin/should_edit_the_pin_and_return_it_with_only_the_requested_fields.yml +56 -0
  103. data/spec/cassettes/Pinterest_Endpoints_Pins/_likes/should_only_get_requested_fields.yml +58 -0
  104. data/spec/cassettes/Pinterest_Endpoints_Pins/_likes/should_paginate_correctly.yml +87 -0
  105. data/spec/cassettes/Pinterest_Endpoints_Pins/_likes/should_return_the_list_of_liked_pins.yml +85 -0
  106. data/spec/cassettes/Pinterest_Endpoints_Pins/_pin/should_complain_for_non_existent_pins.yml +56 -0
  107. data/spec/cassettes/Pinterest_Endpoints_Pins/_pin/should_get_the_current_informations.yml +71 -0
  108. data/spec/cassettes/Pinterest_Endpoints_Pins/_pin/should_restrict_to_requested_fields.yml +56 -0
  109. data/spec/cassettes/Pinterest_Endpoints_Pins/_pins/should_only_get_requested_fields.yml +59 -0
  110. data/spec/cassettes/Pinterest_Endpoints_Pins/_pins/should_paginate_correctly.yml +808 -0
  111. data/spec/cassettes/Pinterest_Endpoints_Pins/_pins/should_return_my_pins.yml +88 -0
  112. data/spec/cassettes/Pinterest_Endpoints_Pins/_search_my_pins/should_only_get_requested_fields.yml +61 -0
  113. data/spec/cassettes/Pinterest_Endpoints_Pins/_search_my_pins/should_paginate_correctly.yml +89 -0
  114. data/spec/cassettes/Pinterest_Endpoints_Pins/_search_my_pins/should_search_my_pins.yml +89 -0
  115. data/spec/cassettes/Pinterest_Endpoints_Users/_follow_interest/should_perform_the_call_and_return_an_error.yml +48 -0
  116. data/spec/cassettes/Pinterest_Endpoints_Users/_follow_user/should_complain_for_invalid_users.yml +56 -0
  117. data/spec/cassettes/Pinterest_Endpoints_Users/_follow_user/should_perform_the_call_and_return_true.yml +109 -0
  118. data/spec/cassettes/Pinterest_Endpoints_Users/_followers/should_only_get_requested_fields.yml +62 -0
  119. data/spec/cassettes/Pinterest_Endpoints_Users/_followers/should_paginate_correctly.yml +62 -0
  120. data/spec/cassettes/Pinterest_Endpoints_Users/_followers/should_return_a_list_of_followers.yml +62 -0
  121. data/spec/cassettes/Pinterest_Endpoints_Users/_following_users/should_only_get_requested_fields.yml +62 -0
  122. data/spec/cassettes/Pinterest_Endpoints_Users/_following_users/should_paginate_correctly.yml +131 -0
  123. data/spec/cassettes/Pinterest_Endpoints_Users/_following_users/should_return_a_list_of_followed_users.yml +66 -0
  124. data/spec/cassettes/Pinterest_Endpoints_Users/_interests/should_paginate_correctly.yml +112 -0
  125. data/spec/cassettes/Pinterest_Endpoints_Users/_interests/should_return_a_list_of_followed_interest.yml +58 -0
  126. data/spec/cassettes/Pinterest_Endpoints_Users/_me/should_get_the_current_informations.yml +62 -0
  127. data/spec/cassettes/Pinterest_Endpoints_Users/_me/should_restrict_to_requested_fields.yml +56 -0
  128. data/spec/cassettes/Pinterest_Endpoints_Users/_unfollow_interest/should_perform_the_call_and_return_an_error.yml +48 -0
  129. data/spec/cassettes/Pinterest_Endpoints_Users/_unfollow_user/should_complain_for_invalid_users.yml +56 -0
  130. data/spec/cassettes/Pinterest_Endpoints_Users/_unfollow_user/should_perform_the_call_and_return_true.yml +109 -0
  131. data/spec/cassettes/Pinterest_Endpoints_Users/_user/should_complain_for_non_existent_users.yml +56 -0
  132. data/spec/cassettes/Pinterest_Endpoints_Users/_user/should_get_the_current_informations.yml +60 -0
  133. data/spec/cassettes/Pinterest_Endpoints_Users/_user/should_restrict_to_requested_fields.yml +56 -0
  134. data/spec/pinterest/client_spec.rb +70 -0
  135. data/spec/pinterest/collection_spec.rb +82 -0
  136. data/spec/pinterest/endpoints/authentication_spec.rb +81 -0
  137. data/spec/pinterest/endpoints/boards_spec.rb +209 -0
  138. data/spec/pinterest/endpoints/pins_spec.rb +239 -0
  139. data/spec/pinterest/endpoints/users_spec.rb +194 -0
  140. data/spec/pinterest/errors_spec.rb +59 -0
  141. data/spec/pinterest/fixtures/first.jpg +0 -0
  142. data/spec/pinterest/models/board_spec.rb +48 -0
  143. data/spec/pinterest/models/entity_spec.rb +35 -0
  144. data/spec/pinterest/models/image_spec.rb +50 -0
  145. data/spec/pinterest/models/interest_spec.rb +20 -0
  146. data/spec/pinterest/models/pin_spec.rb +55 -0
  147. data/spec/pinterest/models/user_spec.rb +45 -0
  148. data/spec/spec_helper.rb +49 -0
  149. data/tester.rb +19 -0
  150. metadata +341 -0
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pinterest.com/v1/pins/?fields=note
6
+ body:
7
+ encoding: UTF-8
8
+ string: board=shogunpanda%2Ffoo-1&image_url=http%3A%2F%2Fplacehold.it%2F300x300.png&link=http%3A%2F%2Fgoogle.it&note=NOTE
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: CREATED
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '696455508677'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '53'
45
+ Content-Length:
46
+ - '54'
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:31:39 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"data": {"note": "NOTE", "id": "559853797412741158"}}'
54
+ http_version:
55
+ recorded_at: Thu, 12 Jan 2017 12:31:39 GMT
56
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.pinterest.com/v1/pins/invalid-pin/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: NOT FOUND
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '192541767798'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '71'
45
+ Content-Length:
46
+ - '60'
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:30:14 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"message": "Pin not found.", "type": "api", "param": "pin"}'
54
+ http_version:
55
+ recorded_at: Thu, 12 Jan 2017 12:30:14 GMT
56
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.pinterest.com/v1/pins/559853797412741144/
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '692715394360'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '73'
45
+ Content-Length:
46
+ - '14'
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:30:13 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"data": null}'
54
+ http_version:
55
+ recorded_at: Thu, 12 Jan 2017 12:30:13 GMT
56
+ - request:
57
+ method: delete
58
+ uri: https://api.pinterest.com/v1/pins/559853797412741144/
59
+ body:
60
+ encoding: UTF-8
61
+ string: ''
62
+ headers:
63
+ User-Agent:
64
+ - Faraday v0.10.1
65
+ Authorization:
66
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
67
+ Content-Type:
68
+ - application/x-www-form-urlencoded
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 404
76
+ message: NOT FOUND
77
+ headers:
78
+ Access-Control-Allow-Origin:
79
+ - "*"
80
+ Age:
81
+ - '0'
82
+ Cache-Control:
83
+ - private
84
+ Content-Type:
85
+ - application/json
86
+ Pinterest-Generated-By:
87
+ - None
88
+ Pinterest-Version:
89
+ - d67cb4f
90
+ X-Content-Type-Options:
91
+ - nosniff
92
+ X-Pinterest-Rid:
93
+ - '748965762448'
94
+ X-Ratelimit-Limit:
95
+ - '200'
96
+ X-Ratelimit-Remaining:
97
+ - '72'
98
+ Content-Length:
99
+ - '44'
100
+ Date:
101
+ - Thu, 12 Jan 2017 12:30:13 GMT
102
+ Connection:
103
+ - keep-alive
104
+ body:
105
+ encoding: UTF-8
106
+ string: '{"message": "Pin not found.", "type": "api"}'
107
+ http_version:
108
+ recorded_at: Thu, 12 Jan 2017 12:30:13 GMT
109
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: patch
5
+ uri: https://api.pinterest.com/v1/pins/559853797412741144/?fields=note
6
+ body:
7
+ encoding: UTF-8
8
+ string: note=Ok
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '414134524967'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '74'
45
+ Content-Length:
46
+ - '52'
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:30:13 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"data": {"note": "Ok", "id": "559853797412741144"}}'
54
+ http_version:
55
+ recorded_at: Thu, 12 Jan 2017 12:30:13 GMT
56
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pinterest.com/v1/me/likes/?fields=url&limit=1
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '379825183867'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '20'
45
+ Content-Length:
46
+ - '433'
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:39:17 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"data": [{"url": "https://www.pinterest.com/pin/414049759476182583/",
54
+ "id": "414049759476182583"}], "page": {"cursor": "LT40MTQwNDk3NTk0NzYxODI1ODM6MXxhNzM5ODQ5ZmNiZDM2MTBjY2M4YTlhNDdlOGY4ZmU2ODJjMDk1ZjNjYzMzMTc2NmEzNDE1ZjVkOTdkMmJlYTZl",
55
+ "next": "https://api.pinterest.com/v1/me/likes/?cursor=LT40MTQwNDk3NTk0NzYxODI1ODM6MXxhNzM5ODQ5ZmNiZDM2MTBjY2M4YTlhNDdlOGY4ZmU2ODJjMDk1ZjNjYzMzMTc2NmEzNDE1ZjVkOTdkMmJlYTZl&fields=url&limit=1"}}'
56
+ http_version:
57
+ recorded_at: Thu, 12 Jan 2017 12:39:17 GMT
58
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,87 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pinterest.com/v1/me/likes/?cursor=LT41MjcyNzMwNjg4NTkwMDQwMTA6MnxmYWJkMDlhOGI4MmQ3ZTJmNGZhM2ZjMTQ2Y2UwOTdkZTI2ZTA1NmRjYzZhZWQ3NTJlODFhNjBmNThhYzEwNjkw&fields=id,link,url,creator(id,username,first_name,last_name,bio,created_at,counts,image),board(id,name,url,description,creator(id,username,first_name,last_name,bio,created_at,counts,image),created_at,counts,image),created_at,note,color,counts,media,attribution,image&limit=2
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '288283026869'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '19'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:40:11 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: '{"data": [{"attribution": null, "creator": {"username": "nikkiroselee",
54
+ "bio": "Visual designer & costume maker", "first_name": "Nikki", "last_name":
55
+ "Lee", "created_at": "2011-06-04T00:57:31", "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/nikkiroselee_1464369522_60.jpg",
56
+ "width": 60, "height": 60}}, "counts": {"pins": 24221, "following": 274, "followers":
57
+ 1928, "boards": 123, "likes": 273}, "id": "115053102888910923"}, "url": "https://www.pinterest.com/pin/115052965460744443/",
58
+ "media": {"type": "image"}, "created_at": "2016-12-30T00:10:44", "note": "siberian
59
+ cat", "color": "#ffffff", "link": "https://www.pinterest.com/r/pin/115052965460744443/4878490596204882047/b968e1eecc6af710eda70a9c71253b230d7d68ac9da220389ea7faed1d2038af",
60
+ "board": {"description": "", "creator": {"id": "115053102888910923"}, "url":
61
+ "https://www.pinterest.com/nikkiroselee/fauna/", "created_at": "2011-06-04T20:35:18",
62
+ "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/custom_covers/60x60/115053034169435010_1401674506.jpg",
63
+ "width": 60, "height": 60}}, "counts": {"pins": 787, "collaborators": 0, "followers":
64
+ 223}, "id": "115053034169435010", "name": "Fauna"}, "image": {"original":
65
+ {"url": "https://s-media-cache-ak0.pinimg.com/originals/72/cb/23/72cb2312b6818b97c738bac6e8eb0f29.jpg",
66
+ "width": 460, "height": 290}}, "counts": {"likes": 1, "comments": 0, "repins":
67
+ 0}, "id": "115052965460744443"}, {"attribution": null, "creator": {"username":
68
+ "aranzacarlos", "bio": "", "first_name": "aranza", "last_name": "Carlos",
69
+ "created_at": "2015-10-21T00:35:05", "image": {"60x60": {"url": "https://s.pinimg.com/images/user/default_60.png",
70
+ "width": 60, "height": 60}}, "counts": {"pins": 306, "following": 2, "followers":
71
+ 9, "boards": 19, "likes": 4}, "id": "30118028666498961"}, "url": "https://www.pinterest.com/pin/30117891236548210/",
72
+ "media": {"type": "image"}, "created_at": "2016-02-09T04:15:32", "note": "Panda-
73
+ \u00bfPor que est\u00e1n al rev\u00e9s? Humanos- No, tu estas al rev\u00e9s
74
+ Panda- No ustedes est\u00e1n al rev\u00e9s Humanos- *.* :3 Si panda lo que
75
+ digas", "color": "#716c52", "link": "https://www.pinterest.com/r/pin/30117891236548210/4878490596204882047/a19cf7d2c7615373b52a261ea074d145ad80fe728c82ea61d03538458c9f94bd",
76
+ "board": {"description": "", "creator": {"id": "30118028666498961"}, "url":
77
+ "https://www.pinterest.com/aranzacarlos/pandas/", "created_at": "2016-02-09T04:14:37",
78
+ "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/64/52/ae/6452ae3104b22cbc574cb6e962a98553.jpg",
79
+ "width": 60, "height": 60}}, "counts": {"pins": 6, "collaborators": 0, "followers":
80
+ 3}, "id": "30117959947196679", "name": "pandas"}, "image": {"original": {"url":
81
+ "https://s-media-cache-ak0.pinimg.com/originals/8a/71/a9/8a71a903126336ecf784ef6f66078c49.jpg",
82
+ "width": 378, "height": 600}}, "counts": {"likes": 120, "comments": 0, "repins":
83
+ 495}, "id": "30117891236548210"}], "page": {"cursor": "LT4zMDExNzg5MTIzNjU0ODIxMDozfGE3ZGIxMTkzZDNjOTU0M2RhYjUyMmIwYzE0OWIwMTQxZmRiZTUwNGZmYzMyYzU1ZTRhM2Q1OWYyYzNjOGM2NjU=",
84
+ "next": "https://api.pinterest.com/v1/me/likes/?cursor=LT4zMDExNzg5MTIzNjU0ODIxMDozfGE3ZGIxMTkzZDNjOTU0M2RhYjUyMmIwYzE0OWIwMTQxZmRiZTUwNGZmYzMyYzU1ZTRhM2Q1OWYyYzNjOGM2NjU%3D&fields=id%2Clink%2Curl%2Ccreator%28id%2Cusername%2Cfirst_name%2Clast_name%2Cbio%2Ccreated_at%2Ccounts%2Cimage%29%2Cboard%28id%2Cname%2Curl%2Cdescription%2Ccreator%28id%2Cusername%2Cfirst_name%2Clast_name%2Cbio%2Ccreated_at%2Ccounts%2Cimage%29%2Ccreated_at%2Ccounts%2Cimage%29%2Ccreated_at%2Cnote%2Ccolor%2Ccounts%2Cmedia%2Cattribution%2Cimage&limit=2"}}'
85
+ http_version:
86
+ recorded_at: Thu, 12 Jan 2017 12:40:11 GMT
87
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,85 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pinterest.com/v1/me/likes/?fields=id,link,url,creator(id,username,first_name,last_name,bio,created_at,counts,image),board(id,name,url,description,creator(id,username,first_name,last_name,bio,created_at,counts,image),created_at,counts,image),created_at,note,color,counts,media,attribution,image&limit=2
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '251246324695'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '22'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:39:16 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: '{"data": [{"attribution": null, "creator": {"username": "StarsWithDark",
54
+ "bio": "", "first_name": "stars cant shine without darkness", "last_name":
55
+ "", "created_at": "2014-03-25T23:50:17", "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/Canandwillitbe-1419569800_60.jpg",
56
+ "width": 60, "height": 60}}, "counts": {"pins": 5529, "following": 85, "followers":
57
+ 72, "boards": 129, "likes": 229}, "id": "414049896899828912"}, "url": "https://www.pinterest.com/pin/414049759476182583/",
58
+ "media": {"type": "image"}, "created_at": "2016-11-22T20:32:35", "note": "best-kitten-names-1.jpg
59
+ (680\u00d7411)", "color": "#dbccc2", "link": "https://www.pinterest.com/r/pin/414049759476182583/4878490596204882047/0b7f1e47d36251e180a3d28a12c0ba81a9154b8ca86f7419592074b84465e218",
60
+ "board": {"description": "", "creator": {"id": "414049896899828912"}, "url":
61
+ "https://www.pinterest.com/StarsWithDark/cute/", "created_at": "2015-01-02T21:57:59",
62
+ "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/b8/42/49/b84249252a60c2a4409cdf46ae2d1aa8.jpg",
63
+ "width": 60, "height": 60}}, "counts": {"pins": 499, "collaborators": 0, "followers":
64
+ 31}, "id": "414049828180580242", "name": "cute"}, "image": {"original": {"url":
65
+ "https://s-media-cache-ak0.pinimg.com/originals/d8/a7/22/d8a722877a4f2ece02b012ddee6e1685.jpg",
66
+ "width": 680, "height": 411}}, "counts": {"likes": 1, "comments": 0, "repins":
67
+ 0}, "id": "414049759476182583"}, {"attribution": null, "creator": {"username":
68
+ "quazix", "bio": "", "first_name": "Sheila", "last_name": "Lasher", "created_at":
69
+ "2013-06-08T01:55:55", "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/quazix_1480827587_60.jpg",
70
+ "width": 60, "height": 60}}, "counts": {"pins": 10705, "following": 70, "followers":
71
+ 74, "boards": 67, "likes": 184}, "id": "527273206281678819"}, "url": "https://www.pinterest.com/pin/527273068859004010/",
72
+ "media": {"type": "image"}, "created_at": "2016-12-26T01:58:11", "note": "Chartreux",
73
+ "color": "#d1d6e5", "link": "https://www.pinterest.com/r/pin/527273068859004010/4878490596204882047/c0f3582885688f65229e81b4c69cb361b64d4ee72656c6aee95c03a2c631ca79",
74
+ "board": {"description": "", "creator": {"id": "527273206281678819"}, "url":
75
+ "https://www.pinterest.com/quazix/cats/", "created_at": "2016-11-17T01:25:47",
76
+ "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/56/f6/44/56f64409391612c5c20d921093c4ddd4.jpg",
77
+ "width": 60, "height": 60}}, "counts": {"pins": 105, "collaborators": 0, "followers":
78
+ 21}, "id": "527273137562696876", "name": "Cats"}, "image": {"original": {"url":
79
+ "https://s-media-cache-ak0.pinimg.com/originals/8d/e4/99/8de499cfcd21850ccf319c45904fd6a9.jpg",
80
+ "width": 680, "height": 433}}, "counts": {"likes": 1, "comments": 0, "repins":
81
+ 0}, "id": "527273068859004010"}], "page": {"cursor": "LT41MjcyNzMwNjg4NTkwMDQwMTA6MnxmYWJkMDlhOGI4MmQ3ZTJmNGZhM2ZjMTQ2Y2UwOTdkZTI2ZTA1NmRjYzZhZWQ3NTJlODFhNjBmNThhYzEwNjkw",
82
+ "next": "https://api.pinterest.com/v1/me/likes/?cursor=LT41MjcyNzMwNjg4NTkwMDQwMTA6MnxmYWJkMDlhOGI4MmQ3ZTJmNGZhM2ZjMTQ2Y2UwOTdkZTI2ZTA1NmRjYzZhZWQ3NTJlODFhNjBmNThhYzEwNjkw&fields=id%2Clink%2Curl%2Ccreator%28id%2Cusername%2Cfirst_name%2Clast_name%2Cbio%2Ccreated_at%2Ccounts%2Cimage%29%2Cboard%28id%2Cname%2Curl%2Cdescription%2Ccreator%28id%2Cusername%2Cfirst_name%2Clast_name%2Cbio%2Ccreated_at%2Ccounts%2Cimage%29%2Ccreated_at%2Ccounts%2Cimage%29%2Ccreated_at%2Cnote%2Ccolor%2Ccounts%2Cmedia%2Cattribution%2Cimage&limit=2"}}'
83
+ http_version:
84
+ recorded_at: Thu, 12 Jan 2017 12:39:17 GMT
85
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pinterest.com/v1/pins/invalid-pin/?fields=id,link,url,creator(id,username,first_name,last_name,bio,created_at,counts,image),board(id,name,url,description,creator(id,username,first_name,last_name,bio,created_at,counts,image),created_at,counts,image),created_at,note,color,counts,media,attribution,image
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: NOT FOUND
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '651837196986'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '50'
45
+ Content-Length:
46
+ - '60'
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:32:06 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"message": "Pin not found.", "type": "api", "param": "pin"}'
54
+ http_version:
55
+ recorded_at: Thu, 12 Jan 2017 12:32:06 GMT
56
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pinterest.com/v1/pins/491736853043758927/?fields=id,link,url,creator(id,username,first_name,last_name,bio,created_at,counts,image),board(id,name,url,description,creator(id,username,first_name,last_name,bio,created_at,counts,image),created_at,counts,image),created_at,note,color,counts,media,attribution,image
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.10.1
12
+ Authorization:
13
+ - Bearer AVP99QpzwII-f1I2p5gyHi8CiCeQFJkDr8dP-JpDs-LEtAAyegAAAAA
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Age:
28
+ - '0'
29
+ Cache-Control:
30
+ - private
31
+ Content-Type:
32
+ - application/json
33
+ Pinterest-Generated-By:
34
+ - None
35
+ Pinterest-Version:
36
+ - d67cb4f
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Pinterest-Rid:
40
+ - '120770346720'
41
+ X-Ratelimit-Limit:
42
+ - '200'
43
+ X-Ratelimit-Remaining:
44
+ - '52'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ Date:
48
+ - Thu, 12 Jan 2017 12:32:05 GMT
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: '{"data": {"attribution": null, "creator": {"username": "dderse", "bio":
54
+ "", "first_name": "Daniel", "last_name": "Derse", "created_at": "2012-09-03T13:21:48",
55
+ "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/dderse_1477012877_60.jpg",
56
+ "width": 60, "height": 60}}, "counts": {"pins": 23400, "following": 691, "followers":
57
+ 13079, "boards": 37, "likes": 35}, "id": "491736990471948025"}, "url": "https://www.pinterest.com/pin/491736853043758927/",
58
+ "media": {"type": "image"}, "created_at": "2015-11-13T12:30:13", "note": "Great
59
+ tip! A really easy way to figure out tricky angles when you''re installing
60
+ moldings, trim, and baseboards.", "color": "#ffffff", "link": "https://www.pinterest.com/r/pin/491736853043758927/4878490596204882047/cea63543062d06243202ee09a1ae786da38078b5c996f5072a58fc89618443a7",
61
+ "board": {"description": "", "creator": {"id": "491736990471948025"}, "url":
62
+ "https://www.pinterest.com/dderse/woodworking/", "created_at": "2012-09-15T14:10:33",
63
+ "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/8f/a3/01/8fa3011c924838a3afe246419486dde3.jpg",
64
+ "width": 60, "height": 60}}, "counts": {"pins": 3423, "collaborators": 0,
65
+ "followers": 7618}, "id": "491736921752475493", "name": "Woodworking"}, "image":
66
+ {"original": {"url": "https://s-media-cache-ak0.pinimg.com/originals/ad/90/47/ad90475f646cb866b31a1dc5c4f754f3.jpg",
67
+ "width": 480, "height": 1056}}, "counts": {"likes": 2, "comments": 0, "repins":
68
+ 12}, "id": "491736853043758927"}}'
69
+ http_version:
70
+ recorded_at: Thu, 12 Jan 2017 12:32:05 GMT
71
+ recorded_with: VCR 3.0.3