flickrie 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/flickrie.gemspec +1 -1
- data/lib/flickrie/version.rb +1 -1
- metadata +22 -150
- data/.gitignore +0 -10
- data/.travis.yml +0 -4
- data/.yardopts +0 -11
- data/CHANGELOG.md +0 -139
- data/Gemfile +0 -9
- data/Rakefile +0 -60
- data/spec/custom_matchers.rb +0 -51
- data/spec/files/photo.bla +0 -0
- data/spec/files/photo.jpg +0 -0
- data/spec/files/video.mov +0 -0
- data/spec/flickrie/api_methods_spec.rb +0 -124
- data/spec/flickrie/error_spec.rb +0 -26
- data/spec/flickrie/instance_spec.rb +0 -17
- data/spec/flickrie/license_spec.rb +0 -15
- data/spec/flickrie/location_spec.rb +0 -24
- data/spec/flickrie/media_count_spec.rb +0 -22
- data/spec/flickrie/media_spec.rb +0 -292
- data/spec/flickrie/oauth_spec.rb +0 -25
- data/spec/flickrie/photo_spec.rb +0 -132
- data/spec/flickrie/set_spec.rb +0 -76
- data/spec/flickrie/upload_client_spec.rb +0 -43
- data/spec/flickrie/user_spec.rb +0 -84
- data/spec/flickrie/video_spec.rb +0 -52
- data/spec/flickrie_spec.rb +0 -15
- data/spec/spec_helper.rb +0 -71
- data/spec/vcr_cassettes/api_methods/people/get_media_from_user.yml +0 -108
- data/spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml +0 -108
- data/spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml +0 -528
- data/spec/vcr_cassettes/api_methods/photos/get_context.yml +0 -108
- data/spec/vcr_cassettes/api_methods/photos/get_counts.yml +0 -108
- data/spec/vcr_cassettes/api_methods/photos/get_exif.yml +0 -73
- data/spec/vcr_cassettes/api_methods/photos/get_favorites.yml +0 -73
- data/spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml +0 -73
- data/spec/vcr_cassettes/api_methods/photos/get_info.yml +0 -108
- data/spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml +0 -73
- data/spec/vcr_cassettes/api_methods/photos/get_sizes.yml +0 -73
- data/spec/vcr_cassettes/api_methods/photos/search.yml +0 -108
- data/spec/vcr_cassettes/api_methods/photosets/get_media.yml +0 -108
- data/spec/vcr_cassettes/api_methods/upload/replace.yml +0 -126
- data/spec/vcr_cassettes/api_methods/upload/upload.yml +0 -82
- data/spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml +0 -117
- data/spec/vcr_cassettes/error/a_request_was_made_and_failed/be_raised.yml +0 -84
- data/spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml +0 -84
- data/spec/vcr_cassettes/flickrie/a_new_credential_is_filled_in/reset_the_client.yml +0 -233
- data/spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml +0 -152
- data/spec/vcr_cassettes/license/get/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/media/from_contacts/have_all_attributes_correctly_set.yml +0 -73
- data/spec/vcr_cassettes/media/from_set/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/media/from_user/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/media/get_context/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/media/get_exif/get_exif_correctly.yml +0 -73
- data/spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml +0 -108
- data/spec/vcr_cassettes/media/public_from_user/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/media/search/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/media_count/get/have_correctly_set_all_attributes.yml +0 -73
- data/spec/vcr_cassettes/o_auth/incorrect_credentials/raise_exceptions.yml +0 -249
- data/spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/photo/get_sizes/have_attributes_correctly_set.yml +0 -73
- data/spec/vcr_cassettes/photo/search/have_all_sizes_available.yml +0 -38
- data/spec/vcr_cassettes/set/from_user/have_all_attributes_correctly_set.yml +0 -143
- data/spec/vcr_cassettes/set/get_info/have_all_attributes_correctly_set.yml +0 -283
- data/spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml +0 -117
- data/spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml +0 -276
- data/spec/vcr_cassettes/user/find_by_username_or_email/have_all_attributes_correctly_set.yml +0 -73
- data/spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml +0 -73
- data/spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml +0 -38
- data/spec/vcr_cassettes/video/get_sizes/have_all_attributes_correctly_set.yml +0 -73
@@ -1,73 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getCounts&taken_dates=2012-03-01+00%3A00%3A00+UTC%2C2012-05-05+00%3A00%3A00+UTC
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="6fb4aa03fb2f4a7b78023e1c31b635d8", oauth_signature="14XibvIY0fxtn5OUoKHc6L2Ys78%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626774", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon, 21 May 2012 18:59:35 GMT
|
19
|
-
p3p:
|
20
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
21
|
-
cache-control:
|
22
|
-
- private
|
23
|
-
x-served-by:
|
24
|
-
- www104.flickr.mud.yahoo.com
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
content-length:
|
28
|
-
- "100"
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
content-type:
|
32
|
-
- application/json
|
33
|
-
body:
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: "{\"photocounts\":{\"photocount\":[{\"count\":\"1\", \"fromdate\":\"2012-03-01 00:00:00\", \"todate\":\"2012-05-05 00:00:00\"}]}, \"stat\":\"ok\"}"
|
36
|
-
http_version:
|
37
|
-
recorded_at: Mon, 21 May 2012 18:59:35 GMT
|
38
|
-
- request:
|
39
|
-
method: get
|
40
|
-
uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getCounts&dates=1330560000%2C1336176000
|
41
|
-
body:
|
42
|
-
encoding: US-ASCII
|
43
|
-
string: ""
|
44
|
-
headers:
|
45
|
-
Authorization:
|
46
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="1e07b62f34c26a7603914cef938fc44a", oauth_signature="ZmXzz4qcEc9x%2FAGfbJParsFA3%2Fg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626775", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
47
|
-
response:
|
48
|
-
status:
|
49
|
-
code: 200
|
50
|
-
message:
|
51
|
-
headers:
|
52
|
-
date:
|
53
|
-
- Mon, 21 May 2012 18:59:37 GMT
|
54
|
-
p3p:
|
55
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
56
|
-
cache-control:
|
57
|
-
- private
|
58
|
-
x-served-by:
|
59
|
-
- www135.flickr.mud.yahoo.com
|
60
|
-
vary:
|
61
|
-
- Accept-Encoding
|
62
|
-
content-length:
|
63
|
-
- "95"
|
64
|
-
connection:
|
65
|
-
- close
|
66
|
-
content-type:
|
67
|
-
- application/json
|
68
|
-
body:
|
69
|
-
encoding: ASCII-8BIT
|
70
|
-
string: "{\"photocounts\":{\"photocount\":[{\"count\":\"98\", \"fromdate\":\"1330560000\", \"todate\":\"1336176000\"}]}, \"stat\":\"ok\"}"
|
71
|
-
http_version:
|
72
|
-
recorded_at: Mon, 21 May 2012 18:59:37 GMT
|
73
|
-
recorded_with: VCR 2.1.1
|
@@ -1,249 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="foo", oauth_nonce="413996bfc0b671a7bb6c1b5ecff39840", oauth_signature="pWHF4AAKkbQXgiYWsTT0uML8uBE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626802", oauth_token="", oauth_version="1.0"
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 401
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon, 21 May 2012 19:00:02 GMT
|
19
|
-
p3p:
|
20
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
21
|
-
set-cookie:
|
22
|
-
- localization=en-us%3Bus%3Bus; expires=Mon, 19-May-2014 19:00:02 GMT; path=/; domain=.flickr.com
|
23
|
-
cache-control:
|
24
|
-
- private
|
25
|
-
x-served-by:
|
26
|
-
- www118.flickr.mud.yahoo.com
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
|
-
content-type:
|
30
|
-
- text/plain;charset=UTF-8
|
31
|
-
age:
|
32
|
-
- "0"
|
33
|
-
via:
|
34
|
-
- HTTP/1.1 r06.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r11.ycpi.ukl.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
35
|
-
server:
|
36
|
-
- YTS/1.20.16
|
37
|
-
connection:
|
38
|
-
- close
|
39
|
-
body:
|
40
|
-
encoding: ASCII-8BIT
|
41
|
-
string: oauth_problem=consumer_key_unknown
|
42
|
-
http_version:
|
43
|
-
recorded_at: Mon, 21 May 2012 19:00:02 GMT
|
44
|
-
- request:
|
45
|
-
method: get
|
46
|
-
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
47
|
-
body:
|
48
|
-
encoding: US-ASCII
|
49
|
-
string: ""
|
50
|
-
headers:
|
51
|
-
Authorization:
|
52
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="db60afe03e32474d92981135a952a2a5", oauth_signature="zcyfrHJSExmpl1fmAfCxc%2F1lKXo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626802", oauth_token="", oauth_version="1.0"
|
53
|
-
response:
|
54
|
-
status:
|
55
|
-
code: 401
|
56
|
-
message:
|
57
|
-
headers:
|
58
|
-
date:
|
59
|
-
- Mon, 21 May 2012 19:00:02 GMT
|
60
|
-
p3p:
|
61
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
62
|
-
set-cookie:
|
63
|
-
- localization=en-us%3Bus%3Bus; expires=Mon, 19-May-2014 19:00:03 GMT; path=/; domain=.flickr.com
|
64
|
-
cache-control:
|
65
|
-
- private
|
66
|
-
x-served-by:
|
67
|
-
- www42.flickr.mud.yahoo.com
|
68
|
-
vary:
|
69
|
-
- Accept-Encoding
|
70
|
-
content-type:
|
71
|
-
- text/plain;charset=UTF-8
|
72
|
-
age:
|
73
|
-
- "3"
|
74
|
-
via:
|
75
|
-
- HTTP/1.1 r29.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r06.ycpi.ukl.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
76
|
-
server:
|
77
|
-
- YTS/1.20.16
|
78
|
-
connection:
|
79
|
-
- close
|
80
|
-
body:
|
81
|
-
encoding: ASCII-8BIT
|
82
|
-
string: oauth_problem=signature_invalid&debug_sbs=GET&http%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Frequest_token&oauth_callback%3Doob%26oauth_consumer_key%3DAPI_KEY%26oauth_nonce%3Ddb60afe03e32474d92981135a952a2a5%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1337626802%26oauth_token%3D%26oauth_version%3D1.0
|
83
|
-
http_version:
|
84
|
-
recorded_at: Mon, 21 May 2012 19:00:03 GMT
|
85
|
-
- request:
|
86
|
-
method: get
|
87
|
-
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
88
|
-
body:
|
89
|
-
encoding: US-ASCII
|
90
|
-
string: ""
|
91
|
-
headers:
|
92
|
-
Authorization:
|
93
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="7b95474a24606126fb1327928e4013c4", oauth_signature="55y7LmzAkaUWHLOZykzu9geKNpo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626803", oauth_token="", oauth_version="1.0"
|
94
|
-
response:
|
95
|
-
status:
|
96
|
-
code: 200
|
97
|
-
message:
|
98
|
-
headers:
|
99
|
-
date:
|
100
|
-
- Mon, 21 May 2012 19:00:03 GMT
|
101
|
-
p3p:
|
102
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
103
|
-
set-cookie:
|
104
|
-
- localization=en-us%3Bus%3Bus; expires=Mon, 19-May-2014 19:00:03 GMT; path=/; domain=.flickr.com
|
105
|
-
cache-control:
|
106
|
-
- private
|
107
|
-
x-served-by:
|
108
|
-
- www48.flickr.mud.yahoo.com
|
109
|
-
vary:
|
110
|
-
- Accept-Encoding
|
111
|
-
content-type:
|
112
|
-
- text/plain;charset=UTF-8
|
113
|
-
age:
|
114
|
-
- "0"
|
115
|
-
via:
|
116
|
-
- HTTP/1.1 r38.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r18.ycpi.ukl.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
117
|
-
server:
|
118
|
-
- YTS/1.20.16
|
119
|
-
connection:
|
120
|
-
- close
|
121
|
-
body:
|
122
|
-
encoding: ASCII-8BIT
|
123
|
-
string: oauth_callback_confirmed=true&oauth_token=72157629834886962-c38ce70fbcfc81e9&oauth_token_secret=86603f29551844ea
|
124
|
-
http_version:
|
125
|
-
recorded_at: Mon, 21 May 2012 19:00:03 GMT
|
126
|
-
- request:
|
127
|
-
method: get
|
128
|
-
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
129
|
-
body:
|
130
|
-
encoding: US-ASCII
|
131
|
-
string: ""
|
132
|
-
headers:
|
133
|
-
Authorization:
|
134
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="3667e1ad2656e65f72ed767aa0303835", oauth_signature="%2BHgdbRYjvMIM0Maw4UKAYItVRqc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626803", oauth_token="", oauth_version="1.0"
|
135
|
-
response:
|
136
|
-
status:
|
137
|
-
code: 200
|
138
|
-
message:
|
139
|
-
headers:
|
140
|
-
date:
|
141
|
-
- Mon, 21 May 2012 19:00:03 GMT
|
142
|
-
p3p:
|
143
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
144
|
-
set-cookie:
|
145
|
-
- localization=en-us%3Bus%3Bus; expires=Mon, 19-May-2014 19:00:03 GMT; path=/; domain=.flickr.com
|
146
|
-
cache-control:
|
147
|
-
- private
|
148
|
-
x-served-by:
|
149
|
-
- www148.flickr.mud.yahoo.com
|
150
|
-
vary:
|
151
|
-
- Accept-Encoding
|
152
|
-
content-type:
|
153
|
-
- text/plain;charset=UTF-8
|
154
|
-
age:
|
155
|
-
- "0"
|
156
|
-
via:
|
157
|
-
- HTTP/1.1 r14.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r13.ycpi.ukl.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
158
|
-
server:
|
159
|
-
- YTS/1.20.16
|
160
|
-
connection:
|
161
|
-
- close
|
162
|
-
body:
|
163
|
-
encoding: ASCII-8BIT
|
164
|
-
string: oauth_callback_confirmed=true&oauth_token=72157629834887094-c38ce70fbcfc81e9&oauth_token_secret=b5dd4f53a136c79b
|
165
|
-
http_version:
|
166
|
-
recorded_at: Mon, 21 May 2012 19:00:03 GMT
|
167
|
-
- request:
|
168
|
-
method: get
|
169
|
-
uri: http://www.flickr.com/services/oauth/access_token?oauth_verifier=foo
|
170
|
-
body:
|
171
|
-
encoding: US-ASCII
|
172
|
-
string: ""
|
173
|
-
headers:
|
174
|
-
Authorization:
|
175
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="6252e8591c0295864241c57be16f8466", oauth_signature="27PW2yyucL2WrHXXW2ksbJfxf1Y%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626803", oauth_token="72157629834887094-c38ce70fbcfc81e9", oauth_version="1.0"
|
176
|
-
response:
|
177
|
-
status:
|
178
|
-
code: 401
|
179
|
-
message:
|
180
|
-
headers:
|
181
|
-
date:
|
182
|
-
- Mon, 21 May 2012 19:00:04 GMT
|
183
|
-
p3p:
|
184
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
185
|
-
set-cookie:
|
186
|
-
- localization=en-us%3Bus%3Bus; expires=Mon, 19-May-2014 19:00:04 GMT; path=/; domain=.flickr.com
|
187
|
-
cache-control:
|
188
|
-
- private
|
189
|
-
x-served-by:
|
190
|
-
- www1.flickr.mud.yahoo.com
|
191
|
-
vary:
|
192
|
-
- Accept-Encoding
|
193
|
-
content-type:
|
194
|
-
- text/plain;charset=UTF-8
|
195
|
-
age:
|
196
|
-
- "1"
|
197
|
-
via:
|
198
|
-
- HTTP/1.1 r44.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r17.ycpi.ams.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
199
|
-
server:
|
200
|
-
- YTS/1.20.16
|
201
|
-
connection:
|
202
|
-
- close
|
203
|
-
body:
|
204
|
-
encoding: ASCII-8BIT
|
205
|
-
string: oauth_problem=token_rejected
|
206
|
-
http_version:
|
207
|
-
recorded_at: Mon, 21 May 2012 19:00:04 GMT
|
208
|
-
- request:
|
209
|
-
method: get
|
210
|
-
uri: http://www.flickr.com/services/oauth/access_token?oauth_verifier=foo
|
211
|
-
body:
|
212
|
-
encoding: US-ASCII
|
213
|
-
string: ""
|
214
|
-
headers:
|
215
|
-
Authorization:
|
216
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="4c51f83a6de341011ff6dd830458e1e3", oauth_signature="TALhW1szWQJPxdk%2FwAoOotvhh48%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626804", oauth_token="72157629834887094-c38ce70fbcfc81e9", oauth_version="1.0"
|
217
|
-
response:
|
218
|
-
status:
|
219
|
-
code: 401
|
220
|
-
message:
|
221
|
-
headers:
|
222
|
-
date:
|
223
|
-
- Mon, 21 May 2012 19:00:04 GMT
|
224
|
-
p3p:
|
225
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
226
|
-
set-cookie:
|
227
|
-
- localization=en-us%3Bus%3Bus; expires=Mon, 19-May-2014 19:00:04 GMT; path=/; domain=.flickr.com
|
228
|
-
cache-control:
|
229
|
-
- private
|
230
|
-
x-served-by:
|
231
|
-
- www147.flickr.mud.yahoo.com
|
232
|
-
vary:
|
233
|
-
- Accept-Encoding
|
234
|
-
content-type:
|
235
|
-
- text/plain;charset=UTF-8
|
236
|
-
age:
|
237
|
-
- "0"
|
238
|
-
via:
|
239
|
-
- HTTP/1.1 r30.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r16.ycpi.ams.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
240
|
-
server:
|
241
|
-
- YTS/1.20.16
|
242
|
-
connection:
|
243
|
-
- close
|
244
|
-
body:
|
245
|
-
encoding: ASCII-8BIT
|
246
|
-
string: oauth_problem=token_rejected
|
247
|
-
http_version:
|
248
|
-
recorded_at: Mon, 21 May 2012 19:00:05 GMT
|
249
|
-
recorded_with: VCR 2.1.1
|
@@ -1,38 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=6946979188
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="f88a35701b81b71bee9d63ccb7ff0cf4", oauth_signature="Z2SR%2FPDz4CY6edYKHkcjzkKxFOc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626817", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon, 21 May 2012 19:00:18 GMT
|
19
|
-
p3p:
|
20
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
21
|
-
cache-control:
|
22
|
-
- private
|
23
|
-
x-served-by:
|
24
|
-
- www97.flickr.mud.yahoo.com
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
content-length:
|
28
|
-
- "844"
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
content-type:
|
32
|
-
- application/json
|
33
|
-
body:
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: "{\"photo\":{\"id\":\"6946979188\", \"secret\":\"25bb44852b\", \"server\":\"7049\", \"farm\":8, \"dateuploaded\":\"1334832745\", \"isfavorite\":0, \"license\":\"0\", \"safety_level\":\"0\", \"rotation\":90, \"owner\":{\"nsid\":\"67131352@N04\", \"username\":\"Janko Marohni\\u0107\", \"realname\":\"Janko Marohni\\u0107\", \"location\":\"Zagreb, Croatia\", \"iconserver\":\"5464\", \"iconfarm\":6}, \"title\":{\"_content\":\"IMG_0796\"}, \"description\":{\"_content\":\"Test\"}, \"visibility\":{\"ispublic\":1, \"isfriend\":0, \"isfamily\":0}, \"dates\":{\"posted\":\"1334832745\", \"taken\":\"2011-03-20 17:00:05\", \"takengranularity\":\"0\", \"lastupdate\":\"1337626699\"}, \"permissions\":{\"permcomment\":3, \"permaddmeta\":2}, \"views\":\"5\", \"editability\":{\"cancomment\":1, \"canaddmeta\":1}, \"publiceditability\":{\"cancomment\":1, \"canaddmeta\":0}, \"usage\":{\"candownload\":1, \"canblog\":1, \"canprint\":1, \"canshare\":0}, \"comments\":{\"_content\":\"1\"}, \"notes\":{\"note\":[{\"id\":\"72157629487842968\", \"author\":\"67131352@N04\", \"authorname\":\"Janko Marohni\\u0107\", \"x\":\"316\", \"y\":\"0\", \"w\":\"59\", \"h\":\"50\", \"_content\":\"Test\"}]}, \"people\":{\"haspeople\":0}, \"tags\":{\"tag\":[{\"id\":\"67099213-6946979188-89662\", \"author\":\"67131352@N04\", \"raw\":\"luka\", \"_content\":\"luka\", \"machine_tag\":0}]}, \"location\":{\"latitude\":45.807258, \"longitude\":15.967599, \"accuracy\":\"11\", \"context\":\"0\", \"locality\":{\"_content\":\"Zagreb\", \"place_id\":\"00j4IylZV7scWik\", \"woeid\":\"851128\"}, \"county\":{\"_content\":\"Zagreb\", \"place_id\":\"306dHrhQV7o6jm.ZUQ\", \"woeid\":\"15022257\"}, \"region\":{\"_content\":\"Grad Zagreb\", \"place_id\":\"Js1DU.pTUrpBCIKhVw\", \"woeid\":\"20070170\"}, \"country\":{\"_content\":\"Croatia\", \"place_id\":\"FunRCI5TUb6a6soTyw\", \"woeid\":\"23424843\"}, \"place_id\":\"00j4IylZV7scWik\", \"woeid\":\"851128\"}, \"geoperms\":{\"ispublic\":1, \"iscontact\":0, \"isfriend\":0, \"isfamily\":0}, \"urls\":{\"url\":[{\"type\":\"photopage\", \"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/\"}]}, \"media\":\"photo\"}, \"stat\":\"ok\"}"
|
36
|
-
http_version:
|
37
|
-
recorded_at: Mon, 21 May 2012 19:00:18 GMT
|
38
|
-
recorded_with: VCR 2.1.1
|
@@ -1,73 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getSizes&photo_id=6946979188
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="a9a3018d557b88d7c229c451a15f5279", oauth_signature="sMBKXwVeqmBIWffmxAqJE8Y1sjI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626805", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Mon, 21 May 2012 19:00:06 GMT
|
19
|
-
p3p:
|
20
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
21
|
-
cache-control:
|
22
|
-
- private
|
23
|
-
x-served-by:
|
24
|
-
- www205.flickr.mud.yahoo.com
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
content-length:
|
28
|
-
- "440"
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
content-type:
|
32
|
-
- application/json
|
33
|
-
body:
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: "{\"sizes\":{\"canblog\":1, \"canprint\":1, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"75\", \"height\":\"100\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"180\", \"height\":\"240\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":\"320\", \"height\":240, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"375\", \"height\":\"500\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 640\", \"width\":\"480\", \"height\":\"640\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_z.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/z\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 800\", \"width\":\"800\", \"height\":600, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_c.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/c\\/\", \"media\":\"photo\"}, {\"label\":\"Large\", \"width\":\"768\", \"height\":\"1024\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/l\\/\", \"media\":\"photo\"}, {\"label\":\"Large 1600\", \"width\":1200, \"height\":\"1600\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_3219ddaa99_h.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/h\\/\", \"media\":\"photo\"}, {\"label\":\"Large 2048\", \"width\":1536, \"height\":\"2048\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_b7dd05a1d3_k.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/k\\/\", \"media\":\"photo\"}]}, \"stat\":\"ok\"}"
|
36
|
-
http_version:
|
37
|
-
recorded_at: Mon, 21 May 2012 19:00:06 GMT
|
38
|
-
- request:
|
39
|
-
method: get
|
40
|
-
uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getSizes&photo_id=6946979188
|
41
|
-
body:
|
42
|
-
encoding: US-ASCII
|
43
|
-
string: ""
|
44
|
-
headers:
|
45
|
-
Authorization:
|
46
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="faedc0134898c0b2cdd5f6ed5076c419", oauth_signature="y2eOd7JAqo9IuBvmdJjhML%2Fr0d8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337626806", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
47
|
-
response:
|
48
|
-
status:
|
49
|
-
code: 200
|
50
|
-
message:
|
51
|
-
headers:
|
52
|
-
date:
|
53
|
-
- Mon, 21 May 2012 19:00:09 GMT
|
54
|
-
p3p:
|
55
|
-
- policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
|
56
|
-
cache-control:
|
57
|
-
- private
|
58
|
-
x-served-by:
|
59
|
-
- www218.flickr.mud.yahoo.com
|
60
|
-
vary:
|
61
|
-
- Accept-Encoding
|
62
|
-
content-length:
|
63
|
-
- "440"
|
64
|
-
connection:
|
65
|
-
- close
|
66
|
-
content-type:
|
67
|
-
- application/json
|
68
|
-
body:
|
69
|
-
encoding: ASCII-8BIT
|
70
|
-
string: "{\"sizes\":{\"canblog\":1, \"canprint\":1, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"75\", \"height\":\"100\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"180\", \"height\":\"240\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":\"320\", \"height\":240, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"375\", \"height\":\"500\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 640\", \"width\":\"480\", \"height\":\"640\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_z.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/z\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 800\", \"width\":\"800\", \"height\":600, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_c.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/c\\/\", \"media\":\"photo\"}, {\"label\":\"Large\", \"width\":\"768\", \"height\":\"1024\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/l\\/\", \"media\":\"photo\"}, {\"label\":\"Large 1600\", \"width\":1200, \"height\":\"1600\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_3219ddaa99_h.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/h\\/\", \"media\":\"photo\"}, {\"label\":\"Large 2048\", \"width\":1536, \"height\":\"2048\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_b7dd05a1d3_k.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/k\\/\", \"media\":\"photo\"}]}, \"stat\":\"ok\"}"
|
71
|
-
http_version:
|
72
|
-
recorded_at: Mon, 21 May 2012 19:00:09 GMT
|
73
|
-
recorded_with: VCR 2.1.1
|