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
@@ -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.getCounts&taken_dates=2012-03-01%2000%3A00%3A00%20UTC%2C2012-05-05%2000%3A00%3A00%20UTC
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="fafa14f2a9454089a177be7cac15c252", oauth_signature="nstmD9wxZJtrLi%2BH%2B0m0yij8M8Y%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337098035", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
date:
|
18
|
+
- Tue, 15 May 2012 16:07:15 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
|
+
- www128.flickr.mud.yahoo.com
|
25
|
+
vary:
|
26
|
+
- Accept-Encoding
|
27
|
+
content-length:
|
28
|
+
- "100"
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
32
|
+
- application/json
|
33
|
+
body:
|
34
|
+
encoding: ASCII-8BIT
|
35
|
+
string: "{\"photocounts\":{\"photocount\":[{\"count\":\"1\", \"fromdate\":\"2012-03-01 00:00:00\", \"todate\":\"2012-05-05 00:00:00\"}]}, \"stat\":\"ok\"}"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Tue, 15 May 2012 16:07:15 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.getCounts&dates=1330560000%2C1336176000
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ""
|
44
|
+
headers:
|
45
|
+
Authorization:
|
46
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="07337898474bc1af47d91bab4d8b2ce3", oauth_signature="2g7upcSg3pxihFQYizGx8Xx7jAs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337098035", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
47
|
+
response:
|
48
|
+
status:
|
49
|
+
code: 200
|
50
|
+
message:
|
51
|
+
headers:
|
52
|
+
date:
|
53
|
+
- Tue, 15 May 2012 16:07:16 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
|
+
- www194.flickr.mud.yahoo.com
|
60
|
+
vary:
|
61
|
+
- Accept-Encoding
|
62
|
+
content-length:
|
63
|
+
- "95"
|
64
|
+
connection:
|
65
|
+
- close
|
66
|
+
content-type:
|
67
|
+
- application/json
|
68
|
+
body:
|
69
|
+
encoding: ASCII-8BIT
|
70
|
+
string: "{\"photocounts\":{\"photocount\":[{\"count\":\"98\", \"fromdate\":\"1330560000\", \"todate\":\"1336176000\"}]}, \"stat\":\"ok\"}"
|
71
|
+
http_version:
|
72
|
+
recorded_at: Tue, 15 May 2012 16:07:16 GMT
|
73
|
+
recorded_with: VCR 2.1.1
|
@@ -0,0 +1,167 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="foo", oauth_nonce="f0b516bcf18b7ce5361015b2f3e16825", oauth_signature="3yBzvaPpjWcvd9MYwfFycmDwL4w%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013923", oauth_version="1.0"
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 401
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
date:
|
18
|
+
- Mon, 14 May 2012 16:45:23 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
|
+
set-cookie:
|
22
|
+
- localization=en-us%3Bus%3Bus; expires=Mon, 12-May-2014 16:45:23 GMT; path=/; domain=.flickr.com
|
23
|
+
cache-control:
|
24
|
+
- private
|
25
|
+
x-served-by:
|
26
|
+
- www148.flickr.mud.yahoo.com
|
27
|
+
vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
content-type:
|
30
|
+
- text/plain;charset=UTF-8
|
31
|
+
age:
|
32
|
+
- "2"
|
33
|
+
via:
|
34
|
+
- HTTP/1.1 r17.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r11.ycpi.ams.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
35
|
+
server:
|
36
|
+
- YTS/1.20.16
|
37
|
+
connection:
|
38
|
+
- close
|
39
|
+
body:
|
40
|
+
encoding: ASCII-8BIT
|
41
|
+
string: oauth_problem=consumer_key_unknown
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 14 May 2012 16:45:24 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ""
|
50
|
+
headers:
|
51
|
+
Authorization:
|
52
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="fd7c73dbb8eeabcc3a3827ff05e3620c", oauth_signature="wfkELOLgWkl0DRjZVdLbg39OabQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013924", oauth_version="1.0"
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 401
|
56
|
+
message:
|
57
|
+
headers:
|
58
|
+
date:
|
59
|
+
- Mon, 14 May 2012 16:45:24 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
|
+
set-cookie:
|
63
|
+
- localization=en-us%3Bus%3Bus; expires=Mon, 12-May-2014 16:45:24 GMT; path=/; domain=.flickr.com
|
64
|
+
cache-control:
|
65
|
+
- private
|
66
|
+
x-served-by:
|
67
|
+
- www214.flickr.mud.yahoo.com
|
68
|
+
vary:
|
69
|
+
- Accept-Encoding
|
70
|
+
content-type:
|
71
|
+
- text/plain;charset=UTF-8
|
72
|
+
age:
|
73
|
+
- "0"
|
74
|
+
via:
|
75
|
+
- HTTP/1.1 r44.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r20.ycpi.ams.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
76
|
+
server:
|
77
|
+
- YTS/1.20.16
|
78
|
+
connection:
|
79
|
+
- close
|
80
|
+
body:
|
81
|
+
encoding: ASCII-8BIT
|
82
|
+
string: oauth_problem=signature_invalid&debug_sbs=GET&http%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Frequest_token&oauth_callback%3Doob%26oauth_consumer_key%3DAPI_KEY%26oauth_nonce%3Dfd7c73dbb8eeabcc3a3827ff05e3620c%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1337013924%26oauth_version%3D1.0
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 14 May 2012 16:45:25 GMT
|
85
|
+
- request:
|
86
|
+
method: get
|
87
|
+
uri: http://www.flickr.com/services/oauth/request_token?oauth_callback=oob
|
88
|
+
body:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ""
|
91
|
+
headers:
|
92
|
+
Authorization:
|
93
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="9c017e63fa165872fb6bdb47f67ced4c", oauth_signature="oHHbLzs%2B37XDu8X%2FZkDp7tjUuek%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013925", oauth_version="1.0"
|
94
|
+
response:
|
95
|
+
status:
|
96
|
+
code: 200
|
97
|
+
message:
|
98
|
+
headers:
|
99
|
+
date:
|
100
|
+
- Mon, 14 May 2012 16:45:25 GMT
|
101
|
+
p3p:
|
102
|
+
- 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"
|
103
|
+
set-cookie:
|
104
|
+
- localization=en-us%3Bus%3Bus; expires=Mon, 12-May-2014 16:45:25 GMT; path=/; domain=.flickr.com
|
105
|
+
cache-control:
|
106
|
+
- private
|
107
|
+
x-served-by:
|
108
|
+
- www86.flickr.mud.yahoo.com
|
109
|
+
vary:
|
110
|
+
- Accept-Encoding
|
111
|
+
content-type:
|
112
|
+
- text/plain;charset=UTF-8
|
113
|
+
age:
|
114
|
+
- "0"
|
115
|
+
via:
|
116
|
+
- HTTP/1.1 r19.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r15.ycpi.dee.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
117
|
+
server:
|
118
|
+
- YTS/1.20.16
|
119
|
+
connection:
|
120
|
+
- close
|
121
|
+
body:
|
122
|
+
encoding: ASCII-8BIT
|
123
|
+
string: oauth_callback_confirmed=true&oauth_token=72157629726432998-b6e8086eed4dedfc&oauth_token_secret=1255246a9fb043cc
|
124
|
+
http_version:
|
125
|
+
recorded_at: Mon, 14 May 2012 16:45:26 GMT
|
126
|
+
- request:
|
127
|
+
method: get
|
128
|
+
uri: http://www.flickr.com/services/oauth/access_token?oauth_verifier=foo
|
129
|
+
body:
|
130
|
+
encoding: US-ASCII
|
131
|
+
string: ""
|
132
|
+
headers:
|
133
|
+
Authorization:
|
134
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="566aea9d42357131ea898b99198db774", oauth_signature="jITn0YkQQKofllBp0m3w8kOn%2Bqg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013926", oauth_token="72157629726432998-b6e8086eed4dedfc", oauth_version="1.0"
|
135
|
+
response:
|
136
|
+
status:
|
137
|
+
code: 401
|
138
|
+
message:
|
139
|
+
headers:
|
140
|
+
date:
|
141
|
+
- Mon, 14 May 2012 16:45:26 GMT
|
142
|
+
p3p:
|
143
|
+
- 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"
|
144
|
+
set-cookie:
|
145
|
+
- localization=en-us%3Bus%3Bus; expires=Mon, 12-May-2014 16:45:26 GMT; path=/; domain=.flickr.com
|
146
|
+
cache-control:
|
147
|
+
- private
|
148
|
+
x-served-by:
|
149
|
+
- www131.flickr.mud.yahoo.com
|
150
|
+
vary:
|
151
|
+
- Accept-Encoding
|
152
|
+
content-type:
|
153
|
+
- text/plain;charset=UTF-8
|
154
|
+
age:
|
155
|
+
- "0"
|
156
|
+
via:
|
157
|
+
- HTTP/1.1 r46.ycpi.mud.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ]), HTTP/1.1 r08.ycpi.ams.yahoo.net (YahooTrafficServer/1.20.16 [cMsSf ])
|
158
|
+
server:
|
159
|
+
- YTS/1.20.16
|
160
|
+
connection:
|
161
|
+
- close
|
162
|
+
body:
|
163
|
+
encoding: ASCII-8BIT
|
164
|
+
string: oauth_problem=token_rejected
|
165
|
+
http_version:
|
166
|
+
recorded_at: Mon, 14 May 2012 16:45:26 GMT
|
167
|
+
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.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="761206f3313c1f2c60757b21ae9baa46", oauth_signature="JQnR5k0eri5z64Dv0vlkuinb5h4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013929", 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:29 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
|
+
- www131.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:45:29 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.getSizes&photo_id=6946979188
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="3fb826f21032f6e9e8635dbab87d2835", oauth_signature="sCuiqZO4acY1FxpGDCh6XmsvkT0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013926", 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:26 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
|
+
- www57.flickr.mud.yahoo.com
|
25
|
+
vary:
|
26
|
+
- Accept-Encoding
|
27
|
+
content-length:
|
28
|
+
- "386"
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
content-type:
|
32
|
+
- application/json
|
33
|
+
body:
|
34
|
+
encoding: ASCII-8BIT
|
35
|
+
string: "{\"sizes\":{\"canblog\":0, \"canprint\":0, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"75\", \"height\":\"100\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"180\", \"height\":\"240\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":240, \"height\":\"320\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"375\", \"height\":\"500\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 640\", \"width\":\"480\", \"height\":\"640\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_z.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/z\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 800\", \"width\":600, \"height\":\"800\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_c.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/c\\/\", \"media\":\"photo\"}, {\"label\":\"Large\", \"width\":\"768\", \"height\":\"1024\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/l\\/\", \"media\":\"photo\"}]}, \"stat\":\"ok\"}"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Mon, 14 May 2012 16:45:26 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.getSizes&photo_id=6946979188
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ""
|
44
|
+
headers:
|
45
|
+
Authorization:
|
46
|
+
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="6edb022ee0eac4f1f3a3abbc3b42bcfc", oauth_signature="PIeT7fxx3rUYoS%2FDVK7mdxrfe%2B8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337013926", oauth_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:27 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
|
+
- www41.flickr.mud.yahoo.com
|
60
|
+
vary:
|
61
|
+
- Accept-Encoding
|
62
|
+
content-length:
|
63
|
+
- "386"
|
64
|
+
connection:
|
65
|
+
- close
|
66
|
+
content-type:
|
67
|
+
- application/json
|
68
|
+
body:
|
69
|
+
encoding: ASCII-8BIT
|
70
|
+
string: "{\"sizes\":{\"canblog\":0, \"canprint\":0, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"75\", \"height\":\"100\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"180\", \"height\":\"240\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":240, \"height\":\"320\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"375\", \"height\":\"500\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 640\", \"width\":\"480\", \"height\":\"640\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_z.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/z\\/\", \"media\":\"photo\"}, {\"label\":\"Medium 800\", \"width\":600, \"height\":\"800\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_c.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/c\\/\", \"media\":\"photo\"}, {\"label\":\"Large\", \"width\":\"768\", \"height\":\"1024\", \"source\":\"http:\\/\\/farm8.staticflickr.com\\/7049\\/6946979188_25bb44852b_b.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/6946979188\\/sizes\\/l\\/\", \"media\":\"photo\"}]}, \"stat\":\"ok\"}"
|
71
|
+
http_version:
|
72
|
+
recorded_at: Mon, 14 May 2012 16:45:27 GMT
|
73
|
+
recorded_with: VCR 2.1.1
|