chute 0.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +16 -2
- data/Gemfile.lock +52 -0
- data/LICENSE.txt +20 -0
- data/README.md +46 -0
- data/Rakefile +48 -6
- data/VERSION +1 -0
- data/chute.gemspec +120 -16
- data/lib/chute.rb +7 -20
- data/lib/chute/client.rb +42 -0
- data/lib/chute/configuration.rb +40 -0
- data/lib/chute/connection.rb +64 -0
- data/lib/chute/response.rb +22 -0
- data/lib/chute/v2/albums.rb +60 -0
- data/lib/chute/v2/assets.rb +55 -0
- data/lib/chute/v2/comments.rb +29 -0
- data/lib/chute/v2/flags.rb +21 -0
- data/lib/chute/v2/hearts.rb +21 -0
- data/lib/chute/v2/parcels.rb +21 -0
- data/lib/chute/v2/tags.rb +36 -0
- data/lib/chute/v2/triggers.rb +26 -0
- data/lib/chute/v2/users.rb +18 -0
- data/lib/chute/v2/votes.rb +21 -0
- data/lib/chute/version.rb +7 -1
- data/spec/chute/chute_spec.rb +64 -0
- data/spec/chute/client_spec.rb +82 -0
- data/spec/chute/connection_spec.rb +47 -0
- data/spec/chute/response_spec.rb +16 -0
- data/spec/chute/v2/albums_spec.rb +197 -0
- data/spec/chute/v2/assets_spec.rb +171 -0
- data/spec/chute/v2/comments_spec.rb +88 -0
- data/spec/chute/v2/flags_spec.rb +56 -0
- data/spec/chute/v2/hearts_spec.rb +57 -0
- data/spec/chute/v2/parcels_spec.rb +24 -0
- data/spec/chute/v2/tags_spec.rb +79 -0
- data/spec/chute/v2/trigger_spec.rb +127 -0
- data/spec/chute/v2/users_spec.rb +53 -0
- data/spec/chute/v2/votes_spec.rb +56 -0
- data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +69 -0
- data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +187 -0
- data/spec/fixtures/chute_cassettes/albums/albums_create.yml +69 -0
- data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +128 -0
- data/spec/fixtures/chute_cassettes/albums/albums_get.yml +135 -0
- data/spec/fixtures/chute_cassettes/albums/albums_list.yml +89 -0
- data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +128 -0
- data/spec/fixtures/chute_cassettes/albums/albums_update.yml +135 -0
- data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +131 -0
- data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +197 -0
- data/spec/fixtures/chute_cassettes/assets/assets_get.yml +138 -0
- data/spec/fixtures/chute_cassettes/assets/assets_import.yml +76 -0
- data/spec/fixtures/chute_cassettes/assets/assets_list.yml +77 -0
- data/spec/fixtures/chute_cassettes/assets/assets_update.yml +138 -0
- data/spec/fixtures/chute_cassettes/comments/comments_create.yml +196 -0
- data/spec/fixtures/chute_cassettes/comments/comments_list.yml +259 -0
- data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +313 -0
- data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +254 -0
- data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +311 -0
- data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +62 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +184 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +65 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +124 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +66 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +127 -0
- data/spec/fixtures/chute_cassettes/users/users_get.yml +128 -0
- data/spec/fixtures/chute_cassettes/users/users_me.yml +66 -0
- data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +313 -0
- data/spec/spec_helper.rb +27 -0
- metadata +210 -33
- data/.gitignore +0 -5
- data/README +0 -125
- data/config/chute.rb +0 -0
- data/lib/chute/account.rb +0 -58
- data/lib/chute/app.rb +0 -32
- data/lib/chute/asset.rb +0 -124
- data/lib/chute/bundle.rb +0 -72
- data/lib/chute/chute.rb +0 -203
- data/lib/chute/collection.rb +0 -47
- data/lib/chute/comment.rb +0 -32
- data/lib/chute/exception.rb +0 -7
- data/lib/chute/http_service.rb +0 -114
- data/lib/chute/inbox.rb +0 -41
- data/lib/chute/parcel.rb +0 -45
- data/lib/chute/resource.rb +0 -354
- data/lib/chute/user.rb +0 -113
- data/lib/chute/util.rb +0 -14
- data/test/test_sudoku.rb +0 -7
@@ -0,0 +1,254 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/albums
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"album":{"name":"Album for Hearts"}}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth API KEY
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accepts:
|
15
|
+
- application/json
|
16
|
+
X-Client-Id:
|
17
|
+
- 508fc620018d162a070000d6
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:10 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"2591fdf82ab04031f4c118393b98b95e"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:10 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
36
|
+
- '201'
|
37
|
+
X-Available-Hourly-Calls:
|
38
|
+
- '4999871'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999812'
|
41
|
+
X-Max-Hourly-Calls:
|
42
|
+
- '5000000'
|
43
|
+
X-Max-Monthly-Calls:
|
44
|
+
- '3720000000'
|
45
|
+
X-Powered-By:
|
46
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Request-Id:
|
50
|
+
- d4b2e1153629a2b0f540f4d49884fe34
|
51
|
+
X-Runtime:
|
52
|
+
- '0.031439'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Transfer-Encoding:
|
56
|
+
- chunked
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Hearts","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999812,"max_hourly_calls":5000000,"available_hourly_calls":4999871}},"data":{"id":2406201,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406201","title":"Album
|
62
|
+
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406201/assets","title":"Asset
|
63
|
+
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406201/parcels","title":"Parcel
|
64
|
+
Listing"}},"created_at":"2013-04-08T22:54:10Z","updated_at":"2013-04-08T22:54:10Z","shortcut":"a5XHgilt","name":"Album
|
65
|
+
for Hearts","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
|
66
|
+
Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null},"moderate_media":false,"moderate_comments":false,"parent_id":null}}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Mon, 08 Apr 2013 22:54:11 GMT
|
69
|
+
- request:
|
70
|
+
method: post
|
71
|
+
uri: https://api.getchute.com/v2/albums/2406201/assets/import
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: ! '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
|
75
|
+
headers:
|
76
|
+
Authorization:
|
77
|
+
- OAuth API KEY
|
78
|
+
Content-Type:
|
79
|
+
- application/json
|
80
|
+
Accepts:
|
81
|
+
- application/json
|
82
|
+
X-Client-Id:
|
83
|
+
- 508fc620018d162a070000d6
|
84
|
+
response:
|
85
|
+
status:
|
86
|
+
code: 200
|
87
|
+
message: OK
|
88
|
+
headers:
|
89
|
+
Cache-Control:
|
90
|
+
- max-age=0, private, must-revalidate
|
91
|
+
Content-Type:
|
92
|
+
- application/json; charset=utf-8
|
93
|
+
Date:
|
94
|
+
- Mon, 08 Apr 2013 22:54:11 GMT
|
95
|
+
Etag:
|
96
|
+
- ! '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
|
97
|
+
Last-Modified:
|
98
|
+
- Wed, 05 Dec 2012 14:19:19 GMT
|
99
|
+
Server:
|
100
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
101
|
+
Status:
|
102
|
+
- '200'
|
103
|
+
X-Available-Hourly-Calls:
|
104
|
+
- '4999869'
|
105
|
+
X-Available-Monthly-Calls:
|
106
|
+
- '3719999810'
|
107
|
+
X-Max-Hourly-Calls:
|
108
|
+
- '5000000'
|
109
|
+
X-Max-Monthly-Calls:
|
110
|
+
- '3720000000'
|
111
|
+
X-Powered-By:
|
112
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
113
|
+
X-Rack-Cache:
|
114
|
+
- invalidate, pass
|
115
|
+
X-Request-Id:
|
116
|
+
- 55f30cfae48c83c33a9d8781d7ce60f1
|
117
|
+
X-Runtime:
|
118
|
+
- '0.049422'
|
119
|
+
X-Ua-Compatible:
|
120
|
+
- IE=Edge,chrome=1
|
121
|
+
Transfer-Encoding:
|
122
|
+
- chunked
|
123
|
+
Connection:
|
124
|
+
- keep-alive
|
125
|
+
body:
|
126
|
+
encoding: US-ASCII
|
127
|
+
string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406201/assets/import?&urls%5B%5D=http%3A%2F%2Fsphotos-f.ak.fbcdn.net%2Fhphotos-ak-snc6%2F6393_451942991531262_1464781412_n.jpg","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999810,"max_hourly_calls":5000000,"available_hourly_calls":4999869}},"data":[{"id":79517672,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406201/assets/79517672","title":"Asset
|
128
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2406201/assets/79517672/exif","title":"Exif
|
129
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2406201/assets/79517672/geo","title":"Geo
|
130
|
+
Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a5XHgilt/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a5XHgilt/assets/5nEb6mbik/votes","title":"Vote"}},"created_at":"2012-12-05T14:19:19Z","updated_at":"2012-12-05T14:19:19Z","thumbnail":"http://media.getchute.com/media/5nEb6mbik/75x75","url":"http://media.getchute.com/media/5nEb6mbik","shortcut":"5nEb6mbik","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/5nEb6mbik"},"service":"uploaded"}]}'
|
131
|
+
http_version:
|
132
|
+
recorded_at: Mon, 08 Apr 2013 22:54:11 GMT
|
133
|
+
- request:
|
134
|
+
method: post
|
135
|
+
uri: https://api.getchute.com/v2/albums/2406201/assets/79517672/hearts
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: ! '{}'
|
139
|
+
headers:
|
140
|
+
Authorization:
|
141
|
+
- OAuth API KEY
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Accepts:
|
145
|
+
- application/json
|
146
|
+
X-Client-Id:
|
147
|
+
- 508fc620018d162a070000d6
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 201
|
151
|
+
message: Created
|
152
|
+
headers:
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Date:
|
158
|
+
- Mon, 08 Apr 2013 22:54:12 GMT
|
159
|
+
Etag:
|
160
|
+
- ! '"86ce47523145056169d197d192be1dde"'
|
161
|
+
Last-Modified:
|
162
|
+
- Mon, 08 Apr 2013 22:54:12 GMT
|
163
|
+
Server:
|
164
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
165
|
+
Status:
|
166
|
+
- '201'
|
167
|
+
X-Available-Hourly-Calls:
|
168
|
+
- '4999868'
|
169
|
+
X-Available-Monthly-Calls:
|
170
|
+
- '3719999809'
|
171
|
+
X-Max-Hourly-Calls:
|
172
|
+
- '5000000'
|
173
|
+
X-Max-Monthly-Calls:
|
174
|
+
- '3720000000'
|
175
|
+
X-Powered-By:
|
176
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
177
|
+
X-Rack-Cache:
|
178
|
+
- invalidate, pass
|
179
|
+
X-Request-Id:
|
180
|
+
- c9d14394cdb41d71fbec215f09cb02f4
|
181
|
+
X-Runtime:
|
182
|
+
- '0.040108'
|
183
|
+
X-Ua-Compatible:
|
184
|
+
- IE=Edge,chrome=1
|
185
|
+
Content-Length:
|
186
|
+
- '566'
|
187
|
+
Connection:
|
188
|
+
- keep-alive
|
189
|
+
body:
|
190
|
+
encoding: US-ASCII
|
191
|
+
string: ! '{"response":{"title":"Heart Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406201/assets/79517672/hearts?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999809,"max_hourly_calls":5000000,"available_hourly_calls":4999868}},"data":{"id":338360,"links":{"href":"http://api.getchute.com/v2/hearts/odjgdnlvhiirsucxdhzf1365461652","title":"Heart
|
192
|
+
Details"},"created_at":"2013-04-08T22:54:12Z","updated_at":"2013-04-08T22:54:12Z","identifier":"odjgdnlvhiirsucxdhzf1365461652","album_id":2406201,"asset_id":79517672}}'
|
193
|
+
http_version:
|
194
|
+
recorded_at: Mon, 08 Apr 2013 22:54:12 GMT
|
195
|
+
- request:
|
196
|
+
method: get
|
197
|
+
uri: https://api.getchute.com/v2/albums/2406201/assets/79517672/hearts
|
198
|
+
body:
|
199
|
+
encoding: UTF-8
|
200
|
+
string: ! '{}'
|
201
|
+
headers:
|
202
|
+
Authorization:
|
203
|
+
- OAuth API KEY
|
204
|
+
Content-Type:
|
205
|
+
- application/json
|
206
|
+
Accepts:
|
207
|
+
- application/json
|
208
|
+
X-Client-Id:
|
209
|
+
- 508fc620018d162a070000d6
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 201
|
213
|
+
message: Created
|
214
|
+
headers:
|
215
|
+
Cache-Control:
|
216
|
+
- must-revalidate, private, max-age=0
|
217
|
+
Content-Type:
|
218
|
+
- application/json; charset=utf-8
|
219
|
+
Date:
|
220
|
+
- Mon, 08 Apr 2013 22:54:12 GMT
|
221
|
+
Etag:
|
222
|
+
- ! '"e28152b06ce0016868a107859ed5bb4f"'
|
223
|
+
Server:
|
224
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
225
|
+
Status:
|
226
|
+
- '201'
|
227
|
+
X-Available-Hourly-Calls:
|
228
|
+
- '4999867'
|
229
|
+
X-Available-Monthly-Calls:
|
230
|
+
- '3719999808'
|
231
|
+
X-Max-Hourly-Calls:
|
232
|
+
- '5000000'
|
233
|
+
X-Max-Monthly-Calls:
|
234
|
+
- '3720000000'
|
235
|
+
X-Powered-By:
|
236
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
237
|
+
X-Rack-Cache:
|
238
|
+
- miss
|
239
|
+
X-Request-Id:
|
240
|
+
- ec33fc904036a9a6d6ca77143f908dfe
|
241
|
+
X-Runtime:
|
242
|
+
- '0.021585'
|
243
|
+
X-Ua-Compatible:
|
244
|
+
- IE=Edge,chrome=1
|
245
|
+
Content-Length:
|
246
|
+
- '297'
|
247
|
+
Connection:
|
248
|
+
- keep-alive
|
249
|
+
body:
|
250
|
+
encoding: US-ASCII
|
251
|
+
string: ! '{"response":{"title":"Heart Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406201/assets/79517672/hearts?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999808,"max_hourly_calls":5000000,"available_hourly_calls":4999867}},"data":{"count":1}}'
|
252
|
+
http_version:
|
253
|
+
recorded_at: Mon, 08 Apr 2013 22:54:12 GMT
|
254
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,311 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/albums
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"album":{"name":"Album for Tags"}}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth API KEY
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accepts:
|
15
|
+
- application/json
|
16
|
+
X-Client-Id:
|
17
|
+
- 508fc620018d162a070000d6
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:13 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"ca2f245bf705645cc08106734d4ef034"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:13 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
36
|
+
- '201'
|
37
|
+
X-Available-Hourly-Calls:
|
38
|
+
- '4999866'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999807'
|
41
|
+
X-Max-Hourly-Calls:
|
42
|
+
- '5000000'
|
43
|
+
X-Max-Monthly-Calls:
|
44
|
+
- '3720000000'
|
45
|
+
X-Powered-By:
|
46
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Request-Id:
|
50
|
+
- ff6373c42754b262f693b58e72ed8dcf
|
51
|
+
X-Runtime:
|
52
|
+
- '0.103295'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Transfer-Encoding:
|
56
|
+
- chunked
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Tags","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999807,"max_hourly_calls":5000000,"available_hourly_calls":4999866}},"data":{"id":2406202,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406202","title":"Album
|
62
|
+
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406202/assets","title":"Asset
|
63
|
+
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406202/parcels","title":"Parcel
|
64
|
+
Listing"}},"created_at":"2013-04-08T22:54:13Z","updated_at":"2013-04-08T22:54:13Z","shortcut":"a5XIjdgs","name":"Album
|
65
|
+
for Tags","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
|
66
|
+
Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null},"moderate_media":false,"moderate_comments":false,"parent_id":null}}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Mon, 08 Apr 2013 22:54:13 GMT
|
69
|
+
- request:
|
70
|
+
method: post
|
71
|
+
uri: https://api.getchute.com/v2/albums/2406202/assets/import
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: ! '{"urls":["http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg"]}'
|
75
|
+
headers:
|
76
|
+
Authorization:
|
77
|
+
- OAuth API KEY
|
78
|
+
Content-Type:
|
79
|
+
- application/json
|
80
|
+
Accepts:
|
81
|
+
- application/json
|
82
|
+
X-Client-Id:
|
83
|
+
- 508fc620018d162a070000d6
|
84
|
+
response:
|
85
|
+
status:
|
86
|
+
code: 200
|
87
|
+
message: OK
|
88
|
+
headers:
|
89
|
+
Cache-Control:
|
90
|
+
- max-age=0, private, must-revalidate
|
91
|
+
Content-Type:
|
92
|
+
- application/json; charset=utf-8
|
93
|
+
Date:
|
94
|
+
- Mon, 08 Apr 2013 22:54:13 GMT
|
95
|
+
Etag:
|
96
|
+
- ! '"e109632f58397e26b953c827c1486da8"'
|
97
|
+
Last-Modified:
|
98
|
+
- Thu, 29 Nov 2012 13:55:20 GMT
|
99
|
+
Server:
|
100
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
101
|
+
Status:
|
102
|
+
- '200'
|
103
|
+
X-Available-Hourly-Calls:
|
104
|
+
- '4999865'
|
105
|
+
X-Available-Monthly-Calls:
|
106
|
+
- '3719999806'
|
107
|
+
X-Max-Hourly-Calls:
|
108
|
+
- '5000000'
|
109
|
+
X-Max-Monthly-Calls:
|
110
|
+
- '3720000000'
|
111
|
+
X-Powered-By:
|
112
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
113
|
+
X-Rack-Cache:
|
114
|
+
- invalidate, pass
|
115
|
+
X-Request-Id:
|
116
|
+
- 813246eb843b69b030cc1581a33dc1c5
|
117
|
+
X-Runtime:
|
118
|
+
- '0.050684'
|
119
|
+
X-Ua-Compatible:
|
120
|
+
- IE=Edge,chrome=1
|
121
|
+
Content-Length:
|
122
|
+
- '1445'
|
123
|
+
Connection:
|
124
|
+
- keep-alive
|
125
|
+
body:
|
126
|
+
encoding: US-ASCII
|
127
|
+
string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406202/assets/import?&urls%5B%5D=http%3A%2F%2Ffarm9.staticflickr.com%2F8194%2F8141607138_bfaea3afd9.jpg","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999806,"max_hourly_calls":5000000,"available_hourly_calls":4999865}},"data":[{"id":72569916,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406202/assets/72569916","title":"Asset
|
128
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2406202/assets/72569916/exif","title":"Exif
|
129
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2406202/assets/72569916/geo","title":"Geo
|
130
|
+
Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a5XIjdgs/assets/4UuKweohy/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a5XIjdgs/assets/4UuKweohy/votes","title":"Vote"}},"created_at":"2012-11-29T13:55:20Z","updated_at":"2012-11-29T13:55:20Z","thumbnail":"http://media.getchute.com/media/4UuKweohy/75x75","url":"http://media.getchute.com/media/4UuKweohy","shortcut":"4UuKweohy","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/4UuKweohy"},"service":"uploaded"}]}'
|
131
|
+
http_version:
|
132
|
+
recorded_at: Mon, 08 Apr 2013 22:54:13 GMT
|
133
|
+
- request:
|
134
|
+
method: post
|
135
|
+
uri: https://api.getchute.com/v2/albums/2406202/assets/72569916/tags
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: ! '{"tags":["TAG","AnotherTag"]}'
|
139
|
+
headers:
|
140
|
+
Authorization:
|
141
|
+
- OAuth API KEY
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Accepts:
|
145
|
+
- application/json
|
146
|
+
X-Client-Id:
|
147
|
+
- 508fc620018d162a070000d6
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 201
|
151
|
+
message: Created
|
152
|
+
headers:
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Date:
|
158
|
+
- Mon, 08 Apr 2013 22:54:14 GMT
|
159
|
+
Etag:
|
160
|
+
- ! '"48a0a32b2617d11206eb2a9c8562380f"'
|
161
|
+
Server:
|
162
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
163
|
+
Status:
|
164
|
+
- '201'
|
165
|
+
X-Available-Hourly-Calls:
|
166
|
+
- '4999863'
|
167
|
+
X-Available-Monthly-Calls:
|
168
|
+
- '3719999804'
|
169
|
+
X-Max-Hourly-Calls:
|
170
|
+
- '5000000'
|
171
|
+
X-Max-Monthly-Calls:
|
172
|
+
- '3720000000'
|
173
|
+
X-Powered-By:
|
174
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
175
|
+
X-Rack-Cache:
|
176
|
+
- invalidate, pass
|
177
|
+
X-Request-Id:
|
178
|
+
- ea7a7a0b539a89ea55b1f3938cb76142
|
179
|
+
X-Runtime:
|
180
|
+
- '0.029292'
|
181
|
+
X-Ua-Compatible:
|
182
|
+
- IE=Edge,chrome=1
|
183
|
+
Content-Length:
|
184
|
+
- '394'
|
185
|
+
Connection:
|
186
|
+
- keep-alive
|
187
|
+
body:
|
188
|
+
encoding: US-ASCII
|
189
|
+
string: ! '{"response":{"title":"Tags Added","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406202/assets/72569916/tags?tag%5Btags%5D%5B%5D=TAG&tag%5Btags%5D%5B%5D=AnotherTag&tags%5B%5D=TAG&tags%5B%5D=AnotherTag","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999804,"max_hourly_calls":5000000,"available_hourly_calls":4999863}},"data":["TAG","AnotherTag"]}'
|
190
|
+
http_version:
|
191
|
+
recorded_at: Mon, 08 Apr 2013 22:54:14 GMT
|
192
|
+
- request:
|
193
|
+
method: get
|
194
|
+
uri: https://api.getchute.com/v2/albums/2406202/assets/72569916/tags
|
195
|
+
body:
|
196
|
+
encoding: UTF-8
|
197
|
+
string: ! '{}'
|
198
|
+
headers:
|
199
|
+
Authorization:
|
200
|
+
- OAuth API KEY
|
201
|
+
Content-Type:
|
202
|
+
- application/json
|
203
|
+
Accepts:
|
204
|
+
- application/json
|
205
|
+
X-Client-Id:
|
206
|
+
- 508fc620018d162a070000d6
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 201
|
210
|
+
message: Created
|
211
|
+
headers:
|
212
|
+
Cache-Control:
|
213
|
+
- must-revalidate, private, max-age=0
|
214
|
+
Content-Type:
|
215
|
+
- application/json; charset=utf-8
|
216
|
+
Date:
|
217
|
+
- Mon, 08 Apr 2013 22:54:14 GMT
|
218
|
+
Etag:
|
219
|
+
- ! '"c46b1bd63740d2d2522c2b6b0381d89c"'
|
220
|
+
Server:
|
221
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
222
|
+
Status:
|
223
|
+
- '201'
|
224
|
+
X-Available-Hourly-Calls:
|
225
|
+
- '4999862'
|
226
|
+
X-Available-Monthly-Calls:
|
227
|
+
- '3719999803'
|
228
|
+
X-Max-Hourly-Calls:
|
229
|
+
- '5000000'
|
230
|
+
X-Max-Monthly-Calls:
|
231
|
+
- '3720000000'
|
232
|
+
X-Powered-By:
|
233
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
234
|
+
X-Rack-Cache:
|
235
|
+
- miss
|
236
|
+
X-Request-Id:
|
237
|
+
- d03709220d3f6ddc7ea92baa00b3721a
|
238
|
+
X-Runtime:
|
239
|
+
- '0.023156'
|
240
|
+
X-Ua-Compatible:
|
241
|
+
- IE=Edge,chrome=1
|
242
|
+
Content-Length:
|
243
|
+
- '302'
|
244
|
+
Connection:
|
245
|
+
- keep-alive
|
246
|
+
body:
|
247
|
+
encoding: US-ASCII
|
248
|
+
string: ! '{"response":{"title":"Tags List","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406202/assets/72569916/tags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999803,"max_hourly_calls":5000000,"available_hourly_calls":4999862}},"data":["TAG","AnotherTag"]}'
|
249
|
+
http_version:
|
250
|
+
recorded_at: Mon, 08 Apr 2013 22:54:14 GMT
|
251
|
+
- request:
|
252
|
+
method: put
|
253
|
+
uri: https://api.getchute.com/v2/albums/2406202/assets/72569916/tags
|
254
|
+
body:
|
255
|
+
encoding: UTF-8
|
256
|
+
string: ! '{"tags":["Replaced TAG1","Replaced Tag2"]}'
|
257
|
+
headers:
|
258
|
+
Authorization:
|
259
|
+
- OAuth API KEY
|
260
|
+
Content-Type:
|
261
|
+
- application/json
|
262
|
+
Accepts:
|
263
|
+
- application/json
|
264
|
+
X-Client-Id:
|
265
|
+
- 508fc620018d162a070000d6
|
266
|
+
response:
|
267
|
+
status:
|
268
|
+
code: 201
|
269
|
+
message: Created
|
270
|
+
headers:
|
271
|
+
Cache-Control:
|
272
|
+
- max-age=0, private, must-revalidate
|
273
|
+
Content-Type:
|
274
|
+
- application/json; charset=utf-8
|
275
|
+
Date:
|
276
|
+
- Mon, 08 Apr 2013 22:54:15 GMT
|
277
|
+
Etag:
|
278
|
+
- ! '"5c71e4ab8f4b2ca0915e6c5577652f31"'
|
279
|
+
Server:
|
280
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
281
|
+
Status:
|
282
|
+
- '201'
|
283
|
+
X-Available-Hourly-Calls:
|
284
|
+
- '4999861'
|
285
|
+
X-Available-Monthly-Calls:
|
286
|
+
- '3719999802'
|
287
|
+
X-Max-Hourly-Calls:
|
288
|
+
- '5000000'
|
289
|
+
X-Max-Monthly-Calls:
|
290
|
+
- '3720000000'
|
291
|
+
X-Powered-By:
|
292
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
293
|
+
X-Rack-Cache:
|
294
|
+
- invalidate, pass
|
295
|
+
X-Request-Id:
|
296
|
+
- 89224cc24cdccb0b68f8c01e11315811
|
297
|
+
X-Runtime:
|
298
|
+
- '0.029939'
|
299
|
+
X-Ua-Compatible:
|
300
|
+
- IE=Edge,chrome=1
|
301
|
+
Content-Length:
|
302
|
+
- '435'
|
303
|
+
Connection:
|
304
|
+
- keep-alive
|
305
|
+
body:
|
306
|
+
encoding: US-ASCII
|
307
|
+
string: ! '{"response":{"title":"Tags Updated","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406202/assets/72569916/tags?tag%5Btags%5D%5B%5D=Replaced+TAG1&tag%5Btags%5D%5B%5D=Replaced+Tag2&tags%5B%5D=Replaced+TAG1&tags%5B%5D=Replaced+Tag2","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999802,"max_hourly_calls":5000000,"available_hourly_calls":4999861}},"data":["Replaced
|
308
|
+
TAG1","Replaced Tag2"]}'
|
309
|
+
http_version:
|
310
|
+
recorded_at: Mon, 08 Apr 2013 22:54:15 GMT
|
311
|
+
recorded_with: VCR 2.2.5
|