flickrie 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +0 -4
- data/flickrie.gemspec +2 -2
- data/lib/flickrie/api_methods.rb +4 -1
- data/lib/flickrie/license.rb +6 -1
- data/lib/flickrie/location.rb +29 -12
- data/lib/flickrie/media/exif.rb +3 -1
- data/lib/flickrie/media/note.rb +24 -13
- data/lib/flickrie/media/tag.rb +9 -6
- data/lib/flickrie/media/visibility.rb +8 -5
- data/lib/flickrie/media.rb +54 -55
- data/lib/flickrie/media_count.rb +8 -6
- data/lib/flickrie/photo.rb +48 -7
- data/lib/flickrie/set.rb +47 -31
- data/lib/flickrie/ticket.rb +8 -5
- data/lib/flickrie/user.rb +67 -25
- data/lib/flickrie/version.rb +1 -1
- data/lib/flickrie/video.rb +19 -11
- data/spec/custom_matchers.rb +51 -0
- data/spec/flickrie/api_methods_spec.rb +112 -31
- data/spec/flickrie/error_spec.rb +2 -4
- data/spec/flickrie/instance_spec.rb +11 -11
- data/spec/flickrie/media_spec.rb +74 -53
- data/spec/flickrie/photo_spec.rb +4 -5
- data/spec/flickrie/set_spec.rb +23 -12
- data/spec/flickrie/upload_client_spec.rb +3 -0
- data/spec/flickrie/user_spec.rb +31 -5
- data/spec/flickrie/video_spec.rb +13 -13
- data/spec/flickrie_spec.rb +15 -0
- data/spec/spec_helper.rb +13 -50
- data/spec/vcr_cassettes/api_methods/people/get_media_from_user.yml +108 -0
- data/spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml +108 -0
- data/spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml +528 -0
- data/spec/vcr_cassettes/api_methods/photos/get_context.yml +108 -0
- data/spec/vcr_cassettes/api_methods/photos/get_counts.yml +108 -0
- data/spec/vcr_cassettes/api_methods/photos/get_exif.yml +73 -0
- data/spec/vcr_cassettes/api_methods/photos/get_favorites.yml +73 -0
- data/spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml +73 -0
- data/spec/vcr_cassettes/api_methods/photos/get_info.yml +108 -0
- data/spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml +73 -0
- data/spec/vcr_cassettes/api_methods/photos/get_sizes.yml +73 -0
- data/spec/vcr_cassettes/api_methods/photos/search.yml +108 -0
- data/spec/vcr_cassettes/api_methods/photosets/get_media.yml +108 -0
- data/spec/vcr_cassettes/api_methods/{replace.yml → upload/replace.yml} +16 -16
- data/spec/vcr_cassettes/api_methods/upload/upload.yml +82 -0
- data/spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml +117 -0
- data/spec/vcr_cassettes/error/{a_request_was_made_and_failed.yml → a_request_was_made_and_failed/be_raised.yml} +9 -9
- data/spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml +84 -0
- data/spec/vcr_cassettes/{api_methods/upload_and_delete.yml → flickrie/a_new_credential_is_filled_in/reset_the_client.yml} +113 -32
- data/spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml +152 -0
- data/spec/vcr_cassettes/license/{get.yml → get/have_all_attributes_correctly_set.yml} +4 -4
- data/spec/vcr_cassettes/media/{from_contacts.yml → from_contacts/have_all_attributes_correctly_set.yml} +8 -8
- data/spec/vcr_cassettes/media/{from_set.yml → from_set/have_all_attributes_correctly_set.yml} +6 -6
- data/spec/vcr_cassettes/media/{from_user.yml → from_user/have_all_attributes_correctly_set.yml} +6 -6
- data/spec/vcr_cassettes/media/{get_context.yml → get_context/have_all_attributes_correctly_set.yml} +6 -6
- data/spec/vcr_cassettes/media/{get_exif.yml → get_exif/get_exif_correctly.yml} +8 -8
- data/spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml +108 -0
- data/spec/vcr_cassettes/media/{public_from_user.yml → public_from_user/have_all_attributes_correctly_set.yml} +6 -6
- data/spec/vcr_cassettes/media/{search.yml → search/have_all_attributes_correctly_set.yml} +6 -6
- data/spec/vcr_cassettes/media_count/{get.yml → get/have_correctly_set_all_attributes.yml} +9 -9
- data/spec/vcr_cassettes/o_auth/{incorrect_credentials.yml → incorrect_credentials/raise_exceptions.yml} +42 -42
- data/spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml +38 -0
- data/spec/vcr_cassettes/photo/{get_sizes.yml → get_sizes/have_attributes_correctly_set.yml} +12 -12
- data/spec/vcr_cassettes/photo/{search.yml → search/have_all_sizes_available.yml} +6 -6
- data/spec/vcr_cassettes/set/{from_user.yml → from_user/have_all_attributes_correctly_set.yml} +18 -18
- data/spec/vcr_cassettes/set/{get_info.yml → get_info/have_all_attributes_correctly_set.yml} +36 -36
- data/spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml +117 -0
- data/spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml +276 -0
- data/spec/vcr_cassettes/user/{find_by_username_or_email.yml → find_by_username_or_email/have_all_attributes_correctly_set.yml} +9 -9
- data/spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml +73 -0
- data/spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml +38 -0
- data/spec/vcr_cassettes/video/{get_sizes.yml → get_sizes/have_all_attributes_correctly_set.yml} +12 -12
- metadata +111 -74
- data/spec/vcr_cassettes/api_methods/asynchronous_upload.yml +0 -362
- data/spec/vcr_cassettes/api_methods/tag_manipulation.yml +0 -178
- data/spec/vcr_cassettes/instance/calling_api_methods.yml +0 -231
- data/spec/vcr_cassettes/media/get_info.yml +0 -108
- data/spec/vcr_cassettes/photo/get_info.yml +0 -38
- data/spec/vcr_cassettes/upload_client/content_type.yml +0 -117
- data/spec/vcr_cassettes/upload_client/invalid_credentials.yml +0 -208
- data/spec/vcr_cassettes/user/get_info.yml +0 -73
- data/spec/vcr_cassettes/video/get_info.yml +0 -38
@@ -1,208 +0,0 @@
|
|
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:0x007fcb6d209be0>"
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="", oauth_nonce="65b9c8a6fad35aea86604f3e498c3276", oauth_signature="hUbbmLbQ82MjUs05sNKULELtZO4%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337351454", oauth_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
|
-
- Fri, 18 May 2012 14:30:54 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
|
-
- "132"
|
29
|
-
cache-control:
|
30
|
-
- private
|
31
|
-
x-served-by:
|
32
|
-
- www190.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="fail">
|
42
|
-
<err code="100" msg="Invalid API Key (Key has invalid format)" />
|
43
|
-
</rsp>
|
44
|
-
|
45
|
-
http_version:
|
46
|
-
recorded_at: Fri, 18 May 2012 14:30:55 GMT
|
47
|
-
- request:
|
48
|
-
method: post
|
49
|
-
uri: http://api.flickr.com/services/upload
|
50
|
-
body:
|
51
|
-
encoding: ASCII-8BIT
|
52
|
-
string: "#<Faraday::CompositeReadIO:0x007fcb6b700308>"
|
53
|
-
headers:
|
54
|
-
Authorization:
|
55
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="b36217a330efe6f866f82a60f0808a65", oauth_signature="39BGSwZjuG12JixjOFMIBG6igqQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337351455", oauth_token="", oauth_version="1.0"
|
56
|
-
Content-Type:
|
57
|
-
- multipart/form-data;boundary=-----------RubyMultipartPost
|
58
|
-
Content-Length:
|
59
|
-
- "47086"
|
60
|
-
response:
|
61
|
-
status:
|
62
|
-
code: 401
|
63
|
-
message:
|
64
|
-
headers:
|
65
|
-
date:
|
66
|
-
- Fri, 18 May 2012 14:30:55 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
|
-
cache-control:
|
72
|
-
- private
|
73
|
-
x-served-by:
|
74
|
-
- www3.flickr.mud.yahoo.com
|
75
|
-
vary:
|
76
|
-
- Accept-Encoding
|
77
|
-
content-length:
|
78
|
-
- "28"
|
79
|
-
content-type:
|
80
|
-
- text/plain;charset=UTF-8
|
81
|
-
body:
|
82
|
-
encoding: US-ASCII
|
83
|
-
string: oauth_problem=token_rejected
|
84
|
-
http_version:
|
85
|
-
recorded_at: Fri, 18 May 2012 14:30:56 GMT
|
86
|
-
- request:
|
87
|
-
method: post
|
88
|
-
uri: http://api.flickr.com/services/upload
|
89
|
-
body:
|
90
|
-
encoding: ASCII-8BIT
|
91
|
-
string: "#<Faraday::CompositeReadIO:0x007fcb6b629628>"
|
92
|
-
headers:
|
93
|
-
Authorization:
|
94
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="c2e5f37d56dfe08490f25131918ca911", oauth_signature="2CAvr%2Fhbr1srNgTzN2ZXXulVFBE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337351456", oauth_token="", oauth_version="1.0"
|
95
|
-
Content-Type:
|
96
|
-
- multipart/form-data;boundary=-----------RubyMultipartPost
|
97
|
-
Content-Length:
|
98
|
-
- "47086"
|
99
|
-
response:
|
100
|
-
status:
|
101
|
-
code: 401
|
102
|
-
message:
|
103
|
-
headers:
|
104
|
-
date:
|
105
|
-
- Fri, 18 May 2012 14:30:56 GMT
|
106
|
-
p3p:
|
107
|
-
- 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"
|
108
|
-
connection:
|
109
|
-
- close
|
110
|
-
cache-control:
|
111
|
-
- private
|
112
|
-
x-served-by:
|
113
|
-
- www128.flickr.mud.yahoo.com
|
114
|
-
vary:
|
115
|
-
- Accept-Encoding
|
116
|
-
content-length:
|
117
|
-
- "28"
|
118
|
-
content-type:
|
119
|
-
- text/plain;charset=UTF-8
|
120
|
-
body:
|
121
|
-
encoding: US-ASCII
|
122
|
-
string: oauth_problem=token_rejected
|
123
|
-
http_version:
|
124
|
-
recorded_at: Fri, 18 May 2012 14:30:57 GMT
|
125
|
-
- request:
|
126
|
-
method: post
|
127
|
-
uri: http://api.flickr.com/services/upload
|
128
|
-
body:
|
129
|
-
encoding: ASCII-8BIT
|
130
|
-
string: "#<Faraday::CompositeReadIO:0x007fcb6d213820>"
|
131
|
-
headers:
|
132
|
-
Authorization:
|
133
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="4ae93044b205da93328d997e1870ebcd", oauth_signature="VAhLAD1CTA3KKYJL8A8BpZFw3fs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337351457", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
134
|
-
Content-Type:
|
135
|
-
- multipart/form-data;boundary=-----------RubyMultipartPost
|
136
|
-
Content-Length:
|
137
|
-
- "47086"
|
138
|
-
response:
|
139
|
-
status:
|
140
|
-
code: 401
|
141
|
-
message:
|
142
|
-
headers:
|
143
|
-
date:
|
144
|
-
- Fri, 18 May 2012 14:30:57 GMT
|
145
|
-
p3p:
|
146
|
-
- 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"
|
147
|
-
connection:
|
148
|
-
- close
|
149
|
-
cache-control:
|
150
|
-
- private
|
151
|
-
x-served-by:
|
152
|
-
- www130.flickr.mud.yahoo.com
|
153
|
-
vary:
|
154
|
-
- Accept-Encoding
|
155
|
-
content-length:
|
156
|
-
- "354"
|
157
|
-
content-type:
|
158
|
-
- text/plain;charset=UTF-8
|
159
|
-
body:
|
160
|
-
encoding: US-ASCII
|
161
|
-
string: oauth_problem=signature_invalid&debug_sbs=POST&http%3A%2F%2Fapi.flickr.com%2Fservices%2Fupload&oauth_consumer_key%3DAPI_KEY%26oauth_nonce%3D4ae93044b205da93328d997e1870ebcd%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1337351457%26oauth_token%3DACCESS_TOKEN%26oauth_version%3D1.0%26title%3Dphoto
|
162
|
-
http_version:
|
163
|
-
recorded_at: Fri, 18 May 2012 14:30:58 GMT
|
164
|
-
- request:
|
165
|
-
method: post
|
166
|
-
uri: http://api.flickr.com/services/upload
|
167
|
-
body:
|
168
|
-
encoding: ASCII-8BIT
|
169
|
-
string: "#<Faraday::CompositeReadIO:0x007fcb6b778538>"
|
170
|
-
headers:
|
171
|
-
Authorization:
|
172
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="a6b9f7b6bed22374bcb19aa0c91be5b3", oauth_signature="g0Blq1nBSeUBlr9lYOTSMf6l%2FGM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337351458", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
|
173
|
-
Content-Type:
|
174
|
-
- multipart/form-data;boundary=-----------RubyMultipartPost
|
175
|
-
Content-Length:
|
176
|
-
- "47086"
|
177
|
-
response:
|
178
|
-
status:
|
179
|
-
code: 200
|
180
|
-
message:
|
181
|
-
headers:
|
182
|
-
date:
|
183
|
-
- Fri, 18 May 2012 14:30:58 GMT
|
184
|
-
p3p:
|
185
|
-
- 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"
|
186
|
-
connection:
|
187
|
-
- close
|
188
|
-
content-length:
|
189
|
-
- "93"
|
190
|
-
cache-control:
|
191
|
-
- private
|
192
|
-
x-served-by:
|
193
|
-
- www54.flickr.mud.yahoo.com
|
194
|
-
vary:
|
195
|
-
- Accept-Encoding
|
196
|
-
content-type:
|
197
|
-
- text/xml; charset=utf-8
|
198
|
-
body:
|
199
|
-
encoding: US-ASCII
|
200
|
-
string: |
|
201
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
202
|
-
<rsp stat="ok">
|
203
|
-
<photoid>7221586210</photoid>
|
204
|
-
</rsp>
|
205
|
-
|
206
|
-
http_version:
|
207
|
-
recorded_at: Fri, 18 May 2012 14:31:03 GMT
|
208
|
-
recorded_with: VCR 2.1.1
|
@@ -1,73 +0,0 @@
|
|
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.people.getInfo&user_id=67131352%40N04
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="9bc503693a14086b30cac1d38d2ce2d3", oauth_signature="3MfX1ec3YtCUUMmZiWt0Eatx4Nw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292043", oauth_token="", oauth_version="1.0"
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Thu, 17 May 2012 22:00:44 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
|
-
- www214.flickr.mud.yahoo.com
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
content-length:
|
28
|
-
- "416"
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
content-type:
|
32
|
-
- application/json
|
33
|
-
body:
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: "{\"person\":{\"id\":\"67131352@N04\", \"nsid\":\"67131352@N04\", \"ispro\":0, \"iconserver\":\"5464\", \"iconfarm\":6, \"path_alias\":null, \"username\":{\"_content\":\"Janko Marohni\\u0107\"}, \"realname\":{\"_content\":\"Janko Marohni\\u0107\"}, \"location\":{\"_content\":\"Zagreb, Croatia\"}, \"timezone\":{\"label\":\"Sarajevo, Skopje, Warsaw, Zagreb\", \"offset\":\"+01:00\"}, \"description\":{\"_content\":\"I'm a programmer, and I'm gonna program a badass Ruby library for Flickr.\"}, \"photosurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/\"}, \"profileurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/people\\/67131352@N04\\/\"}, \"mobileurl\":{\"_content\":\"http:\\/\\/m.flickr.com\\/photostream.gne?id=67099213\"}, \"photos\":{\"firstdatetaken\":{\"_content\":\"2011-03-20 12:29:43\"}, \"firstdate\":{\"_content\":\"1334832295\"}, \"count\":{\"_content\":98}}}, \"stat\":\"ok\"}"
|
36
|
-
http_version:
|
37
|
-
recorded_at: Thu, 17 May 2012 22:00:44 GMT
|
38
|
-
- request:
|
39
|
-
method: get
|
40
|
-
uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.people.getInfo&user_id=67131352%40N04
|
41
|
-
body:
|
42
|
-
encoding: US-ASCII
|
43
|
-
string: ""
|
44
|
-
headers:
|
45
|
-
Authorization:
|
46
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="9d2721b9153988c16f44178d659f0be7", oauth_signature="3tqf5sbLgeTohsJDOcPP8X4PdRc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292044", oauth_token="", oauth_version="1.0"
|
47
|
-
response:
|
48
|
-
status:
|
49
|
-
code: 200
|
50
|
-
message:
|
51
|
-
headers:
|
52
|
-
date:
|
53
|
-
- Thu, 17 May 2012 22:00:44 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
|
-
- www141.flickr.mud.yahoo.com
|
60
|
-
vary:
|
61
|
-
- Accept-Encoding
|
62
|
-
content-length:
|
63
|
-
- "416"
|
64
|
-
connection:
|
65
|
-
- close
|
66
|
-
content-type:
|
67
|
-
- application/json
|
68
|
-
body:
|
69
|
-
encoding: ASCII-8BIT
|
70
|
-
string: "{\"person\":{\"id\":\"67131352@N04\", \"nsid\":\"67131352@N04\", \"ispro\":0, \"iconserver\":\"5464\", \"iconfarm\":6, \"path_alias\":null, \"username\":{\"_content\":\"Janko Marohni\\u0107\"}, \"realname\":{\"_content\":\"Janko Marohni\\u0107\"}, \"location\":{\"_content\":\"Zagreb, Croatia\"}, \"timezone\":{\"label\":\"Sarajevo, Skopje, Warsaw, Zagreb\", \"offset\":\"+01:00\"}, \"description\":{\"_content\":\"I'm a programmer, and I'm gonna program a badass Ruby library for Flickr.\"}, \"photosurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/\"}, \"profileurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/people\\/67131352@N04\\/\"}, \"mobileurl\":{\"_content\":\"http:\\/\\/m.flickr.com\\/photostream.gne?id=67099213\"}, \"photos\":{\"firstdatetaken\":{\"_content\":\"2011-03-20 12:29:43\"}, \"firstdate\":{\"_content\":\"1334832295\"}, \"count\":{\"_content\":98}}}, \"stat\":\"ok\"}"
|
71
|
-
http_version:
|
72
|
-
recorded_at: Thu, 17 May 2012 22:00:44 GMT
|
73
|
-
recorded_with: VCR 2.1.1
|
@@ -1,38 +0,0 @@
|
|
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=7093038981
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ""
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- OAuth oauth_consumer_key="API_KEY", oauth_nonce="c0b0b9aea5d74ef8a957a59a7c2cb1b6", oauth_signature="iPdFqen0T6CtFQ%2Bh%2BRVjHhMzsOg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292045", oauth_token="", oauth_version="1.0"
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
date:
|
18
|
-
- Thu, 17 May 2012 22:00:45 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
|
-
- www123.flickr.mud.yahoo.com
|
25
|
-
vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
content-length:
|
28
|
-
- "835"
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
content-type:
|
32
|
-
- application/json
|
33
|
-
body:
|
34
|
-
encoding: ASCII-8BIT
|
35
|
-
string: "{\"photo\":{\"id\":\"7093038981\", \"secret\":\"9a616b9f6e\", \"server\":\"5457\", \"farm\":6, \"dateuploaded\":\"1334832295\", \"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\":\"5 meter backflip\"}, \"description\":{\"_content\":\"Description\"}, \"visibility\":{\"ispublic\":1, \"isfriend\":0, \"isfamily\":0}, \"dates\":{\"posted\":\"1334832295\", \"taken\":\"2012-04-19 03:44:55\", \"takengranularity\":\"0\", \"lastupdate\":\"1336343117\"}, \"views\":\"0\", \"editability\":{\"cancomment\":0, \"canaddmeta\":0}, \"publiceditability\":{\"cancomment\":1, \"canaddmeta\":0}, \"usage\":{\"candownload\":1, \"canblog\":0, \"canprint\":0, \"canshare\":0}, \"comments\":{\"_content\":\"1\"}, \"notes\":{\"note\":[]}, \"people\":{\"haspeople\":0}, \"tags\":{\"tag\":[{\"id\":\"67099213-7093038981-5987\", \"author\":\"67131352@N04\", \"raw\":\"Tag\", \"_content\":\"tag\", \"machine_tag\":0}]}, \"location\":{\"latitude\":45.809537, \"longitude\":15.970344, \"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\\/7093038981\\/\"}]}, \"media\":\"video\", \"video\":{\"ready\":1, \"failed\":0, \"pending\":0, \"duration\":\"16\", \"width\":\"352\", \"height\":\"288\"}}, \"stat\":\"ok\"}"
|
36
|
-
http_version:
|
37
|
-
recorded_at: Thu, 17 May 2012 22:00:46 GMT
|
38
|
-
recorded_with: VCR 2.1.1
|