flickrie 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/CHANGELOG.md +9 -1
- data/Gemfile +7 -6
- data/README.md +18 -1
- data/Rakefile +47 -9
- data/flickrie.gemspec +19 -15
- data/lib/flickrie/api_methods.rb +23 -0
- data/lib/flickrie/client.rb +16 -11
- data/lib/flickrie/instance.rb +7 -0
- data/lib/flickrie/media/exif.rb +12 -3
- data/lib/flickrie/media/note.rb +5 -0
- data/lib/flickrie/media/tag.rb +4 -3
- data/lib/flickrie/media/visibility.rb +4 -3
- data/lib/flickrie/media.rb +19 -0
- data/lib/flickrie/oauth.rb +5 -7
- data/lib/flickrie/photo.rb +6 -2
- data/lib/flickrie/set.rb +10 -0
- data/lib/flickrie/upload_client.rb +10 -12
- data/lib/flickrie/user.rb +4 -0
- data/lib/flickrie/version.rb +1 -1
- data/lib/flickrie/video.rb +4 -0
- data/spec/api_methods_spec.rb +2 -0
- data/spec/error_spec.rb +2 -0
- data/spec/fixtures/vcr_cassettes/api_methods/asynchronous_upload.yml +397 -0
- data/spec/fixtures/vcr_cassettes/api_methods/replace.yml +126 -0
- data/spec/fixtures/vcr_cassettes/api_methods/tags.yml +178 -0
- data/spec/fixtures/vcr_cassettes/api_methods/upload_and_delete.yml +152 -0
- data/spec/fixtures/vcr_cassettes/error/code.yml +84 -0
- data/spec/fixtures/vcr_cassettes/error/was_raised.yml +84 -0
- data/spec/fixtures/vcr_cassettes/instance/calling_api_methods.yml +231 -0
- data/spec/fixtures/vcr_cassettes/license/get.yml +38 -0
- data/spec/fixtures/vcr_cassettes/media/from_contacts.yml +73 -0
- data/spec/fixtures/vcr_cassettes/media/from_set.yml +38 -0
- data/spec/fixtures/vcr_cassettes/media/get_context.yml +38 -0
- data/spec/fixtures/vcr_cassettes/media/get_exif.yml +73 -0
- data/spec/fixtures/vcr_cassettes/media/get_info.yml +108 -0
- data/spec/fixtures/vcr_cassettes/media/public_from_user.yml +38 -0
- data/spec/fixtures/vcr_cassettes/media/search.yml +38 -0
- data/spec/fixtures/vcr_cassettes/media_count/get.yml +73 -0
- data/spec/fixtures/vcr_cassettes/oauth/incorrect_credentials.yml +167 -0
- data/spec/fixtures/vcr_cassettes/photo/get_info.yml +38 -0
- data/spec/fixtures/vcr_cassettes/photo/get_sizes.yml +73 -0
- data/spec/fixtures/vcr_cassettes/photo/search.yml +38 -0
- data/spec/fixtures/vcr_cassettes/set/from_user.yml +143 -0
- data/spec/fixtures/vcr_cassettes/set/get_info.yml +283 -0
- data/spec/fixtures/vcr_cassettes/user/find_by_username_or_email.yml +73 -0
- data/spec/fixtures/vcr_cassettes/user/get_info.yml +73 -0
- data/spec/fixtures/vcr_cassettes/video/get_info.yml +38 -0
- data/spec/fixtures/vcr_cassettes/video/get_sizes.yml +73 -0
- data/spec/instance_spec.rb +2 -0
- data/spec/license_spec.rb +2 -0
- data/spec/location_spec.rb +2 -0
- data/spec/media_count_spec.rb +2 -0
- data/spec/media_spec.rb +1 -0
- data/spec/oauth_spec.rb +2 -0
- data/spec/photo_spec.rb +2 -0
- data/spec/set_spec.rb +1 -0
- data/spec/spec_helper.rb +20 -3
- data/spec/user_spec.rb +1 -0
- data/spec/video_spec.rb +2 -0
- metadata +92 -21
- data/credentials.rb +0 -4
data/spec/error_spec.rb
CHANGED
@@ -0,0 +1,397 @@
|
|
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:0x007ffa68f74aa8>"
|
9
|
+
headers:
|
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"
|
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
|
+
- Mon, 14 May 2012 16:44:38 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
|
+
- www151.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-72157629726421886</ticketid>
|
43
|
+
</rsp>
|
44
|
+
|
45
|
+
http_version:
|
46
|
+
recorded_at: Mon, 14 May 2012 16:44:40 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-72157629726421886
|
50
|
+
body:
|
51
|
+
encoding: US-ASCII
|
52
|
+
string: ""
|
53
|
+
headers:
|
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"
|
56
|
+
response:
|
57
|
+
status:
|
58
|
+
code: 200
|
59
|
+
message:
|
60
|
+
headers:
|
61
|
+
date:
|
62
|
+
- Mon, 14 May 2012 16:44:41 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
|
+
- www193.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-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
|
80
|
+
http_version:
|
81
|
+
recorded_at: Mon, 14 May 2012 16:44:41 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-72157629726421886
|
85
|
+
body:
|
86
|
+
encoding: US-ASCII
|
87
|
+
string: ""
|
88
|
+
headers:
|
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"
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 200
|
94
|
+
message:
|
95
|
+
headers:
|
96
|
+
date:
|
97
|
+
- Mon, 14 May 2012 16:44:41 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
|
+
- 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
|
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-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
|
150
|
+
http_version:
|
151
|
+
recorded_at: Mon, 14 May 2012 16:44:42 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-72157629726421886
|
155
|
+
body:
|
156
|
+
encoding: US-ASCII
|
157
|
+
string: ""
|
158
|
+
headers:
|
159
|
+
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"
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 200
|
164
|
+
message:
|
165
|
+
headers:
|
166
|
+
date:
|
167
|
+
- Mon, 14 May 2012 16:44:42 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
|
+
- www142.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-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
|
185
|
+
http_version:
|
186
|
+
recorded_at: Mon, 14 May 2012 16:44:42 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-72157629726421886
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ""
|
193
|
+
headers:
|
194
|
+
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"
|
196
|
+
response:
|
197
|
+
status:
|
198
|
+
code: 200
|
199
|
+
message:
|
200
|
+
headers:
|
201
|
+
date:
|
202
|
+
- Mon, 14 May 2012 16:44:42 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
|
+
- www180.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-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
|
220
|
+
http_version:
|
221
|
+
recorded_at: Mon, 14 May 2012 16:44:42 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-72157629726421886
|
225
|
+
body:
|
226
|
+
encoding: US-ASCII
|
227
|
+
string: ""
|
228
|
+
headers:
|
229
|
+
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"
|
231
|
+
response:
|
232
|
+
status:
|
233
|
+
code: 200
|
234
|
+
message:
|
235
|
+
headers:
|
236
|
+
date:
|
237
|
+
- Mon, 14 May 2012 16:44:43 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
|
+
- www81.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-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
|
255
|
+
http_version:
|
256
|
+
recorded_at: Mon, 14 May 2012 16:44:43 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-72157629726421886
|
260
|
+
body:
|
261
|
+
encoding: US-ASCII
|
262
|
+
string: ""
|
263
|
+
headers:
|
264
|
+
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"
|
266
|
+
response:
|
267
|
+
status:
|
268
|
+
code: 200
|
269
|
+
message:
|
270
|
+
headers:
|
271
|
+
date:
|
272
|
+
- Mon, 14 May 2012 16:44:43 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
|
+
- www204.flickr.mud.yahoo.com
|
279
|
+
vary:
|
280
|
+
- Accept-Encoding
|
281
|
+
content-length:
|
282
|
+
- "102"
|
283
|
+
connection:
|
284
|
+
- close
|
285
|
+
content-type:
|
286
|
+
- application/json
|
287
|
+
body:
|
288
|
+
encoding: ASCII-8BIT
|
289
|
+
string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":0}]}, \"stat\":\"ok\"}"
|
290
|
+
http_version:
|
291
|
+
recorded_at: Mon, 14 May 2012 16:44:43 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.upload.checkTickets&tickets=67099213-72157629726421886
|
295
|
+
body:
|
296
|
+
encoding: US-ASCII
|
297
|
+
string: ""
|
298
|
+
headers:
|
299
|
+
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"
|
301
|
+
response:
|
302
|
+
status:
|
303
|
+
code: 200
|
304
|
+
message:
|
305
|
+
headers:
|
306
|
+
date:
|
307
|
+
- Mon, 14 May 2012 16:44:44 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
|
+
- www120.flickr.mud.yahoo.com
|
314
|
+
vary:
|
315
|
+
- Accept-Encoding
|
316
|
+
content-length:
|
317
|
+
- "133"
|
318
|
+
connection:
|
319
|
+
- close
|
320
|
+
content-type:
|
321
|
+
- application/json
|
322
|
+
body:
|
323
|
+
encoding: ASCII-8BIT
|
324
|
+
string: "{\"uploader\":{\"ticket\":[{\"id\":\"67099213-72157629726421886\", \"complete\":1, \"photoid\":\"7197098604\", \"imported\":\"1337013880\"}]}, \"stat\":\"ok\"}"
|
325
|
+
http_version:
|
326
|
+
recorded_at: Mon, 14 May 2012 16:44:44 GMT
|
327
|
+
- request:
|
328
|
+
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
|
330
|
+
body:
|
331
|
+
encoding: US-ASCII
|
332
|
+
string: ""
|
333
|
+
headers:
|
334
|
+
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"
|
336
|
+
response:
|
337
|
+
status:
|
338
|
+
code: 200
|
339
|
+
message:
|
340
|
+
headers:
|
341
|
+
date:
|
342
|
+
- Mon, 14 May 2012 16:44:44 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
|
+
- www29.flickr.mud.yahoo.com
|
349
|
+
vary:
|
350
|
+
- Accept-Encoding
|
351
|
+
content-length:
|
352
|
+
- "502"
|
353
|
+
connection:
|
354
|
+
- close
|
355
|
+
content-type:
|
356
|
+
- application/json
|
357
|
+
body:
|
358
|
+
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\"}"
|
360
|
+
http_version:
|
361
|
+
recorded_at: Mon, 14 May 2012 16:44:44 GMT
|
362
|
+
- request:
|
363
|
+
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
|
365
|
+
body:
|
366
|
+
encoding: US-ASCII
|
367
|
+
string: ""
|
368
|
+
headers:
|
369
|
+
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"
|
371
|
+
response:
|
372
|
+
status:
|
373
|
+
code: 200
|
374
|
+
message:
|
375
|
+
headers:
|
376
|
+
date:
|
377
|
+
- Mon, 14 May 2012 16:44:45 GMT
|
378
|
+
p3p:
|
379
|
+
- 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
|
+
cache-control:
|
381
|
+
- private
|
382
|
+
x-served-by:
|
383
|
+
- www21.flickr.mud.yahoo.com
|
384
|
+
vary:
|
385
|
+
- Accept-Encoding
|
386
|
+
content-length:
|
387
|
+
- "13"
|
388
|
+
connection:
|
389
|
+
- close
|
390
|
+
content-type:
|
391
|
+
- application/json
|
392
|
+
body:
|
393
|
+
encoding: US-ASCII
|
394
|
+
string: "{\"stat\":\"ok\"}"
|
395
|
+
http_version:
|
396
|
+
recorded_at: Mon, 14 May 2012 16:44:45 GMT
|
397
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,126 @@
|
|
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:0x007ffa68dd3a78>"
|
9
|
+
headers:
|
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"
|
12
|
+
Content-Type:
|
13
|
+
- multipart/form-data;boundary=-----------RubyMultipartPost
|
14
|
+
Content-Length:
|
15
|
+
- "47086"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
date:
|
22
|
+
- Mon, 14 May 2012 16:44:45 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
|
+
- "93"
|
29
|
+
cache-control:
|
30
|
+
- private
|
31
|
+
x-served-by:
|
32
|
+
- www27.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
|
+
<photoid>7197099228</photoid>
|
43
|
+
</rsp>
|
44
|
+
|
45
|
+
http_version:
|
46
|
+
recorded_at: Mon, 14 May 2012 16:44:49 GMT
|
47
|
+
- request:
|
48
|
+
method: post
|
49
|
+
uri: http://api.flickr.com/services/replace
|
50
|
+
body:
|
51
|
+
encoding: ASCII-8BIT
|
52
|
+
string: "#<Faraday::CompositeReadIO:0x007ffa68e0a050>"
|
53
|
+
headers:
|
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"
|
56
|
+
Content-Type:
|
57
|
+
- multipart/form-data;boundary=-----------RubyMultipartPost
|
58
|
+
Content-Length:
|
59
|
+
- "47181"
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 200
|
63
|
+
message:
|
64
|
+
headers:
|
65
|
+
date:
|
66
|
+
- Mon, 14 May 2012 16:44:49 GMT
|
67
|
+
p3p:
|
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
|
+
connection:
|
70
|
+
- close
|
71
|
+
content-length:
|
72
|
+
- "107"
|
73
|
+
cache-control:
|
74
|
+
- private
|
75
|
+
x-served-by:
|
76
|
+
- www47.flickr.mud.yahoo.com
|
77
|
+
vary:
|
78
|
+
- Accept-Encoding
|
79
|
+
content-type:
|
80
|
+
- text/xml; charset=utf-8
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: |
|
84
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
85
|
+
<rsp stat="fail">
|
86
|
+
<err code="1" msg="Not a pro account" />
|
87
|
+
</rsp>
|
88
|
+
|
89
|
+
http_version:
|
90
|
+
recorded_at: Mon, 14 May 2012 16:44:50 GMT
|
91
|
+
- request:
|
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
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ""
|
97
|
+
headers:
|
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"
|
100
|
+
response:
|
101
|
+
status:
|
102
|
+
code: 200
|
103
|
+
message:
|
104
|
+
headers:
|
105
|
+
date:
|
106
|
+
- Mon, 14 May 2012 16:44:51 GMT
|
107
|
+
p3p:
|
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
|
+
cache-control:
|
110
|
+
- private
|
111
|
+
x-served-by:
|
112
|
+
- www21.flickr.mud.yahoo.com
|
113
|
+
vary:
|
114
|
+
- Accept-Encoding
|
115
|
+
content-length:
|
116
|
+
- "13"
|
117
|
+
connection:
|
118
|
+
- close
|
119
|
+
content-type:
|
120
|
+
- application/json
|
121
|
+
body:
|
122
|
+
encoding: US-ASCII
|
123
|
+
string: "{\"stat\":\"ok\"}"
|
124
|
+
http_version:
|
125
|
+
recorded_at: Mon, 14 May 2012 16:44:51 GMT
|
126
|
+
recorded_with: VCR 2.1.1
|