chute 2.0.0 → 2.0.1
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/Rakefile +0 -1
- data/chute.gemspec +3 -5
- data/lib/chute/connection.rb +1 -1
- data/lib/chute/v2/accounts.rb +13 -0
- data/lib/chute/version.rb +1 -1
- data/spec/chute/connection_spec.rb +1 -1
- data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +13 -21
- data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +23 -47
- data/spec/fixtures/chute_cassettes/albums/albums_create.yml +13 -21
- data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +20 -36
- data/spec/fixtures/chute_cassettes/albums/albums_get.yml +23 -39
- data/spec/fixtures/chute_cassettes/albums/albums_list.yml +27 -35
- data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +17 -33
- data/spec/fixtures/chute_cassettes/albums/albums_update.yml +23 -39
- data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +20 -36
- data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +24 -48
- data/spec/fixtures/chute_cassettes/assets/assets_get.yml +17 -33
- data/spec/fixtures/chute_cassettes/assets/assets_import.yml +8 -16
- data/spec/fixtures/chute_cassettes/assets/assets_list.yml +9 -17
- data/spec/fixtures/chute_cassettes/assets/assets_update.yml +18 -34
- data/spec/fixtures/chute_cassettes/comments/comments_create.yml +33 -57
- data/spec/fixtures/chute_cassettes/comments/comments_list.yml +44 -76
- data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +50 -90
- data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +41 -73
- data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +50 -90
- data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +7 -15
- data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +30 -54
- data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +10 -18
- data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +19 -35
- data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +12 -20
- data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +21 -37
- data/spec/fixtures/chute_cassettes/users/users_get.yml +14 -30
- data/spec/fixtures/chute_cassettes/users/users_me.yml +7 -15
- data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +50 -90
- metadata +4 -19
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ! '{"album":{"name":"Album for Tags"}}'
|
9
9
|
headers:
|
10
10
|
Authorization:
|
11
|
-
-
|
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,
|
28
|
+
- Mon, 22 Apr 2013 22:26:20 GMT
|
29
29
|
Etag:
|
30
|
-
- ! '"
|
30
|
+
- ! '"8537b4eccdf342fbdd783d057410d1e6"'
|
31
31
|
Last-Modified:
|
32
|
-
- Mon,
|
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
|
-
-
|
42
|
+
- 2bb84b59d8811266ded88260eaf8ae8d
|
51
43
|
X-Runtime:
|
52
|
-
- '0.
|
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"
|
62
|
-
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/
|
63
|
-
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/
|
64
|
-
Listing"}},"created_at":"2013-04-
|
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,
|
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/
|
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
|
-
-
|
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,
|
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
|
-
-
|
100
|
+
- f5ab1b1999300d844f3e9e669b7a780b
|
117
101
|
X-Runtime:
|
118
|
-
- '0.
|
102
|
+
- '0.259477'
|
119
103
|
X-Ua-Compatible:
|
120
104
|
- IE=Edge,chrome=1
|
121
|
-
|
122
|
-
-
|
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/
|
128
|
-
Details"},"exif":{"href":"http://api.getchute.com/v2/albums/
|
129
|
-
Details"},"geo":{"href":"http://api.getchute.com/v2/albums/
|
130
|
-
Details"},"heart":{"href":"http://api.getchute.com/v2/albums/
|
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,
|
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/
|
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
|
-
-
|
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,
|
142
|
+
- Mon, 22 Apr 2013 22:26:21 GMT
|
159
143
|
Etag:
|
160
|
-
- ! '"
|
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
|
-
-
|
154
|
+
- 07e3d477996ef911de0850a55c01d403
|
179
155
|
X-Runtime:
|
180
|
-
- '0.
|
156
|
+
- '0.040582'
|
181
157
|
X-Ua-Compatible:
|
182
158
|
- IE=Edge,chrome=1
|
183
159
|
Content-Length:
|
184
|
-
- '
|
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/
|
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,
|
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/
|
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
|
-
-
|
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,
|
193
|
+
- Mon, 22 Apr 2013 22:26:21 GMT
|
218
194
|
Etag:
|
219
|
-
- ! '"
|
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
|
-
-
|
205
|
+
- 3a8f2afce65e8b75dbd51f32420d3d70
|
238
206
|
X-Runtime:
|
239
|
-
- '0.
|
207
|
+
- '0.030783'
|
240
208
|
X-Ua-Compatible:
|
241
209
|
- IE=Edge,chrome=1
|
242
210
|
Content-Length:
|
243
|
-
- '
|
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/
|
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,
|
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/
|
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
|
-
-
|
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,
|
244
|
+
- Mon, 22 Apr 2013 22:26:22 GMT
|
277
245
|
Etag:
|
278
|
-
- ! '"
|
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
|
-
-
|
256
|
+
- 3dadb4aed5c37af9e72b6ff8bb7c9506
|
297
257
|
X-Runtime:
|
298
|
-
- '0.
|
258
|
+
- '0.037480'
|
299
259
|
X-Ua-Compatible:
|
300
260
|
- IE=Edge,chrome=1
|
301
261
|
Content-Length:
|
302
|
-
- '
|
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/
|
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,
|
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
|
-
-
|
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,
|
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
|
-
-
|
38
|
+
- e810e662696d82161a77bc1404fca817
|
47
39
|
X-Runtime:
|
48
|
-
- '0.
|
40
|
+
- '0.037919'
|
49
41
|
X-Ua-Compatible:
|
50
42
|
- IE=Edge,chrome=1
|
51
43
|
Content-Length:
|
52
|
-
- '
|
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"
|
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,
|
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
|
-
-
|
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,
|
28
|
+
- Mon, 22 Apr 2013 22:26:26 GMT
|
29
29
|
Etag:
|
30
|
-
- ! '"
|
30
|
+
- ! '"a71bda56f89418650fb806ee5591d8e2"'
|
31
31
|
Last-Modified:
|
32
|
-
- Mon,
|
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
|
-
-
|
42
|
+
- 7086a6e7d3c99ca166de02d4054ab823
|
51
43
|
X-Runtime:
|
52
|
-
- '0.
|
44
|
+
- '0.030596'
|
53
45
|
X-Ua-Compatible:
|
54
46
|
- IE=Edge,chrome=1
|
55
|
-
|
56
|
-
-
|
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?"
|
62
|
-
Details"}},"created_at":"2013-04-
|
63
|
-
Details"}},"created_at":"2013-04-
|
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,
|
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/
|
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
|
-
-
|
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,
|
83
|
+
- Mon, 22 Apr 2013 22:26:26 GMT
|
92
84
|
Etag:
|
93
|
-
- ! '"
|
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
|
-
-
|
95
|
+
- 41da88d5d6b8ff2153f10fdda423f2d8
|
112
96
|
X-Runtime:
|
113
|
-
- '0.
|
97
|
+
- '0.037769'
|
114
98
|
X-Ua-Compatible:
|
115
99
|
- IE=Edge,chrome=1
|
116
100
|
Content-Length:
|
117
|
-
- '
|
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/
|
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,
|
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/
|
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
|
-
-
|
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,
|
134
|
+
- Mon, 22 Apr 2013 22:26:27 GMT
|
151
135
|
Etag:
|
152
|
-
- ! '"
|
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
|
-
-
|
146
|
+
- 6f2f29212edb926cd3f3b06bbae91a90
|
171
147
|
X-Runtime:
|
172
|
-
- '0.
|
148
|
+
- '0.036242'
|
173
149
|
X-Ua-Compatible:
|
174
150
|
- IE=Edge,chrome=1
|
175
151
|
Content-Length:
|
176
|
-
- '
|
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/
|
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,
|
159
|
+
recorded_at: Mon, 22 Apr 2013 22:26:27 GMT
|
184
160
|
recorded_with: VCR 2.2.5
|