pinterest-ruby 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.rubocop.yml +63 -0
- data/.travis-gemfile +17 -0
- data/.travis.yml +12 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +24 -0
- data/README.md +34 -0
- data/Rakefile +44 -0
- data/docs/FaradayMiddleware/SafeOj.html +218 -0
- data/docs/FaradayMiddleware.html +125 -0
- data/docs/Pinterest/Board.html +410 -0
- data/docs/Pinterest/Client.html +1894 -0
- data/docs/Pinterest/Collection.html +1877 -0
- data/docs/Pinterest/Endpoints/Authentication.html +578 -0
- data/docs/Pinterest/Endpoints/Boards.html +1443 -0
- data/docs/Pinterest/Endpoints/Pins.html +1296 -0
- data/docs/Pinterest/Endpoints/Users.html +1220 -0
- data/docs/Pinterest/Endpoints.html +127 -0
- data/docs/Pinterest/Entity.html +473 -0
- data/docs/Pinterest/Errors/AuthorizationError.html +158 -0
- data/docs/Pinterest/Errors/BadRequestError.html +158 -0
- data/docs/Pinterest/Errors/BaseError.html +487 -0
- data/docs/Pinterest/Errors/MethodNotAllowedError.html +158 -0
- data/docs/Pinterest/Errors/NotFoundError.html +158 -0
- data/docs/Pinterest/Errors/NotImplementedError.html +158 -0
- data/docs/Pinterest/Errors/PermissionsError.html +158 -0
- data/docs/Pinterest/Errors/RateLimitError.html +158 -0
- data/docs/Pinterest/Errors/ServerError.html +158 -0
- data/docs/Pinterest/Errors/TimeoutError.html +158 -0
- data/docs/Pinterest/Errors.html +377 -0
- data/docs/Pinterest/Image.html +617 -0
- data/docs/Pinterest/Interest.html +402 -0
- data/docs/Pinterest/Pin.html +511 -0
- data/docs/Pinterest/User.html +408 -0
- data/docs/Pinterest/Version.html +187 -0
- data/docs/Pinterest.html +130 -0
- data/docs/_index.html +401 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +492 -0
- data/docs/file.README.html +106 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +106 -0
- data/docs/js/app.js +243 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +643 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/pinterest/client.rb +146 -0
- data/lib/pinterest/collection.rb +97 -0
- data/lib/pinterest/endpoints/authentication.rb +99 -0
- data/lib/pinterest/endpoints/boards.rb +193 -0
- data/lib/pinterest/endpoints/pins.rb +187 -0
- data/lib/pinterest/endpoints/users.rb +158 -0
- data/lib/pinterest/errors.rb +94 -0
- data/lib/pinterest/models/board.rb +34 -0
- data/lib/pinterest/models/entity.rb +42 -0
- data/lib/pinterest/models/image.rb +49 -0
- data/lib/pinterest/models/interest.rb +30 -0
- data/lib/pinterest/models/pin.rb +43 -0
- data/lib/pinterest/models/user.rb +33 -0
- data/lib/pinterest/safe_oj.rb +25 -0
- data/lib/pinterest/version.rb +23 -0
- data/lib/pinterest.rb +31 -0
- data/pinterest.gemspec +32 -0
- data/spec/cassettes/Pinterest_Client/_perform_network_request_private_/should_correctly_handle_malformed_requests.yml +51 -0
- 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
- data/spec/cassettes/Pinterest_Endpoints_Authentication/_verify_access_token/should_return_an_exception_when_using_an_invalid_token.yml +52 -0
- data/spec/cassettes/Pinterest_Endpoints_Authentication/_verify_access_token/should_verify_the_token.yml +59 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_board/should_complain_for_invalid_boards.yml +48 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_board/should_get_the_current_informations.yml +63 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_board/should_restrict_to_requested_fields.yml +57 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_boards/should_only_get_requested_fields.yml +57 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_boards/should_return_a_list_of_boards.yml +74 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_create_board/should_create_the_board_and_return_it_with_only_the_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_delete_board/should_perform_the_call_and_return_an_error.yml +48 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_delete_board/should_perform_the_call_and_return_true.yml +109 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_edit_board/should_edit_the_board_and_return_it_with_only_the_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_follow_board/should_complain_for_invalid_boards.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_follow_board/should_perform_the_call_and_return_true.yml +109 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_following_boards/should_only_get_requested_fields.yml +59 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_following_boards/should_paginate_correctly.yml +72 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_following_boards/should_return_the_followed_boards.yml +72 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_only_get_requested_fields.yml +59 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_paginate_correctly.yml +66 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_search_boards.yml +75 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_suggested_boards/should_return_the_suggested_boards_returning_only_the_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_unfollow_board/should_complain_for_invalid_boards.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Boards/_unfollow_board/should_perform_the_call_and_return_true.yml +109 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_only_get_requested_fields.yml +59 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_paginate_correctly.yml +85 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_return_the_pins_of_the_board.yml +85 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_create_pin/should_create_a_pin_by_using_a_image_URL.yml +71 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_create_pin/should_create_a_pin_by_using_a_image_file.yml +1997 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_create_pin/should_return_a_pin_containing_only_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_delete_pin/should_perform_the_call_and_return_an_error.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_delete_pin/should_perform_the_call_and_return_true.yml +109 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_edit_pin/should_edit_the_pin_and_return_it_with_only_the_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_likes/should_only_get_requested_fields.yml +58 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_likes/should_paginate_correctly.yml +87 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_likes/should_return_the_list_of_liked_pins.yml +85 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_pin/should_complain_for_non_existent_pins.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_pin/should_get_the_current_informations.yml +71 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_pin/should_restrict_to_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_pins/should_only_get_requested_fields.yml +59 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_pins/should_paginate_correctly.yml +808 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_pins/should_return_my_pins.yml +88 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_search_my_pins/should_only_get_requested_fields.yml +61 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_search_my_pins/should_paginate_correctly.yml +89 -0
- data/spec/cassettes/Pinterest_Endpoints_Pins/_search_my_pins/should_search_my_pins.yml +89 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_follow_interest/should_perform_the_call_and_return_an_error.yml +48 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_follow_user/should_complain_for_invalid_users.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_follow_user/should_perform_the_call_and_return_true.yml +109 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_followers/should_only_get_requested_fields.yml +62 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_followers/should_paginate_correctly.yml +62 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_followers/should_return_a_list_of_followers.yml +62 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_following_users/should_only_get_requested_fields.yml +62 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_following_users/should_paginate_correctly.yml +131 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_following_users/should_return_a_list_of_followed_users.yml +66 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_interests/should_paginate_correctly.yml +112 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_interests/should_return_a_list_of_followed_interest.yml +58 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_me/should_get_the_current_informations.yml +62 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_me/should_restrict_to_requested_fields.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_unfollow_interest/should_perform_the_call_and_return_an_error.yml +48 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_unfollow_user/should_complain_for_invalid_users.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_unfollow_user/should_perform_the_call_and_return_true.yml +109 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_user/should_complain_for_non_existent_users.yml +56 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_user/should_get_the_current_informations.yml +60 -0
- data/spec/cassettes/Pinterest_Endpoints_Users/_user/should_restrict_to_requested_fields.yml +56 -0
- data/spec/pinterest/client_spec.rb +70 -0
- data/spec/pinterest/collection_spec.rb +82 -0
- data/spec/pinterest/endpoints/authentication_spec.rb +81 -0
- data/spec/pinterest/endpoints/boards_spec.rb +209 -0
- data/spec/pinterest/endpoints/pins_spec.rb +239 -0
- data/spec/pinterest/endpoints/users_spec.rb +194 -0
- data/spec/pinterest/errors_spec.rb +59 -0
- data/spec/pinterest/fixtures/first.jpg +0 -0
- data/spec/pinterest/models/board_spec.rb +48 -0
- data/spec/pinterest/models/entity_spec.rb +35 -0
- data/spec/pinterest/models/image_spec.rb +50 -0
- data/spec/pinterest/models/interest_spec.rb +20 -0
- data/spec/pinterest/models/pin_spec.rb +55 -0
- data/spec/pinterest/models/user_spec.rb +45 -0
- data/spec/spec_helper.rb +49 -0
- data/tester.rb +19 -0
- metadata +341 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pinterest.com/v1/me/search/boards/?fields=url&limit=2&query=foo
|
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
|
+
- '540830612423'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '88'
|
45
|
+
Content-Length:
|
46
|
+
- '485'
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:20:30 GMT
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"data": [{"url": "https://www.pinterest.com/shogunpanda/foo-3/", "id":
|
54
|
+
"559853866116962373"}, {"url": "https://www.pinterest.com/shogunpanda/foo-2/",
|
55
|
+
"id": "559853866116962374"}], "page": {"cursor": "b28yfGNhZGY0ZDM1MjlhNjEwNGYzZTAxYTVjNDlkYjE4MDk2MDczNDMyNTc4ZjYyYmM3Zjg3NWU0ZjA1NDYzYTAyMmE=",
|
56
|
+
"next": "https://api.pinterest.com/v1/me/search/boards/?cursor=b28yfGNhZGY0ZDM1MjlhNjEwNGYzZTAxYTVjNDlkYjE4MDk2MDczNDMyNTc4ZjYyYmM3Zjg3NWU0ZjA1NDYzYTAyMmE%3D&fields=url&limit=2&query=foo"}}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 12 Jan 2017 12:20:30 GMT
|
59
|
+
recorded_with: VCR 3.0.3
|
data/spec/cassettes/Pinterest_Endpoints_Boards/_search_my_boards/should_paginate_correctly.yml
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pinterest.com/v1/me/search/boards/?cursor=b28yfGNhZGY0ZDM1MjlhNjEwNGYzZTAxYTVjNDlkYjE4MDk2MDczNDMyNTc4ZjYyYmM3Zjg3NWU0ZjA1NDYzYTAyMmE=&fields=id,name,url,description,creator(id,username,first_name,last_name,bio,created_at,counts,image),created_at,counts,image&limit=2&query=foo
|
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
|
+
- '723795346982'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '89'
|
45
|
+
Transfer-Encoding:
|
46
|
+
- chunked
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:20:30 GMT
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: '{"data": [{"description": "", "creator": {"username": "shogunpanda",
|
54
|
+
"bio": "Senior developer in Ruby on Rails, jQuery, HTML5, CSS3, BootStrap,
|
55
|
+
Backbone.JS and others. LARV addicted and nerd on many things. From Molise,
|
56
|
+
Italy.", "first_name": "Paolo", "last_name": "Insogna", "created_at": "2012-08-12T06:28:34",
|
57
|
+
"image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/shogunpanda_1344752914_60.jpg",
|
58
|
+
"width": 60, "height": 60}}, "counts": {"pins": 46, "following": 8, "followers":
|
59
|
+
9, "boards": 5, "likes": 1}, "id": "559853934835925315"}, "url": "https://www.pinterest.com/shogunpanda/foo-1/",
|
60
|
+
"created_at": "2017-01-12T12:20:18", "image": {"60x60": {"url": null, "width":
|
61
|
+
60, "height": 60}}, "counts": {"pins": 0, "collaborators": 0, "followers":
|
62
|
+
8}, "id": "559853866116962376", "name": "Foo 1"}], "page": {"cursor": "b280fDgxZTQ0MDVhMjBkODQ2ZWRhYWMxNTg0MjUwNWM1YTI2ODdmOTI0Y2JhN2RlZWRlMDhkMzM5YThkY2ZjMzMyZTA=",
|
63
|
+
"next": "https://api.pinterest.com/v1/me/search/boards/?cursor=b280fDgxZTQ0MDVhMjBkODQ2ZWRhYWMxNTg0MjUwNWM1YTI2ODdmOTI0Y2JhN2RlZWRlMDhkMzM5YThkY2ZjMzMyZTA%3D&fields=id%2Cname%2Curl%2Cdescription%2Ccreator%28id%2Cusername%2Cfirst_name%2Clast_name%2Cbio%2Ccreated_at%2Ccounts%2Cimage%29%2Ccreated_at%2Ccounts%2Cimage&limit=2&query=foo"}}'
|
64
|
+
http_version:
|
65
|
+
recorded_at: Thu, 12 Jan 2017 12:20:30 GMT
|
66
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pinterest.com/v1/me/search/boards/?fields=id,name,url,description,creator(id,username,first_name,last_name,bio,created_at,counts,image),created_at,counts,image&limit=2&query=foo
|
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
|
+
- '860748235875'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '90'
|
45
|
+
Transfer-Encoding:
|
46
|
+
- chunked
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:20:30 GMT
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: '{"data": [{"description": "", "creator": {"username": "shogunpanda",
|
54
|
+
"bio": "Senior developer in Ruby on Rails, jQuery, HTML5, CSS3, BootStrap,
|
55
|
+
Backbone.JS and others. LARV addicted and nerd on many things. From Molise,
|
56
|
+
Italy.", "first_name": "Paolo", "last_name": "Insogna", "created_at": "2012-08-12T06:28:34",
|
57
|
+
"image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/shogunpanda_1344752914_60.jpg",
|
58
|
+
"width": 60, "height": 60}}, "counts": {"pins": 46, "following": 8, "followers":
|
59
|
+
9, "boards": 5, "likes": 1}, "id": "559853934835925315"}, "url": "https://www.pinterest.com/shogunpanda/foo-3/",
|
60
|
+
"created_at": "2017-01-12T12:17:20", "image": {"60x60": {"url": null, "width":
|
61
|
+
60, "height": 60}}, "counts": {"pins": 0, "collaborators": 0, "followers":
|
62
|
+
8}, "id": "559853866116962373", "name": "Foo 3"}, {"description": "", "creator":
|
63
|
+
{"username": "shogunpanda", "bio": "Senior developer in Ruby on Rails, jQuery,
|
64
|
+
HTML5, CSS3, BootStrap, Backbone.JS and others. LARV addicted and nerd on
|
65
|
+
many things. From Molise, Italy.", "first_name": "Paolo", "last_name": "Insogna",
|
66
|
+
"created_at": "2012-08-12T06:28:34", "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/shogunpanda_1344752914_60.jpg",
|
67
|
+
"width": 60, "height": 60}}, "counts": {"pins": 46, "following": 8, "followers":
|
68
|
+
9, "boards": 5, "likes": 1}, "id": "559853934835925315"}, "url": "https://www.pinterest.com/shogunpanda/foo-2/",
|
69
|
+
"created_at": "2017-01-12T12:17:40", "image": {"60x60": {"url": null, "width":
|
70
|
+
60, "height": 60}}, "counts": {"pins": 0, "collaborators": 0, "followers":
|
71
|
+
8}, "id": "559853866116962374", "name": "Foo 2"}], "page": {"cursor": "b28yfGNhZGY0ZDM1MjlhNjEwNGYzZTAxYTVjNDlkYjE4MDk2MDczNDMyNTc4ZjYyYmM3Zjg3NWU0ZjA1NDYzYTAyMmE=",
|
72
|
+
"next": "https://api.pinterest.com/v1/me/search/boards/?cursor=b28yfGNhZGY0ZDM1MjlhNjEwNGYzZTAxYTVjNDlkYjE4MDk2MDczNDMyNTc4ZjYyYmM3Zjg3NWU0ZjA1NDYzYTAyMmE%3D&fields=id%2Cname%2Curl%2Cdescription%2Ccreator%28id%2Cusername%2Cfirst_name%2Clast_name%2Cbio%2Ccreated_at%2Ccounts%2Cimage%29%2Ccreated_at%2Ccounts%2Cimage&limit=2&query=foo"}}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Thu, 12 Jan 2017 12:20:30 GMT
|
75
|
+
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/me/boards/suggested/?fields=url&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
|
+
- '540830612423'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '88'
|
45
|
+
Content-Length:
|
46
|
+
- '485'
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:20:30 GMT
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"data": [{"url": "https://www.pinterest.com/shogunpanda/foo-3/"}]}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Thu, 12 Jan 2017 12:20:30 GMT
|
56
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.pinterest.com/v1/me/following/boards/?board=invalid-board
|
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
|
+
- '778482690808'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '106'
|
45
|
+
Content-Length:
|
46
|
+
- '64'
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:13:26 GMT
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"message": "Board not found.", "type": "api", "param": "board"}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Thu, 12 Jan 2017 12:13:27 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/me/following/boards/491736921752475493/
|
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
|
+
- '685666178893'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '108'
|
45
|
+
Content-Length:
|
46
|
+
- '14'
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:13:26 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:13:26 GMT
|
56
|
+
- request:
|
57
|
+
method: delete
|
58
|
+
uri: https://api.pinterest.com/v1/me/following/boards/491736921752475493/
|
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: 200
|
76
|
+
message: OK
|
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
|
+
- '819067549311'
|
94
|
+
X-Ratelimit-Limit:
|
95
|
+
- '200'
|
96
|
+
X-Ratelimit-Remaining:
|
97
|
+
- '107'
|
98
|
+
Content-Length:
|
99
|
+
- '14'
|
100
|
+
Date:
|
101
|
+
- Thu, 12 Jan 2017 12:13:26 GMT
|
102
|
+
Connection:
|
103
|
+
- keep-alive
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"data": null}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 12 Jan 2017 12:13:26 GMT
|
109
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pinterest.com/v1/boards/491736921752475493/pins/?fields=url&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
|
+
- '951669460836'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '62'
|
45
|
+
Content-Length:
|
46
|
+
- '545'
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:30:17 GMT
|
49
|
+
Connection:
|
50
|
+
- keep-alive
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"data": [{"url": "https://www.pinterest.com/pin/491736853049887002/",
|
54
|
+
"id": "491736853049887002"}, {"url": "https://www.pinterest.com/pin/491736853049836051/",
|
55
|
+
"id": "491736853049836051"}], "page": {"cursor": "LT40OTE3MzY4NTMwNDk4MzYwNTE6Mnw5ZTRiNmEyOGM5MDMwY2U5MmRkMTNmOWIyMDQyYTIzMjU5NTA2YzAzNTgzY2EwNzlhODBiMzNhOGQwNzg1NTNj",
|
56
|
+
"next": "https://api.pinterest.com/v1/boards/491736921752475493/pins/?cursor=LT40OTE3MzY4NTMwNDk4MzYwNTE6Mnw5ZTRiNmEyOGM5MDMwY2U5MmRkMTNmOWIyMDQyYTIzMjU5NTA2YzAzNTgzY2EwNzlhODBiMzNhOGQwNzg1NTNj&fields=url&limit=2"}}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 12 Jan 2017 12:30:17 GMT
|
59
|
+
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/boards/491736921752475493/pins/?cursor=LT40OTE3MzY4NTMwNDk4MzYwNTE6Mnw5ZTRiNmEyOGM5MDMwY2U5MmRkMTNmOWIyMDQyYTIzMjU5NTA2YzAzNTgzY2EwNzlhODBiMzNhOGQwNzg1NTNj&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
|
+
- '760742202826'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '18'
|
45
|
+
Transfer-Encoding:
|
46
|
+
- chunked
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:41:32 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
|
+
13078, "boards": 37, "likes": 35}, "id": "491736990471948025"}, "url": "https://www.pinterest.com/pin/491736853049727534/",
|
58
|
+
"media": {"type": "image"}, "created_at": "2016-12-30T05:42:21", "note": "Estante
|
59
|
+
em degraus", "color": "#d4cbb4", "link": "https://www.pinterest.com/r/pin/491736853049727534/4878490596204882047/8b452f01b24cb087344f1c3cf30d4431fceaeba2f3bf09bb117ba69112cdffe8",
|
60
|
+
"board": {"description": "", "creator": {"id": "491736990471948025"}, "url":
|
61
|
+
"https://www.pinterest.com/dderse/woodworking/", "created_at": "2012-09-15T14:10:33",
|
62
|
+
"image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/8f/a3/01/8fa3011c924838a3afe246419486dde3.jpg",
|
63
|
+
"width": 60, "height": 60}}, "counts": {"pins": 3423, "collaborators": 0,
|
64
|
+
"followers": 7618}, "id": "491736921752475493", "name": "Woodworking"}, "image":
|
65
|
+
{"original": {"url": "https://s-media-cache-ak0.pinimg.com/originals/60/49/62/604962ceb499d8186a645fdd17cfe04b.jpg",
|
66
|
+
"width": 236, "height": 532}}, "counts": {"likes": 1, "comments": 0, "repins":
|
67
|
+
4}, "id": "491736853049727534"}, {"attribution": null, "creator": {"username":
|
68
|
+
"dderse", "bio": "", "first_name": "Daniel", "last_name": "Derse", "created_at":
|
69
|
+
"2012-09-03T13:21:48", "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/dderse_1477012877_60.jpg",
|
70
|
+
"width": 60, "height": 60}}, "counts": {"pins": 23400, "following": 691, "followers":
|
71
|
+
13078, "boards": 37, "likes": 35}, "id": "491736990471948025"}, "url": "https://www.pinterest.com/pin/491736853049695203/",
|
72
|
+
"media": {"type": "image"}, "created_at": "2016-12-28T02:13:15", "note": "Build
|
73
|
+
Porch Swing Frame", "color": "#84773d", "link": "https://www.pinterest.com/r/pin/491736853049695203/4878490596204882047/5e2e7b6fc90973f4ac6b6249b99612956e55d0b9be87db4be491c503e3499032",
|
74
|
+
"board": {"description": "", "creator": {"id": "491736990471948025"}, "url":
|
75
|
+
"https://www.pinterest.com/dderse/woodworking/", "created_at": "2012-09-15T14:10:33",
|
76
|
+
"image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/8f/a3/01/8fa3011c924838a3afe246419486dde3.jpg",
|
77
|
+
"width": 60, "height": 60}}, "counts": {"pins": 3423, "collaborators": 0,
|
78
|
+
"followers": 7618}, "id": "491736921752475493", "name": "Woodworking"}, "image":
|
79
|
+
{"original": {"url": "https://s-media-cache-ak0.pinimg.com/originals/a8/e6/82/a8e68270de7d1042c265231ccd04be65.jpg",
|
80
|
+
"width": 1920, "height": 2560}}, "counts": {"likes": 0, "comments": 0, "repins":
|
81
|
+
5}, "id": "491736853049695203"}], "page": {"cursor": "LT40OTE3MzY4NTMwNDk2OTUyMDM6M3w0ODhmMGRlOGU3ZjlmMGVjNmFhNWI3NTI2OTVkYjI4ZjYyZmM5YmI4N2M3ZGU5ZDY2MWNmYTQ5MzU1MGY4NDM4",
|
82
|
+
"next": "https://api.pinterest.com/v1/boards/491736921752475493/pins/?cursor=LT40OTE3MzY4NTMwNDk2OTUyMDM6M3w0ODhmMGRlOGU3ZjlmMGVjNmFhNWI3NTI2OTVkYjI4ZjYyZmM5YmI4N2M3ZGU5ZDY2MWNmYTQ5MzU1MGY4NDM4&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:41:32 GMT
|
85
|
+
recorded_with: VCR 3.0.3
|
data/spec/cassettes/Pinterest_Endpoints_Pins/_board_pins/should_return_the_pins_of_the_board.yml
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pinterest.com/v1/boards/491736921752475493/pins/?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
|
+
- '982577438968'
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '200'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '64'
|
45
|
+
Transfer-Encoding:
|
46
|
+
- chunked
|
47
|
+
Date:
|
48
|
+
- Thu, 12 Jan 2017 12:30:16 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/491736853049887002/",
|
58
|
+
"media": {"type": "image"}, "created_at": "2017-01-09T03:45:58", "note": "Wooden
|
59
|
+
pallet Shamrock by DoodlesbyDiana on Etsy", "color": "#646740", "link": "https://www.pinterest.com/r/pin/491736853049887002/4878490596204882047/ebfb7581f86bb64334e62287838145f1a846b8807f540c4464bfd1ea3c9092b0",
|
60
|
+
"board": {"description": "", "creator": {"id": "491736990471948025"}, "url":
|
61
|
+
"https://www.pinterest.com/dderse/woodworking/", "created_at": "2012-09-15T14:10:33",
|
62
|
+
"image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/8f/a3/01/8fa3011c924838a3afe246419486dde3.jpg",
|
63
|
+
"width": 60, "height": 60}}, "counts": {"pins": 3423, "collaborators": 0,
|
64
|
+
"followers": 7618}, "id": "491736921752475493", "name": "Woodworking"}, "image":
|
65
|
+
{"original": {"url": "https://s-media-cache-ak0.pinimg.com/originals/6b/1c/a8/6b1ca8b7cc7002df1b54e4ad0cee53e9.jpg",
|
66
|
+
"width": 360, "height": 480}}, "counts": {"likes": 0, "comments": 0, "repins":
|
67
|
+
3}, "id": "491736853049887002"}, {"attribution": null, "creator": {"username":
|
68
|
+
"dderse", "bio": "", "first_name": "Daniel", "last_name": "Derse", "created_at":
|
69
|
+
"2012-09-03T13:21:48", "image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/avatars/dderse_1477012877_60.jpg",
|
70
|
+
"width": 60, "height": 60}}, "counts": {"pins": 23400, "following": 691, "followers":
|
71
|
+
13079, "boards": 37, "likes": 35}, "id": "491736990471948025"}, "url": "https://www.pinterest.com/pin/491736853049836051/",
|
72
|
+
"media": {"type": "image"}, "created_at": "2017-01-06T03:16:33", "note": "traditional
|
73
|
+
korean woodworking - Google Search", "color": "#655555", "link": "https://www.pinterest.com/r/pin/491736853049836051/4878490596204882047/41fecfddd98b2d1c1adfe63deab351497000a3ff3be58f5b88717f1ef1dc19c2",
|
74
|
+
"board": {"description": "", "creator": {"id": "491736990471948025"}, "url":
|
75
|
+
"https://www.pinterest.com/dderse/woodworking/", "created_at": "2012-09-15T14:10:33",
|
76
|
+
"image": {"60x60": {"url": "https://s-media-cache-ak0.pinimg.com/60x60/8f/a3/01/8fa3011c924838a3afe246419486dde3.jpg",
|
77
|
+
"width": 60, "height": 60}}, "counts": {"pins": 3423, "collaborators": 0,
|
78
|
+
"followers": 7618}, "id": "491736921752475493", "name": "Woodworking"}, "image":
|
79
|
+
{"original": {"url": "https://s-media-cache-ak0.pinimg.com/originals/5c/fb/f1/5cfbf1f405b6427387ab766eb916cff4.jpg",
|
80
|
+
"width": 600, "height": 332}}, "counts": {"likes": 1, "comments": 0, "repins":
|
81
|
+
2}, "id": "491736853049836051"}], "page": {"cursor": "LT40OTE3MzY4NTMwNDk4MzYwNTE6Mnw5ZTRiNmEyOGM5MDMwY2U5MmRkMTNmOWIyMDQyYTIzMjU5NTA2YzAzNTgzY2EwNzlhODBiMzNhOGQwNzg1NTNj",
|
82
|
+
"next": "https://api.pinterest.com/v1/boards/491736921752475493/pins/?cursor=LT40OTE3MzY4NTMwNDk4MzYwNTE6Mnw5ZTRiNmEyOGM5MDMwY2U5MmRkMTNmOWIyMDQyYTIzMjU5NTA2YzAzNTgzY2EwNzlhODBiMzNhOGQwNzg1NTNj&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:30:16 GMT
|
85
|
+
recorded_with: VCR 3.0.3
|