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.
Files changed (85) hide show
  1. data/Gemfile +16 -2
  2. data/Gemfile.lock +52 -0
  3. data/LICENSE.txt +20 -0
  4. data/README.md +46 -0
  5. data/Rakefile +48 -6
  6. data/VERSION +1 -0
  7. data/chute.gemspec +120 -16
  8. data/lib/chute.rb +7 -20
  9. data/lib/chute/client.rb +42 -0
  10. data/lib/chute/configuration.rb +40 -0
  11. data/lib/chute/connection.rb +64 -0
  12. data/lib/chute/response.rb +22 -0
  13. data/lib/chute/v2/albums.rb +60 -0
  14. data/lib/chute/v2/assets.rb +55 -0
  15. data/lib/chute/v2/comments.rb +29 -0
  16. data/lib/chute/v2/flags.rb +21 -0
  17. data/lib/chute/v2/hearts.rb +21 -0
  18. data/lib/chute/v2/parcels.rb +21 -0
  19. data/lib/chute/v2/tags.rb +36 -0
  20. data/lib/chute/v2/triggers.rb +26 -0
  21. data/lib/chute/v2/users.rb +18 -0
  22. data/lib/chute/v2/votes.rb +21 -0
  23. data/lib/chute/version.rb +7 -1
  24. data/spec/chute/chute_spec.rb +64 -0
  25. data/spec/chute/client_spec.rb +82 -0
  26. data/spec/chute/connection_spec.rb +47 -0
  27. data/spec/chute/response_spec.rb +16 -0
  28. data/spec/chute/v2/albums_spec.rb +197 -0
  29. data/spec/chute/v2/assets_spec.rb +171 -0
  30. data/spec/chute/v2/comments_spec.rb +88 -0
  31. data/spec/chute/v2/flags_spec.rb +56 -0
  32. data/spec/chute/v2/hearts_spec.rb +57 -0
  33. data/spec/chute/v2/parcels_spec.rb +24 -0
  34. data/spec/chute/v2/tags_spec.rb +79 -0
  35. data/spec/chute/v2/trigger_spec.rb +127 -0
  36. data/spec/chute/v2/users_spec.rb +53 -0
  37. data/spec/chute/v2/votes_spec.rb +56 -0
  38. data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +69 -0
  39. data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +187 -0
  40. data/spec/fixtures/chute_cassettes/albums/albums_create.yml +69 -0
  41. data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +128 -0
  42. data/spec/fixtures/chute_cassettes/albums/albums_get.yml +135 -0
  43. data/spec/fixtures/chute_cassettes/albums/albums_list.yml +89 -0
  44. data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +128 -0
  45. data/spec/fixtures/chute_cassettes/albums/albums_update.yml +135 -0
  46. data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +131 -0
  47. data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +197 -0
  48. data/spec/fixtures/chute_cassettes/assets/assets_get.yml +138 -0
  49. data/spec/fixtures/chute_cassettes/assets/assets_import.yml +76 -0
  50. data/spec/fixtures/chute_cassettes/assets/assets_list.yml +77 -0
  51. data/spec/fixtures/chute_cassettes/assets/assets_update.yml +138 -0
  52. data/spec/fixtures/chute_cassettes/comments/comments_create.yml +196 -0
  53. data/spec/fixtures/chute_cassettes/comments/comments_list.yml +259 -0
  54. data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +313 -0
  55. data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +254 -0
  56. data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +311 -0
  57. data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +62 -0
  58. data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +184 -0
  59. data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +65 -0
  60. data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +124 -0
  61. data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +66 -0
  62. data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +127 -0
  63. data/spec/fixtures/chute_cassettes/users/users_get.yml +128 -0
  64. data/spec/fixtures/chute_cassettes/users/users_me.yml +66 -0
  65. data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +313 -0
  66. data/spec/spec_helper.rb +27 -0
  67. metadata +210 -33
  68. data/.gitignore +0 -5
  69. data/README +0 -125
  70. data/config/chute.rb +0 -0
  71. data/lib/chute/account.rb +0 -58
  72. data/lib/chute/app.rb +0 -32
  73. data/lib/chute/asset.rb +0 -124
  74. data/lib/chute/bundle.rb +0 -72
  75. data/lib/chute/chute.rb +0 -203
  76. data/lib/chute/collection.rb +0 -47
  77. data/lib/chute/comment.rb +0 -32
  78. data/lib/chute/exception.rb +0 -7
  79. data/lib/chute/http_service.rb +0 -114
  80. data/lib/chute/inbox.rb +0 -41
  81. data/lib/chute/parcel.rb +0 -45
  82. data/lib/chute/resource.rb +0 -354
  83. data/lib/chute/user.rb +0 -113
  84. data/lib/chute/util.rb +0 -14
  85. data/test/test_sudoku.rb +0 -7
@@ -0,0 +1,259 @@
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
+ - 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:05 GMT
29
+ Etag:
30
+ - ! '"b6ae9efb087bea35b169ec0991b963fc"'
31
+ Last-Modified:
32
+ - Mon, 08 Apr 2013 22:54:05 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
+ - '4999880'
39
+ X-Available-Monthly-Calls:
40
+ - '3719999821'
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
+ - a870c91990ee635405fcf917e4836a9e
51
+ X-Runtime:
52
+ - '0.032124'
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":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Comments","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999821,"max_hourly_calls":5000000,"available_hourly_calls":4999880}},"data":{"id":2406199,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406199","title":"Album
62
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406199/assets","title":"Asset
63
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406199/parcels","title":"Parcel
64
+ Listing"}},"created_at":"2013-04-08T22:54:05Z","updated_at":"2013-04-08T22:54:05Z","shortcut":"a5XFvmle","name":"Album
65
+ for Comments","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
+ 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
+ http_version:
68
+ recorded_at: Mon, 08 Apr 2013 22:54:05 GMT
69
+ - request:
70
+ method: post
71
+ uri: https://api.getchute.com/v2/albums/2406199/assets/import
72
+ body:
73
+ encoding: UTF-8
74
+ string: ! '{"urls":["http://farm9.staticflickr.com/8194/8141607138_bfaea3afd9.jpg"]}'
75
+ headers:
76
+ Authorization:
77
+ - OAuth API KEY
78
+ Content-Type:
79
+ - application/json
80
+ Accepts:
81
+ - application/json
82
+ X-Client-Id:
83
+ - 508fc620018d162a070000d6
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: OK
88
+ headers:
89
+ Cache-Control:
90
+ - max-age=0, private, must-revalidate
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Date:
94
+ - Mon, 08 Apr 2013 22:54:06 GMT
95
+ Etag:
96
+ - ! '"e109632f58397e26b953c827c1486da8"'
97
+ Last-Modified:
98
+ - Thu, 29 Nov 2012 13:55:20 GMT
99
+ Server:
100
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
101
+ Status:
102
+ - '200'
103
+ X-Available-Hourly-Calls:
104
+ - '4999879'
105
+ X-Available-Monthly-Calls:
106
+ - '3719999820'
107
+ X-Max-Hourly-Calls:
108
+ - '5000000'
109
+ X-Max-Monthly-Calls:
110
+ - '3720000000'
111
+ X-Powered-By:
112
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
113
+ X-Rack-Cache:
114
+ - invalidate, pass
115
+ X-Request-Id:
116
+ - 9fb44433ab8be77ee9f90437a9a5a15d
117
+ X-Runtime:
118
+ - '0.050220'
119
+ X-Ua-Compatible:
120
+ - IE=Edge,chrome=1
121
+ Transfer-Encoding:
122
+ - chunked
123
+ Connection:
124
+ - keep-alive
125
+ body:
126
+ encoding: US-ASCII
127
+ string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406199/assets/import?&urls%5B%5D=http%3A%2F%2Ffarm9.staticflickr.com%2F8194%2F8141607138_bfaea3afd9.jpg","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999820,"max_hourly_calls":5000000,"available_hourly_calls":4999879}},"data":[{"id":72569916,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406199/assets/72569916","title":"Asset
128
+ Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2406199/assets/72569916/exif","title":"Exif
129
+ Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2406199/assets/72569916/geo","title":"Geo
130
+ Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a5XFvmle/assets/4UuKweohy/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a5XFvmle/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
+ http_version:
132
+ recorded_at: Mon, 08 Apr 2013 22:54:06 GMT
133
+ - request:
134
+ method: post
135
+ uri: https://api.getchute.com/v2/albums/2406199/assets/72569916/comments
136
+ body:
137
+ encoding: UTF-8
138
+ string: ! '{"comment_text":"My Test Comment for listing"}'
139
+ headers:
140
+ Authorization:
141
+ - OAuth API KEY
142
+ Content-Type:
143
+ - application/json
144
+ Accepts:
145
+ - application/json
146
+ X-Client-Id:
147
+ - 508fc620018d162a070000d6
148
+ response:
149
+ status:
150
+ code: 201
151
+ message: Created
152
+ headers:
153
+ Cache-Control:
154
+ - max-age=0, private, must-revalidate
155
+ Content-Type:
156
+ - application/json; charset=utf-8
157
+ Date:
158
+ - Mon, 08 Apr 2013 22:54:06 GMT
159
+ Etag:
160
+ - ! '"ccc735bd2d7fd82b0213e4fc19c36422"'
161
+ Last-Modified:
162
+ - Mon, 08 Apr 2013 22:54:06 GMT
163
+ Server:
164
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
165
+ Status:
166
+ - '201'
167
+ X-Available-Hourly-Calls:
168
+ - '4999878'
169
+ X-Available-Monthly-Calls:
170
+ - '3719999819'
171
+ X-Max-Hourly-Calls:
172
+ - '5000000'
173
+ X-Max-Monthly-Calls:
174
+ - '3720000000'
175
+ X-Powered-By:
176
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
177
+ X-Rack-Cache:
178
+ - invalidate, pass
179
+ X-Request-Id:
180
+ - 5c3cc33db978166aea680f9e005b6919
181
+ X-Runtime:
182
+ - '0.033780'
183
+ X-Ua-Compatible:
184
+ - IE=Edge,chrome=1
185
+ Content-Length:
186
+ - '632'
187
+ Connection:
188
+ - keep-alive
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ! '{"response":{"title":"Comment Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406199/assets/72569916/comments?comment%5Bcomment_text%5D=My+Test+Comment+for+listing&comment_text=My+Test+Comment+for+listing","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999819,"max_hourly_calls":5000000,"available_hourly_calls":4999878}},"data":{"id":688,"links":{"self":{"href":"http://api.getchute.com/v2/comments/688","title":"Comment
192
+ Details"}},"created_at":"2013-04-08T22:54:06Z","updated_at":"2013-04-08T22:54:06Z","comment_text":"My
193
+ Test Comment for listing","name":null,"email":null}}'
194
+ http_version:
195
+ recorded_at: Mon, 08 Apr 2013 22:54:06 GMT
196
+ - request:
197
+ method: get
198
+ uri: https://api.getchute.com/v2/albums/2406199/assets/72569916/comments
199
+ body:
200
+ encoding: UTF-8
201
+ string: ! '{}'
202
+ headers:
203
+ Authorization:
204
+ - OAuth API KEY
205
+ Content-Type:
206
+ - application/json
207
+ Accepts:
208
+ - application/json
209
+ X-Client-Id:
210
+ - 508fc620018d162a070000d6
211
+ response:
212
+ status:
213
+ code: 200
214
+ message: OK
215
+ headers:
216
+ Cache-Control:
217
+ - must-revalidate, private, max-age=0
218
+ Content-Type:
219
+ - application/json; charset=utf-8
220
+ Date:
221
+ - Mon, 08 Apr 2013 22:54:07 GMT
222
+ Etag:
223
+ - ! '"ccc735bd2d7fd82b0213e4fc19c36422"'
224
+ Last-Modified:
225
+ - Mon, 08 Apr 2013 22:54:06 GMT
226
+ Server:
227
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
228
+ Status:
229
+ - '200'
230
+ X-Available-Hourly-Calls:
231
+ - '4999877'
232
+ X-Available-Monthly-Calls:
233
+ - '3719999818'
234
+ X-Max-Hourly-Calls:
235
+ - '5000000'
236
+ X-Max-Monthly-Calls:
237
+ - '3720000000'
238
+ X-Powered-By:
239
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
240
+ X-Rack-Cache:
241
+ - miss
242
+ X-Request-Id:
243
+ - 5f58de2fdf2ce48fae31254607826cf3
244
+ X-Runtime:
245
+ - '0.031899'
246
+ X-Ua-Compatible:
247
+ - IE=Edge,chrome=1
248
+ Content-Length:
249
+ - '707'
250
+ Connection:
251
+ - keep-alive
252
+ body:
253
+ encoding: US-ASCII
254
+ string: ! '{"response":{"title":"Comment Listing","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406199/assets/72569916/comments?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999818,"max_hourly_calls":5000000,"available_hourly_calls":4999877}},"data":[{"id":688,"links":{"self":{"href":"http://api.getchute.com/v2/comments/688","title":"Comment
255
+ Details"}},"created_at":"2013-04-08T22:54:06Z","updated_at":"2013-04-08T22:54:06Z","comment_text":"My
256
+ Test Comment for listing","name":null,"email":null}],"pagination":{"current_page":1,"next_page":null,"previous_page":null,"first_page":"https://api.getchute.com/v2/albums/2406199/assets/72569916/comments?","per_page":5}}'
257
+ http_version:
258
+ recorded_at: Mon, 08 Apr 2013 22:54:07 GMT
259
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,313 @@
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 Flags"}}'
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:08 GMT
29
+ Etag:
30
+ - ! '"748cc9cbb2dfc0a51469b70093b54e24"'
31
+ Last-Modified:
32
+ - Mon, 08 Apr 2013 22:54:08 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
+ - '4999876'
39
+ X-Available-Monthly-Calls:
40
+ - '3719999817'
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
+ - 549c5f1264356b3c62aa53554e969edb
51
+ X-Runtime:
52
+ - '0.166813'
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":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Flags","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999817,"max_hourly_calls":5000000,"available_hourly_calls":4999876}},"data":{"id":2406200,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406200","title":"Album
62
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406200/assets","title":"Asset
63
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406200/parcels","title":"Parcel
64
+ Listing"}},"created_at":"2013-04-08T22:54:08Z","updated_at":"2013-04-08T22:54:08Z","shortcut":"a5XGbzqc","name":"Album
65
+ for Flags","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
+ 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
+ http_version:
68
+ recorded_at: Mon, 08 Apr 2013 22:54:08 GMT
69
+ - request:
70
+ method: post
71
+ uri: https://api.getchute.com/v2/albums/2406200/assets/import
72
+ body:
73
+ encoding: UTF-8
74
+ string: ! '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
75
+ headers:
76
+ Authorization:
77
+ - OAuth API KEY
78
+ Content-Type:
79
+ - application/json
80
+ Accepts:
81
+ - application/json
82
+ X-Client-Id:
83
+ - 508fc620018d162a070000d6
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: OK
88
+ headers:
89
+ Cache-Control:
90
+ - max-age=0, private, must-revalidate
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Date:
94
+ - Mon, 08 Apr 2013 22:54:08 GMT
95
+ Etag:
96
+ - ! '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
97
+ Last-Modified:
98
+ - Wed, 05 Dec 2012 14:19:19 GMT
99
+ Server:
100
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
101
+ Status:
102
+ - '200'
103
+ X-Available-Hourly-Calls:
104
+ - '4999875'
105
+ X-Available-Monthly-Calls:
106
+ - '3719999816'
107
+ X-Max-Hourly-Calls:
108
+ - '5000000'
109
+ X-Max-Monthly-Calls:
110
+ - '3720000000'
111
+ X-Powered-By:
112
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
113
+ X-Rack-Cache:
114
+ - invalidate, pass
115
+ X-Request-Id:
116
+ - 0ed9cfa75ad821f608a885f605d25e36
117
+ X-Runtime:
118
+ - '0.050276'
119
+ X-Ua-Compatible:
120
+ - IE=Edge,chrome=1
121
+ Transfer-Encoding:
122
+ - chunked
123
+ Connection:
124
+ - keep-alive
125
+ body:
126
+ encoding: US-ASCII
127
+ string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406200/assets/import?&urls%5B%5D=http%3A%2F%2Fsphotos-f.ak.fbcdn.net%2Fhphotos-ak-snc6%2F6393_451942991531262_1464781412_n.jpg","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999816,"max_hourly_calls":5000000,"available_hourly_calls":4999875}},"data":[{"id":79517672,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406200/assets/79517672","title":"Asset
128
+ Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2406200/assets/79517672/exif","title":"Exif
129
+ Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2406200/assets/79517672/geo","title":"Geo
130
+ Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a5XGbzqc/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a5XGbzqc/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"}]}'
131
+ http_version:
132
+ recorded_at: Mon, 08 Apr 2013 22:54:08 GMT
133
+ - request:
134
+ method: post
135
+ uri: https://api.getchute.com/v2/albums/2406200/assets/79517672/flags
136
+ body:
137
+ encoding: UTF-8
138
+ string: ! '{}'
139
+ headers:
140
+ Authorization:
141
+ - OAuth API KEY
142
+ Content-Type:
143
+ - application/json
144
+ Accepts:
145
+ - application/json
146
+ X-Client-Id:
147
+ - 508fc620018d162a070000d6
148
+ response:
149
+ status:
150
+ code: 201
151
+ message: Created
152
+ headers:
153
+ Cache-Control:
154
+ - max-age=0, private, must-revalidate
155
+ Content-Type:
156
+ - application/json; charset=utf-8
157
+ Date:
158
+ - Mon, 08 Apr 2013 22:54:09 GMT
159
+ Etag:
160
+ - ! '"f39a219a312bf382276ca3923edc0ac1"'
161
+ Last-Modified:
162
+ - Mon, 08 Apr 2013 22:54:09 GMT
163
+ Server:
164
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
165
+ Status:
166
+ - '201'
167
+ X-Available-Hourly-Calls:
168
+ - '4999874'
169
+ X-Available-Monthly-Calls:
170
+ - '3719999815'
171
+ X-Max-Hourly-Calls:
172
+ - '5000000'
173
+ X-Max-Monthly-Calls:
174
+ - '3720000000'
175
+ X-Powered-By:
176
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
177
+ X-Rack-Cache:
178
+ - invalidate, pass
179
+ X-Request-Id:
180
+ - 53aeaed49e16466183e24082a5233225
181
+ X-Runtime:
182
+ - '0.047333'
183
+ X-Ua-Compatible:
184
+ - IE=Edge,chrome=1
185
+ Content-Length:
186
+ - '539'
187
+ Connection:
188
+ - keep-alive
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ! '{"response":{"title":"Flag Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406200/assets/79517672/flags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999815,"max_hourly_calls":5000000,"available_hourly_calls":4999874}},"data":{"id":11,"links":{"self":{"href":"http://api.getchute.com/v2/flags/11","title":"Flag
192
+ Details"}},"created_at":"2013-04-08T22:54:09Z","updated_at":"2013-04-08T22:54:09Z","identifier":"jgcniqrhfbzdfprngxkd1365461649","album_id":2406200,"asset_id":79517672}}'
193
+ http_version:
194
+ recorded_at: Mon, 08 Apr 2013 22:54:09 GMT
195
+ - request:
196
+ method: get
197
+ uri: https://api.getchute.com/v2/albums/2406200/assets/79517672/flags
198
+ body:
199
+ encoding: UTF-8
200
+ string: ! '{}'
201
+ headers:
202
+ Authorization:
203
+ - OAuth API KEY
204
+ Content-Type:
205
+ - application/json
206
+ Accepts:
207
+ - application/json
208
+ X-Client-Id:
209
+ - 508fc620018d162a070000d6
210
+ response:
211
+ status:
212
+ code: 201
213
+ message: Created
214
+ headers:
215
+ Cache-Control:
216
+ - must-revalidate, private, max-age=0
217
+ Content-Type:
218
+ - application/json; charset=utf-8
219
+ Date:
220
+ - Mon, 08 Apr 2013 22:54:09 GMT
221
+ Etag:
222
+ - ! '"842ac25dfc13bf0dfcfa75cdc3d8824e"'
223
+ Server:
224
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
225
+ Status:
226
+ - '201'
227
+ X-Available-Hourly-Calls:
228
+ - '4999873'
229
+ X-Available-Monthly-Calls:
230
+ - '3719999814'
231
+ X-Max-Hourly-Calls:
232
+ - '5000000'
233
+ X-Max-Monthly-Calls:
234
+ - '3720000000'
235
+ X-Powered-By:
236
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
237
+ X-Rack-Cache:
238
+ - miss
239
+ X-Request-Id:
240
+ - 3b5a79864dd5cbc7c5494321a523e236
241
+ X-Runtime:
242
+ - '0.022918'
243
+ X-Ua-Compatible:
244
+ - IE=Edge,chrome=1
245
+ Content-Length:
246
+ - '295'
247
+ Connection:
248
+ - keep-alive
249
+ body:
250
+ encoding: US-ASCII
251
+ string: ! '{"response":{"title":"Flag Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2406200/assets/79517672/flags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999814,"max_hourly_calls":5000000,"available_hourly_calls":4999873}},"data":{"count":1}}'
252
+ http_version:
253
+ recorded_at: Mon, 08 Apr 2013 22:54:09 GMT
254
+ - request:
255
+ method: delete
256
+ uri: https://api.getchute.com/v2/albums/2406200/assets/79517672/flags
257
+ body:
258
+ encoding: UTF-8
259
+ string: ! '{}'
260
+ headers:
261
+ Authorization:
262
+ - OAuth API KEY
263
+ Content-Type:
264
+ - application/json
265
+ Accepts:
266
+ - application/json
267
+ X-Client-Id:
268
+ - 508fc620018d162a070000d6
269
+ response:
270
+ status:
271
+ code: 200
272
+ message: OK
273
+ headers:
274
+ Cache-Control:
275
+ - max-age=0, private, must-revalidate
276
+ Content-Type:
277
+ - application/json; charset=utf-8
278
+ Date:
279
+ - Mon, 08 Apr 2013 22:54:10 GMT
280
+ Etag:
281
+ - ! '"d812babab55f9ced5e25ca402124cbce"'
282
+ Server:
283
+ - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
284
+ Status:
285
+ - '200'
286
+ X-Available-Hourly-Calls:
287
+ - '4999872'
288
+ X-Available-Monthly-Calls:
289
+ - '3719999813'
290
+ X-Max-Hourly-Calls:
291
+ - '5000000'
292
+ X-Max-Monthly-Calls:
293
+ - '3720000000'
294
+ X-Powered-By:
295
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
296
+ X-Rack-Cache:
297
+ - invalidate, pass
298
+ X-Request-Id:
299
+ - 8fb17162ada308a5f8947c6b0f47331c
300
+ X-Runtime:
301
+ - '0.029834'
302
+ X-Ua-Compatible:
303
+ - IE=Edge,chrome=1
304
+ Content-Length:
305
+ - '278'
306
+ Connection:
307
+ - keep-alive
308
+ body:
309
+ encoding: US-ASCII
310
+ string: ! '{"response":{"title":"Flag Removed","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406200/assets/79517672/flags?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999813,"max_hourly_calls":5000000,"available_hourly_calls":4999872}}}'
311
+ http_version:
312
+ recorded_at: Mon, 08 Apr 2013 22:54:10 GMT
313
+ recorded_with: VCR 2.2.5