flickrie 0.7.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/.gitignore +1 -0
  2. data/.travis.yml +4 -0
  3. data/CHANGELOG.md +70 -30
  4. data/Gemfile +5 -4
  5. data/README.md +55 -53
  6. data/Rakefile +6 -9
  7. data/lib/flickrie/api_methods.rb +16 -3
  8. data/lib/flickrie/client.rb +11 -40
  9. data/lib/flickrie/instance.rb +0 -1
  10. data/lib/flickrie/location.rb +21 -18
  11. data/lib/flickrie/media.rb +5 -21
  12. data/lib/flickrie/media_count.rb +4 -0
  13. data/lib/flickrie/middleware.rb +71 -0
  14. data/lib/flickrie/oauth.rb +58 -49
  15. data/lib/flickrie/photo.rb +0 -2
  16. data/lib/flickrie/set.rb +0 -5
  17. data/lib/flickrie/upload_client.rb +45 -56
  18. data/lib/flickrie/user.rb +10 -10
  19. data/lib/flickrie/version.rb +1 -1
  20. data/lib/flickrie/video.rb +0 -2
  21. data/spec/files/photo.bla +0 -0
  22. data/spec/{api_methods_spec.rb → flickrie/api_methods_spec.rb} +14 -14
  23. data/spec/{error_spec.rb → flickrie/error_spec.rb} +1 -1
  24. data/spec/{instance_spec.rb → flickrie/instance_spec.rb} +2 -5
  25. data/spec/{license_spec.rb → flickrie/license_spec.rb} +1 -1
  26. data/spec/{location_spec.rb → flickrie/location_spec.rb} +12 -1
  27. data/spec/{media_count_spec.rb → flickrie/media_count_spec.rb} +7 -3
  28. data/spec/{media_spec.rb → flickrie/media_spec.rb} +25 -26
  29. data/spec/flickrie/oauth_spec.rb +25 -0
  30. data/spec/{photo_spec.rb → flickrie/photo_spec.rb} +1 -1
  31. data/spec/{set_spec.rb → flickrie/set_spec.rb} +2 -2
  32. data/spec/flickrie/upload_client_spec.rb +40 -0
  33. data/spec/flickrie/user_spec.rb +58 -0
  34. data/spec/{video_spec.rb → flickrie/video_spec.rb} +1 -1
  35. data/spec/spec_helper.rb +16 -13
  36. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/api_methods/asynchronous_upload.yml +60 -95
  37. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/api_methods/replace.yml +16 -16
  38. data/spec/{fixtures/vcr_cassettes/api_methods/tags.yml → vcr_cassettes/api_methods/tag_manipulation.yml} +24 -24
  39. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/api_methods/upload_and_delete.yml +21 -21
  40. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/error/a_request_was_made_and_failed.yml +9 -9
  41. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/instance/calling_api_methods.yml +32 -32
  42. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/license/get.yml +4 -4
  43. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/from_contacts.yml +8 -8
  44. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/from_set.yml +5 -5
  45. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/from_user.yml +5 -5
  46. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/get_context.yml +4 -4
  47. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/get_exif.yml +8 -8
  48. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/get_info.yml +18 -18
  49. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/public_from_user.yml +5 -5
  50. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media/search.yml +5 -5
  51. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/media_count/get.yml +8 -8
  52. data/spec/vcr_cassettes/o_auth/incorrect_credentials.yml +249 -0
  53. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/photo/get_info.yml +6 -6
  54. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/photo/get_sizes.yml +12 -12
  55. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/photo/search.yml +5 -5
  56. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/set/from_user.yml +16 -16
  57. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/set/get_info.yml +32 -32
  58. data/spec/vcr_cassettes/upload_client/content_type.yml +117 -0
  59. data/spec/vcr_cassettes/upload_client/invalid_credentials.yml +208 -0
  60. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/user/find_by_username_or_email.yml +8 -8
  61. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/user/get_info.yml +8 -8
  62. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/video/get_info.yml +4 -4
  63. data/spec/{fixtures/vcr_cassettes → vcr_cassettes}/video/get_sizes.yml +8 -8
  64. metadata +105 -99
  65. data/spec/fixtures/vcr_cassettes/api_methods/tag_manipulation.yml +0 -178
  66. data/spec/fixtures/vcr_cassettes/error/code.yml +0 -84
  67. data/spec/fixtures/vcr_cassettes/error/was_raised.yml +0 -84
  68. data/spec/fixtures/vcr_cassettes/o_auth/incorrect_credentials.yml +0 -167
  69. data/spec/oauth_spec.rb +0 -22
  70. data/spec/user_spec.rb +0 -53
@@ -5,10 +5,10 @@ http_interactions:
5
5
  uri: http://api.flickr.com/services/upload
6
6
  body:
7
7
  encoding: ASCII-8BIT
8
- string: "#<Faraday::CompositeReadIO:0x007ffa68f74aa8>"
8
+ string: "#<Faraday::CompositeReadIO:0x007fb6b4d663d0>"
9
9
  headers:
10
10
  Authorization:
11
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="e913e85e8945bef4d1e89a0698b9e8db", oauth_signature="5BifiL5SvymnZDAHGBRUNopH9kg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013878", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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
12
  Content-Type:
13
13
  - multipart/form-data;boundary=-----------RubyMultipartPost
14
14
  Content-Length:
@@ -19,7 +19,7 @@ http_interactions:
19
19
  message:
20
20
  headers:
21
21
  date:
22
- - Mon, 14 May 2012 16:44:38 GMT
22
+ - Thu, 17 May 2012 21:59:50 GMT
23
23
  p3p:
24
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
25
  connection:
@@ -29,7 +29,7 @@ http_interactions:
29
29
  cache-control:
30
30
  - private
31
31
  x-served-by:
32
- - www151.flickr.mud.yahoo.com
32
+ - www108.flickr.mud.yahoo.com
33
33
  vary:
34
34
  - Accept-Encoding
35
35
  content-type:
@@ -39,33 +39,33 @@ http_interactions:
39
39
  string: |
40
40
  <?xml version="1.0" encoding="utf-8" ?>
41
41
  <rsp stat="ok">
42
- <ticketid>67099213-72157629726421886</ticketid>
42
+ <ticketid>67099213-72157629776289980</ticketid>
43
43
  </rsp>
44
44
 
45
45
  http_version:
46
- recorded_at: Mon, 14 May 2012 16:44:40 GMT
46
+ recorded_at: Thu, 17 May 2012 21:59:51 GMT
47
47
  - request:
48
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-72157629726421886
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
50
  body:
51
51
  encoding: US-ASCII
52
52
  string: ""
53
53
  headers:
54
54
  Authorization:
55
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="4fa32f0ba8083129086efe31669e927e", oauth_signature="S03ONiOpiADpxFvsrYHN4MeazLI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013880", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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
56
  response:
57
57
  status:
58
58
  code: 200
59
59
  message:
60
60
  headers:
61
61
  date:
62
- - Mon, 14 May 2012 16:44:41 GMT
62
+ - Thu, 17 May 2012 21:59:51 GMT
63
63
  p3p:
64
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
65
  cache-control:
66
66
  - private
67
67
  x-served-by:
68
- - www193.flickr.mud.yahoo.com
68
+ - www115.flickr.mud.yahoo.com
69
69
  vary:
70
70
  - Accept-Encoding
71
71
  content-length:
@@ -76,66 +76,31 @@ http_interactions:
76
76
  - application/json
77
77
  body:
78
78
  encoding: ASCII-8BIT
79
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
79
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
80
80
  http_version:
81
- recorded_at: Mon, 14 May 2012 16:44:41 GMT
81
+ recorded_at: Thu, 17 May 2012 21:59:51 GMT
82
82
  - request:
83
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-72157629726421886
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
85
  body:
86
86
  encoding: US-ASCII
87
87
  string: ""
88
88
  headers:
89
89
  Authorization:
90
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="5c5bd1b251b3fcacf12d5c73aee1a9e6", oauth_signature="7OKREbS7tXAsrwnGsn4AzNohTJ0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013881", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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
91
  response:
92
92
  status:
93
93
  code: 200
94
94
  message:
95
95
  headers:
96
96
  date:
97
- - Mon, 14 May 2012 16:44:41 GMT
97
+ - Thu, 17 May 2012 21:59:51 GMT
98
98
  p3p:
99
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
100
  cache-control:
101
101
  - private
102
102
  x-served-by:
103
- - www148.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-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
115
- http_version:
116
- recorded_at: Mon, 14 May 2012 16:44:41 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-72157629726421886
120
- body:
121
- encoding: US-ASCII
122
- string: ""
123
- headers:
124
- Authorization:
125
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="79ca2147f816120061b84f9df2d9f4aa", oauth_signature="sCxfjL0PYttMDvUQmfOoNN3xWTo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013881", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
126
- response:
127
- status:
128
- code: 200
129
- message:
130
- headers:
131
- date:
132
- - Mon, 14 May 2012 16:44:41 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
- - www143.flickr.mud.yahoo.com
103
+ - www204.flickr.mud.yahoo.com
139
104
  vary:
140
105
  - Accept-Encoding
141
106
  content-length:
@@ -146,31 +111,31 @@ http_interactions:
146
111
  - application/json
147
112
  body:
148
113
  encoding: ASCII-8BIT
149
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
114
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
150
115
  http_version:
151
- recorded_at: Mon, 14 May 2012 16:44:42 GMT
116
+ recorded_at: Thu, 17 May 2012 21:59:51 GMT
152
117
  - request:
153
118
  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-72157629726421886
119
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
155
120
  body:
156
121
  encoding: US-ASCII
157
122
  string: ""
158
123
  headers:
159
124
  Authorization:
160
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="0b16ba95ca8e53db56558bd6d0d0007e", oauth_signature="wFFLzHJo8dvSKZoddAZUH6enwQo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013882", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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"
161
126
  response:
162
127
  status:
163
128
  code: 200
164
129
  message:
165
130
  headers:
166
131
  date:
167
- - Mon, 14 May 2012 16:44:42 GMT
132
+ - Thu, 17 May 2012 21:59:52 GMT
168
133
  p3p:
169
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"
170
135
  cache-control:
171
136
  - private
172
137
  x-served-by:
173
- - www142.flickr.mud.yahoo.com
138
+ - www111.flickr.mud.yahoo.com
174
139
  vary:
175
140
  - Accept-Encoding
176
141
  content-length:
@@ -181,31 +146,31 @@ http_interactions:
181
146
  - application/json
182
147
  body:
183
148
  encoding: ASCII-8BIT
184
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
149
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
185
150
  http_version:
186
- recorded_at: Mon, 14 May 2012 16:44:42 GMT
151
+ recorded_at: Thu, 17 May 2012 21:59:52 GMT
187
152
  - request:
188
153
  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-72157629726421886
154
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
190
155
  body:
191
156
  encoding: US-ASCII
192
157
  string: ""
193
158
  headers:
194
159
  Authorization:
195
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="f81c412709f214d1d226726eea1b7052", oauth_signature="JGCzy68IF%2BJR7yXdBOkGk4TYWko%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013882", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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"
196
161
  response:
197
162
  status:
198
163
  code: 200
199
164
  message:
200
165
  headers:
201
166
  date:
202
- - Mon, 14 May 2012 16:44:42 GMT
167
+ - Thu, 17 May 2012 21:59:52 GMT
203
168
  p3p:
204
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"
205
170
  cache-control:
206
171
  - private
207
172
  x-served-by:
208
- - www180.flickr.mud.yahoo.com
173
+ - www204.flickr.mud.yahoo.com
209
174
  vary:
210
175
  - Accept-Encoding
211
176
  content-length:
@@ -216,31 +181,31 @@ http_interactions:
216
181
  - application/json
217
182
  body:
218
183
  encoding: ASCII-8BIT
219
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
184
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
220
185
  http_version:
221
- recorded_at: Mon, 14 May 2012 16:44:42 GMT
186
+ recorded_at: Thu, 17 May 2012 21:59:52 GMT
222
187
  - request:
223
188
  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-72157629726421886
189
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
225
190
  body:
226
191
  encoding: US-ASCII
227
192
  string: ""
228
193
  headers:
229
194
  Authorization:
230
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="32f24bf27a72c0c5b2fecfa507499af6", oauth_signature="24Bmrg2HYPPHkoJhGIHrE7HASt0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013882", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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"
231
196
  response:
232
197
  status:
233
198
  code: 200
234
199
  message:
235
200
  headers:
236
201
  date:
237
- - Mon, 14 May 2012 16:44:43 GMT
202
+ - Thu, 17 May 2012 21:59:53 GMT
238
203
  p3p:
239
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"
240
205
  cache-control:
241
206
  - private
242
207
  x-served-by:
243
- - www81.flickr.mud.yahoo.com
208
+ - www125.flickr.mud.yahoo.com
244
209
  vary:
245
210
  - Accept-Encoding
246
211
  content-length:
@@ -251,31 +216,31 @@ http_interactions:
251
216
  - application/json
252
217
  body:
253
218
  encoding: ASCII-8BIT
254
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
219
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
255
220
  http_version:
256
- recorded_at: Mon, 14 May 2012 16:44:43 GMT
221
+ recorded_at: Thu, 17 May 2012 21:59:53 GMT
257
222
  - request:
258
223
  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-72157629726421886
224
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
260
225
  body:
261
226
  encoding: US-ASCII
262
227
  string: ""
263
228
  headers:
264
229
  Authorization:
265
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="6c95c79a5728126d2a7150f4b4859e40", oauth_signature="V17oHATuc93vazUfV6bDesHoFVM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013883", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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"
266
231
  response:
267
232
  status:
268
233
  code: 200
269
234
  message:
270
235
  headers:
271
236
  date:
272
- - Mon, 14 May 2012 16:44:43 GMT
237
+ - Thu, 17 May 2012 21:59:53 GMT
273
238
  p3p:
274
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"
275
240
  cache-control:
276
241
  - private
277
242
  x-served-by:
278
- - www204.flickr.mud.yahoo.com
243
+ - www9.flickr.mud.yahoo.com
279
244
  vary:
280
245
  - Accept-Encoding
281
246
  content-length:
@@ -286,66 +251,66 @@ http_interactions:
286
251
  - application/json
287
252
  body:
288
253
  encoding: ASCII-8BIT
289
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
254
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":0}]}, \"stat\":\"ok\"}"
290
255
  http_version:
291
- recorded_at: Mon, 14 May 2012 16:44:43 GMT
256
+ recorded_at: Thu, 17 May 2012 21:59:53 GMT
292
257
  - request:
293
258
  method: get
294
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629726421886
259
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.upload.checkTickets&tickets=67099213-72157629776289980
295
260
  body:
296
261
  encoding: US-ASCII
297
262
  string: ""
298
263
  headers:
299
264
  Authorization:
300
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="914309fb4f591148e34780f736e68145", oauth_signature="ewMz9WhVW16dVfiBscS%2BP8dggBE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013883", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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"
301
266
  response:
302
267
  status:
303
268
  code: 200
304
269
  message:
305
270
  headers:
306
271
  date:
307
- - Mon, 14 May 2012 16:44:44 GMT
272
+ - Thu, 17 May 2012 21:59:53 GMT
308
273
  p3p:
309
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"
310
275
  cache-control:
311
276
  - private
312
277
  x-served-by:
313
- - www120.flickr.mud.yahoo.com
278
+ - www162.flickr.mud.yahoo.com
314
279
  vary:
315
280
  - Accept-Encoding
316
281
  content-length:
317
- - "133"
282
+ - "132"
318
283
  connection:
319
284
  - close
320
285
  content-type:
321
286
  - application/json
322
287
  body:
323
288
  encoding: ASCII-8BIT
324
- string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":1, \"photoid\":\"7197098604\", \"imported\":\"1337013880\"}]}, \"stat\":\"ok\"}"
289
+ string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629776289980\", \"complete\":1, \"photoid\":\"7218054900\", \"imported\":\"1337291991\"}]}, \"stat\":\"ok\"}"
325
290
  http_version:
326
- recorded_at: Mon, 14 May 2012 16:44:44 GMT
291
+ recorded_at: Thu, 17 May 2012 21:59:53 GMT
327
292
  - request:
328
293
  method: get
329
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=7197098604
294
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=7218054900
330
295
  body:
331
296
  encoding: US-ASCII
332
297
  string: ""
333
298
  headers:
334
299
  Authorization:
335
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="c0fbb93ae4ae7399aaeda568fdd85532", oauth_signature="gdICgV1%2BjyJOKActp5kYmtm%2FkNE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013884", oauth_token="", oauth_version="1.0"
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"
336
301
  response:
337
302
  status:
338
303
  code: 200
339
304
  message:
340
305
  headers:
341
306
  date:
342
- - Mon, 14 May 2012 16:44:44 GMT
307
+ - Thu, 17 May 2012 21:59:54 GMT
343
308
  p3p:
344
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"
345
310
  cache-control:
346
311
  - private
347
312
  x-served-by:
348
- - www29.flickr.mud.yahoo.com
313
+ - www175.flickr.mud.yahoo.com
349
314
  vary:
350
315
  - Accept-Encoding
351
316
  content-length:
@@ -356,31 +321,31 @@ http_interactions:
356
321
  - application/json
357
322
  body:
358
323
  encoding: ASCII-8BIT
359
- string: "{\"photo\":{\"id\":\"7197098604\", \"secret\":\"2d076d9d0e\", \"server\":\"7215\", \"farm\":8, \"dateuploaded\":\"1337013880\", \"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\":\"1337013880\", \"taken\":\"2012-05-14 18:44:40\", \"takengranularity\":\"0\", \"lastupdate\":\"1337013883\"}, \"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\\/7197098604\\/\"}]}, \"media\":\"photo\"}, \"stat\":\"ok\"}"
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\"}"
360
325
  http_version:
361
- recorded_at: Mon, 14 May 2012 16:44:44 GMT
326
+ recorded_at: Thu, 17 May 2012 21:59:54 GMT
362
327
  - request:
363
328
  method: post
364
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7197098604
329
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7218054900
365
330
  body:
366
331
  encoding: US-ASCII
367
332
  string: ""
368
333
  headers:
369
334
  Authorization:
370
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="d7f697711bc6e65bc6c13ae17588876f", oauth_signature="bZcrMJQDSJQqLgfjDo%2BfyItugpc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013884", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
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"
371
336
  response:
372
337
  status:
373
338
  code: 200
374
339
  message:
375
340
  headers:
376
341
  date:
377
- - Mon, 14 May 2012 16:44:45 GMT
342
+ - Thu, 17 May 2012 21:59:54 GMT
378
343
  p3p:
379
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"
380
345
  cache-control:
381
346
  - private
382
347
  x-served-by:
383
- - www21.flickr.mud.yahoo.com
348
+ - www121.flickr.mud.yahoo.com
384
349
  vary:
385
350
  - Accept-Encoding
386
351
  content-length:
@@ -393,5 +358,5 @@ http_interactions:
393
358
  encoding: US-ASCII
394
359
  string: "{\"stat\":\"ok\"}"
395
360
  http_version:
396
- recorded_at: Mon, 14 May 2012 16:44:45 GMT
361
+ recorded_at: Thu, 17 May 2012 21:59:54 GMT
397
362
  recorded_with: VCR 2.1.1
@@ -5,10 +5,10 @@ http_interactions:
5
5
  uri: http://api.flickr.com/services/upload
6
6
  body:
7
7
  encoding: ASCII-8BIT
8
- string: "#<Faraday::CompositeReadIO:0x007ffa68dd3a78>"
8
+ string: "#<Faraday::CompositeReadIO:0x007fb6b4fd3488>"
9
9
  headers:
10
10
  Authorization:
11
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="92c8e2c71c8a40ee24a65bf3394005a4", oauth_signature="DUubsLRubA3Zy7a%2F8lMIZATmijI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013885", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="364e5d59e878d70629f4ed7b518b2a60", oauth_signature="UtvUrpuOxvyXhSO0GmWCovzaMw0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291994", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
12
  Content-Type:
13
13
  - multipart/form-data;boundary=-----------RubyMultipartPost
14
14
  Content-Length:
@@ -19,7 +19,7 @@ http_interactions:
19
19
  message:
20
20
  headers:
21
21
  date:
22
- - Mon, 14 May 2012 16:44:45 GMT
22
+ - Thu, 17 May 2012 21:59:55 GMT
23
23
  p3p:
24
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
25
  connection:
@@ -29,7 +29,7 @@ http_interactions:
29
29
  cache-control:
30
30
  - private
31
31
  x-served-by:
32
- - www27.flickr.mud.yahoo.com
32
+ - www31.flickr.mud.yahoo.com
33
33
  vary:
34
34
  - Accept-Encoding
35
35
  content-type:
@@ -39,20 +39,20 @@ http_interactions:
39
39
  string: |
40
40
  <?xml version="1.0" encoding="utf-8" ?>
41
41
  <rsp stat="ok">
42
- <photoid>7197099228</photoid>
42
+ <photoid>7218055288</photoid>
43
43
  </rsp>
44
44
 
45
45
  http_version:
46
- recorded_at: Mon, 14 May 2012 16:44:49 GMT
46
+ recorded_at: Thu, 17 May 2012 21:59:59 GMT
47
47
  - request:
48
48
  method: post
49
49
  uri: http://api.flickr.com/services/replace
50
50
  body:
51
51
  encoding: ASCII-8BIT
52
- string: "#<Faraday::CompositeReadIO:0x007ffa68e0a050>"
52
+ string: "#<Faraday::CompositeReadIO:0x007fb6b4fd1b88>"
53
53
  headers:
54
54
  Authorization:
55
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="5167cbe8bd5e1145a29a268ac46d55d3", oauth_signature="kjBSwiuXtbIRilZV2APQH5Mc%2FI4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013889", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
55
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="8be3111c06b0302b91df5efefced7acd", oauth_signature="%2F7ufiI5sBnVHI5vnIuKo6ZjDhgU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337291999", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
56
56
  Content-Type:
57
57
  - multipart/form-data;boundary=-----------RubyMultipartPost
58
58
  Content-Length:
@@ -63,7 +63,7 @@ http_interactions:
63
63
  message:
64
64
  headers:
65
65
  date:
66
- - Mon, 14 May 2012 16:44:49 GMT
66
+ - Thu, 17 May 2012 22:00:00 GMT
67
67
  p3p:
68
68
  - 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"
69
69
  connection:
@@ -73,7 +73,7 @@ http_interactions:
73
73
  cache-control:
74
74
  - private
75
75
  x-served-by:
76
- - www47.flickr.mud.yahoo.com
76
+ - www191.flickr.mud.yahoo.com
77
77
  vary:
78
78
  - Accept-Encoding
79
79
  content-type:
@@ -87,29 +87,29 @@ http_interactions:
87
87
  </rsp>
88
88
 
89
89
  http_version:
90
- recorded_at: Mon, 14 May 2012 16:44:50 GMT
90
+ recorded_at: Thu, 17 May 2012 22:00:01 GMT
91
91
  - request:
92
92
  method: post
93
- uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7197099228
93
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7218055288
94
94
  body:
95
95
  encoding: US-ASCII
96
96
  string: ""
97
97
  headers:
98
98
  Authorization:
99
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="28faae251df431a2862da8c5cf7cd091", oauth_signature="qE9MkDDdoNIuJGZxbCPCsSCShZA%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013890", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
99
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="70afa76018e45cbe9fcb3eadf8952722", oauth_signature="zOZYNEMmdvBOk260CVsWx8E%2BLhQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292001", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
100
100
  response:
101
101
  status:
102
102
  code: 200
103
103
  message:
104
104
  headers:
105
105
  date:
106
- - Mon, 14 May 2012 16:44:51 GMT
106
+ - Thu, 17 May 2012 22:00:01 GMT
107
107
  p3p:
108
108
  - 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"
109
109
  cache-control:
110
110
  - private
111
111
  x-served-by:
112
- - www21.flickr.mud.yahoo.com
112
+ - www110.flickr.mud.yahoo.com
113
113
  vary:
114
114
  - Accept-Encoding
115
115
  content-length:
@@ -122,5 +122,5 @@ http_interactions:
122
122
  encoding: US-ASCII
123
123
  string: "{\"stat\":\"ok\"}"
124
124
  http_version:
125
- recorded_at: Mon, 14 May 2012 16:44:51 GMT
125
+ recorded_at: Thu, 17 May 2012 22:00:01 GMT
126
126
  recorded_with: VCR 2.1.1