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
data/Rakefile
CHANGED
data/chute.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "chute"
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Darko Grozdanovski", "Chris Burkhart", "Petr Bela"]
|
12
|
-
s.date = "2013-04-
|
12
|
+
s.date = "2013-04-22"
|
13
13
|
s.description = "wrapper for the API for getchute.com"
|
14
14
|
s.email = "support@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
"lib/chute/configuration.rb",
|
30
30
|
"lib/chute/connection.rb",
|
31
31
|
"lib/chute/response.rb",
|
32
|
+
"lib/chute/v2/accounts.rb",
|
32
33
|
"lib/chute/v2/albums.rb",
|
33
34
|
"lib/chute/v2/assets.rb",
|
34
35
|
"lib/chute/v2/comments.rb",
|
@@ -101,7 +102,6 @@ Gem::Specification.new do |s|
|
|
101
102
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
102
103
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
103
104
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
104
|
-
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
105
105
|
else
|
106
106
|
s.add_dependency(%q<httparty>, [">= 0"])
|
107
107
|
s.add_dependency(%q<hashie>, [">= 0"])
|
@@ -110,7 +110,6 @@ Gem::Specification.new do |s|
|
|
110
110
|
s.add_dependency(%q<bundler>, [">= 0"])
|
111
111
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
112
112
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
113
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
114
113
|
end
|
115
114
|
else
|
116
115
|
s.add_dependency(%q<httparty>, [">= 0"])
|
@@ -120,7 +119,6 @@ Gem::Specification.new do |s|
|
|
120
119
|
s.add_dependency(%q<bundler>, [">= 0"])
|
121
120
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
122
121
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
123
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
124
122
|
end
|
125
123
|
end
|
126
124
|
|
data/lib/chute/connection.rb
CHANGED
data/lib/chute/version.rb
CHANGED
@@ -24,7 +24,7 @@ describe Chute::Connection do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "must have Authorization set to Access Token value" do
|
27
|
-
Chute::Connection.headers["Authorization"].should == "
|
27
|
+
Chute::Connection.headers["Authorization"].should == "Bearer #{Chute.access_token}"
|
28
28
|
end
|
29
29
|
|
30
30
|
it "must have the Content-Type header" do
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://api.getchute.com/v2/albums
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"album":{"name":"some new album 2013-04-
|
8
|
+
string: ! '{"album":{"name":"some new album 2013-04-22 15:25:56 -0700","permission_view":2}}'
|
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:25:57 GMT
|
29
29
|
Etag:
|
30
|
-
- ! '"
|
30
|
+
- ! '"9ac9003a9dea72c183bf10128f636d18"'
|
31
31
|
Last-Modified:
|
32
|
-
- Mon,
|
32
|
+
- Mon, 22 Apr 2013 22:25:56 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
|
-
- '4999909'
|
39
|
-
X-Available-Monthly-Calls:
|
40
|
-
- '3719999850'
|
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
|
+
- bab2aa76abf1dfd224a81424bb3c0b50
|
51
43
|
X-Runtime:
|
52
|
-
- '0.
|
44
|
+
- '0.053124'
|
53
45
|
X-Ua-Compatible:
|
54
46
|
- IE=Edge,chrome=1
|
55
47
|
Transfer-Encoding:
|
@@ -58,12 +50,12 @@ 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=some+new+album+2013-04-
|
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-
|
65
|
-
new album 2013-04-
|
53
|
+
string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=some+new+album+2013-04-22+15%3A25%3A56+-0700&album%5Bpermission_view%5D=2"},"data":{"id":2412447,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412447","title":"Album
|
54
|
+
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412447/assets","title":"Asset
|
55
|
+
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412447/parcels","title":"Parcel
|
56
|
+
Listing"}},"created_at":"2013-04-22T22:25:56Z","updated_at":"2013-04-22T22:25:56Z","shortcut":"a7Aruyqt","name":"some
|
57
|
+
new album 2013-04-22 15:25:56 -0700","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:25:57 GMT
|
69
61
|
recorded_with: VCR 2.2.5
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ! '{"album":{"name":"Created Album"}}'
|
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:02 GMT
|
29
29
|
Etag:
|
30
|
-
- ! '"
|
30
|
+
- ! '"16bec966c5e8757b28d1653e100c420a"'
|
31
31
|
Last-Modified:
|
32
|
-
- Mon,
|
32
|
+
- Mon, 22 Apr 2013 22:26:02 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
|
-
- '4999898'
|
39
|
-
X-Available-Monthly-Calls:
|
40
|
-
- '3719999839'
|
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
|
+
- ac443c3a6b1853abb116c0c79d7d5b8e
|
51
43
|
X-Runtime:
|
52
|
-
- '0.
|
44
|
+
- '0.059564'
|
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=Created+Album"
|
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=Created+Album"},"data":{"id":2412452,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412452","title":"Album
|
54
|
+
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412452/assets","title":"Asset
|
55
|
+
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412452/parcels","title":"Parcel
|
56
|
+
Listing"}},"created_at":"2013-04-22T22:26:02Z","updated_at":"2013-04-22T22:26:02Z","shortcut":"a7Awughq","name":"Created
|
65
57
|
Album","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:02 GMT
|
69
61
|
- request:
|
70
62
|
method: post
|
71
|
-
uri: https://api.getchute.com/v2/albums/
|
63
|
+
uri: https://api.getchute.com/v2/albums/2412452/add_assets
|
72
64
|
body:
|
73
65
|
encoding: UTF-8
|
74
66
|
string: ! '{"asset_ids":[[71907823]]}'
|
75
67
|
headers:
|
76
68
|
Authorization:
|
77
|
-
-
|
69
|
+
- Bearer API KEY
|
78
70
|
Content-Type:
|
79
71
|
- application/json
|
80
72
|
Accepts:
|
@@ -91,29 +83,21 @@ http_interactions:
|
|
91
83
|
Content-Type:
|
92
84
|
- text/html; charset=utf-8
|
93
85
|
Date:
|
94
|
-
- Mon,
|
86
|
+
- Mon, 22 Apr 2013 22:26:02 GMT
|
95
87
|
Etag:
|
96
88
|
- ! '"7215ee9c7d9dc229d2921a40e899ec5f"'
|
97
89
|
Server:
|
98
90
|
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
99
91
|
Status:
|
100
92
|
- '200'
|
101
|
-
X-Available-Hourly-Calls:
|
102
|
-
- '4999897'
|
103
|
-
X-Available-Monthly-Calls:
|
104
|
-
- '3719999838'
|
105
|
-
X-Max-Hourly-Calls:
|
106
|
-
- '5000000'
|
107
|
-
X-Max-Monthly-Calls:
|
108
|
-
- '3720000000'
|
109
93
|
X-Powered-By:
|
110
94
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
111
95
|
X-Rack-Cache:
|
112
96
|
- invalidate, pass
|
113
97
|
X-Request-Id:
|
114
|
-
-
|
98
|
+
- 21d87ad8eba8b7ffca51020976982cd6
|
115
99
|
X-Runtime:
|
116
|
-
- '0.
|
100
|
+
- '0.110162'
|
117
101
|
X-Ua-Compatible:
|
118
102
|
- IE=Edge,chrome=1
|
119
103
|
Content-Length:
|
@@ -124,16 +108,16 @@ http_interactions:
|
|
124
108
|
encoding: US-ASCII
|
125
109
|
string: ! ' '
|
126
110
|
http_version:
|
127
|
-
recorded_at: Mon,
|
111
|
+
recorded_at: Mon, 22 Apr 2013 22:26:02 GMT
|
128
112
|
- request:
|
129
113
|
method: post
|
130
|
-
uri: https://api.getchute.com/v2/albums/
|
114
|
+
uri: https://api.getchute.com/v2/albums/2412452/remove_assets
|
131
115
|
body:
|
132
116
|
encoding: UTF-8
|
133
117
|
string: ! '{"asset_ids":[[4342325,4342324,534543]]}'
|
134
118
|
headers:
|
135
119
|
Authorization:
|
136
|
-
-
|
120
|
+
- Bearer API KEY
|
137
121
|
Content-Type:
|
138
122
|
- application/json
|
139
123
|
Accepts:
|
@@ -150,29 +134,21 @@ http_interactions:
|
|
150
134
|
Content-Type:
|
151
135
|
- text/html; charset=utf-8
|
152
136
|
Date:
|
153
|
-
- Mon,
|
137
|
+
- Mon, 22 Apr 2013 22:26:03 GMT
|
154
138
|
Etag:
|
155
139
|
- ! '"7215ee9c7d9dc229d2921a40e899ec5f"'
|
156
140
|
Server:
|
157
141
|
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
158
142
|
Status:
|
159
143
|
- '200'
|
160
|
-
X-Available-Hourly-Calls:
|
161
|
-
- '4999895'
|
162
|
-
X-Available-Monthly-Calls:
|
163
|
-
- '3719999836'
|
164
|
-
X-Max-Hourly-Calls:
|
165
|
-
- '5000000'
|
166
|
-
X-Max-Monthly-Calls:
|
167
|
-
- '3720000000'
|
168
144
|
X-Powered-By:
|
169
145
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
170
146
|
X-Rack-Cache:
|
171
147
|
- invalidate, pass
|
172
148
|
X-Request-Id:
|
173
|
-
-
|
149
|
+
- 9528ab35c3440882a24299f9d0ca4c18
|
174
150
|
X-Runtime:
|
175
|
-
- '0.
|
151
|
+
- '0.047016'
|
176
152
|
X-Ua-Compatible:
|
177
153
|
- IE=Edge,chrome=1
|
178
154
|
Content-Length:
|
@@ -183,5 +159,5 @@ http_interactions:
|
|
183
159
|
encoding: US-ASCII
|
184
160
|
string: ! ' '
|
185
161
|
http_version:
|
186
|
-
recorded_at: Mon,
|
162
|
+
recorded_at: Mon, 22 Apr 2013 22:26:03 GMT
|
187
163
|
recorded_with: VCR 2.2.5
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://api.getchute.com/v2/albums
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"album":{"name":"some album 2013-04-
|
8
|
+
string: ! '{"album":{"name":"some album 2013-04-22 15:25:56 -0700","moderate_comments":true}}'
|
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:25:56 GMT
|
29
29
|
Etag:
|
30
|
-
- ! '"
|
30
|
+
- ! '"dc92f8e032f74e63401962a39e0f47ce"'
|
31
31
|
Last-Modified:
|
32
|
-
- Mon,
|
32
|
+
- Mon, 22 Apr 2013 22:25:56 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
|
-
- '4999910'
|
39
|
-
X-Available-Monthly-Calls:
|
40
|
-
- '3719999851'
|
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
|
+
- 3acca19b655a3b9a813403fdb5428ad9
|
51
43
|
X-Runtime:
|
52
|
-
- '0.
|
44
|
+
- '0.063955'
|
53
45
|
X-Ua-Compatible:
|
54
46
|
- IE=Edge,chrome=1
|
55
47
|
Transfer-Encoding:
|
@@ -58,12 +50,12 @@ 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%5Bmoderate_comments%5D=true&album%5Bname%5D=some+album+2013-04-
|
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-
|
65
|
-
album 2013-04-
|
53
|
+
string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bmoderate_comments%5D=true&album%5Bname%5D=some+album+2013-04-22+15%3A25%3A56+-0700"},"data":{"id":2412446,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412446","title":"Album
|
54
|
+
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412446/assets","title":"Asset
|
55
|
+
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412446/parcels","title":"Parcel
|
56
|
+
Listing"}},"created_at":"2013-04-22T22:25:56Z","updated_at":"2013-04-22T22:25:56Z","shortcut":"a7Aqgwpb","name":"some
|
57
|
+
album 2013-04-22 15:25:56 -0700","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":true,"parent_id":null}}'
|
67
59
|
http_version:
|
68
|
-
recorded_at: Mon,
|
60
|
+
recorded_at: Mon, 22 Apr 2013 22:25:56 GMT
|
69
61
|
recorded_with: VCR 2.2.5
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ! '{"album":{"name":"Created Album"}}'
|
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:25:59 GMT
|
29
29
|
Etag:
|
30
|
-
- ! '"
|
30
|
+
- ! '"12112895ae64a551209df38a0a494609"'
|
31
31
|
Last-Modified:
|
32
|
-
- Mon,
|
32
|
+
- Mon, 22 Apr 2013 22:25:59 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
|
-
- '4999903'
|
39
|
-
X-Available-Monthly-Calls:
|
40
|
-
- '3719999844'
|
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
|
+
- a48b58a9e936a5ad8af0f948dc7a3e7e
|
51
43
|
X-Runtime:
|
52
|
-
- '0.
|
44
|
+
- '0.057770'
|
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=Created+Album"
|
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=Created+Album"},"data":{"id":2412450,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412450","title":"Album
|
54
|
+
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412450/assets","title":"Asset
|
55
|
+
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412450/parcels","title":"Parcel
|
56
|
+
Listing"}},"created_at":"2013-04-22T22:25:59Z","updated_at":"2013-04-22T22:25:59Z","shortcut":"a7Auaprw","name":"Created
|
65
57
|
Album","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:25:59 GMT
|
69
61
|
- request:
|
70
62
|
method: delete
|
71
|
-
uri: https://api.getchute.com/v2/albums/
|
63
|
+
uri: https://api.getchute.com/v2/albums/2412450
|
72
64
|
body:
|
73
65
|
encoding: UTF-8
|
74
66
|
string: ! '{}'
|
75
67
|
headers:
|
76
68
|
Authorization:
|
77
|
-
-
|
69
|
+
- Bearer API KEY
|
78
70
|
Content-Type:
|
79
71
|
- application/json
|
80
72
|
Accepts:
|
@@ -91,38 +83,30 @@ 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:00 GMT
|
95
87
|
Etag:
|
96
|
-
- ! '"
|
88
|
+
- ! '"555f90cebd11d996ae639c48e4b71dd9"'
|
97
89
|
Server:
|
98
90
|
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
99
91
|
Status:
|
100
92
|
- '200'
|
101
|
-
X-Available-Hourly-Calls:
|
102
|
-
- '4999902'
|
103
|
-
X-Available-Monthly-Calls:
|
104
|
-
- '3719999843'
|
105
|
-
X-Max-Hourly-Calls:
|
106
|
-
- '5000000'
|
107
|
-
X-Max-Monthly-Calls:
|
108
|
-
- '3720000000'
|
109
93
|
X-Powered-By:
|
110
94
|
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
111
95
|
X-Rack-Cache:
|
112
96
|
- invalidate, pass
|
113
97
|
X-Request-Id:
|
114
|
-
-
|
98
|
+
- 2b4681d3e852a689879c746774bd91f9
|
115
99
|
X-Runtime:
|
116
|
-
- '0.
|
100
|
+
- '0.126568'
|
117
101
|
X-Ua-Compatible:
|
118
102
|
- IE=Edge,chrome=1
|
119
103
|
Content-Length:
|
120
|
-
- '
|
104
|
+
- '114'
|
121
105
|
Connection:
|
122
106
|
- keep-alive
|
123
107
|
body:
|
124
108
|
encoding: US-ASCII
|
125
|
-
string: ! '{"response":{"title":"Album Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/
|
109
|
+
string: ! '{"response":{"title":"Album Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412450?"}}'
|
126
110
|
http_version:
|
127
|
-
recorded_at: Mon,
|
111
|
+
recorded_at: Mon, 22 Apr 2013 22:26:00 GMT
|
128
112
|
recorded_with: VCR 2.2.5
|