chute 2.1.6 → 2.2.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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +23 -18
- data/README.md +8 -0
- data/chute.gemspec +10 -8
- data/lib/chute/connection.rb +1 -1
- data/lib/chute/v2/accounts.rb +1 -1
- data/lib/chute/v2/albums.rb +8 -8
- data/lib/chute/v2/apps.rb +15 -0
- data/lib/chute/v2/assets.rb +5 -5
- data/lib/chute/v2/campaigns.rb +2 -2
- data/lib/chute/v2/hearts.rb +2 -2
- data/lib/chute/v2/tags.rb +3 -3
- data/lib/chute/v2/triggers.rb +2 -2
- data/lib/chute/version.rb +2 -2
- data/spec/chute/client_spec.rb +6 -6
- data/spec/chute/v2/accounts_spec.rb +3 -3
- data/spec/chute/v2/albums_spec.rb +27 -27
- data/spec/chute/v2/apps_spec.rb +16 -0
- data/spec/chute/v2/assets_spec.rb +9 -9
- data/spec/chute/v2/campaigns_spec.rb +6 -6
- data/spec/chute/v2/comments_spec.rb +8 -9
- data/spec/chute/v2/flags_spec.rb +2 -2
- data/spec/chute/v2/hearts_spec.rb +3 -4
- data/spec/chute/v2/tags_spec.rb +2 -2
- data/spec/chute/v2/trigger_spec.rb +6 -6
- data/spec/chute/v2/users_spec.rb +2 -2
- data/spec/chute/v2/votes_spec.rb +2 -2
- data/spec/fixtures/chute_cassettes/comments/comments_delete.yml +217 -0
- data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +210 -13
- data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +85 -16
- data/spec/spec_helper.rb +1 -1
- metadata +8 -6
@@ -8,7 +8,7 @@ describe Chute::V2::Triggers do
|
|
8
8
|
|
9
9
|
|
10
10
|
after(:all) do
|
11
|
-
VCR.insert_cassette 'triggers/triggers_cleanup', :
|
11
|
+
VCR.insert_cassette 'triggers/triggers_cleanup', record: :new_episodes
|
12
12
|
# Delete all triggers for reuse
|
13
13
|
response = Chute::V2::Triggers.all
|
14
14
|
response.data.each do |item|
|
@@ -41,7 +41,7 @@ describe Chute::V2::Triggers do
|
|
41
41
|
|
42
42
|
describe "trigger errors" do
|
43
43
|
before do
|
44
|
-
VCR.insert_cassette 'triggers/trigger_errors', :
|
44
|
+
VCR.insert_cassette 'triggers/trigger_errors', record: :new_episodes
|
45
45
|
end
|
46
46
|
after do
|
47
47
|
VCR.eject_cassette
|
@@ -65,7 +65,7 @@ describe Chute::V2::Triggers do
|
|
65
65
|
describe "POST create a new trigger" do
|
66
66
|
|
67
67
|
before do
|
68
|
-
VCR.insert_cassette 'triggers/triggers_create', :
|
68
|
+
VCR.insert_cassette 'triggers/triggers_create', record: :new_episodes
|
69
69
|
end
|
70
70
|
after do
|
71
71
|
VCR.eject_cassette
|
@@ -80,7 +80,7 @@ describe Chute::V2::Triggers do
|
|
80
80
|
describe "PUT update existing trigger" do
|
81
81
|
|
82
82
|
before do
|
83
|
-
VCR.insert_cassette 'triggers/triggers_update', :
|
83
|
+
VCR.insert_cassette 'triggers/triggers_update', record: :new_episodes
|
84
84
|
end
|
85
85
|
after do
|
86
86
|
VCR.eject_cassette
|
@@ -96,7 +96,7 @@ describe Chute::V2::Triggers do
|
|
96
96
|
describe "GET all triggers" do
|
97
97
|
|
98
98
|
before do
|
99
|
-
VCR.insert_cassette 'triggers/triggers_list', :
|
99
|
+
VCR.insert_cassette 'triggers/triggers_list', record: :new_episodes
|
100
100
|
end
|
101
101
|
after do
|
102
102
|
VCR.eject_cassette
|
@@ -111,7 +111,7 @@ describe Chute::V2::Triggers do
|
|
111
111
|
describe "DELETE trigger" do
|
112
112
|
|
113
113
|
before do
|
114
|
-
VCR.insert_cassette 'triggers/triggers_delete', :
|
114
|
+
VCR.insert_cassette 'triggers/triggers_delete', record: :new_episodes
|
115
115
|
end
|
116
116
|
after do
|
117
117
|
VCR.eject_cassette
|
data/spec/chute/v2/users_spec.rb
CHANGED
@@ -22,7 +22,7 @@ describe Chute::V2::Users do
|
|
22
22
|
|
23
23
|
describe "GET Current user info" do
|
24
24
|
before do
|
25
|
-
VCR.insert_cassette 'users/users_me', :
|
25
|
+
VCR.insert_cassette 'users/users_me', record: :new_episodes
|
26
26
|
end
|
27
27
|
after do
|
28
28
|
VCR.eject_cassette
|
@@ -36,7 +36,7 @@ describe Chute::V2::Users do
|
|
36
36
|
|
37
37
|
describe "GET User By Id" do
|
38
38
|
before do
|
39
|
-
VCR.insert_cassette 'users/users_get', :
|
39
|
+
VCR.insert_cassette 'users/users_get', record: :new_episodes
|
40
40
|
end
|
41
41
|
after do
|
42
42
|
VCR.eject_cassette
|
data/spec/chute/v2/votes_spec.rb
CHANGED
@@ -4,7 +4,7 @@ describe Chute::V2::Votes do
|
|
4
4
|
include_context "init credentials"
|
5
5
|
|
6
6
|
let(:album_id) do
|
7
|
-
Chute::V2::Albums.create({:
|
7
|
+
Chute::V2::Albums.create({name: "Album for Votes"}).data.id
|
8
8
|
end
|
9
9
|
|
10
10
|
let(:asset_id) do
|
@@ -30,7 +30,7 @@ describe Chute::V2::Votes do
|
|
30
30
|
describe "heart methods" do
|
31
31
|
|
32
32
|
before do
|
33
|
-
VCR.insert_cassette 'votes/votes_methods', :
|
33
|
+
VCR.insert_cassette 'votes/votes_methods', record: :new_episodes
|
34
34
|
end
|
35
35
|
after do
|
36
36
|
VCR.eject_cassette
|
@@ -0,0 +1,217 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/albums
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"album":{"name":"Album for Comments"}}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 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
|
+
- Sat, 01 Aug 2015 00:30:23 GMT
|
29
|
+
Etag:
|
30
|
+
- '"f35e6e6dab145b6a7bb05238e3494a6b"'
|
31
|
+
Last-Modified:
|
32
|
+
- Sat, 01 Aug 2015 00:30:23 GMT
|
33
|
+
Server:
|
34
|
+
- nginx
|
35
|
+
Status:
|
36
|
+
- 201 Created
|
37
|
+
X-Rack-Cache:
|
38
|
+
- invalidate, pass
|
39
|
+
X-Request-Id:
|
40
|
+
- 44d24454a979681a086a5aa8e0fa427a
|
41
|
+
X-Runtime:
|
42
|
+
- '0.028868'
|
43
|
+
X-Ua-Compatible:
|
44
|
+
- IE=Edge,chrome=1
|
45
|
+
Content-Length:
|
46
|
+
- '929'
|
47
|
+
Connection:
|
48
|
+
- keep-alive
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"response":{"title":"Album Details","version":2,"code":201,"method":"POST","href":"https://api.getchute.com/v2/albums"},"data":{"id":2557965,"links":{"self":{"href":"https://getchute.com/v2/albums/2557965","title":"Album
|
52
|
+
Details"},"assets":{"href":"https://getchute.com/v2/albums/2557965/assets","title":"Asset
|
53
|
+
Listing"},"parcels":{"href":"https://getchute.com/v2/albums/2557965/parcels","title":"Parcel
|
54
|
+
Listing"}},"created_at":"2015-08-01T00:30:23Z","updated_at":"2015-08-01T00:30:23Z","shortcut":"aJrvsnfw","name":"Album
|
55
|
+
for Comments","description":null,"moderate_media":false,"moderate_comments":false,"parent_id":null,"user":{"id":545,"links":{"self":{"href":"https://getchute.com/v2/users/545","title":"User
|
56
|
+
Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2015-07-10T09:20:21Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null}}}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Sat, 01 Aug 2015 00:30:47 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: https://api.getchute.com/v2/albums/2557965/assets/import
|
62
|
+
body:
|
63
|
+
encoding: UTF-8
|
64
|
+
string: '{"urls":["http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg"]}'
|
65
|
+
headers:
|
66
|
+
Authorization:
|
67
|
+
- Bearer API KEY
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Accepts:
|
71
|
+
- application/json
|
72
|
+
X-Client-Id:
|
73
|
+
- 508fc620018d162a070000d6
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Cache-Control:
|
80
|
+
- max-age=0, private, must-revalidate
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Date:
|
84
|
+
- Sat, 01 Aug 2015 00:30:24 GMT
|
85
|
+
Etag:
|
86
|
+
- '"0cdd64461c8ee35f162ed1efe785bf39"'
|
87
|
+
Last-Modified:
|
88
|
+
- Sat, 01 Aug 2015 00:30:24 GMT
|
89
|
+
Server:
|
90
|
+
- nginx
|
91
|
+
Status:
|
92
|
+
- 200 OK
|
93
|
+
X-Rack-Cache:
|
94
|
+
- invalidate, pass
|
95
|
+
X-Request-Id:
|
96
|
+
- a011bbaf938fb04c8c5c7c4ce7440e1a
|
97
|
+
X-Runtime:
|
98
|
+
- '0.248572'
|
99
|
+
X-Ua-Compatible:
|
100
|
+
- IE=Edge,chrome=1
|
101
|
+
Content-Length:
|
102
|
+
- '1504'
|
103
|
+
Connection:
|
104
|
+
- keep-alive
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: '{"response":{"title":"Imported Assets","version":2,"code":200,"method":"POST","href":"https://api.getchute.com/v2/albums/2557965/assets/import"},"data":[{"id":1137338352,"links":{"self":{"href":"https://getchute.com/v2/albums/2557965/assets/1137338352","title":"Asset
|
108
|
+
Details"},"exif":{"href":"https://getchute.com/v2/albums/2557965/assets/1137338352/exif","title":"Exif
|
109
|
+
Details"},"geo":{"href":"https://getchute.com/v2/albums/2557965/assets/1137338352/geo","title":"Geo
|
110
|
+
Details"},"heart":{"href":"https://getchute.com/v2/albums/2557965/assets/1137338352/hearts","title":"Hearts"},"vote":{"href":"https://getchute.com/v2/albums/2557965/assets/1137338352/votes","title":"Votes"}},"created_at":"2015-08-01T00:30:24Z","updated_at":"2015-08-01T00:30:24Z","shortcut":"1eY9EYxefl","type":"image","caption":null,"location":null,"source":{"source":"import","source_id":null,"service":null,"import_id":null,"import_url":null,"source_url":"http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg"},"service":"uploaded","username":null,"tags":[],"thumbnail":"http://media.getchute.com/media/1eY9EYxefl/75x75","url":"https://media.getchute.com/media/1eY9EYxefl","dimensions":{"width":null,"height":null},"user":{"id":545,"links":{"self":{"href":"https://getchute.com/v2/users/545","title":"User
|
111
|
+
Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2015-07-10T09:20:21Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null}}]}'
|
112
|
+
http_version:
|
113
|
+
recorded_at: Sat, 01 Aug 2015 00:30:48 GMT
|
114
|
+
- request:
|
115
|
+
method: post
|
116
|
+
uri: https://api.getchute.com/v2/albums/2557965/assets/1137338352/comments
|
117
|
+
body:
|
118
|
+
encoding: UTF-8
|
119
|
+
string: '{"comment_text":"My Test Comment for delete"}'
|
120
|
+
headers:
|
121
|
+
Authorization:
|
122
|
+
- Bearer API KEY
|
123
|
+
Content-Type:
|
124
|
+
- application/json
|
125
|
+
Accepts:
|
126
|
+
- application/json
|
127
|
+
X-Client-Id:
|
128
|
+
- 508fc620018d162a070000d6
|
129
|
+
response:
|
130
|
+
status:
|
131
|
+
code: 201
|
132
|
+
message: Created
|
133
|
+
headers:
|
134
|
+
Cache-Control:
|
135
|
+
- max-age=0, private, must-revalidate
|
136
|
+
Content-Type:
|
137
|
+
- application/json; charset=utf-8
|
138
|
+
Date:
|
139
|
+
- Sat, 01 Aug 2015 00:30:26 GMT
|
140
|
+
Etag:
|
141
|
+
- '"cfc758fc3354bf873442ae0d84a82c81"'
|
142
|
+
Last-Modified:
|
143
|
+
- Sat, 01 Aug 2015 00:30:26 GMT
|
144
|
+
Server:
|
145
|
+
- nginx
|
146
|
+
Status:
|
147
|
+
- 201 Created
|
148
|
+
X-Rack-Cache:
|
149
|
+
- invalidate, pass
|
150
|
+
X-Request-Id:
|
151
|
+
- be0a44afab96993e9ef7da8a6f47c6d6
|
152
|
+
X-Runtime:
|
153
|
+
- '0.047346'
|
154
|
+
X-Ua-Compatible:
|
155
|
+
- IE=Edge,chrome=1
|
156
|
+
Content-Length:
|
157
|
+
- '713'
|
158
|
+
Connection:
|
159
|
+
- keep-alive
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: '{"response":{"title":"Comment Details","version":2,"code":201,"method":"POST","href":"https://api.getchute.com/v2/albums/2557965/assets/1137338352/comments"},"data":{"id":789,"links":{"self":{"href":"https://getchute.com/v2/comments/789","title":"Comment
|
163
|
+
Details"}},"created_at":"2015-08-01T00:30:26Z","updated_at":"2015-08-01T00:30:26Z","comment_text":"My
|
164
|
+
Test Comment for delete","name":null,"email":null,"user":{"id":545,"links":{"self":{"href":"https://getchute.com/v2/users/545","title":"User
|
165
|
+
Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2015-07-10T09:20:21Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null}}}'
|
166
|
+
http_version:
|
167
|
+
recorded_at: Sat, 01 Aug 2015 00:30:49 GMT
|
168
|
+
- request:
|
169
|
+
method: delete
|
170
|
+
uri: https://api.getchute.com/v2/comments/789
|
171
|
+
body:
|
172
|
+
encoding: UTF-8
|
173
|
+
string: "{}"
|
174
|
+
headers:
|
175
|
+
Authorization:
|
176
|
+
- Bearer API KEY
|
177
|
+
Content-Type:
|
178
|
+
- application/json
|
179
|
+
Accepts:
|
180
|
+
- application/json
|
181
|
+
X-Client-Id:
|
182
|
+
- 508fc620018d162a070000d6
|
183
|
+
response:
|
184
|
+
status:
|
185
|
+
code: 200
|
186
|
+
message: OK
|
187
|
+
headers:
|
188
|
+
Cache-Control:
|
189
|
+
- max-age=0, private, must-revalidate
|
190
|
+
Content-Type:
|
191
|
+
- application/json; charset=utf-8
|
192
|
+
Date:
|
193
|
+
- Sat, 01 Aug 2015 00:30:27 GMT
|
194
|
+
Etag:
|
195
|
+
- '"6622ecb63610335c170261c9413e6a4d"'
|
196
|
+
Server:
|
197
|
+
- nginx
|
198
|
+
Status:
|
199
|
+
- 200 OK
|
200
|
+
X-Rack-Cache:
|
201
|
+
- invalidate, pass
|
202
|
+
X-Request-Id:
|
203
|
+
- ce8b01bd8e2643548a46f4f308880548
|
204
|
+
X-Runtime:
|
205
|
+
- '0.286816'
|
206
|
+
X-Ua-Compatible:
|
207
|
+
- IE=Edge,chrome=1
|
208
|
+
Content-Length:
|
209
|
+
- '131'
|
210
|
+
Connection:
|
211
|
+
- keep-alive
|
212
|
+
body:
|
213
|
+
encoding: UTF-8
|
214
|
+
string: '{"response":{"title":"Comment Deleted","version":2,"code":200,"method":"DELETE","href":"https://api.getchute.com/v2/comments/789"}}'
|
215
|
+
http_version:
|
216
|
+
recorded_at: Sat, 01 Aug 2015 00:30:50 GMT
|
217
|
+
recorded_with: VCR 2.9.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://api.getchute.com/v2/albums
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: '{"album":{"name":"Album for Hearts"}}'
|
9
9
|
headers:
|
10
10
|
Authorization:
|
11
11
|
- Bearer API KEY
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Date:
|
28
28
|
- Mon, 22 Apr 2013 22:26:16 GMT
|
29
29
|
Etag:
|
30
|
-
-
|
30
|
+
- '"f095b14bdd629354ffb60573a0e08f77"'
|
31
31
|
Last-Modified:
|
32
32
|
- Mon, 22 Apr 2013 22:26:16 GMT
|
33
33
|
Server:
|
@@ -50,7 +50,7 @@ http_interactions:
|
|
50
50
|
- keep-alive
|
51
51
|
body:
|
52
52
|
encoding: US-ASCII
|
53
|
-
string:
|
53
|
+
string: '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Hearts"},"data":{"id":2412456,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412456","title":"Album
|
54
54
|
Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412456/assets","title":"Asset
|
55
55
|
Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412456/parcels","title":"Parcel
|
56
56
|
Listing"}},"created_at":"2013-04-22T22:26:16Z","updated_at":"2013-04-22T22:26:16Z","shortcut":"a7AAyfzq","name":"Album
|
@@ -63,7 +63,7 @@ http_interactions:
|
|
63
63
|
uri: https://api.getchute.com/v2/albums/2412456/assets/import
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
|
-
string:
|
66
|
+
string: '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
|
67
67
|
headers:
|
68
68
|
Authorization:
|
69
69
|
- Bearer API KEY
|
@@ -85,7 +85,7 @@ http_interactions:
|
|
85
85
|
Date:
|
86
86
|
- Mon, 22 Apr 2013 22:26:17 GMT
|
87
87
|
Etag:
|
88
|
-
-
|
88
|
+
- '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
|
89
89
|
Last-Modified:
|
90
90
|
- Wed, 05 Dec 2012 14:19:19 GMT
|
91
91
|
Server:
|
@@ -108,7 +108,7 @@ http_interactions:
|
|
108
108
|
- keep-alive
|
109
109
|
body:
|
110
110
|
encoding: US-ASCII
|
111
|
-
string:
|
111
|
+
string: '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412456/assets/import?&urls%5B%5D=http%3A%2F%2Fsphotos-f.ak.fbcdn.net%2Fhphotos-ak-snc6%2F6393_451942991531262_1464781412_n.jpg"},"data":[{"id":79517672,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672","title":"Asset
|
112
112
|
Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672/exif","title":"Exif
|
113
113
|
Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672/geo","title":"Geo
|
114
114
|
Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a7AAyfzq/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a7AAyfzq/assets/5nEb6mbik/votes","title":"Vote"}},"created_at":"2012-12-05T14:19:19Z","updated_at":"2012-12-05T14:19:19Z","thumbnail":"http://media.getchute.com/media/5nEb6mbik/75x75","url":"http://media.getchute.com/media/5nEb6mbik","shortcut":"5nEb6mbik","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/5nEb6mbik"},"service":"uploaded"}]}'
|
@@ -119,7 +119,7 @@ http_interactions:
|
|
119
119
|
uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
|
120
120
|
body:
|
121
121
|
encoding: UTF-8
|
122
|
-
string:
|
122
|
+
string: "{}"
|
123
123
|
headers:
|
124
124
|
Authorization:
|
125
125
|
- Bearer API KEY
|
@@ -141,7 +141,7 @@ http_interactions:
|
|
141
141
|
Date:
|
142
142
|
- Mon, 22 Apr 2013 22:26:18 GMT
|
143
143
|
Etag:
|
144
|
-
-
|
144
|
+
- '"27fc9ba3b69149376f25cde623f6681c"'
|
145
145
|
Last-Modified:
|
146
146
|
- Mon, 22 Apr 2013 22:26:18 GMT
|
147
147
|
Server:
|
@@ -164,7 +164,7 @@ http_interactions:
|
|
164
164
|
- keep-alive
|
165
165
|
body:
|
166
166
|
encoding: US-ASCII
|
167
|
-
string:
|
167
|
+
string: '{"response":{"title":"Heart Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts?"},"data":{"id":386630,"links":{"href":"http://api.getchute.com/v2/hearts/gjvxwtlgmtkcxauoecth1366669578","title":"Heart
|
168
168
|
Details"},"created_at":"2013-04-22T22:26:18Z","updated_at":"2013-04-22T22:26:18Z","identifier":"gjvxwtlgmtkcxauoecth1366669578","album_id":2412456,"asset_id":79517672}}'
|
169
169
|
http_version:
|
170
170
|
recorded_at: Mon, 22 Apr 2013 22:26:19 GMT
|
@@ -173,7 +173,7 @@ http_interactions:
|
|
173
173
|
uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
|
174
174
|
body:
|
175
175
|
encoding: UTF-8
|
176
|
-
string:
|
176
|
+
string: "{}"
|
177
177
|
headers:
|
178
178
|
Authorization:
|
179
179
|
- Bearer API KEY
|
@@ -195,7 +195,7 @@ http_interactions:
|
|
195
195
|
Date:
|
196
196
|
- Mon, 22 Apr 2013 22:26:19 GMT
|
197
197
|
Etag:
|
198
|
-
-
|
198
|
+
- '"bb708aa9266df468c0edc85f94120a12"'
|
199
199
|
Server:
|
200
200
|
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
201
201
|
Status:
|
@@ -216,7 +216,204 @@ http_interactions:
|
|
216
216
|
- keep-alive
|
217
217
|
body:
|
218
218
|
encoding: US-ASCII
|
219
|
-
string:
|
219
|
+
string: '{"response":{"title":"Heart Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts?"},"data":{"count":1}}'
|
220
220
|
http_version:
|
221
221
|
recorded_at: Mon, 22 Apr 2013 22:26:19 GMT
|
222
|
-
|
222
|
+
- request:
|
223
|
+
method: delete
|
224
|
+
uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts/386630
|
225
|
+
body:
|
226
|
+
encoding: UTF-8
|
227
|
+
string: "{}"
|
228
|
+
headers:
|
229
|
+
Authorization:
|
230
|
+
- Bearer API KEY
|
231
|
+
Content-Type:
|
232
|
+
- application/json
|
233
|
+
Accepts:
|
234
|
+
- application/json
|
235
|
+
X-Client-Id:
|
236
|
+
- 508fc620018d162a070000d6
|
237
|
+
response:
|
238
|
+
status:
|
239
|
+
code: 404
|
240
|
+
message: Not Found
|
241
|
+
headers:
|
242
|
+
Cache-Control:
|
243
|
+
- no-cache
|
244
|
+
Content-Type:
|
245
|
+
- application/json; charset=utf-8
|
246
|
+
Date:
|
247
|
+
- Sat, 01 Aug 2015 00:30:28 GMT
|
248
|
+
Server:
|
249
|
+
- nginx
|
250
|
+
Status:
|
251
|
+
- 404 Not Found
|
252
|
+
X-Rack-Cache:
|
253
|
+
- invalidate, pass
|
254
|
+
X-Request-Id:
|
255
|
+
- b5bddacc566a6a4936e4821c6450d828
|
256
|
+
X-Runtime:
|
257
|
+
- '0.013514'
|
258
|
+
X-Ua-Compatible:
|
259
|
+
- IE=Edge,chrome=1
|
260
|
+
Content-Length:
|
261
|
+
- '157'
|
262
|
+
Connection:
|
263
|
+
- keep-alive
|
264
|
+
body:
|
265
|
+
encoding: UTF-8
|
266
|
+
string: '{"response":{"error":"Not Found","version":2,"code":404,"method":"DELETE","href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts/386630"}}'
|
267
|
+
http_version:
|
268
|
+
recorded_at: Sat, 01 Aug 2015 00:30:52 GMT
|
269
|
+
- request:
|
270
|
+
method: delete
|
271
|
+
uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts/gjvxwtlgmtkcxauoecth1366669578
|
272
|
+
body:
|
273
|
+
encoding: UTF-8
|
274
|
+
string: "{}"
|
275
|
+
headers:
|
276
|
+
Authorization:
|
277
|
+
- Bearer API KEY
|
278
|
+
Content-Type:
|
279
|
+
- application/json
|
280
|
+
Accepts:
|
281
|
+
- application/json
|
282
|
+
X-Client-Id:
|
283
|
+
- 508fc620018d162a070000d6
|
284
|
+
response:
|
285
|
+
status:
|
286
|
+
code: 200
|
287
|
+
message: OK
|
288
|
+
headers:
|
289
|
+
Cache-Control:
|
290
|
+
- max-age=0, private, must-revalidate
|
291
|
+
Content-Type:
|
292
|
+
- application/json; charset=utf-8
|
293
|
+
Date:
|
294
|
+
- Mon, 03 Aug 2015 13:29:33 GMT
|
295
|
+
Etag:
|
296
|
+
- '"41a6f07c50bfd2f08bcfaf6f2c10cc8c"'
|
297
|
+
Server:
|
298
|
+
- nginx
|
299
|
+
Status:
|
300
|
+
- 200 OK
|
301
|
+
X-Rack-Cache:
|
302
|
+
- invalidate, pass
|
303
|
+
X-Request-Id:
|
304
|
+
- edf466b9265cdfb33f3d3c918c1afe40
|
305
|
+
X-Runtime:
|
306
|
+
- '0.043648'
|
307
|
+
X-Ua-Compatible:
|
308
|
+
- IE=Edge,chrome=1
|
309
|
+
Content-Length:
|
310
|
+
- '185'
|
311
|
+
Connection:
|
312
|
+
- keep-alive
|
313
|
+
body:
|
314
|
+
encoding: UTF-8
|
315
|
+
string: '{"response":{"title":"Heart Deleted","version":2,"code":200,"method":"DELETE","href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts/gjvxwtlgmtkcxauoecth1366669578"}}'
|
316
|
+
http_version:
|
317
|
+
recorded_at: Mon, 03 Aug 2015 13:30:04 GMT
|
318
|
+
- request:
|
319
|
+
method: post
|
320
|
+
uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
|
321
|
+
body:
|
322
|
+
encoding: UTF-8
|
323
|
+
string: "{}"
|
324
|
+
headers:
|
325
|
+
Authorization:
|
326
|
+
- Bearer API KEY
|
327
|
+
Content-Type:
|
328
|
+
- application/json
|
329
|
+
Accepts:
|
330
|
+
- application/json
|
331
|
+
X-Client-Id:
|
332
|
+
- 508fc620018d162a070000d6
|
333
|
+
response:
|
334
|
+
status:
|
335
|
+
code: 201
|
336
|
+
message: Created
|
337
|
+
headers:
|
338
|
+
Cache-Control:
|
339
|
+
- max-age=0, private, must-revalidate
|
340
|
+
Content-Type:
|
341
|
+
- application/json; charset=utf-8
|
342
|
+
Date:
|
343
|
+
- Mon, 03 Aug 2015 13:29:46 GMT
|
344
|
+
Etag:
|
345
|
+
- '"7545cacd8866be82fab2b045e82614af"'
|
346
|
+
Last-Modified:
|
347
|
+
- Mon, 03 Aug 2015 13:29:46 GMT
|
348
|
+
Server:
|
349
|
+
- nginx
|
350
|
+
Status:
|
351
|
+
- 201 Created
|
352
|
+
X-Rack-Cache:
|
353
|
+
- invalidate, pass
|
354
|
+
X-Request-Id:
|
355
|
+
- ad60f9c92cdc6c50f14ff2933f2d9478
|
356
|
+
X-Runtime:
|
357
|
+
- '0.054616'
|
358
|
+
X-Ua-Compatible:
|
359
|
+
- IE=Edge,chrome=1
|
360
|
+
Content-Length:
|
361
|
+
- '436'
|
362
|
+
Connection:
|
363
|
+
- keep-alive
|
364
|
+
body:
|
365
|
+
encoding: UTF-8
|
366
|
+
string: '{"response":{"title":"Heart Details","version":2,"code":201,"method":"POST","href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts"},"data":{"id":1856819,"links":{"href":"https://getchute.com/v2/hearts/mmjjcjeatshbacgpzcrr1438608586","title":"Heart
|
367
|
+
Details"},"created_at":"2015-08-03T13:29:46Z","updated_at":"2015-08-03T13:29:46Z","identifier":"mmjjcjeatshbacgpzcrr1438608586","album_id":2412456,"asset_id":79517672}}'
|
368
|
+
http_version:
|
369
|
+
recorded_at: Mon, 03 Aug 2015 13:30:17 GMT
|
370
|
+
- request:
|
371
|
+
method: delete
|
372
|
+
uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts/mmjjcjeatshbacgpzcrr1438608586
|
373
|
+
body:
|
374
|
+
encoding: UTF-8
|
375
|
+
string: "{}"
|
376
|
+
headers:
|
377
|
+
Authorization:
|
378
|
+
- Bearer API KEY
|
379
|
+
Content-Type:
|
380
|
+
- application/json
|
381
|
+
Accepts:
|
382
|
+
- application/json
|
383
|
+
X-Client-Id:
|
384
|
+
- 508fc620018d162a070000d6
|
385
|
+
response:
|
386
|
+
status:
|
387
|
+
code: 200
|
388
|
+
message: OK
|
389
|
+
headers:
|
390
|
+
Cache-Control:
|
391
|
+
- max-age=0, private, must-revalidate
|
392
|
+
Content-Type:
|
393
|
+
- application/json; charset=utf-8
|
394
|
+
Date:
|
395
|
+
- Mon, 03 Aug 2015 13:29:46 GMT
|
396
|
+
Etag:
|
397
|
+
- '"53d9efdc2ab9b68b489ee2ffba4cc49e"'
|
398
|
+
Server:
|
399
|
+
- nginx
|
400
|
+
Status:
|
401
|
+
- 200 OK
|
402
|
+
X-Rack-Cache:
|
403
|
+
- invalidate, pass
|
404
|
+
X-Request-Id:
|
405
|
+
- 0a9de6cf3dffeb18e8e3caa376562423
|
406
|
+
X-Runtime:
|
407
|
+
- '0.018644'
|
408
|
+
X-Ua-Compatible:
|
409
|
+
- IE=Edge,chrome=1
|
410
|
+
Content-Length:
|
411
|
+
- '185'
|
412
|
+
Connection:
|
413
|
+
- keep-alive
|
414
|
+
body:
|
415
|
+
encoding: UTF-8
|
416
|
+
string: '{"response":{"title":"Heart Deleted","version":2,"code":200,"method":"DELETE","href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts/mmjjcjeatshbacgpzcrr1438608586"}}'
|
417
|
+
http_version:
|
418
|
+
recorded_at: Mon, 03 Aug 2015 13:30:18 GMT
|
419
|
+
recorded_with: VCR 2.9.3
|