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,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/triggers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"url":"http://www.google.com","event":"asset_created_once"}'
|
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: 400
|
21
|
+
message: Bad Request
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:15 GMT
|
29
|
+
Server:
|
30
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
31
|
+
Status:
|
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
|
+
X-Powered-By:
|
42
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
43
|
+
X-Rack-Cache:
|
44
|
+
- invalidate, pass
|
45
|
+
X-Request-Id:
|
46
|
+
- 169c5aa8cb7aa44dc15e8979cbf6d513
|
47
|
+
X-Runtime:
|
48
|
+
- '0.038878'
|
49
|
+
X-Ua-Compatible:
|
50
|
+
- IE=Edge,chrome=1
|
51
|
+
Content-Length:
|
52
|
+
- '567'
|
53
|
+
Connection:
|
54
|
+
- keep-alive
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ! '{"response":{"error":["Event is invalid. Valid values are: asset_created
|
58
|
+
/ 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}}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Mon, 08 Apr 2013 22:54:16 GMT
|
62
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,184 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.getchute.com/v2/triggers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{}'
|
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: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- must-revalidate, private, max-age=0
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:19 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"17d5caec8e7adc56eeb9d38a7ac4b662"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:17 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
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
|
+
X-Powered-By:
|
46
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
47
|
+
X-Rack-Cache:
|
48
|
+
- miss
|
49
|
+
X-Request-Id:
|
50
|
+
- 7e357433fff3ddf90a63e34128468d44
|
51
|
+
X-Runtime:
|
52
|
+
- '0.022416'
|
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":"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"}]}'
|
64
|
+
http_version:
|
65
|
+
recorded_at: Mon, 08 Apr 2013 22:54:19 GMT
|
66
|
+
- request:
|
67
|
+
method: delete
|
68
|
+
uri: https://api.getchute.com/v2/triggers/30
|
69
|
+
body:
|
70
|
+
encoding: UTF-8
|
71
|
+
string: ! '{}'
|
72
|
+
headers:
|
73
|
+
Authorization:
|
74
|
+
- OAuth API KEY
|
75
|
+
Content-Type:
|
76
|
+
- application/json
|
77
|
+
Accepts:
|
78
|
+
- application/json
|
79
|
+
X-Client-Id:
|
80
|
+
- 508fc620018d162a070000d6
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
Cache-Control:
|
87
|
+
- max-age=0, private, must-revalidate
|
88
|
+
Content-Type:
|
89
|
+
- application/json; charset=utf-8
|
90
|
+
Date:
|
91
|
+
- Mon, 08 Apr 2013 22:54:20 GMT
|
92
|
+
Etag:
|
93
|
+
- ! '"16f79548df7f5d59ef1f8e68418e803f"'
|
94
|
+
Server:
|
95
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
96
|
+
Status:
|
97
|
+
- '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
|
+
X-Powered-By:
|
107
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
108
|
+
X-Rack-Cache:
|
109
|
+
- invalidate, pass
|
110
|
+
X-Request-Id:
|
111
|
+
- 223dec93f4e9ebc898b6d109956ca9d3
|
112
|
+
X-Runtime:
|
113
|
+
- '0.019346'
|
114
|
+
X-Ua-Compatible:
|
115
|
+
- IE=Edge,chrome=1
|
116
|
+
Content-Length:
|
117
|
+
- '256'
|
118
|
+
Connection:
|
119
|
+
- keep-alive
|
120
|
+
body:
|
121
|
+
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}}}'
|
123
|
+
http_version:
|
124
|
+
recorded_at: Mon, 08 Apr 2013 22:54:20 GMT
|
125
|
+
- request:
|
126
|
+
method: delete
|
127
|
+
uri: https://api.getchute.com/v2/triggers/31
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: ! '{}'
|
131
|
+
headers:
|
132
|
+
Authorization:
|
133
|
+
- OAuth API KEY
|
134
|
+
Content-Type:
|
135
|
+
- application/json
|
136
|
+
Accepts:
|
137
|
+
- application/json
|
138
|
+
X-Client-Id:
|
139
|
+
- 508fc620018d162a070000d6
|
140
|
+
response:
|
141
|
+
status:
|
142
|
+
code: 200
|
143
|
+
message: OK
|
144
|
+
headers:
|
145
|
+
Cache-Control:
|
146
|
+
- max-age=0, private, must-revalidate
|
147
|
+
Content-Type:
|
148
|
+
- application/json; charset=utf-8
|
149
|
+
Date:
|
150
|
+
- Mon, 08 Apr 2013 22:54:20 GMT
|
151
|
+
Etag:
|
152
|
+
- ! '"cc89b69ac296c15d0a8448ce9c2f6131"'
|
153
|
+
Server:
|
154
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
155
|
+
Status:
|
156
|
+
- '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
|
+
X-Powered-By:
|
166
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
167
|
+
X-Rack-Cache:
|
168
|
+
- invalidate, pass
|
169
|
+
X-Request-Id:
|
170
|
+
- a1a2d0708b2b41ef4174bee6e1e55771
|
171
|
+
X-Runtime:
|
172
|
+
- '0.019939'
|
173
|
+
X-Ua-Compatible:
|
174
|
+
- IE=Edge,chrome=1
|
175
|
+
Content-Length:
|
176
|
+
- '256'
|
177
|
+
Connection:
|
178
|
+
- keep-alive
|
179
|
+
body:
|
180
|
+
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}}}'
|
182
|
+
http_version:
|
183
|
+
recorded_at: Mon, 08 Apr 2013 22:54:20 GMT
|
184
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/triggers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"url":"http://www.opencalais.com/HTTPexamples","event":"asset_created"}'
|
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:16 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"f854cdc5afd19ed9a6197d3fc726e7ca"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:16 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
|
+
- '4999859'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999800'
|
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
|
+
- 81dbff3a8470067bf820c81cbfeee8b8
|
51
|
+
X-Runtime:
|
52
|
+
- '0.028265'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Content-Length:
|
56
|
+
- '673'
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Trigger Details","version":2,"code":201,"href":"https://api.getchute.com/v2/triggers?event=asset_created&trigger%5Bevent%5D=asset_created&trigger%5Burl%5D=http%3A%2F%2Fwww.opencalais.com%2FHTTPexamples&url=http%3A%2F%2Fwww.opencalais.com%2FHTTPexamples","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999800,"max_hourly_calls":5000000,"available_hourly_calls":4999859}},"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"}}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Mon, 08 Apr 2013 22:54:16 GMT
|
65
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,124 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/triggers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"url":"http://www.opencalais.com/HTTPexamples","event":"asset_deleted"}'
|
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:18 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"b08dfbe8641c549c95fdff81191711d1"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:18 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
|
+
- '4999855'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999796'
|
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
|
+
- 12f4d2bcf3a6f6df9f82e32b09dfbea6
|
51
|
+
X-Runtime:
|
52
|
+
- '0.025226'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Content-Length:
|
56
|
+
- '673'
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Trigger Details","version":2,"code":201,"href":"https://api.getchute.com/v2/triggers?event=asset_deleted&trigger%5Bevent%5D=asset_deleted&trigger%5Burl%5D=http%3A%2F%2Fwww.opencalais.com%2FHTTPexamples&url=http%3A%2F%2Fwww.opencalais.com%2FHTTPexamples","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999796,"max_hourly_calls":5000000,"available_hourly_calls":4999855}},"data":{"id":32,"links":{"self":{"href":"http://api.getchute.com/v2/triggers/32","title":"Trigger
|
62
|
+
Details"}},"created_at":"2013-04-08T22:54:18Z","updated_at":"2013-04-08T22:54:18Z","url":"http://www.opencalais.com/HTTPexamples","event":"asset_deleted"}}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Mon, 08 Apr 2013 22:54:18 GMT
|
65
|
+
- request:
|
66
|
+
method: delete
|
67
|
+
uri: https://api.getchute.com/v2/triggers/32
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: ! '{}'
|
71
|
+
headers:
|
72
|
+
Authorization:
|
73
|
+
- OAuth API KEY
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Accepts:
|
77
|
+
- application/json
|
78
|
+
X-Client-Id:
|
79
|
+
- 508fc620018d162a070000d6
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 200
|
83
|
+
message: OK
|
84
|
+
headers:
|
85
|
+
Cache-Control:
|
86
|
+
- max-age=0, private, must-revalidate
|
87
|
+
Content-Type:
|
88
|
+
- application/json; charset=utf-8
|
89
|
+
Date:
|
90
|
+
- Mon, 08 Apr 2013 22:54:19 GMT
|
91
|
+
Etag:
|
92
|
+
- ! '"46478f66774d73beab44f3686465cf6d"'
|
93
|
+
Server:
|
94
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
95
|
+
Status:
|
96
|
+
- '200'
|
97
|
+
X-Available-Hourly-Calls:
|
98
|
+
- '4999854'
|
99
|
+
X-Available-Monthly-Calls:
|
100
|
+
- '3719999795'
|
101
|
+
X-Max-Hourly-Calls:
|
102
|
+
- '5000000'
|
103
|
+
X-Max-Monthly-Calls:
|
104
|
+
- '3720000000'
|
105
|
+
X-Powered-By:
|
106
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
107
|
+
X-Rack-Cache:
|
108
|
+
- invalidate, pass
|
109
|
+
X-Request-Id:
|
110
|
+
- ff23cd1b31c0533cece8c36ddf2d6429
|
111
|
+
X-Runtime:
|
112
|
+
- '0.032025'
|
113
|
+
X-Ua-Compatible:
|
114
|
+
- IE=Edge,chrome=1
|
115
|
+
Content-Length:
|
116
|
+
- '256'
|
117
|
+
Connection:
|
118
|
+
- keep-alive
|
119
|
+
body:
|
120
|
+
encoding: US-ASCII
|
121
|
+
string: ! '{"response":{"title":"Trigger Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers/32?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999795,"max_hourly_calls":5000000,"available_hourly_calls":4999854}}}'
|
122
|
+
http_version:
|
123
|
+
recorded_at: Mon, 08 Apr 2013 22:54:19 GMT
|
124
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.getchute.com/v2/triggers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{}'
|
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: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- must-revalidate, private, max-age=0
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:18 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"17d5caec8e7adc56eeb9d38a7ac4b662"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:17 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
36
|
+
- '200'
|
37
|
+
X-Available-Hourly-Calls:
|
38
|
+
- '4999856'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999797'
|
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
|
+
- miss
|
49
|
+
X-Request-Id:
|
50
|
+
- 333224d9a4653b745530eb6d3675b9ef
|
51
|
+
X-Runtime:
|
52
|
+
- '0.024633'
|
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":"Trigger Listing","version":2,"code":200,"href":"https://api.getchute.com/v2/triggers?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999797,"max_hourly_calls":5000000,"available_hourly_calls":4999856}},"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"}]}'
|
64
|
+
http_version:
|
65
|
+
recorded_at: Mon, 08 Apr 2013 22:54:18 GMT
|
66
|
+
recorded_with: VCR 2.2.5
|