chute 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/Rakefile +0 -1
  2. data/chute.gemspec +3 -5
  3. data/lib/chute/connection.rb +1 -1
  4. data/lib/chute/v2/accounts.rb +13 -0
  5. data/lib/chute/version.rb +1 -1
  6. data/spec/chute/connection_spec.rb +1 -1
  7. data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +13 -21
  8. data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +23 -47
  9. data/spec/fixtures/chute_cassettes/albums/albums_create.yml +13 -21
  10. data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +20 -36
  11. data/spec/fixtures/chute_cassettes/albums/albums_get.yml +23 -39
  12. data/spec/fixtures/chute_cassettes/albums/albums_list.yml +27 -35
  13. data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +17 -33
  14. data/spec/fixtures/chute_cassettes/albums/albums_update.yml +23 -39
  15. data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +20 -36
  16. data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +24 -48
  17. data/spec/fixtures/chute_cassettes/assets/assets_get.yml +17 -33
  18. data/spec/fixtures/chute_cassettes/assets/assets_import.yml +8 -16
  19. data/spec/fixtures/chute_cassettes/assets/assets_list.yml +9 -17
  20. data/spec/fixtures/chute_cassettes/assets/assets_update.yml +18 -34
  21. data/spec/fixtures/chute_cassettes/comments/comments_create.yml +33 -57
  22. data/spec/fixtures/chute_cassettes/comments/comments_list.yml +44 -76
  23. data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +50 -90
  24. data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +41 -73
  25. data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +50 -90
  26. data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +7 -15
  27. data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +30 -54
  28. data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +10 -18
  29. data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +19 -35
  30. data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +12 -20
  31. data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +21 -37
  32. data/spec/fixtures/chute_cassettes/users/users_get.yml +14 -30
  33. data/spec/fixtures/chute_cassettes/users/users_me.yml +7 -15
  34. data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +50 -90
  35. metadata +4 -19
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{"album":{"name":"Album for Flags"}}'
9
9
  headers:
10
10
  Authorization:
11
- - OAuth API KEY
11
+ - Bearer API KEY
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accepts:
@@ -25,31 +25,23 @@ http_interactions:
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Date:
28
- - Mon, 08 Apr 2013 22:54:08 GMT
28
+ - Mon, 22 Apr 2013 22:26:14 GMT
29
29
  Etag:
30
- - ! '"748cc9cbb2dfc0a51469b70093b54e24"'
30
+ - ! '"2085e3a44f86f98194a82102eb92296b"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:54:08 GMT
32
+ - Mon, 22 Apr 2013 22:26:14 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '201'
37
- X-Available-Hourly-Calls:
38
- - '4999876'
39
- X-Available-Monthly-Calls:
40
- - '3719999817'
41
- X-Max-Hourly-Calls:
42
- - '5000000'
43
- X-Max-Monthly-Calls:
44
- - '3720000000'
45
37
  X-Powered-By:
46
38
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
47
39
  X-Rack-Cache:
48
40
  - invalidate, pass
49
41
  X-Request-Id:
50
- - 549c5f1264356b3c62aa53554e969edb
42
+ - be2b5af9756cee85c8b98ea981528168
51
43
  X-Runtime:
52
- - '0.166813'
44
+ - '0.053832'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,23 +50,23 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  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+Flags","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999817,"max_hourly_calls":5000000,"available_hourly_calls":4999876}},"data":{"id":2406200,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406200","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406200/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406200/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:54:08Z","updated_at":"2013-04-08T22:54:08Z","shortcut":"a5XGbzqc","name":"Album
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Flags"},"data":{"id":2412455,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412455","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412455/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412455/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:26:14Z","updated_at":"2013-04-22T22:26:14Z","shortcut":"a7Azystp","name":"Album
65
57
  for Flags","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
58
  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
59
  http_version:
68
- recorded_at: Mon, 08 Apr 2013 22:54:08 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:26:14 GMT
69
61
  - request:
70
62
  method: post
71
- uri: https://api.getchute.com/v2/albums/2406200/assets/import
63
+ uri: https://api.getchute.com/v2/albums/2412455/assets/import
72
64
  body:
73
65
  encoding: UTF-8
74
66
  string: ! '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
75
67
  headers:
76
68
  Authorization:
77
- - OAuth API KEY
69
+ - Bearer API KEY
78
70
  Content-Type:
79
71
  - application/json
80
72
  Accepts:
@@ -91,7 +83,7 @@ http_interactions:
91
83
  Content-Type:
92
84
  - application/json; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:54:08 GMT
86
+ - Mon, 22 Apr 2013 22:26:14 GMT
95
87
  Etag:
96
88
  - ! '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
97
89
  Last-Modified:
@@ -100,22 +92,14 @@ http_interactions:
100
92
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
101
93
  Status:
102
94
  - '200'
103
- X-Available-Hourly-Calls:
104
- - '4999875'
105
- X-Available-Monthly-Calls:
106
- - '3719999816'
107
- X-Max-Hourly-Calls:
108
- - '5000000'
109
- X-Max-Monthly-Calls:
110
- - '3720000000'
111
95
  X-Powered-By:
112
96
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
113
97
  X-Rack-Cache:
114
98
  - invalidate, pass
115
99
  X-Request-Id:
116
- - 0ed9cfa75ad821f608a885f605d25e36
100
+ - 735eb3bb416715d26443593c58d407ee
117
101
  X-Runtime:
118
- - '0.050276'
102
+ - '0.090304'
119
103
  X-Ua-Compatible:
120
104
  - IE=Edge,chrome=1
121
105
  Transfer-Encoding:
@@ -124,21 +108,21 @@ http_interactions:
124
108
  - keep-alive
125
109
  body:
126
110
  encoding: US-ASCII
127
- string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406200/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":3719999816,"max_hourly_calls":5000000,"available_hourly_calls":4999875}},"data":[{"id":79517672,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406200/assets/79517672","title":"Asset
128
- Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2406200/assets/79517672/exif","title":"Exif
129
- Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2406200/assets/79517672/geo","title":"Geo
130
- Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a5XGbzqc/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a5XGbzqc/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"}]}'
111
+ string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412455/assets/import?&urls%5B%5D=http%3A%2F%2Fsphotos-f.ak.fbcdn.net%2Fhphotos-ak-snc6%2F6393_451942991531262_1464781412_n.jpg"},"data":[{"id":79517672,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412455/assets/79517672","title":"Asset
112
+ Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412455/assets/79517672/exif","title":"Exif
113
+ Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412455/assets/79517672/geo","title":"Geo
114
+ Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a7Azystp/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a7Azystp/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
115
  http_version:
132
- recorded_at: Mon, 08 Apr 2013 22:54:08 GMT
116
+ recorded_at: Mon, 22 Apr 2013 22:26:14 GMT
133
117
  - request:
134
118
  method: post
135
- uri: https://api.getchute.com/v2/albums/2406200/assets/79517672/flags
119
+ uri: https://api.getchute.com/v2/albums/2412455/assets/79517672/flags
136
120
  body:
137
121
  encoding: UTF-8
138
122
  string: ! '{}'
139
123
  headers:
140
124
  Authorization:
141
- - OAuth API KEY
125
+ - Bearer API KEY
142
126
  Content-Type:
143
127
  - application/json
144
128
  Accepts:
@@ -155,52 +139,44 @@ http_interactions:
155
139
  Content-Type:
156
140
  - application/json; charset=utf-8
157
141
  Date:
158
- - Mon, 08 Apr 2013 22:54:09 GMT
142
+ - Mon, 22 Apr 2013 22:26:15 GMT
159
143
  Etag:
160
- - ! '"f39a219a312bf382276ca3923edc0ac1"'
144
+ - ! '"e6cc8c9e81ef053dc039f25ff03f9e55"'
161
145
  Last-Modified:
162
- - Mon, 08 Apr 2013 22:54:09 GMT
146
+ - Mon, 22 Apr 2013 22:26:15 GMT
163
147
  Server:
164
148
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
165
149
  Status:
166
150
  - '201'
167
- X-Available-Hourly-Calls:
168
- - '4999874'
169
- X-Available-Monthly-Calls:
170
- - '3719999815'
171
- X-Max-Hourly-Calls:
172
- - '5000000'
173
- X-Max-Monthly-Calls:
174
- - '3720000000'
175
151
  X-Powered-By:
176
152
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
177
153
  X-Rack-Cache:
178
154
  - invalidate, pass
179
155
  X-Request-Id:
180
- - 53aeaed49e16466183e24082a5233225
156
+ - c7c01431fceae0a05cad8eca53aedec1
181
157
  X-Runtime:
182
- - '0.047333'
158
+ - '0.048470'
183
159
  X-Ua-Compatible:
184
160
  - IE=Edge,chrome=1
185
161
  Content-Length:
186
- - '539'
162
+ - '396'
187
163
  Connection:
188
164
  - keep-alive
189
165
  body:
190
166
  encoding: US-ASCII
191
- string: ! '{"response":{"title":"Flag Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406200/assets/79517672/flags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999815,"max_hourly_calls":5000000,"available_hourly_calls":4999874}},"data":{"id":11,"links":{"self":{"href":"http://api.getchute.com/v2/flags/11","title":"Flag
192
- Details"}},"created_at":"2013-04-08T22:54:09Z","updated_at":"2013-04-08T22:54:09Z","identifier":"jgcniqrhfbzdfprngxkd1365461649","album_id":2406200,"asset_id":79517672}}'
167
+ string: ! '{"response":{"title":"Flag Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412455/assets/79517672/flags?"},"data":{"id":13,"links":{"self":{"href":"http://api.getchute.com/v2/flags/13","title":"Flag
168
+ Details"}},"created_at":"2013-04-22T22:26:15Z","updated_at":"2013-04-22T22:26:15Z","identifier":"wpmukflesnfnnlgjxeri1366669575","album_id":2412455,"asset_id":79517672}}'
193
169
  http_version:
194
- recorded_at: Mon, 08 Apr 2013 22:54:09 GMT
170
+ recorded_at: Mon, 22 Apr 2013 22:26:15 GMT
195
171
  - request:
196
172
  method: get
197
- uri: https://api.getchute.com/v2/albums/2406200/assets/79517672/flags
173
+ uri: https://api.getchute.com/v2/albums/2412455/assets/79517672/flags
198
174
  body:
199
175
  encoding: UTF-8
200
176
  string: ! '{}'
201
177
  headers:
202
178
  Authorization:
203
- - OAuth API KEY
179
+ - Bearer API KEY
204
180
  Content-Type:
205
181
  - application/json
206
182
  Accepts:
@@ -217,49 +193,41 @@ http_interactions:
217
193
  Content-Type:
218
194
  - application/json; charset=utf-8
219
195
  Date:
220
- - Mon, 08 Apr 2013 22:54:09 GMT
196
+ - Mon, 22 Apr 2013 22:26:15 GMT
221
197
  Etag:
222
- - ! '"842ac25dfc13bf0dfcfa75cdc3d8824e"'
198
+ - ! '"08b7736d974ca9dbcabbcb155c590c7b"'
223
199
  Server:
224
200
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
225
201
  Status:
226
202
  - '201'
227
- X-Available-Hourly-Calls:
228
- - '4999873'
229
- X-Available-Monthly-Calls:
230
- - '3719999814'
231
- X-Max-Hourly-Calls:
232
- - '5000000'
233
- X-Max-Monthly-Calls:
234
- - '3720000000'
235
203
  X-Powered-By:
236
204
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
237
205
  X-Rack-Cache:
238
206
  - miss
239
207
  X-Request-Id:
240
- - 3b5a79864dd5cbc7c5494321a523e236
208
+ - f12b677ffaaf378baff591f13794ac3d
241
209
  X-Runtime:
242
- - '0.022918'
210
+ - '0.030681'
243
211
  X-Ua-Compatible:
244
212
  - IE=Edge,chrome=1
245
213
  Content-Length:
246
- - '295'
214
+ - '152'
247
215
  Connection:
248
216
  - keep-alive
249
217
  body:
250
218
  encoding: US-ASCII
251
- string: ! '{"response":{"title":"Flag Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406200/assets/79517672/flags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999814,"max_hourly_calls":5000000,"available_hourly_calls":4999873}},"data":{"count":1}}'
219
+ string: ! '{"response":{"title":"Flag Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412455/assets/79517672/flags?"},"data":{"count":1}}'
252
220
  http_version:
253
- recorded_at: Mon, 08 Apr 2013 22:54:09 GMT
221
+ recorded_at: Mon, 22 Apr 2013 22:26:15 GMT
254
222
  - request:
255
223
  method: delete
256
- uri: https://api.getchute.com/v2/albums/2406200/assets/79517672/flags
224
+ uri: https://api.getchute.com/v2/albums/2412455/assets/79517672/flags
257
225
  body:
258
226
  encoding: UTF-8
259
227
  string: ! '{}'
260
228
  headers:
261
229
  Authorization:
262
- - OAuth API KEY
230
+ - Bearer API KEY
263
231
  Content-Type:
264
232
  - application/json
265
233
  Accepts:
@@ -276,38 +244,30 @@ http_interactions:
276
244
  Content-Type:
277
245
  - application/json; charset=utf-8
278
246
  Date:
279
- - Mon, 08 Apr 2013 22:54:10 GMT
247
+ - Mon, 22 Apr 2013 22:26:16 GMT
280
248
  Etag:
281
- - ! '"d812babab55f9ced5e25ca402124cbce"'
249
+ - ! '"f613244e20ac75b6f1bf6ca363338c2c"'
282
250
  Server:
283
251
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
284
252
  Status:
285
253
  - '200'
286
- X-Available-Hourly-Calls:
287
- - '4999872'
288
- X-Available-Monthly-Calls:
289
- - '3719999813'
290
- X-Max-Hourly-Calls:
291
- - '5000000'
292
- X-Max-Monthly-Calls:
293
- - '3720000000'
294
254
  X-Powered-By:
295
255
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
296
256
  X-Rack-Cache:
297
257
  - invalidate, pass
298
258
  X-Request-Id:
299
- - 8fb17162ada308a5f8947c6b0f47331c
259
+ - bae2432cf437d4acb653476e6aa8300b
300
260
  X-Runtime:
301
- - '0.029834'
261
+ - '0.045362'
302
262
  X-Ua-Compatible:
303
263
  - IE=Edge,chrome=1
304
264
  Content-Length:
305
- - '278'
265
+ - '135'
306
266
  Connection:
307
267
  - keep-alive
308
268
  body:
309
269
  encoding: US-ASCII
310
- string: ! '{"response":{"title":"Flag Removed","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406200/assets/79517672/flags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999813,"max_hourly_calls":5000000,"available_hourly_calls":4999872}}}'
270
+ string: ! '{"response":{"title":"Flag Removed","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412455/assets/79517672/flags?"}}'
311
271
  http_version:
312
- recorded_at: Mon, 08 Apr 2013 22:54:10 GMT
272
+ recorded_at: Mon, 22 Apr 2013 22:26:16 GMT
313
273
  recorded_with: VCR 2.2.5
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{"album":{"name":"Album for Hearts"}}'
9
9
  headers:
10
10
  Authorization:
11
- - OAuth API KEY
11
+ - Bearer API KEY
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accepts:
@@ -25,31 +25,23 @@ http_interactions:
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Date:
28
- - Mon, 08 Apr 2013 22:54:10 GMT
28
+ - Mon, 22 Apr 2013 22:26:16 GMT
29
29
  Etag:
30
- - ! '"2591fdf82ab04031f4c118393b98b95e"'
30
+ - ! '"f095b14bdd629354ffb60573a0e08f77"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:54:10 GMT
32
+ - Mon, 22 Apr 2013 22:26:16 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
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
37
  X-Powered-By:
46
38
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
47
39
  X-Rack-Cache:
48
40
  - invalidate, pass
49
41
  X-Request-Id:
50
- - d4b2e1153629a2b0f540f4d49884fe34
42
+ - a3e6c97cc146ca32f0cb1217bd2ccd91
51
43
  X-Runtime:
52
- - '0.031439'
44
+ - '0.052896'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,23 +50,23 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  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
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Hearts"},"data":{"id":2412456,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412456","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412456/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412456/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:26:16Z","updated_at":"2013-04-22T22:26:16Z","shortcut":"a7AAyfzq","name":"Album
65
57
  for Hearts","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
58
  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
59
  http_version:
68
- recorded_at: Mon, 08 Apr 2013 22:54:11 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:26:17 GMT
69
61
  - request:
70
62
  method: post
71
- uri: https://api.getchute.com/v2/albums/2406201/assets/import
63
+ uri: https://api.getchute.com/v2/albums/2412456/assets/import
72
64
  body:
73
65
  encoding: UTF-8
74
66
  string: ! '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
75
67
  headers:
76
68
  Authorization:
77
- - OAuth API KEY
69
+ - Bearer API KEY
78
70
  Content-Type:
79
71
  - application/json
80
72
  Accepts:
@@ -91,7 +83,7 @@ http_interactions:
91
83
  Content-Type:
92
84
  - application/json; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:54:11 GMT
86
+ - Mon, 22 Apr 2013 22:26:17 GMT
95
87
  Etag:
96
88
  - ! '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
97
89
  Last-Modified:
@@ -100,22 +92,14 @@ http_interactions:
100
92
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
101
93
  Status:
102
94
  - '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
95
  X-Powered-By:
112
96
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
113
97
  X-Rack-Cache:
114
98
  - invalidate, pass
115
99
  X-Request-Id:
116
- - 55f30cfae48c83c33a9d8781d7ce60f1
100
+ - a78f58bb255e8e49047a6512bd956fcb
117
101
  X-Runtime:
118
- - '0.049422'
102
+ - '0.078380'
119
103
  X-Ua-Compatible:
120
104
  - IE=Edge,chrome=1
121
105
  Transfer-Encoding:
@@ -124,21 +108,21 @@ http_interactions:
124
108
  - keep-alive
125
109
  body:
126
110
  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"}]}'
111
+ string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412456/assets/import?&urls%5B%5D=http%3A%2F%2Fsphotos-f.ak.fbcdn.net%2Fhphotos-ak-snc6%2F6393_451942991531262_1464781412_n.jpg"},"data":[{"id":79517672,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672","title":"Asset
112
+ Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672/exif","title":"Exif
113
+ Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672/geo","title":"Geo
114
+ Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a7AAyfzq/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a7AAyfzq/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
115
  http_version:
132
- recorded_at: Mon, 08 Apr 2013 22:54:11 GMT
116
+ recorded_at: Mon, 22 Apr 2013 22:26:17 GMT
133
117
  - request:
134
118
  method: post
135
- uri: https://api.getchute.com/v2/albums/2406201/assets/79517672/hearts
119
+ uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
136
120
  body:
137
121
  encoding: UTF-8
138
122
  string: ! '{}'
139
123
  headers:
140
124
  Authorization:
141
- - OAuth API KEY
125
+ - Bearer API KEY
142
126
  Content-Type:
143
127
  - application/json
144
128
  Accepts:
@@ -155,52 +139,44 @@ http_interactions:
155
139
  Content-Type:
156
140
  - application/json; charset=utf-8
157
141
  Date:
158
- - Mon, 08 Apr 2013 22:54:12 GMT
142
+ - Mon, 22 Apr 2013 22:26:18 GMT
159
143
  Etag:
160
- - ! '"86ce47523145056169d197d192be1dde"'
144
+ - ! '"27fc9ba3b69149376f25cde623f6681c"'
161
145
  Last-Modified:
162
- - Mon, 08 Apr 2013 22:54:12 GMT
146
+ - Mon, 22 Apr 2013 22:26:18 GMT
163
147
  Server:
164
148
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
165
149
  Status:
166
150
  - '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
151
  X-Powered-By:
176
152
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
177
153
  X-Rack-Cache:
178
154
  - invalidate, pass
179
155
  X-Request-Id:
180
- - c9d14394cdb41d71fbec215f09cb02f4
156
+ - dd0ee62768d3f77d0bd266c4517668a2
181
157
  X-Runtime:
182
- - '0.040108'
158
+ - '0.047265'
183
159
  X-Ua-Compatible:
184
160
  - IE=Edge,chrome=1
185
161
  Content-Length:
186
- - '566'
162
+ - '423'
187
163
  Connection:
188
164
  - keep-alive
189
165
  body:
190
166
  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}}'
167
+ string: ! '{"response":{"title":"Heart Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts?"},"data":{"id":386630,"links":{"href":"http://api.getchute.com/v2/hearts/gjvxwtlgmtkcxauoecth1366669578","title":"Heart
168
+ Details"},"created_at":"2013-04-22T22:26:18Z","updated_at":"2013-04-22T22:26:18Z","identifier":"gjvxwtlgmtkcxauoecth1366669578","album_id":2412456,"asset_id":79517672}}'
193
169
  http_version:
194
- recorded_at: Mon, 08 Apr 2013 22:54:12 GMT
170
+ recorded_at: Mon, 22 Apr 2013 22:26:19 GMT
195
171
  - request:
196
172
  method: get
197
- uri: https://api.getchute.com/v2/albums/2406201/assets/79517672/hearts
173
+ uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
198
174
  body:
199
175
  encoding: UTF-8
200
176
  string: ! '{}'
201
177
  headers:
202
178
  Authorization:
203
- - OAuth API KEY
179
+ - Bearer API KEY
204
180
  Content-Type:
205
181
  - application/json
206
182
  Accepts:
@@ -217,38 +193,30 @@ http_interactions:
217
193
  Content-Type:
218
194
  - application/json; charset=utf-8
219
195
  Date:
220
- - Mon, 08 Apr 2013 22:54:12 GMT
196
+ - Mon, 22 Apr 2013 22:26:19 GMT
221
197
  Etag:
222
- - ! '"e28152b06ce0016868a107859ed5bb4f"'
198
+ - ! '"bb708aa9266df468c0edc85f94120a12"'
223
199
  Server:
224
200
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
225
201
  Status:
226
202
  - '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
203
  X-Powered-By:
236
204
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
237
205
  X-Rack-Cache:
238
206
  - miss
239
207
  X-Request-Id:
240
- - ec33fc904036a9a6d6ca77143f908dfe
208
+ - 3da135c746d795d1869c574fcc83620f
241
209
  X-Runtime:
242
- - '0.021585'
210
+ - '0.029826'
243
211
  X-Ua-Compatible:
244
212
  - IE=Edge,chrome=1
245
213
  Content-Length:
246
- - '297'
214
+ - '154'
247
215
  Connection:
248
216
  - keep-alive
249
217
  body:
250
218
  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}}'
219
+ string: ! '{"response":{"title":"Heart Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts?"},"data":{"count":1}}'
252
220
  http_version:
253
- recorded_at: Mon, 08 Apr 2013 22:54:12 GMT
221
+ recorded_at: Mon, 22 Apr 2013 22:26:19 GMT
254
222
  recorded_with: VCR 2.2.5