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 Tags"}}'
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:13 GMT
28
+ - Mon, 22 Apr 2013 22:26:20 GMT
29
29
  Etag:
30
- - ! '"ca2f245bf705645cc08106734d4ef034"'
30
+ - ! '"8537b4eccdf342fbdd783d057410d1e6"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:54:13 GMT
32
+ - Mon, 22 Apr 2013 22:26:20 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
- - '4999866'
39
- X-Available-Monthly-Calls:
40
- - '3719999807'
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
- - ff6373c42754b262f693b58e72ed8dcf
42
+ - 2bb84b59d8811266ded88260eaf8ae8d
51
43
  X-Runtime:
52
- - '0.103295'
44
+ - '0.046190'
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+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
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Tags"},"data":{"id":2412457,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412457","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412457/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412457/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:26:20Z","updated_at":"2013-04-22T22:26:20Z","shortcut":"a7ABrksu","name":"Album
65
57
  for Tags","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:13 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:26:20 GMT
69
61
  - request:
70
62
  method: post
71
- uri: https://api.getchute.com/v2/albums/2406202/assets/import
63
+ uri: https://api.getchute.com/v2/albums/2412457/assets/import
72
64
  body:
73
65
  encoding: UTF-8
74
66
  string: ! '{"urls":["http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.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:13 GMT
86
+ - Mon, 22 Apr 2013 22:26:20 GMT
95
87
  Etag:
96
88
  - ! '"e109632f58397e26b953c827c1486da8"'
97
89
  Last-Modified:
@@ -100,45 +92,37 @@ 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
- - '4999865'
105
- X-Available-Monthly-Calls:
106
- - '3719999806'
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
- - 813246eb843b69b030cc1581a33dc1c5
100
+ - f5ab1b1999300d844f3e9e669b7a780b
117
101
  X-Runtime:
118
- - '0.050684'
102
+ - '0.259477'
119
103
  X-Ua-Compatible:
120
104
  - IE=Edge,chrome=1
121
- Content-Length:
122
- - '1445'
105
+ Transfer-Encoding:
106
+ - chunked
123
107
  Connection:
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/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"}]}'
111
+ string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412457/assets/import?&urls%5B%5D=http%3A%2F%2Ffarm9.staticflickr.com%2F8194%2F8141607138_bfaea3afd9.jpg"},"data":[{"id":72569916,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916","title":"Asset
112
+ Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916/exif","title":"Exif
113
+ Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412457/assets/72569916/geo","title":"Geo
114
+ Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a7ABrksu/assets/4UuKweohy/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a7ABrksu/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
115
  http_version:
132
- recorded_at: Mon, 08 Apr 2013 22:54:13 GMT
116
+ recorded_at: Mon, 22 Apr 2013 22:26:20 GMT
133
117
  - request:
134
118
  method: post
135
- uri: https://api.getchute.com/v2/albums/2406202/assets/72569916/tags
119
+ uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
136
120
  body:
137
121
  encoding: UTF-8
138
122
  string: ! '{"tags":["TAG","AnotherTag"]}'
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,49 +139,41 @@ http_interactions:
155
139
  Content-Type:
156
140
  - application/json; charset=utf-8
157
141
  Date:
158
- - Mon, 08 Apr 2013 22:54:14 GMT
142
+ - Mon, 22 Apr 2013 22:26:21 GMT
159
143
  Etag:
160
- - ! '"48a0a32b2617d11206eb2a9c8562380f"'
144
+ - ! '"ccf5cb6f5d93480b308f82baacce6544"'
161
145
  Server:
162
146
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
163
147
  Status:
164
148
  - '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
149
  X-Powered-By:
174
150
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
175
151
  X-Rack-Cache:
176
152
  - invalidate, pass
177
153
  X-Request-Id:
178
- - ea7a7a0b539a89ea55b1f3938cb76142
154
+ - 07e3d477996ef911de0850a55c01d403
179
155
  X-Runtime:
180
- - '0.029292'
156
+ - '0.040582'
181
157
  X-Ua-Compatible:
182
158
  - IE=Edge,chrome=1
183
159
  Content-Length:
184
- - '394'
160
+ - '251'
185
161
  Connection:
186
162
  - keep-alive
187
163
  body:
188
164
  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"]}'
165
+ string: ! '{"response":{"title":"Tags Added","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?tag%5Btags%5D%5B%5D=TAG&tag%5Btags%5D%5B%5D=AnotherTag&tags%5B%5D=TAG&tags%5B%5D=AnotherTag"},"data":["TAG","AnotherTag"]}'
190
166
  http_version:
191
- recorded_at: Mon, 08 Apr 2013 22:54:14 GMT
167
+ recorded_at: Mon, 22 Apr 2013 22:26:21 GMT
192
168
  - request:
193
169
  method: get
194
- uri: https://api.getchute.com/v2/albums/2406202/assets/72569916/tags
170
+ uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
195
171
  body:
196
172
  encoding: UTF-8
197
173
  string: ! '{}'
198
174
  headers:
199
175
  Authorization:
200
- - OAuth API KEY
176
+ - Bearer API KEY
201
177
  Content-Type:
202
178
  - application/json
203
179
  Accepts:
@@ -214,49 +190,41 @@ http_interactions:
214
190
  Content-Type:
215
191
  - application/json; charset=utf-8
216
192
  Date:
217
- - Mon, 08 Apr 2013 22:54:14 GMT
193
+ - Mon, 22 Apr 2013 22:26:21 GMT
218
194
  Etag:
219
- - ! '"c46b1bd63740d2d2522c2b6b0381d89c"'
195
+ - ! '"9e8968bc56ceaf053c2378a30c49b318"'
220
196
  Server:
221
197
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
222
198
  Status:
223
199
  - '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
200
  X-Powered-By:
233
201
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
234
202
  X-Rack-Cache:
235
203
  - miss
236
204
  X-Request-Id:
237
- - d03709220d3f6ddc7ea92baa00b3721a
205
+ - 3a8f2afce65e8b75dbd51f32420d3d70
238
206
  X-Runtime:
239
- - '0.023156'
207
+ - '0.030783'
240
208
  X-Ua-Compatible:
241
209
  - IE=Edge,chrome=1
242
210
  Content-Length:
243
- - '302'
211
+ - '159'
244
212
  Connection:
245
213
  - keep-alive
246
214
  body:
247
215
  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"]}'
216
+ string: ! '{"response":{"title":"Tags List","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/assets/72569916/tags?"},"data":["TAG","AnotherTag"]}'
249
217
  http_version:
250
- recorded_at: Mon, 08 Apr 2013 22:54:14 GMT
218
+ recorded_at: Mon, 22 Apr 2013 22:26:21 GMT
251
219
  - request:
252
220
  method: put
253
- uri: https://api.getchute.com/v2/albums/2406202/assets/72569916/tags
221
+ uri: https://api.getchute.com/v2/albums/2412457/assets/72569916/tags
254
222
  body:
255
223
  encoding: UTF-8
256
224
  string: ! '{"tags":["Replaced TAG1","Replaced Tag2"]}'
257
225
  headers:
258
226
  Authorization:
259
- - OAuth API KEY
227
+ - Bearer API KEY
260
228
  Content-Type:
261
229
  - application/json
262
230
  Accepts:
@@ -273,39 +241,31 @@ http_interactions:
273
241
  Content-Type:
274
242
  - application/json; charset=utf-8
275
243
  Date:
276
- - Mon, 08 Apr 2013 22:54:15 GMT
244
+ - Mon, 22 Apr 2013 22:26:22 GMT
277
245
  Etag:
278
- - ! '"5c71e4ab8f4b2ca0915e6c5577652f31"'
246
+ - ! '"b9f0c21ed2a878a345dc225ad673e807"'
279
247
  Server:
280
248
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
281
249
  Status:
282
250
  - '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
251
  X-Powered-By:
292
252
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
293
253
  X-Rack-Cache:
294
254
  - invalidate, pass
295
255
  X-Request-Id:
296
- - 89224cc24cdccb0b68f8c01e11315811
256
+ - 3dadb4aed5c37af9e72b6ff8bb7c9506
297
257
  X-Runtime:
298
- - '0.029939'
258
+ - '0.037480'
299
259
  X-Ua-Compatible:
300
260
  - IE=Edge,chrome=1
301
261
  Content-Length:
302
- - '435'
262
+ - '292'
303
263
  Connection:
304
264
  - keep-alive
305
265
  body:
306
266
  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
267
+ string: ! '{"response":{"title":"Tags Updated","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412457/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"},"data":["Replaced
308
268
  TAG1","Replaced Tag2"]}'
309
269
  http_version:
310
- recorded_at: Mon, 08 Apr 2013 22:54:15 GMT
270
+ recorded_at: Mon, 22 Apr 2013 22:26:22 GMT
311
271
  recorded_with: VCR 2.2.5
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{"url":"http://www.google.com","event":"asset_created_once"}'
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,38 +25,30 @@ http_interactions:
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Date:
28
- - Mon, 08 Apr 2013 22:54:15 GMT
28
+ - Mon, 22 Apr 2013 22:26:22 GMT
29
29
  Server:
30
30
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
31
31
  Status:
32
32
  - '400'
33
- X-Available-Hourly-Calls:
34
- - '4999860'
35
- X-Available-Monthly-Calls:
36
- - '3719999801'
37
- X-Max-Hourly-Calls:
38
- - '5000000'
39
- X-Max-Monthly-Calls:
40
- - '3720000000'
41
33
  X-Powered-By:
42
34
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
43
35
  X-Rack-Cache:
44
36
  - invalidate, pass
45
37
  X-Request-Id:
46
- - 169c5aa8cb7aa44dc15e8979cbf6d513
38
+ - e810e662696d82161a77bc1404fca817
47
39
  X-Runtime:
48
- - '0.038878'
40
+ - '0.037919'
49
41
  X-Ua-Compatible:
50
42
  - IE=Edge,chrome=1
51
43
  Content-Length:
52
- - '567'
44
+ - '424'
53
45
  Connection:
54
46
  - keep-alive
55
47
  body:
56
48
  encoding: US-ASCII
57
49
  string: ! '{"response":{"error":["Event is invalid. Valid values are: asset_created
58
50
  / asset_updated / asset_deleted / parcel_created / album_created / album_updated
59
- / album_deleted / album_asset_moderated / comment_created"],"version":2,"code":400,"href":"https://api.getchute.com/v2/triggers?event=asset_created_once&trigger%5Bevent%5D=asset_created_once&trigger%5Burl%5D=http%3A%2F%2Fwww.google.com&url=http%3A%2F%2Fwww.google.com","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999801,"max_hourly_calls":5000000,"available_hourly_calls":4999860}}}'
51
+ / album_deleted / album_asset_moderated / comment_created"],"version":2,"code":400,"href":"https://api.getchute.com/v2/triggers?event=asset_created_once&trigger%5Bevent%5D=asset_created_once&trigger%5Burl%5D=http%3A%2F%2Fwww.google.com&url=http%3A%2F%2Fwww.google.com"}}'
60
52
  http_version:
61
- recorded_at: Mon, 08 Apr 2013 22:54:16 GMT
53
+ recorded_at: Mon, 22 Apr 2013 22:26:22 GMT
62
54
  recorded_with: VCR 2.2.5
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{}'
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,53 +25,45 @@ http_interactions:
25
25
  Content-Type:
26
26
  - application/json; charset=utf-8
27
27
  Date:
28
- - Mon, 08 Apr 2013 22:54:19 GMT
28
+ - Mon, 22 Apr 2013 22:26:26 GMT
29
29
  Etag:
30
- - ! '"17d5caec8e7adc56eeb9d38a7ac4b662"'
30
+ - ! '"a71bda56f89418650fb806ee5591d8e2"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:54:17 GMT
32
+ - Mon, 22 Apr 2013 22:26:24 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '200'
37
- X-Available-Hourly-Calls:
38
- - '4999853'
39
- X-Available-Monthly-Calls:
40
- - '3719999794'
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
  - miss
49
41
  X-Request-Id:
50
- - 7e357433fff3ddf90a63e34128468d44
42
+ - 7086a6e7d3c99ca166de02d4054ab823
51
43
  X-Runtime:
52
- - '0.022416'
44
+ - '0.030596'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
- Transfer-Encoding:
56
- - chunked
47
+ Content-Length:
48
+ - '619'
57
49
  Connection:
58
50
  - keep-alive
59
51
  body:
60
52
  encoding: US-ASCII
61
- string: ! '{"response":{"title":"Trigger Listing","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999794,"max_hourly_calls":5000000,"available_hourly_calls":4999853}},"data":[{"id":30,"links":{"self":{"href":"http://api.getchute.com/v2/triggers/30","title":"Trigger
62
- Details"}},"created_at":"2013-04-08T22:54:16Z","updated_at":"2013-04-08T22:54:16Z","url":"http://www.opencalais.com/HTTPexamples","event":"asset_created"},{"id":31,"links":{"self":{"href":"http://api.getchute.com/v2/triggers/31","title":"Trigger
63
- Details"}},"created_at":"2013-04-08T22:54:17Z","updated_at":"2013-04-08T22:54:17Z","url":"http://www.opencalais.com/HTTPexamples","event":"album_asset_moderated"}]}'
53
+ string: ! '{"response":{"title":"Trigger Listing","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers?"},"data":[{"id":36,"links":{"self":{"href":"http://api.getchute.com/v2/triggers/36","title":"Trigger
54
+ Details"}},"created_at":"2013-04-22T22:26:23Z","updated_at":"2013-04-22T22:26:23Z","url":"http://www.opencalais.com/HTTPexamples","event":"asset_created"},{"id":37,"links":{"self":{"href":"http://api.getchute.com/v2/triggers/37","title":"Trigger
55
+ Details"}},"created_at":"2013-04-22T22:26:23Z","updated_at":"2013-04-22T22:26:24Z","url":"http://www.opencalais.com/HTTPexamples","event":"album_asset_moderated"}]}'
64
56
  http_version:
65
- recorded_at: Mon, 08 Apr 2013 22:54:19 GMT
57
+ recorded_at: Mon, 22 Apr 2013 22:26:26 GMT
66
58
  - request:
67
59
  method: delete
68
- uri: https://api.getchute.com/v2/triggers/30
60
+ uri: https://api.getchute.com/v2/triggers/36
69
61
  body:
70
62
  encoding: UTF-8
71
63
  string: ! '{}'
72
64
  headers:
73
65
  Authorization:
74
- - OAuth API KEY
66
+ - Bearer API KEY
75
67
  Content-Type:
76
68
  - application/json
77
69
  Accepts:
@@ -88,49 +80,41 @@ http_interactions:
88
80
  Content-Type:
89
81
  - application/json; charset=utf-8
90
82
  Date:
91
- - Mon, 08 Apr 2013 22:54:20 GMT
83
+ - Mon, 22 Apr 2013 22:26:26 GMT
92
84
  Etag:
93
- - ! '"16f79548df7f5d59ef1f8e68418e803f"'
85
+ - ! '"c8f8c53fcc291a58d62d5277b0d78371"'
94
86
  Server:
95
87
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
96
88
  Status:
97
89
  - '200'
98
- X-Available-Hourly-Calls:
99
- - '4999852'
100
- X-Available-Monthly-Calls:
101
- - '3719999793'
102
- X-Max-Hourly-Calls:
103
- - '5000000'
104
- X-Max-Monthly-Calls:
105
- - '3720000000'
106
90
  X-Powered-By:
107
91
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
108
92
  X-Rack-Cache:
109
93
  - invalidate, pass
110
94
  X-Request-Id:
111
- - 223dec93f4e9ebc898b6d109956ca9d3
95
+ - 41da88d5d6b8ff2153f10fdda423f2d8
112
96
  X-Runtime:
113
- - '0.019346'
97
+ - '0.037769'
114
98
  X-Ua-Compatible:
115
99
  - IE=Edge,chrome=1
116
100
  Content-Length:
117
- - '256'
101
+ - '113'
118
102
  Connection:
119
103
  - keep-alive
120
104
  body:
121
105
  encoding: US-ASCII
122
- string: ! '{"response":{"title":"Trigger Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers/30?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999793,"max_hourly_calls":5000000,"available_hourly_calls":4999852}}}'
106
+ string: ! '{"response":{"title":"Trigger Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers/36?"}}'
123
107
  http_version:
124
- recorded_at: Mon, 08 Apr 2013 22:54:20 GMT
108
+ recorded_at: Mon, 22 Apr 2013 22:26:26 GMT
125
109
  - request:
126
110
  method: delete
127
- uri: https://api.getchute.com/v2/triggers/31
111
+ uri: https://api.getchute.com/v2/triggers/37
128
112
  body:
129
113
  encoding: UTF-8
130
114
  string: ! '{}'
131
115
  headers:
132
116
  Authorization:
133
- - OAuth API KEY
117
+ - Bearer API KEY
134
118
  Content-Type:
135
119
  - application/json
136
120
  Accepts:
@@ -147,38 +131,30 @@ http_interactions:
147
131
  Content-Type:
148
132
  - application/json; charset=utf-8
149
133
  Date:
150
- - Mon, 08 Apr 2013 22:54:20 GMT
134
+ - Mon, 22 Apr 2013 22:26:27 GMT
151
135
  Etag:
152
- - ! '"cc89b69ac296c15d0a8448ce9c2f6131"'
136
+ - ! '"cf62525e6a760b4f771cc84e44822db1"'
153
137
  Server:
154
138
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
155
139
  Status:
156
140
  - '200'
157
- X-Available-Hourly-Calls:
158
- - '4999851'
159
- X-Available-Monthly-Calls:
160
- - '3719999792'
161
- X-Max-Hourly-Calls:
162
- - '5000000'
163
- X-Max-Monthly-Calls:
164
- - '3720000000'
165
141
  X-Powered-By:
166
142
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
167
143
  X-Rack-Cache:
168
144
  - invalidate, pass
169
145
  X-Request-Id:
170
- - a1a2d0708b2b41ef4174bee6e1e55771
146
+ - 6f2f29212edb926cd3f3b06bbae91a90
171
147
  X-Runtime:
172
- - '0.019939'
148
+ - '0.036242'
173
149
  X-Ua-Compatible:
174
150
  - IE=Edge,chrome=1
175
151
  Content-Length:
176
- - '256'
152
+ - '113'
177
153
  Connection:
178
154
  - keep-alive
179
155
  body:
180
156
  encoding: US-ASCII
181
- string: ! '{"response":{"title":"Trigger Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers/31?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999792,"max_hourly_calls":5000000,"available_hourly_calls":4999851}}}'
157
+ string: ! '{"response":{"title":"Trigger Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers/37?"}}'
182
158
  http_version:
183
- recorded_at: Mon, 08 Apr 2013 22:54:20 GMT
159
+ recorded_at: Mon, 22 Apr 2013 22:26:27 GMT
184
160
  recorded_with: VCR 2.2.5