flickrie 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile +0 -4
  4. data/flickrie.gemspec +2 -2
  5. data/lib/flickrie/api_methods.rb +4 -1
  6. data/lib/flickrie/license.rb +6 -1
  7. data/lib/flickrie/location.rb +29 -12
  8. data/lib/flickrie/media/exif.rb +3 -1
  9. data/lib/flickrie/media/note.rb +24 -13
  10. data/lib/flickrie/media/tag.rb +9 -6
  11. data/lib/flickrie/media/visibility.rb +8 -5
  12. data/lib/flickrie/media.rb +54 -55
  13. data/lib/flickrie/media_count.rb +8 -6
  14. data/lib/flickrie/photo.rb +48 -7
  15. data/lib/flickrie/set.rb +47 -31
  16. data/lib/flickrie/ticket.rb +8 -5
  17. data/lib/flickrie/user.rb +67 -25
  18. data/lib/flickrie/version.rb +1 -1
  19. data/lib/flickrie/video.rb +19 -11
  20. data/spec/custom_matchers.rb +51 -0
  21. data/spec/flickrie/api_methods_spec.rb +112 -31
  22. data/spec/flickrie/error_spec.rb +2 -4
  23. data/spec/flickrie/instance_spec.rb +11 -11
  24. data/spec/flickrie/media_spec.rb +74 -53
  25. data/spec/flickrie/photo_spec.rb +4 -5
  26. data/spec/flickrie/set_spec.rb +23 -12
  27. data/spec/flickrie/upload_client_spec.rb +3 -0
  28. data/spec/flickrie/user_spec.rb +31 -5
  29. data/spec/flickrie/video_spec.rb +13 -13
  30. data/spec/flickrie_spec.rb +15 -0
  31. data/spec/spec_helper.rb +13 -50
  32. data/spec/vcr_cassettes/api_methods/people/get_media_from_user.yml +108 -0
  33. data/spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml +108 -0
  34. data/spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml +528 -0
  35. data/spec/vcr_cassettes/api_methods/photos/get_context.yml +108 -0
  36. data/spec/vcr_cassettes/api_methods/photos/get_counts.yml +108 -0
  37. data/spec/vcr_cassettes/api_methods/photos/get_exif.yml +73 -0
  38. data/spec/vcr_cassettes/api_methods/photos/get_favorites.yml +73 -0
  39. data/spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml +73 -0
  40. data/spec/vcr_cassettes/api_methods/photos/get_info.yml +108 -0
  41. data/spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml +73 -0
  42. data/spec/vcr_cassettes/api_methods/photos/get_sizes.yml +73 -0
  43. data/spec/vcr_cassettes/api_methods/photos/search.yml +108 -0
  44. data/spec/vcr_cassettes/api_methods/photosets/get_media.yml +108 -0
  45. data/spec/vcr_cassettes/api_methods/{replace.yml → upload/replace.yml} +16 -16
  46. data/spec/vcr_cassettes/api_methods/upload/upload.yml +82 -0
  47. data/spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml +117 -0
  48. data/spec/vcr_cassettes/error/{a_request_was_made_and_failed.yml → a_request_was_made_and_failed/be_raised.yml} +9 -9
  49. data/spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml +84 -0
  50. data/spec/vcr_cassettes/{api_methods/upload_and_delete.yml → flickrie/a_new_credential_is_filled_in/reset_the_client.yml} +113 -32
  51. data/spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml +152 -0
  52. data/spec/vcr_cassettes/license/{get.yml → get/have_all_attributes_correctly_set.yml} +4 -4
  53. data/spec/vcr_cassettes/media/{from_contacts.yml → from_contacts/have_all_attributes_correctly_set.yml} +8 -8
  54. data/spec/vcr_cassettes/media/{from_set.yml → from_set/have_all_attributes_correctly_set.yml} +6 -6
  55. data/spec/vcr_cassettes/media/{from_user.yml → from_user/have_all_attributes_correctly_set.yml} +6 -6
  56. data/spec/vcr_cassettes/media/{get_context.yml → get_context/have_all_attributes_correctly_set.yml} +6 -6
  57. data/spec/vcr_cassettes/media/{get_exif.yml → get_exif/get_exif_correctly.yml} +8 -8
  58. data/spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml +108 -0
  59. data/spec/vcr_cassettes/media/{public_from_user.yml → public_from_user/have_all_attributes_correctly_set.yml} +6 -6
  60. data/spec/vcr_cassettes/media/{search.yml → search/have_all_attributes_correctly_set.yml} +6 -6
  61. data/spec/vcr_cassettes/media_count/{get.yml → get/have_correctly_set_all_attributes.yml} +9 -9
  62. data/spec/vcr_cassettes/o_auth/{incorrect_credentials.yml → incorrect_credentials/raise_exceptions.yml} +42 -42
  63. data/spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml +38 -0
  64. data/spec/vcr_cassettes/photo/{get_sizes.yml → get_sizes/have_attributes_correctly_set.yml} +12 -12
  65. data/spec/vcr_cassettes/photo/{search.yml → search/have_all_sizes_available.yml} +6 -6
  66. data/spec/vcr_cassettes/set/{from_user.yml → from_user/have_all_attributes_correctly_set.yml} +18 -18
  67. data/spec/vcr_cassettes/set/{get_info.yml → get_info/have_all_attributes_correctly_set.yml} +36 -36
  68. data/spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml +117 -0
  69. data/spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml +276 -0
  70. data/spec/vcr_cassettes/user/{find_by_username_or_email.yml → find_by_username_or_email/have_all_attributes_correctly_set.yml} +9 -9
  71. data/spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml +73 -0
  72. data/spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml +38 -0
  73. data/spec/vcr_cassettes/video/{get_sizes.yml → get_sizes/have_all_attributes_correctly_set.yml} +12 -12
  74. metadata +111 -74
  75. data/spec/vcr_cassettes/api_methods/asynchronous_upload.yml +0 -362
  76. data/spec/vcr_cassettes/api_methods/tag_manipulation.yml +0 -178
  77. data/spec/vcr_cassettes/instance/calling_api_methods.yml +0 -231
  78. data/spec/vcr_cassettes/media/get_info.yml +0 -108
  79. data/spec/vcr_cassettes/photo/get_info.yml +0 -38
  80. data/spec/vcr_cassettes/upload_client/content_type.yml +0 -117
  81. data/spec/vcr_cassettes/upload_client/invalid_credentials.yml +0 -208
  82. data/spec/vcr_cassettes/user/get_info.yml +0 -73
  83. data/spec/vcr_cassettes/video/get_info.yml +0 -38
@@ -1,362 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://api.flickr.com/services/upload
6
- body:
7
- encoding: ASCII-8BIT
8
- string: "#<Faraday::CompositeReadIO:0x007fb6b4d663d0>"
9
- headers:
10
- Authorization:
11
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="ef079928025e944a985e5a8cc60ee83d", oauth_signature="Axxor4xStEbW3pbXzkxlgWAUZzs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291989", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
- Content-Type:
13
- - multipart/form-data;boundary=-----------RubyMultipartPost
14
- Content-Length:
15
- - "47169"
16
- response:
17
- status:
18
- code: 200
19
- message:
20
- headers:
21
- date:
22
- - Thu, 17 May 2012 21:59:50 GMT
23
- p3p:
24
- - 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"
25
- connection:
26
- - close
27
- content-length:
28
- - "111"
29
- cache-control:
30
- - private
31
- x-served-by:
32
- - www108.flickr.mud.yahoo.com
33
- vary:
34
- - Accept-Encoding
35
- content-type:
36
- - text/xml; charset=utf-8
37
- body:
38
- encoding: US-ASCII
39
- string: |
40
- <?xml version="1.0" encoding="utf-8" ?>
41
- <rsp stat="ok">
42
- <ticketid>67099213-72157629776289980</ticketid>
43
- </rsp>
44
-
45
- http_version:
46
- recorded_at: Thu, 17 May 2012 21:59:51 GMT
47
- - request:
48
- method: get
49
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
50
- body:
51
- encoding: US-ASCII
52
- string: ""
53
- headers:
54
- Authorization:
55
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="cc198d13f40ada44db572454f7329dab", oauth_signature="FVBKoMy%2BV%2F8rjruyXCtZ0%2FrkQM0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291991", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
56
- response:
57
- status:
58
- code: 200
59
- message:
60
- headers:
61
- date:
62
- - Thu, 17 May 2012 21:59:51 GMT
63
- p3p:
64
- - 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"
65
- cache-control:
66
- - private
67
- x-served-by:
68
- - www115.flickr.mud.yahoo.com
69
- vary:
70
- - Accept-Encoding
71
- content-length:
72
- - "102"
73
- connection:
74
- - close
75
- content-type:
76
- - application/json
77
- body:
78
- encoding: ASCII-8BIT
79
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
80
- http_version:
81
- recorded_at: Thu, 17 May 2012 21:59:51 GMT
82
- - request:
83
- method: get
84
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
85
- body:
86
- encoding: US-ASCII
87
- string: ""
88
- headers:
89
- Authorization:
90
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="a9e2e645dc90db2dcedbdae12ca37d9a", oauth_signature="MK%2FG3XRKfHxqTkdBv9JbbZroBs8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291991", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
91
- response:
92
- status:
93
- code: 200
94
- message:
95
- headers:
96
- date:
97
- - Thu, 17 May 2012 21:59:51 GMT
98
- p3p:
99
- - 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"
100
- cache-control:
101
- - private
102
- x-served-by:
103
- - www204.flickr.mud.yahoo.com
104
- vary:
105
- - Accept-Encoding
106
- content-length:
107
- - "102"
108
- connection:
109
- - close
110
- content-type:
111
- - application/json
112
- body:
113
- encoding: ASCII-8BIT
114
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
115
- http_version:
116
- recorded_at: Thu, 17 May 2012 21:59:51 GMT
117
- - request:
118
- method: get
119
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
120
- body:
121
- encoding: US-ASCII
122
- string: ""
123
- headers:
124
- Authorization:
125
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="bb54f1fd46ba7db7220f64a3cb3526a5", oauth_signature="hqw6xdXBExGDsS%2FZQHX8mbprSKQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291991", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
126
- response:
127
- status:
128
- code: 200
129
- message:
130
- headers:
131
- date:
132
- - Thu, 17 May 2012 21:59:52 GMT
133
- p3p:
134
- - 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"
135
- cache-control:
136
- - private
137
- x-served-by:
138
- - www111.flickr.mud.yahoo.com
139
- vary:
140
- - Accept-Encoding
141
- content-length:
142
- - "102"
143
- connection:
144
- - close
145
- content-type:
146
- - application/json
147
- body:
148
- encoding: ASCII-8BIT
149
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
150
- http_version:
151
- recorded_at: Thu, 17 May 2012 21:59:52 GMT
152
- - request:
153
- method: get
154
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
155
- body:
156
- encoding: US-ASCII
157
- string: ""
158
- headers:
159
- Authorization:
160
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="667305ffe094a9c406fde3d9713fb104", oauth_signature="U179IuSX32xSZTGY%2BdQSOXVLhJw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291992", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
161
- response:
162
- status:
163
- code: 200
164
- message:
165
- headers:
166
- date:
167
- - Thu, 17 May 2012 21:59:52 GMT
168
- p3p:
169
- - 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"
170
- cache-control:
171
- - private
172
- x-served-by:
173
- - www204.flickr.mud.yahoo.com
174
- vary:
175
- - Accept-Encoding
176
- content-length:
177
- - "102"
178
- connection:
179
- - close
180
- content-type:
181
- - application/json
182
- body:
183
- encoding: ASCII-8BIT
184
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
185
- http_version:
186
- recorded_at: Thu, 17 May 2012 21:59:52 GMT
187
- - request:
188
- method: get
189
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
190
- body:
191
- encoding: US-ASCII
192
- string: ""
193
- headers:
194
- Authorization:
195
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="e367c1ad20d8835f9e8d61a8bb55af14", oauth_signature="RYsl4wFJsyF9CuEuyPzp3hqEiL0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291992", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
196
- response:
197
- status:
198
- code: 200
199
- message:
200
- headers:
201
- date:
202
- - Thu, 17 May 2012 21:59:53 GMT
203
- p3p:
204
- - 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"
205
- cache-control:
206
- - private
207
- x-served-by:
208
- - www125.flickr.mud.yahoo.com
209
- vary:
210
- - Accept-Encoding
211
- content-length:
212
- - "102"
213
- connection:
214
- - close
215
- content-type:
216
- - application/json
217
- body:
218
- encoding: ASCII-8BIT
219
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
220
- http_version:
221
- recorded_at: Thu, 17 May 2012 21:59:53 GMT
222
- - request:
223
- method: get
224
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
225
- body:
226
- encoding: US-ASCII
227
- string: ""
228
- headers:
229
- Authorization:
230
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="1d4c5168048703710b6eae8f8a431989", oauth_signature="eiFB4MQ516wW1zX8HGYYigWDjP8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291993", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
231
- response:
232
- status:
233
- code: 200
234
- message:
235
- headers:
236
- date:
237
- - Thu, 17 May 2012 21:59:53 GMT
238
- p3p:
239
- - 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"
240
- cache-control:
241
- - private
242
- x-served-by:
243
- - www9.flickr.mud.yahoo.com
244
- vary:
245
- - Accept-Encoding
246
- content-length:
247
- - "102"
248
- connection:
249
- - close
250
- content-type:
251
- - application/json
252
- body:
253
- encoding: ASCII-8BIT
254
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
255
- http_version:
256
- recorded_at: Thu, 17 May 2012 21:59:53 GMT
257
- - request:
258
- method: get
259
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
260
- body:
261
- encoding: US-ASCII
262
- string: ""
263
- headers:
264
- Authorization:
265
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="b02adcb6dd41be220a04cc84b2ee223a", oauth_signature="ZlZeQdWP16tZOTBuomoZTLj0EX8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291993", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
266
- response:
267
- status:
268
- code: 200
269
- message:
270
- headers:
271
- date:
272
- - Thu, 17 May 2012 21:59:53 GMT
273
- p3p:
274
- - 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"
275
- cache-control:
276
- - private
277
- x-served-by:
278
- - www162.flickr.mud.yahoo.com
279
- vary:
280
- - Accept-Encoding
281
- content-length:
282
- - "132"
283
- connection:
284
- - close
285
- content-type:
286
- - application/json
287
- body:
288
- encoding: ASCII-8BIT
289
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":1, \"photoid\":\"7218054900\", \"imported\":\"1337291991\"}]}, \"stat\":\"ok\"}"
290
- http_version:
291
- recorded_at: Thu, 17 May 2012 21:59:53 GMT
292
- - request:
293
- method: get
294
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=7218054900
295
- body:
296
- encoding: US-ASCII
297
- string: ""
298
- headers:
299
- Authorization:
300
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="43e5e1f32cb311b2b2cf7c52d680f9f1", oauth_signature="TwD%2F546LG9MOdBxKzMdv4Ub6vF8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291993", oauth_token="", oauth_version="1.0"
301
- response:
302
- status:
303
- code: 200
304
- message:
305
- headers:
306
- date:
307
- - Thu, 17 May 2012 21:59:54 GMT
308
- p3p:
309
- - 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"
310
- cache-control:
311
- - private
312
- x-served-by:
313
- - www175.flickr.mud.yahoo.com
314
- vary:
315
- - Accept-Encoding
316
- content-length:
317
- - "502"
318
- connection:
319
- - close
320
- content-type:
321
- - application/json
322
- body:
323
- encoding: ASCII-8BIT
324
- string: "{\"photo\":{\"id\":\"7218054900\", \"secret\":\"aa17090254\", \"server\":\"7076\", \"farm\":8, \"dateuploaded\":\"1337291991\", \"isfavorite\":0, \"license\":\"0\", \"safety_level\":\"0\", \"rotation\":0, \"owner\":{\"nsid\":\"67131352@N04\", \"username\":\"Janko Marohni\\u0107\", \"realname\":\"Janko Marohni\\u0107\", \"location\":\"Zagreb, Croatia\", \"iconserver\":\"5464\", \"iconfarm\":6}, \"title\":{\"_content\":\"photo\"}, \"description\":{\"_content\":\"\"}, \"visibility\":{\"ispublic\":1, \"isfriend\":0, \"isfamily\":0}, \"dates\":{\"posted\":\"1337291991\", \"taken\":\"2012-05-17 23:59:51\", \"takengranularity\":\"0\", \"lastupdate\":\"1337291993\"}, \"views\":\"0\", \"editability\":{\"cancomment\":0, \"canaddmeta\":0}, \"publiceditability\":{\"cancomment\":1, \"canaddmeta\":0}, \"usage\":{\"candownload\":1, \"canblog\":0, \"canprint\":0, \"canshare\":0}, \"comments\":{\"_content\":\"0\"}, \"notes\":{\"note\":[]}, \"people\":{\"haspeople\":0}, \"tags\":{\"tag\":[]}, \"urls\":{\"url\":[{\"type\":\"photopage\", \"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7218054900\\/\"}]}, \"media\":\"photo\"}, \"stat\":\"ok\"}"
325
- http_version:
326
- recorded_at: Thu, 17 May 2012 21:59:54 GMT
327
- - request:
328
- method: post
329
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7218054900
330
- body:
331
- encoding: US-ASCII
332
- string: ""
333
- headers:
334
- Authorization:
335
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="0c7123cf65939bb4bc3f52b3186a73d5", oauth_signature="5MixpNMO5vMH9Qs0tVf9p0MW%2FlQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291994", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
336
- response:
337
- status:
338
- code: 200
339
- message:
340
- headers:
341
- date:
342
- - Thu, 17 May 2012 21:59:54 GMT
343
- p3p:
344
- - 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"
345
- cache-control:
346
- - private
347
- x-served-by:
348
- - www121.flickr.mud.yahoo.com
349
- vary:
350
- - Accept-Encoding
351
- content-length:
352
- - "13"
353
- connection:
354
- - close
355
- content-type:
356
- - application/json
357
- body:
358
- encoding: US-ASCII
359
- string: "{\"stat\":\"ok\"}"
360
- http_version:
361
- recorded_at: Thu, 17 May 2012 21:59:54 GMT
362
- recorded_with: VCR 2.1.1
@@ -1,178 +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="d011da4f637c4059bd515cde42a9084d", oauth_signature="Qe3jleqryLr4xCInxfbxJrcPJY4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292001", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
- response:
13
- status:
14
- code: 200
15
- message:
16
- headers:
17
- date:
18
- - Thu, 17 May 2012 22:00:01 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
- - www91.flickr.mud.yahoo.com
25
- vary:
26
- - Accept-Encoding
27
- content-length:
28
- - "843"
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\":\"1337288240\"}, \"permissions\":{\"permcomment\":3, \"permaddmeta\":2}, \"views\":\"4\", \"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: Thu, 17 May 2012 22:00:02 GMT
38
- - request:
39
- method: post
40
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.addTags&photo_id=6946979188&tags=janko
41
- body:
42
- encoding: US-ASCII
43
- string: ""
44
- headers:
45
- Authorization:
46
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="970aa27fe3233f4f794188792304f6a3", oauth_signature="0WdXkbEi2NpQc0sCfpfec1FGImU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292002", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
- response:
48
- status:
49
- code: 200
50
- message:
51
- headers:
52
- date:
53
- - Thu, 17 May 2012 22:00:02 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
- - www106.flickr.mud.yahoo.com
60
- vary:
61
- - Accept-Encoding
62
- content-length:
63
- - "13"
64
- connection:
65
- - close
66
- content-type:
67
- - application/json
68
- body:
69
- encoding: US-ASCII
70
- string: "{\"stat\":\"ok\"}"
71
- http_version:
72
- recorded_at: Thu, 17 May 2012 22:00:02 GMT
73
- - request:
74
- method: get
75
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=6946979188
76
- body:
77
- encoding: US-ASCII
78
- string: ""
79
- headers:
80
- Authorization:
81
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="4c64887daaada182d46f4a5d750c5210", oauth_signature="a%2F8E1ZkUQjhOrc1Hb%2FQFdesaN74%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292002", oauth_token="", oauth_version="1.0"
82
- response:
83
- status:
84
- code: 200
85
- message:
86
- headers:
87
- date:
88
- - Thu, 17 May 2012 22:00:03 GMT
89
- p3p:
90
- - 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"
91
- cache-control:
92
- - private
93
- x-served-by:
94
- - www192.flickr.mud.yahoo.com
95
- vary:
96
- - Accept-Encoding
97
- content-length:
98
- - "846"
99
- connection:
100
- - close
101
- content-type:
102
- - application/json
103
- body:
104
- encoding: ASCII-8BIT
105
- 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\":\"1337292002\"}, \"views\":\"4\", \"editability\":{\"cancomment\":0, \"canaddmeta\":0}, \"publiceditability\":{\"cancomment\":1, \"canaddmeta\":0}, \"usage\":{\"candownload\":1, \"canblog\":0, \"canprint\":0, \"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}, {\"id\":\"67099213-6946979188-257458\", \"author\":\"67131352@N04\", \"raw\":\"janko\", \"_content\":\"janko\", \"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\"}"
106
- http_version:
107
- recorded_at: Thu, 17 May 2012 22:00:03 GMT
108
- - request:
109
- method: post
110
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.removeTag&tag_id=67099213-6946979188-257458
111
- body:
112
- encoding: US-ASCII
113
- string: ""
114
- headers:
115
- Authorization:
116
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="8b9ca9e5b2ea7c1d955620e66dfe07d2", oauth_signature="7SRg1RVLv%2FMQCDlmw44T%2B5W5NoQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292003", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
117
- response:
118
- status:
119
- code: 200
120
- message:
121
- headers:
122
- date:
123
- - Thu, 17 May 2012 22:00:03 GMT
124
- p3p:
125
- - 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"
126
- cache-control:
127
- - private
128
- x-served-by:
129
- - www55.flickr.mud.yahoo.com
130
- vary:
131
- - Accept-Encoding
132
- content-length:
133
- - "13"
134
- connection:
135
- - close
136
- content-type:
137
- - application/json
138
- body:
139
- encoding: US-ASCII
140
- string: "{\"stat\":\"ok\"}"
141
- http_version:
142
- recorded_at: Thu, 17 May 2012 22:00:03 GMT
143
- - request:
144
- method: get
145
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=6946979188
146
- body:
147
- encoding: US-ASCII
148
- string: ""
149
- headers:
150
- Authorization:
151
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="7dc1d030f29291ea440bf1d823b75ec1", oauth_signature="Pv6MThY0yEn8ku3MPiXVDdVfkvA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292003", oauth_token="", oauth_version="1.0"
152
- response:
153
- status:
154
- code: 200
155
- message:
156
- headers:
157
- date:
158
- - Thu, 17 May 2012 22:00:04 GMT
159
- p3p:
160
- - 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"
161
- cache-control:
162
- - private
163
- x-served-by:
164
- - www21.flickr.mud.yahoo.com
165
- vary:
166
- - Accept-Encoding
167
- content-length:
168
- - "822"
169
- connection:
170
- - close
171
- content-type:
172
- - application/json
173
- body:
174
- encoding: ASCII-8BIT
175
- 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\":\"1337292003\"}, \"views\":\"4\", \"editability\":{\"cancomment\":0, \"canaddmeta\":0}, \"publiceditability\":{\"cancomment\":1, \"canaddmeta\":0}, \"usage\":{\"candownload\":1, \"canblog\":0, \"canprint\":0, \"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\"}"
176
- http_version:
177
- recorded_at: Thu, 17 May 2012 22:00:04 GMT
178
- recorded_with: VCR 2.1.1