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
@@ -8,42 +8,42 @@ http_interactions:
8
8
  string: ""
9
9
  headers:
10
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"
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="187cb8c1526b685e23cf61414c769590", oauth_signature="mO5ftd9SPTp1oUI8IUusxRbvTpI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292006", oauth_token="", oauth_version="1.0"
12
12
  response:
13
13
  status:
14
14
  code: 200
15
15
  message:
16
16
  headers:
17
17
  date:
18
- - Mon, 14 May 2012 16:44:57 GMT
18
+ - Thu, 17 May 2012 22:00:06 GMT
19
19
  p3p:
20
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
21
  cache-control:
22
22
  - private
23
23
  x-served-by:
24
- - www196.flickr.mud.yahoo.com
24
+ - www10.flickr.mud.yahoo.com
25
25
  vary:
26
26
  - Accept-Encoding
27
27
  content-length:
28
- - "823"
28
+ - "822"
29
29
  connection:
30
30
  - close
31
31
  content-type:
32
32
  - application/json
33
33
  body:
34
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\"}"
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\":\"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\"}"
36
36
  http_version:
37
- recorded_at: Mon, 14 May 2012 16:44:57 GMT
37
+ recorded_at: Thu, 17 May 2012 22:00:06 GMT
38
38
  - request:
39
39
  method: post
40
40
  uri: http://api.flickr.com/services/upload
41
41
  body:
42
42
  encoding: ASCII-8BIT
43
- string: "#<Faraday::CompositeReadIO:0x007ffa68fd3300>"
43
+ string: "#<Faraday::CompositeReadIO:0x007fb6b4fd2ab0>"
44
44
  headers:
45
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"
46
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="07dd63804e8031ed02e0bb30bef1d864", oauth_signature="cO%2BXnrbXJ2hyeNfdxmSdnSYFk1o%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292006", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
47
  Content-Type:
48
48
  - multipart/form-data;boundary=-----------RubyMultipartPost
49
49
  Content-Length:
@@ -54,7 +54,7 @@ http_interactions:
54
54
  message:
55
55
  headers:
56
56
  date:
57
- - Mon, 14 May 2012 16:44:57 GMT
57
+ - Thu, 17 May 2012 22:00:06 GMT
58
58
  p3p:
59
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
60
  connection:
@@ -64,7 +64,7 @@ http_interactions:
64
64
  cache-control:
65
65
  - private
66
66
  x-served-by:
67
- - www194.flickr.mud.yahoo.com
67
+ - www188.flickr.mud.yahoo.com
68
68
  vary:
69
69
  - Accept-Encoding
70
70
  content-type:
@@ -74,33 +74,33 @@ http_interactions:
74
74
  string: |
75
75
  <?xml version="1.0" encoding="utf-8" ?>
76
76
  <rsp stat="ok">
77
- <photoid>7197100542</photoid>
77
+ <photoid>7218056244</photoid>
78
78
  </rsp>
79
79
 
80
80
  http_version:
81
- recorded_at: Mon, 14 May 2012 16:45:02 GMT
81
+ recorded_at: Thu, 17 May 2012 22:00:11 GMT
82
82
  - request:
83
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
84
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7218056244
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="8cf7e438df7847c0b5e152032e3401b5", oauth_signature="AGzzPT3%2B1M%2BRJBRwhg2Mm7nSyuI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013902", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
90
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="962a8ebc8e65db64021e6d4a3c0c558a", oauth_signature="lxX%2BIZp3rb38vm6Nns1ijHkwb%2Fo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292011", 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:45:02 GMT
97
+ - Thu, 17 May 2012 22:00:11 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
- - www20.flickr.mud.yahoo.com
103
+ - www3.flickr.mud.yahoo.com
104
104
  vary:
105
105
  - Accept-Encoding
106
106
  content-length:
@@ -113,7 +113,7 @@ http_interactions:
113
113
  encoding: US-ASCII
114
114
  string: "{\"stat\":\"ok\"}"
115
115
  http_version:
116
- recorded_at: Mon, 14 May 2012 16:45:02 GMT
116
+ recorded_at: Thu, 17 May 2012 22:00:11 GMT
117
117
  - request:
118
118
  method: get
119
119
  uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.test.login
@@ -122,20 +122,20 @@ http_interactions:
122
122
  string: ""
123
123
  headers:
124
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"
125
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="be7247faffe238c45ce7c5b191602d9b", oauth_signature="6Be1nCK9mJURcddzKiMGpwtPOVk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292011", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
126
126
  response:
127
127
  status:
128
128
  code: 200
129
129
  message:
130
130
  headers:
131
131
  date:
132
- - Mon, 14 May 2012 16:45:03 GMT
132
+ - Thu, 17 May 2012 22:00:11 GMT
133
133
  p3p:
134
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
135
  cache-control:
136
136
  - private
137
137
  x-served-by:
138
- - www109.flickr.mud.yahoo.com
138
+ - www136.flickr.mud.yahoo.com
139
139
  vary:
140
140
  - Accept-Encoding
141
141
  content-length:
@@ -148,16 +148,16 @@ http_interactions:
148
148
  encoding: ASCII-8BIT
149
149
  string: "{\"user\":{\"id\":\"67131352@N04\", \"username\":{\"_content\":\"Janko Marohni\\u0107\"}}, \"stat\":\"ok\"}"
150
150
  http_version:
151
- recorded_at: Mon, 14 May 2012 16:45:03 GMT
151
+ recorded_at: Thu, 17 May 2012 22:00:11 GMT
152
152
  - request:
153
153
  method: post
154
154
  uri: http://api.flickr.com/services/upload
155
155
  body:
156
156
  encoding: ASCII-8BIT
157
- string: "#<Faraday::CompositeReadIO:0x007ffa68f8d3c8>"
157
+ string: "#<Faraday::CompositeReadIO:0x007fb6b4e4e1f8>"
158
158
  headers:
159
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"
160
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="ec3a1cedf77575c98a7f8a0a0d2e14d9", oauth_signature="qEydtywnWpHGy8vXA%2BZ6b8y4504%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292011", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
161
161
  Content-Type:
162
162
  - multipart/form-data;boundary=-----------RubyMultipartPost
163
163
  Content-Length:
@@ -168,7 +168,7 @@ http_interactions:
168
168
  message:
169
169
  headers:
170
170
  date:
171
- - Mon, 14 May 2012 16:45:03 GMT
171
+ - Thu, 17 May 2012 22:00:12 GMT
172
172
  p3p:
173
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
174
  connection:
@@ -178,7 +178,7 @@ http_interactions:
178
178
  cache-control:
179
179
  - private
180
180
  x-served-by:
181
- - www45.flickr.mud.yahoo.com
181
+ - www115.flickr.mud.yahoo.com
182
182
  vary:
183
183
  - Accept-Encoding
184
184
  content-type:
@@ -188,33 +188,33 @@ http_interactions:
188
188
  string: |
189
189
  <?xml version="1.0" encoding="utf-8" ?>
190
190
  <rsp stat="ok">
191
- <photoid>7197101150</photoid>
191
+ <photoid>7218056706</photoid>
192
192
  </rsp>
193
193
 
194
194
  http_version:
195
- recorded_at: Mon, 14 May 2012 16:45:07 GMT
195
+ recorded_at: Thu, 17 May 2012 22:00:16 GMT
196
196
  - request:
197
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
198
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.delete&photo_id=7218056706
199
199
  body:
200
200
  encoding: US-ASCII
201
201
  string: ""
202
202
  headers:
203
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"
204
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="da9d823974d7d9e4f8dc04d812fab7cc", oauth_signature="wqQ9pHBsewr0%2FTlXGgK3qXiai7c%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292016", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
205
205
  response:
206
206
  status:
207
207
  code: 200
208
208
  message:
209
209
  headers:
210
210
  date:
211
- - Mon, 14 May 2012 16:45:07 GMT
211
+ - Thu, 17 May 2012 22:00:16 GMT
212
212
  p3p:
213
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
214
  cache-control:
215
215
  - private
216
216
  x-served-by:
217
- - www185.flickr.mud.yahoo.com
217
+ - www213.flickr.mud.yahoo.com
218
218
  vary:
219
219
  - Accept-Encoding
220
220
  content-length:
@@ -227,5 +227,5 @@ http_interactions:
227
227
  encoding: US-ASCII
228
228
  string: "{\"stat\":\"ok\"}"
229
229
  http_version:
230
- recorded_at: Mon, 14 May 2012 16:45:08 GMT
230
+ recorded_at: Thu, 17 May 2012 22:00:16 GMT
231
231
  recorded_with: VCR 2.1.1
@@ -8,20 +8,20 @@ http_interactions:
8
8
  string: ""
9
9
  headers:
10
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"
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="e15dd7bf1b9c75fe10dfe02409666d82", oauth_signature="vOj6fnwtiXcJeK76pcL0Y40dfN0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292016", oauth_token="", oauth_version="1.0"
12
12
  response:
13
13
  status:
14
14
  code: 200
15
15
  message:
16
16
  headers:
17
17
  date:
18
- - Mon, 14 May 2012 16:45:08 GMT
18
+ - Thu, 17 May 2012 22:00:17 GMT
19
19
  p3p:
20
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
21
  cache-control:
22
22
  - private
23
23
  x-served-by:
24
- - www177.flickr.mud.yahoo.com
24
+ - www207.flickr.mud.yahoo.com
25
25
  vary:
26
26
  - Accept-Encoding
27
27
  content-length:
@@ -34,5 +34,5 @@ http_interactions:
34
34
  encoding: ASCII-8BIT
35
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
36
  http_version:
37
- recorded_at: Mon, 14 May 2012 16:45:08 GMT
37
+ recorded_at: Thu, 17 May 2012 22:00:17 GMT
38
38
  recorded_with: VCR 2.1.1
@@ -8,20 +8,20 @@ http_interactions:
8
8
  string: ""
9
9
  headers:
10
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"
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="1c22d61f32e289fe21527b376c2c8bd2", oauth_signature="lScPPuBdCjwYuuiRw84BJ0JnGmI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292027", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
12
  response:
13
13
  status:
14
14
  code: 200
15
15
  message:
16
16
  headers:
17
17
  date:
18
- - Mon, 14 May 2012 16:45:20 GMT
18
+ - Thu, 17 May 2012 22:00:28 GMT
19
19
  p3p:
20
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
21
  cache-control:
22
22
  - private
23
23
  x-served-by:
24
- - www12.flickr.mud.yahoo.com
24
+ - www120.flickr.mud.yahoo.com
25
25
  vary:
26
26
  - Accept-Encoding
27
27
  content-length:
@@ -34,7 +34,7 @@ http_interactions:
34
34
  encoding: ASCII-8BIT
35
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
36
  http_version:
37
- recorded_at: Mon, 14 May 2012 16:45:20 GMT
37
+ recorded_at: Thu, 17 May 2012 22:00:28 GMT
38
38
  - request:
39
39
  method: get
40
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
@@ -43,20 +43,20 @@ http_interactions:
43
43
  string: ""
44
44
  headers:
45
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"
46
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="a94fc1379ab20a90f872543beb5383eb", oauth_signature="SWdPKDp5CicLoT4B675HpM6BcmI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292028", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
47
  response:
48
48
  status:
49
49
  code: 200
50
50
  message:
51
51
  headers:
52
52
  date:
53
- - Mon, 14 May 2012 16:45:21 GMT
53
+ - Thu, 17 May 2012 22:00:28 GMT
54
54
  p3p:
55
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
56
  cache-control:
57
57
  - private
58
58
  x-served-by:
59
- - www30.flickr.mud.yahoo.com
59
+ - www205.flickr.mud.yahoo.com
60
60
  vary:
61
61
  - Accept-Encoding
62
62
  content-length:
@@ -69,5 +69,5 @@ http_interactions:
69
69
  encoding: ASCII-8BIT
70
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
71
  http_version:
72
- recorded_at: Mon, 14 May 2012 16:45:21 GMT
72
+ recorded_at: Thu, 17 May 2012 22:00:28 GMT
73
73
  recorded_with: VCR 2.1.1