flickrie 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +2 -1
  2. data/CHANGELOG.md +9 -1
  3. data/Gemfile +7 -6
  4. data/README.md +18 -1
  5. data/Rakefile +47 -9
  6. data/flickrie.gemspec +19 -15
  7. data/lib/flickrie/api_methods.rb +23 -0
  8. data/lib/flickrie/client.rb +16 -11
  9. data/lib/flickrie/instance.rb +7 -0
  10. data/lib/flickrie/media/exif.rb +12 -3
  11. data/lib/flickrie/media/note.rb +5 -0
  12. data/lib/flickrie/media/tag.rb +4 -3
  13. data/lib/flickrie/media/visibility.rb +4 -3
  14. data/lib/flickrie/media.rb +19 -0
  15. data/lib/flickrie/oauth.rb +5 -7
  16. data/lib/flickrie/photo.rb +6 -2
  17. data/lib/flickrie/set.rb +10 -0
  18. data/lib/flickrie/upload_client.rb +10 -12
  19. data/lib/flickrie/user.rb +4 -0
  20. data/lib/flickrie/version.rb +1 -1
  21. data/lib/flickrie/video.rb +4 -0
  22. data/spec/api_methods_spec.rb +2 -0
  23. data/spec/error_spec.rb +2 -0
  24. data/spec/fixtures/vcr_cassettes/api_methods/asynchronous_upload.yml +397 -0
  25. data/spec/fixtures/vcr_cassettes/api_methods/replace.yml +126 -0
  26. data/spec/fixtures/vcr_cassettes/api_methods/tags.yml +178 -0
  27. data/spec/fixtures/vcr_cassettes/api_methods/upload_and_delete.yml +152 -0
  28. data/spec/fixtures/vcr_cassettes/error/code.yml +84 -0
  29. data/spec/fixtures/vcr_cassettes/error/was_raised.yml +84 -0
  30. data/spec/fixtures/vcr_cassettes/instance/calling_api_methods.yml +231 -0
  31. data/spec/fixtures/vcr_cassettes/license/get.yml +38 -0
  32. data/spec/fixtures/vcr_cassettes/media/from_contacts.yml +73 -0
  33. data/spec/fixtures/vcr_cassettes/media/from_set.yml +38 -0
  34. data/spec/fixtures/vcr_cassettes/media/get_context.yml +38 -0
  35. data/spec/fixtures/vcr_cassettes/media/get_exif.yml +73 -0
  36. data/spec/fixtures/vcr_cassettes/media/get_info.yml +108 -0
  37. data/spec/fixtures/vcr_cassettes/media/public_from_user.yml +38 -0
  38. data/spec/fixtures/vcr_cassettes/media/search.yml +38 -0
  39. data/spec/fixtures/vcr_cassettes/media_count/get.yml +73 -0
  40. data/spec/fixtures/vcr_cassettes/oauth/incorrect_credentials.yml +167 -0
  41. data/spec/fixtures/vcr_cassettes/photo/get_info.yml +38 -0
  42. data/spec/fixtures/vcr_cassettes/photo/get_sizes.yml +73 -0
  43. data/spec/fixtures/vcr_cassettes/photo/search.yml +38 -0
  44. data/spec/fixtures/vcr_cassettes/set/from_user.yml +143 -0
  45. data/spec/fixtures/vcr_cassettes/set/get_info.yml +283 -0
  46. data/spec/fixtures/vcr_cassettes/user/find_by_username_or_email.yml +73 -0
  47. data/spec/fixtures/vcr_cassettes/user/get_info.yml +73 -0
  48. data/spec/fixtures/vcr_cassettes/video/get_info.yml +38 -0
  49. data/spec/fixtures/vcr_cassettes/video/get_sizes.yml +73 -0
  50. data/spec/instance_spec.rb +2 -0
  51. data/spec/license_spec.rb +2 -0
  52. data/spec/location_spec.rb +2 -0
  53. data/spec/media_count_spec.rb +2 -0
  54. data/spec/media_spec.rb +1 -0
  55. data/spec/oauth_spec.rb +2 -0
  56. data/spec/photo_spec.rb +2 -0
  57. data/spec/set_spec.rb +1 -0
  58. data/spec/spec_helper.rb +20 -3
  59. data/spec/user_spec.rb +1 -0
  60. data/spec/video_spec.rb +2 -0
  61. metadata +92 -21
  62. data/credentials.rb +0 -4
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key&method=flickr.photos.licenses.getInfo
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="", oauth_nonce="7184a992d730edcb93569f134a733a04", oauth_signature="MmojtJI5wFmA1CS%2F2yBL1%2FjeZho%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013893", oauth_token="", oauth_version="1.0"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Mon, 14 May 2012 16:44:54 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
+ access-control-allow-origin:
22
+ - "*"
23
+ cache-control:
24
+ - private
25
+ x-served-by:
26
+ - www84.flickr.mud.yahoo.com
27
+ vary:
28
+ - Accept-Encoding
29
+ content-length:
30
+ - "91"
31
+ connection:
32
+ - close
33
+ content-type:
34
+ - text/plain; charset=utf-8
35
+ body:
36
+ encoding: ASCII-8BIT
37
+ string: "{\"stat\":\"fail\", \"code\":100, \"message\":\"Invalid API Key (Key has invalid format)\"}"
38
+ http_version:
39
+ recorded_at: Mon, 14 May 2012 16:44:54 GMT
40
+ - request:
41
+ method: post
42
+ uri: http://api.flickr.com/services/upload
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: "#<Faraday::CompositeReadIO:0x007ffa68f46400>"
46
+ headers:
47
+ Authorization:
48
+ - OAuth oauth_consumer_key="", oauth_nonce="ee4bb6862b61b5ca364a928e2301995e", oauth_signature="zJrYouawLgCDmQBLFwvV7DEhnVg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013894", oauth_token="", oauth_version="1.0"
49
+ Content-Type:
50
+ - multipart/form-data;boundary=-----------RubyMultipartPost
51
+ Content-Length:
52
+ - "47086"
53
+ response:
54
+ status:
55
+ code: 200
56
+ message:
57
+ headers:
58
+ date:
59
+ - Mon, 14 May 2012 16:44:54 GMT
60
+ p3p:
61
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
62
+ connection:
63
+ - close
64
+ content-length:
65
+ - "132"
66
+ cache-control:
67
+ - private
68
+ x-served-by:
69
+ - www229.flickr.mud.yahoo.com
70
+ vary:
71
+ - Accept-Encoding
72
+ content-type:
73
+ - text/xml; charset=utf-8
74
+ body:
75
+ encoding: US-ASCII
76
+ string: |
77
+ <?xml version="1.0" encoding="utf-8" ?>
78
+ <rsp stat="fail">
79
+ <err code="100" msg="Invalid API Key (Key has invalid format)" />
80
+ </rsp>
81
+
82
+ http_version:
83
+ recorded_at: Mon, 14 May 2012 16:44:55 GMT
84
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,231 @@
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="47670da362341e29b95dd11ad8230bcc", oauth_signature="9W7mRcSKuxTjhyuRGKTfKeYLxtc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013896", oauth_token="", oauth_version="1.0"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Mon, 14 May 2012 16:44:57 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
+ - www196.flickr.mud.yahoo.com
25
+ vary:
26
+ - Accept-Encoding
27
+ content-length:
28
+ - "823"
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\":\"1337013893\"}, \"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\"}"
36
+ http_version:
37
+ recorded_at: Mon, 14 May 2012 16:44:57 GMT
38
+ - request:
39
+ method: post
40
+ uri: http://api.flickr.com/services/upload
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: "#<Faraday::CompositeReadIO:0x007ffa68fd3300>"
44
+ headers:
45
+ Authorization:
46
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="26b3db8fcfbb731ecc69cc207e714617", oauth_signature="YYovX4kMyCMEKUrc2qw3lENtxMU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013897", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
+ Content-Type:
48
+ - multipart/form-data;boundary=-----------RubyMultipartPost
49
+ Content-Length:
50
+ - "47086"
51
+ response:
52
+ status:
53
+ code: 200
54
+ message:
55
+ headers:
56
+ date:
57
+ - Mon, 14 May 2012 16:44:57 GMT
58
+ p3p:
59
+ - 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"
60
+ connection:
61
+ - close
62
+ content-length:
63
+ - "93"
64
+ cache-control:
65
+ - private
66
+ x-served-by:
67
+ - www194.flickr.mud.yahoo.com
68
+ vary:
69
+ - Accept-Encoding
70
+ content-type:
71
+ - text/xml; charset=utf-8
72
+ body:
73
+ encoding: US-ASCII
74
+ string: |
75
+ <?xml version="1.0" encoding="utf-8" ?>
76
+ <rsp stat="ok">
77
+ <photoid>7197100542</photoid>
78
+ </rsp>
79
+
80
+ http_version:
81
+ recorded_at: Mon, 14 May 2012 16:45:02 GMT
82
+ - request:
83
+ method: post
84
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7197100542
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ""
88
+ headers:
89
+ Authorization:
90
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="8cf7e438df7847c0b5e152032e3401b5", oauth_signature="AGzzPT3%2B1M%2BRJBRwhg2Mm7nSyuI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013902", 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:45:02 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
+ - www20.flickr.mud.yahoo.com
104
+ vary:
105
+ - Accept-Encoding
106
+ content-length:
107
+ - "13"
108
+ connection:
109
+ - close
110
+ content-type:
111
+ - application/json
112
+ body:
113
+ encoding: US-ASCII
114
+ string: "{\"stat\":\"ok\"}"
115
+ http_version:
116
+ recorded_at: Mon, 14 May 2012 16:45:02 GMT
117
+ - request:
118
+ method: get
119
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.test.login
120
+ body:
121
+ encoding: US-ASCII
122
+ string: ""
123
+ headers:
124
+ Authorization:
125
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="a3f30568334e05b75e7dfaa7df221a31", oauth_signature="6LeND4%2Fsm%2Bu9KzpBPe6aDWGzbz8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013902", 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:45:03 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
+ - www109.flickr.mud.yahoo.com
139
+ vary:
140
+ - Accept-Encoding
141
+ content-length:
142
+ - "100"
143
+ connection:
144
+ - close
145
+ content-type:
146
+ - application/json
147
+ body:
148
+ encoding: ASCII-8BIT
149
+ string: "{\"user\":{\"id\":\"67131352@N04\", \"username\":{\"_content\":\"Janko Marohni\\u0107\"}}, \"stat\":\"ok\"}"
150
+ http_version:
151
+ recorded_at: Mon, 14 May 2012 16:45:03 GMT
152
+ - request:
153
+ method: post
154
+ uri: http://api.flickr.com/services/upload
155
+ body:
156
+ encoding: ASCII-8BIT
157
+ string: "#<Faraday::CompositeReadIO:0x007ffa68f8d3c8>"
158
+ headers:
159
+ Authorization:
160
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="73bd0a6f90168b4278a4e3e6bae69b4f", oauth_signature="jNxIXKqbNaIYlto2pyzgn8rKRKE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013903", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
161
+ Content-Type:
162
+ - multipart/form-data;boundary=-----------RubyMultipartPost
163
+ Content-Length:
164
+ - "47086"
165
+ response:
166
+ status:
167
+ code: 200
168
+ message:
169
+ headers:
170
+ date:
171
+ - Mon, 14 May 2012 16:45:03 GMT
172
+ p3p:
173
+ - 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"
174
+ connection:
175
+ - close
176
+ content-length:
177
+ - "93"
178
+ cache-control:
179
+ - private
180
+ x-served-by:
181
+ - www45.flickr.mud.yahoo.com
182
+ vary:
183
+ - Accept-Encoding
184
+ content-type:
185
+ - text/xml; charset=utf-8
186
+ body:
187
+ encoding: US-ASCII
188
+ string: |
189
+ <?xml version="1.0" encoding="utf-8" ?>
190
+ <rsp stat="ok">
191
+ <photoid>7197101150</photoid>
192
+ </rsp>
193
+
194
+ http_version:
195
+ recorded_at: Mon, 14 May 2012 16:45:07 GMT
196
+ - request:
197
+ method: post
198
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7197101150
199
+ body:
200
+ encoding: US-ASCII
201
+ string: ""
202
+ headers:
203
+ Authorization:
204
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="57950faacca433e442f30474d3a7f8b4", oauth_signature="TTbAlKZ1AZ%2BzR%2F9kLzNMXKJWgHU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013907", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
205
+ response:
206
+ status:
207
+ code: 200
208
+ message:
209
+ headers:
210
+ date:
211
+ - Mon, 14 May 2012 16:45:07 GMT
212
+ p3p:
213
+ - 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"
214
+ cache-control:
215
+ - private
216
+ x-served-by:
217
+ - www185.flickr.mud.yahoo.com
218
+ vary:
219
+ - Accept-Encoding
220
+ content-length:
221
+ - "13"
222
+ connection:
223
+ - close
224
+ content-type:
225
+ - application/json
226
+ body:
227
+ encoding: US-ASCII
228
+ string: "{\"stat\":\"ok\"}"
229
+ http_version:
230
+ recorded_at: Mon, 14 May 2012 16:45:08 GMT
231
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,38 @@
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.licenses.getInfo
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="968666e680c7397036722c90934524fd", oauth_signature="Az88UGwPxpgHz2t388u%2BEuWEVtM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013908", oauth_token="", oauth_version="1.0"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Mon, 14 May 2012 16:45:08 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
+ - www177.flickr.mud.yahoo.com
25
+ vary:
26
+ - Accept-Encoding
27
+ content-length:
28
+ - "313"
29
+ connection:
30
+ - close
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: "{\"licenses\":{\"license\":[{\"id\":\"0\", \"name\":\"All Rights Reserved\", \"url\":\"\"}, {\"id\":\"4\", \"name\":\"Attribution License\", \"url\":\"http:\\/\\/creativecommons.org\\/licenses\\/by\\/2.0\\/\"}, {\"id\":\"6\", \"name\":\"Attribution-NoDerivs License\", \"url\":\"http:\\/\\/creativecommons.org\\/licenses\\/by-nd\\/2.0\\/\"}, {\"id\":\"3\", \"name\":\"Attribution-NonCommercial-NoDerivs License\", \"url\":\"http:\\/\\/creativecommons.org\\/licenses\\/by-nc-nd\\/2.0\\/\"}, {\"id\":\"2\", \"name\":\"Attribution-NonCommercial License\", \"url\":\"http:\\/\\/creativecommons.org\\/licenses\\/by-nc\\/2.0\\/\"}, {\"id\":\"1\", \"name\":\"Attribution-NonCommercial-ShareAlike License\", \"url\":\"http:\\/\\/creativecommons.org\\/licenses\\/by-nc-sa\\/2.0\\/\"}, {\"id\":\"5\", \"name\":\"Attribution-ShareAlike License\", \"url\":\"http:\\/\\/creativecommons.org\\/licenses\\/by-sa\\/2.0\\/\"}, {\"id\":\"7\", \"name\":\"No known copyright restrictions\", \"url\":\"http:\\/\\/www.flickr.com\\/commons\\/usage\\/\"}, {\"id\":\"8\", \"name\":\"United States Government Work\", \"url\":\"http:\\/\\/www.usa.gov\\/copyright.shtml\"}]}, \"stat\":\"ok\"}"
36
+ http_version:
37
+ recorded_at: Mon, 14 May 2012 16:45:08 GMT
38
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,73 @@
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.getContactsPhotos&include_self=1&single_photo=1&extras=media
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="87b7dee49317f34dc29d88e988e788f2", oauth_signature="VFpZ8WLPcEB3QM9iFOLgiAtMiyM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013920", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Mon, 14 May 2012 16:45:20 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
+ - www12.flickr.mud.yahoo.com
25
+ vary:
26
+ - Accept-Encoding
27
+ content-length:
28
+ - "226"
29
+ connection:
30
+ - close
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: "{\"photos\":{\"photo\":[{\"id\":\"7093101501\", \"secret\":\"9337f28800\", \"server\":\"7090\", \"farm\":8, \"owner\":\"67131352@N04\", \"username\":\"Janko Marohni\\u0107\", \"title\":\"IMG_0917\", \"ispublic\":1, \"isfriend\":0, \"isfamily\":0, \"media\":\"photo\", \"media_status\":\"ready\"}], \"total\":2, \"page\":1, \"per_page\":10, \"pages\":1}, \"stat\":\"ok\"}"
36
+ http_version:
37
+ recorded_at: Mon, 14 May 2012 16:45:20 GMT
38
+ - request:
39
+ method: get
40
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getContactsPublicPhotos&user_id=67131352%40N04&include_self=1&single_photo=1&extras=media
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ""
44
+ headers:
45
+ Authorization:
46
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="f2559a7d9e0c5f570c184373f8c4d124", oauth_signature="StdpGeg3nFSTo0Y%2BdCyDJ5XS%2B1w%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013920", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
+ response:
48
+ status:
49
+ code: 200
50
+ message:
51
+ headers:
52
+ date:
53
+ - Mon, 14 May 2012 16:45:21 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
+ - www30.flickr.mud.yahoo.com
60
+ vary:
61
+ - Accept-Encoding
62
+ content-length:
63
+ - "226"
64
+ connection:
65
+ - close
66
+ content-type:
67
+ - application/json
68
+ body:
69
+ encoding: ASCII-8BIT
70
+ string: "{\"photos\":{\"photo\":[{\"id\":\"7093101501\", \"secret\":\"9337f28800\", \"server\":\"7090\", \"farm\":8, \"owner\":\"67131352@N04\", \"username\":\"Janko Marohni\\u0107\", \"title\":\"IMG_0917\", \"ispublic\":1, \"isfriend\":0, \"isfamily\":0, \"media\":\"photo\", \"media_status\":\"ready\"}], \"total\":2, \"page\":1, \"per_page\":10, \"pages\":1}, \"stat\":\"ok\"}"
71
+ http_version:
72
+ recorded_at: Mon, 14 May 2012 16:45:21 GMT
73
+ recorded_with: VCR 2.1.1