chute 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +0 -1
- data/chute.gemspec +3 -5
- data/lib/chute/connection.rb +1 -1
- data/lib/chute/v2/accounts.rb +13 -0
- data/lib/chute/version.rb +1 -1
- data/spec/chute/connection_spec.rb +1 -1
- data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +13 -21
- data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +23 -47
- data/spec/fixtures/chute_cassettes/albums/albums_create.yml +13 -21
- data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +20 -36
- data/spec/fixtures/chute_cassettes/albums/albums_get.yml +23 -39
- data/spec/fixtures/chute_cassettes/albums/albums_list.yml +27 -35
- data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +17 -33
- data/spec/fixtures/chute_cassettes/albums/albums_update.yml +23 -39
- data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +20 -36
- data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +24 -48
- data/spec/fixtures/chute_cassettes/assets/assets_get.yml +17 -33
- data/spec/fixtures/chute_cassettes/assets/assets_import.yml +8 -16
- data/spec/fixtures/chute_cassettes/assets/assets_list.yml +9 -17
- data/spec/fixtures/chute_cassettes/assets/assets_update.yml +18 -34
- data/spec/fixtures/chute_cassettes/comments/comments_create.yml +33 -57
- data/spec/fixtures/chute_cassettes/comments/comments_list.yml +44 -76
- data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +50 -90
- data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +41 -73
- data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +50 -90
- data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +7 -15
- data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +30 -54
- data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +10 -18
- data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +19 -35
- data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +12 -20
- data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +21 -37
- data/spec/fixtures/chute_cassettes/users/users_get.yml +14 -30
- data/spec/fixtures/chute_cassettes/users/users_me.yml +7 -15
- data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +50 -90
- metadata +4 -19
| @@ -8,7 +8,7 @@ http_interactions: | |
| 8 8 | 
             
                  string: ! '{"album":{"name":"Album for Flags"}}'
         | 
| 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:14 GMT
         | 
| 29 29 | 
             
                  Etag:
         | 
| 30 | 
            -
                  - ! '" | 
| 30 | 
            +
                  - ! '"2085e3a44f86f98194a82102eb92296b"'
         | 
| 31 31 | 
             
                  Last-Modified:
         | 
| 32 | 
            -
                  - Mon,  | 
| 32 | 
            +
                  - Mon, 22 Apr 2013 22:26:14 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 | 
            -
                  - '4999876'
         | 
| 39 | 
            -
                  X-Available-Monthly-Calls:
         | 
| 40 | 
            -
                  - '3719999817'
         | 
| 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 | 
            +
                  - be2b5af9756cee85c8b98ea981528168
         | 
| 51 43 | 
             
                  X-Runtime:
         | 
| 52 | 
            -
                  - '0. | 
| 44 | 
            +
                  - '0.053832'
         | 
| 53 45 | 
             
                  X-Ua-Compatible:
         | 
| 54 46 | 
             
                  - IE=Edge,chrome=1
         | 
| 55 47 | 
             
                  Transfer-Encoding:
         | 
| @@ -58,23 +50,23 @@ http_interactions: | |
| 58 50 | 
             
                  - keep-alive
         | 
| 59 51 | 
             
                body:
         | 
| 60 52 | 
             
                  encoding: US-ASCII
         | 
| 61 | 
            -
                  string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Flags" | 
| 62 | 
            -
                    Details"},"assets":{"href":"http://api.getchute.com/v2/albums/ | 
| 63 | 
            -
                    Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/ | 
| 64 | 
            -
                    Listing"}},"created_at":"2013-04- | 
| 53 | 
            +
                  string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Flags"},"data":{"id":2412455,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412455","title":"Album
         | 
| 54 | 
            +
                    Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412455/assets","title":"Asset
         | 
| 55 | 
            +
                    Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412455/parcels","title":"Parcel
         | 
| 56 | 
            +
                    Listing"}},"created_at":"2013-04-22T22:26:14Z","updated_at":"2013-04-22T22:26:14Z","shortcut":"a7Azystp","name":"Album
         | 
| 65 57 | 
             
                    for Flags","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:14 GMT
         | 
| 69 61 | 
             
            - request:
         | 
| 70 62 | 
             
                method: post
         | 
| 71 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 63 | 
            +
                uri: https://api.getchute.com/v2/albums/2412455/assets/import
         | 
| 72 64 | 
             
                body:
         | 
| 73 65 | 
             
                  encoding: UTF-8
         | 
| 74 66 | 
             
                  string: ! '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
         | 
| 75 67 | 
             
                headers:
         | 
| 76 68 | 
             
                  Authorization:
         | 
| 77 | 
            -
                  -  | 
| 69 | 
            +
                  - Bearer API KEY
         | 
| 78 70 | 
             
                  Content-Type:
         | 
| 79 71 | 
             
                  - application/json
         | 
| 80 72 | 
             
                  Accepts:
         | 
| @@ -91,7 +83,7 @@ http_interactions: | |
| 91 83 | 
             
                  Content-Type:
         | 
| 92 84 | 
             
                  - application/json; charset=utf-8
         | 
| 93 85 | 
             
                  Date:
         | 
| 94 | 
            -
                  - Mon,  | 
| 86 | 
            +
                  - Mon, 22 Apr 2013 22:26:14 GMT
         | 
| 95 87 | 
             
                  Etag:
         | 
| 96 88 | 
             
                  - ! '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
         | 
| 97 89 | 
             
                  Last-Modified:
         | 
| @@ -100,22 +92,14 @@ http_interactions: | |
| 100 92 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 101 93 | 
             
                  Status:
         | 
| 102 94 | 
             
                  - '200'
         | 
| 103 | 
            -
                  X-Available-Hourly-Calls:
         | 
| 104 | 
            -
                  - '4999875'
         | 
| 105 | 
            -
                  X-Available-Monthly-Calls:
         | 
| 106 | 
            -
                  - '3719999816'
         | 
| 107 | 
            -
                  X-Max-Hourly-Calls:
         | 
| 108 | 
            -
                  - '5000000'
         | 
| 109 | 
            -
                  X-Max-Monthly-Calls:
         | 
| 110 | 
            -
                  - '3720000000'
         | 
| 111 95 | 
             
                  X-Powered-By:
         | 
| 112 96 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 113 97 | 
             
                  X-Rack-Cache:
         | 
| 114 98 | 
             
                  - invalidate, pass
         | 
| 115 99 | 
             
                  X-Request-Id:
         | 
| 116 | 
            -
                  -  | 
| 100 | 
            +
                  - 735eb3bb416715d26443593c58d407ee
         | 
| 117 101 | 
             
                  X-Runtime:
         | 
| 118 | 
            -
                  - '0. | 
| 102 | 
            +
                  - '0.090304'
         | 
| 119 103 | 
             
                  X-Ua-Compatible:
         | 
| 120 104 | 
             
                  - IE=Edge,chrome=1
         | 
| 121 105 | 
             
                  Transfer-Encoding:
         | 
| @@ -124,21 +108,21 @@ http_interactions: | |
| 124 108 | 
             
                  - keep-alive
         | 
| 125 109 | 
             
                body:
         | 
| 126 110 | 
             
                  encoding: US-ASCII
         | 
| 127 | 
            -
                  string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/ | 
| 128 | 
            -
                    Details"},"exif":{"href":"http://api.getchute.com/v2/albums/ | 
| 129 | 
            -
                    Details"},"geo":{"href":"http://api.getchute.com/v2/albums/ | 
| 130 | 
            -
                    Details"},"heart":{"href":"http://api.getchute.com/v2/albums/ | 
| 111 | 
            +
                  string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412455/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/2412455/assets/79517672","title":"Asset
         | 
| 112 | 
            +
                    Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412455/assets/79517672/exif","title":"Exif
         | 
| 113 | 
            +
                    Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412455/assets/79517672/geo","title":"Geo
         | 
| 114 | 
            +
                    Details"},"heart":{"href":"http://api.getchute.com/v2/albums/a7Azystp/assets/5nEb6mbik/hearts","title":"Heart"},"vote":{"href":"http://api.getchute.com/v2/albums/a7Azystp/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 115 | 
             
                http_version: 
         | 
| 132 | 
            -
              recorded_at: Mon,  | 
| 116 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:14 GMT
         | 
| 133 117 | 
             
            - request:
         | 
| 134 118 | 
             
                method: post
         | 
| 135 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 119 | 
            +
                uri: https://api.getchute.com/v2/albums/2412455/assets/79517672/flags
         | 
| 136 120 | 
             
                body:
         | 
| 137 121 | 
             
                  encoding: UTF-8
         | 
| 138 122 | 
             
                  string: ! '{}'
         | 
| 139 123 | 
             
                headers:
         | 
| 140 124 | 
             
                  Authorization:
         | 
| 141 | 
            -
                  -  | 
| 125 | 
            +
                  - Bearer API KEY
         | 
| 142 126 | 
             
                  Content-Type:
         | 
| 143 127 | 
             
                  - application/json
         | 
| 144 128 | 
             
                  Accepts:
         | 
| @@ -155,52 +139,44 @@ http_interactions: | |
| 155 139 | 
             
                  Content-Type:
         | 
| 156 140 | 
             
                  - application/json; charset=utf-8
         | 
| 157 141 | 
             
                  Date:
         | 
| 158 | 
            -
                  - Mon,  | 
| 142 | 
            +
                  - Mon, 22 Apr 2013 22:26:15 GMT
         | 
| 159 143 | 
             
                  Etag:
         | 
| 160 | 
            -
                  - ! '" | 
| 144 | 
            +
                  - ! '"e6cc8c9e81ef053dc039f25ff03f9e55"'
         | 
| 161 145 | 
             
                  Last-Modified:
         | 
| 162 | 
            -
                  - Mon,  | 
| 146 | 
            +
                  - Mon, 22 Apr 2013 22:26:15 GMT
         | 
| 163 147 | 
             
                  Server:
         | 
| 164 148 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 165 149 | 
             
                  Status:
         | 
| 166 150 | 
             
                  - '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 151 | 
             
                  X-Powered-By:
         | 
| 176 152 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 177 153 | 
             
                  X-Rack-Cache:
         | 
| 178 154 | 
             
                  - invalidate, pass
         | 
| 179 155 | 
             
                  X-Request-Id:
         | 
| 180 | 
            -
                  -  | 
| 156 | 
            +
                  - c7c01431fceae0a05cad8eca53aedec1
         | 
| 181 157 | 
             
                  X-Runtime:
         | 
| 182 | 
            -
                  - '0. | 
| 158 | 
            +
                  - '0.048470'
         | 
| 183 159 | 
             
                  X-Ua-Compatible:
         | 
| 184 160 | 
             
                  - IE=Edge,chrome=1
         | 
| 185 161 | 
             
                  Content-Length:
         | 
| 186 | 
            -
                  - ' | 
| 162 | 
            +
                  - '396'
         | 
| 187 163 | 
             
                  Connection:
         | 
| 188 164 | 
             
                  - keep-alive
         | 
| 189 165 | 
             
                body:
         | 
| 190 166 | 
             
                  encoding: US-ASCII
         | 
| 191 | 
            -
                  string: ! '{"response":{"title":"Flag Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/ | 
| 192 | 
            -
                    Details"}},"created_at":"2013-04- | 
| 167 | 
            +
                  string: ! '{"response":{"title":"Flag Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412455/assets/79517672/flags?"},"data":{"id":13,"links":{"self":{"href":"http://api.getchute.com/v2/flags/13","title":"Flag
         | 
| 168 | 
            +
                    Details"}},"created_at":"2013-04-22T22:26:15Z","updated_at":"2013-04-22T22:26:15Z","identifier":"wpmukflesnfnnlgjxeri1366669575","album_id":2412455,"asset_id":79517672}}'
         | 
| 193 169 | 
             
                http_version: 
         | 
| 194 | 
            -
              recorded_at: Mon,  | 
| 170 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:15 GMT
         | 
| 195 171 | 
             
            - request:
         | 
| 196 172 | 
             
                method: get
         | 
| 197 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 173 | 
            +
                uri: https://api.getchute.com/v2/albums/2412455/assets/79517672/flags
         | 
| 198 174 | 
             
                body:
         | 
| 199 175 | 
             
                  encoding: UTF-8
         | 
| 200 176 | 
             
                  string: ! '{}'
         | 
| 201 177 | 
             
                headers:
         | 
| 202 178 | 
             
                  Authorization:
         | 
| 203 | 
            -
                  -  | 
| 179 | 
            +
                  - Bearer API KEY
         | 
| 204 180 | 
             
                  Content-Type:
         | 
| 205 181 | 
             
                  - application/json
         | 
| 206 182 | 
             
                  Accepts:
         | 
| @@ -217,49 +193,41 @@ http_interactions: | |
| 217 193 | 
             
                  Content-Type:
         | 
| 218 194 | 
             
                  - application/json; charset=utf-8
         | 
| 219 195 | 
             
                  Date:
         | 
| 220 | 
            -
                  - Mon,  | 
| 196 | 
            +
                  - Mon, 22 Apr 2013 22:26:15 GMT
         | 
| 221 197 | 
             
                  Etag:
         | 
| 222 | 
            -
                  - ! '" | 
| 198 | 
            +
                  - ! '"08b7736d974ca9dbcabbcb155c590c7b"'
         | 
| 223 199 | 
             
                  Server:
         | 
| 224 200 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 225 201 | 
             
                  Status:
         | 
| 226 202 | 
             
                  - '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 203 | 
             
                  X-Powered-By:
         | 
| 236 204 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 237 205 | 
             
                  X-Rack-Cache:
         | 
| 238 206 | 
             
                  - miss
         | 
| 239 207 | 
             
                  X-Request-Id:
         | 
| 240 | 
            -
                  -  | 
| 208 | 
            +
                  - f12b677ffaaf378baff591f13794ac3d
         | 
| 241 209 | 
             
                  X-Runtime:
         | 
| 242 | 
            -
                  - '0. | 
| 210 | 
            +
                  - '0.030681'
         | 
| 243 211 | 
             
                  X-Ua-Compatible:
         | 
| 244 212 | 
             
                  - IE=Edge,chrome=1
         | 
| 245 213 | 
             
                  Content-Length:
         | 
| 246 | 
            -
                  - ' | 
| 214 | 
            +
                  - '152'
         | 
| 247 215 | 
             
                  Connection:
         | 
| 248 216 | 
             
                  - keep-alive
         | 
| 249 217 | 
             
                body:
         | 
| 250 218 | 
             
                  encoding: US-ASCII
         | 
| 251 | 
            -
                  string: ! '{"response":{"title":"Flag Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/ | 
| 219 | 
            +
                  string: ! '{"response":{"title":"Flag Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412455/assets/79517672/flags?"},"data":{"count":1}}'
         | 
| 252 220 | 
             
                http_version: 
         | 
| 253 | 
            -
              recorded_at: Mon,  | 
| 221 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:15 GMT
         | 
| 254 222 | 
             
            - request:
         | 
| 255 223 | 
             
                method: delete
         | 
| 256 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 224 | 
            +
                uri: https://api.getchute.com/v2/albums/2412455/assets/79517672/flags
         | 
| 257 225 | 
             
                body:
         | 
| 258 226 | 
             
                  encoding: UTF-8
         | 
| 259 227 | 
             
                  string: ! '{}'
         | 
| 260 228 | 
             
                headers:
         | 
| 261 229 | 
             
                  Authorization:
         | 
| 262 | 
            -
                  -  | 
| 230 | 
            +
                  - Bearer API KEY
         | 
| 263 231 | 
             
                  Content-Type:
         | 
| 264 232 | 
             
                  - application/json
         | 
| 265 233 | 
             
                  Accepts:
         | 
| @@ -276,38 +244,30 @@ http_interactions: | |
| 276 244 | 
             
                  Content-Type:
         | 
| 277 245 | 
             
                  - application/json; charset=utf-8
         | 
| 278 246 | 
             
                  Date:
         | 
| 279 | 
            -
                  - Mon,  | 
| 247 | 
            +
                  - Mon, 22 Apr 2013 22:26:16 GMT
         | 
| 280 248 | 
             
                  Etag:
         | 
| 281 | 
            -
                  - ! '" | 
| 249 | 
            +
                  - ! '"f613244e20ac75b6f1bf6ca363338c2c"'
         | 
| 282 250 | 
             
                  Server:
         | 
| 283 251 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 284 252 | 
             
                  Status:
         | 
| 285 253 | 
             
                  - '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 254 | 
             
                  X-Powered-By:
         | 
| 295 255 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 296 256 | 
             
                  X-Rack-Cache:
         | 
| 297 257 | 
             
                  - invalidate, pass
         | 
| 298 258 | 
             
                  X-Request-Id:
         | 
| 299 | 
            -
                  -  | 
| 259 | 
            +
                  - bae2432cf437d4acb653476e6aa8300b
         | 
| 300 260 | 
             
                  X-Runtime:
         | 
| 301 | 
            -
                  - '0. | 
| 261 | 
            +
                  - '0.045362'
         | 
| 302 262 | 
             
                  X-Ua-Compatible:
         | 
| 303 263 | 
             
                  - IE=Edge,chrome=1
         | 
| 304 264 | 
             
                  Content-Length:
         | 
| 305 | 
            -
                  - ' | 
| 265 | 
            +
                  - '135'
         | 
| 306 266 | 
             
                  Connection:
         | 
| 307 267 | 
             
                  - keep-alive
         | 
| 308 268 | 
             
                body:
         | 
| 309 269 | 
             
                  encoding: US-ASCII
         | 
| 310 | 
            -
                  string: ! '{"response":{"title":"Flag Removed","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/ | 
| 270 | 
            +
                  string: ! '{"response":{"title":"Flag Removed","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412455/assets/79517672/flags?"}}'
         | 
| 311 271 | 
             
                http_version: 
         | 
| 312 | 
            -
              recorded_at: Mon,  | 
| 272 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:16 GMT
         | 
| 313 273 | 
             
            recorded_with: VCR 2.2.5
         | 
| @@ -8,7 +8,7 @@ http_interactions: | |
| 8 8 | 
             
                  string: ! '{"album":{"name":"Album for Hearts"}}'
         | 
| 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:16 GMT
         | 
| 29 29 | 
             
                  Etag:
         | 
| 30 | 
            -
                  - ! '" | 
| 30 | 
            +
                  - ! '"f095b14bdd629354ffb60573a0e08f77"'
         | 
| 31 31 | 
             
                  Last-Modified:
         | 
| 32 | 
            -
                  - Mon,  | 
| 32 | 
            +
                  - Mon, 22 Apr 2013 22:26:16 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 | 
            -
                  - '4999871'
         | 
| 39 | 
            -
                  X-Available-Monthly-Calls:
         | 
| 40 | 
            -
                  - '3719999812'
         | 
| 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 | 
            +
                  - a3e6c97cc146ca32f0cb1217bd2ccd91
         | 
| 51 43 | 
             
                  X-Runtime:
         | 
| 52 | 
            -
                  - '0. | 
| 44 | 
            +
                  - '0.052896'
         | 
| 53 45 | 
             
                  X-Ua-Compatible:
         | 
| 54 46 | 
             
                  - IE=Edge,chrome=1
         | 
| 55 47 | 
             
                  Transfer-Encoding:
         | 
| @@ -58,23 +50,23 @@ http_interactions: | |
| 58 50 | 
             
                  - keep-alive
         | 
| 59 51 | 
             
                body:
         | 
| 60 52 | 
             
                  encoding: US-ASCII
         | 
| 61 | 
            -
                  string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Hearts" | 
| 62 | 
            -
                    Details"},"assets":{"href":"http://api.getchute.com/v2/albums/ | 
| 63 | 
            -
                    Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/ | 
| 64 | 
            -
                    Listing"}},"created_at":"2013-04- | 
| 53 | 
            +
                  string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Album+for+Hearts"},"data":{"id":2412456,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412456","title":"Album
         | 
| 54 | 
            +
                    Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412456/assets","title":"Asset
         | 
| 55 | 
            +
                    Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412456/parcels","title":"Parcel
         | 
| 56 | 
            +
                    Listing"}},"created_at":"2013-04-22T22:26:16Z","updated_at":"2013-04-22T22:26:16Z","shortcut":"a7AAyfzq","name":"Album
         | 
| 65 57 | 
             
                    for Hearts","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:17 GMT
         | 
| 69 61 | 
             
            - request:
         | 
| 70 62 | 
             
                method: post
         | 
| 71 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 63 | 
            +
                uri: https://api.getchute.com/v2/albums/2412456/assets/import
         | 
| 72 64 | 
             
                body:
         | 
| 73 65 | 
             
                  encoding: UTF-8
         | 
| 74 66 | 
             
                  string: ! '{"urls":["http://sphotos-f.ak.fbcdn.net/hphotos-ak-snc6/6393_451942991531262_1464781412_n.jpg"]}'
         | 
| 75 67 | 
             
                headers:
         | 
| 76 68 | 
             
                  Authorization:
         | 
| 77 | 
            -
                  -  | 
| 69 | 
            +
                  - Bearer API KEY
         | 
| 78 70 | 
             
                  Content-Type:
         | 
| 79 71 | 
             
                  - application/json
         | 
| 80 72 | 
             
                  Accepts:
         | 
| @@ -91,7 +83,7 @@ http_interactions: | |
| 91 83 | 
             
                  Content-Type:
         | 
| 92 84 | 
             
                  - application/json; charset=utf-8
         | 
| 93 85 | 
             
                  Date:
         | 
| 94 | 
            -
                  - Mon,  | 
| 86 | 
            +
                  - Mon, 22 Apr 2013 22:26:17 GMT
         | 
| 95 87 | 
             
                  Etag:
         | 
| 96 88 | 
             
                  - ! '"d9bdd7ad9e4993a0c72e3aae6d97ad7d"'
         | 
| 97 89 | 
             
                  Last-Modified:
         | 
| @@ -100,22 +92,14 @@ http_interactions: | |
| 100 92 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 101 93 | 
             
                  Status:
         | 
| 102 94 | 
             
                  - '200'
         | 
| 103 | 
            -
                  X-Available-Hourly-Calls:
         | 
| 104 | 
            -
                  - '4999869'
         | 
| 105 | 
            -
                  X-Available-Monthly-Calls:
         | 
| 106 | 
            -
                  - '3719999810'
         | 
| 107 | 
            -
                  X-Max-Hourly-Calls:
         | 
| 108 | 
            -
                  - '5000000'
         | 
| 109 | 
            -
                  X-Max-Monthly-Calls:
         | 
| 110 | 
            -
                  - '3720000000'
         | 
| 111 95 | 
             
                  X-Powered-By:
         | 
| 112 96 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 113 97 | 
             
                  X-Rack-Cache:
         | 
| 114 98 | 
             
                  - invalidate, pass
         | 
| 115 99 | 
             
                  X-Request-Id:
         | 
| 116 | 
            -
                  -  | 
| 100 | 
            +
                  - a78f58bb255e8e49047a6512bd956fcb
         | 
| 117 101 | 
             
                  X-Runtime:
         | 
| 118 | 
            -
                  - '0. | 
| 102 | 
            +
                  - '0.078380'
         | 
| 119 103 | 
             
                  X-Ua-Compatible:
         | 
| 120 104 | 
             
                  - IE=Edge,chrome=1
         | 
| 121 105 | 
             
                  Transfer-Encoding:
         | 
| @@ -124,21 +108,21 @@ http_interactions: | |
| 124 108 | 
             
                  - keep-alive
         | 
| 125 109 | 
             
                body:
         | 
| 126 110 | 
             
                  encoding: US-ASCII
         | 
| 127 | 
            -
                  string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/ | 
| 128 | 
            -
                    Details"},"exif":{"href":"http://api.getchute.com/v2/albums/ | 
| 129 | 
            -
                    Details"},"geo":{"href":"http://api.getchute.com/v2/albums/ | 
| 130 | 
            -
                    Details"},"heart":{"href":"http://api.getchute.com/v2/albums/ | 
| 111 | 
            +
                  string: ! '{"response":{"title":"Imported Assets","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/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 | 
            +
                    Details"},"exif":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672/exif","title":"Exif
         | 
| 113 | 
            +
                    Details"},"geo":{"href":"http://api.getchute.com/v2/albums/2412456/assets/79517672/geo","title":"Geo
         | 
| 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"}]}'
         | 
| 131 115 | 
             
                http_version: 
         | 
| 132 | 
            -
              recorded_at: Mon,  | 
| 116 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:17 GMT
         | 
| 133 117 | 
             
            - request:
         | 
| 134 118 | 
             
                method: post
         | 
| 135 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 119 | 
            +
                uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
         | 
| 136 120 | 
             
                body:
         | 
| 137 121 | 
             
                  encoding: UTF-8
         | 
| 138 122 | 
             
                  string: ! '{}'
         | 
| 139 123 | 
             
                headers:
         | 
| 140 124 | 
             
                  Authorization:
         | 
| 141 | 
            -
                  -  | 
| 125 | 
            +
                  - Bearer API KEY
         | 
| 142 126 | 
             
                  Content-Type:
         | 
| 143 127 | 
             
                  - application/json
         | 
| 144 128 | 
             
                  Accepts:
         | 
| @@ -155,52 +139,44 @@ http_interactions: | |
| 155 139 | 
             
                  Content-Type:
         | 
| 156 140 | 
             
                  - application/json; charset=utf-8
         | 
| 157 141 | 
             
                  Date:
         | 
| 158 | 
            -
                  - Mon,  | 
| 142 | 
            +
                  - Mon, 22 Apr 2013 22:26:18 GMT
         | 
| 159 143 | 
             
                  Etag:
         | 
| 160 | 
            -
                  - ! '" | 
| 144 | 
            +
                  - ! '"27fc9ba3b69149376f25cde623f6681c"'
         | 
| 161 145 | 
             
                  Last-Modified:
         | 
| 162 | 
            -
                  - Mon,  | 
| 146 | 
            +
                  - Mon, 22 Apr 2013 22:26:18 GMT
         | 
| 163 147 | 
             
                  Server:
         | 
| 164 148 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 165 149 | 
             
                  Status:
         | 
| 166 150 | 
             
                  - '201'
         | 
| 167 | 
            -
                  X-Available-Hourly-Calls:
         | 
| 168 | 
            -
                  - '4999868'
         | 
| 169 | 
            -
                  X-Available-Monthly-Calls:
         | 
| 170 | 
            -
                  - '3719999809'
         | 
| 171 | 
            -
                  X-Max-Hourly-Calls:
         | 
| 172 | 
            -
                  - '5000000'
         | 
| 173 | 
            -
                  X-Max-Monthly-Calls:
         | 
| 174 | 
            -
                  - '3720000000'
         | 
| 175 151 | 
             
                  X-Powered-By:
         | 
| 176 152 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 177 153 | 
             
                  X-Rack-Cache:
         | 
| 178 154 | 
             
                  - invalidate, pass
         | 
| 179 155 | 
             
                  X-Request-Id:
         | 
| 180 | 
            -
                  -  | 
| 156 | 
            +
                  - dd0ee62768d3f77d0bd266c4517668a2
         | 
| 181 157 | 
             
                  X-Runtime:
         | 
| 182 | 
            -
                  - '0. | 
| 158 | 
            +
                  - '0.047265'
         | 
| 183 159 | 
             
                  X-Ua-Compatible:
         | 
| 184 160 | 
             
                  - IE=Edge,chrome=1
         | 
| 185 161 | 
             
                  Content-Length:
         | 
| 186 | 
            -
                  - ' | 
| 162 | 
            +
                  - '423'
         | 
| 187 163 | 
             
                  Connection:
         | 
| 188 164 | 
             
                  - keep-alive
         | 
| 189 165 | 
             
                body:
         | 
| 190 166 | 
             
                  encoding: US-ASCII
         | 
| 191 | 
            -
                  string: ! '{"response":{"title":"Heart Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/ | 
| 192 | 
            -
                    Details"},"created_at":"2013-04- | 
| 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 | 
            +
                    Details"},"created_at":"2013-04-22T22:26:18Z","updated_at":"2013-04-22T22:26:18Z","identifier":"gjvxwtlgmtkcxauoecth1366669578","album_id":2412456,"asset_id":79517672}}'
         | 
| 193 169 | 
             
                http_version: 
         | 
| 194 | 
            -
              recorded_at: Mon,  | 
| 170 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:19 GMT
         | 
| 195 171 | 
             
            - request:
         | 
| 196 172 | 
             
                method: get
         | 
| 197 | 
            -
                uri: https://api.getchute.com/v2/albums/ | 
| 173 | 
            +
                uri: https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts
         | 
| 198 174 | 
             
                body:
         | 
| 199 175 | 
             
                  encoding: UTF-8
         | 
| 200 176 | 
             
                  string: ! '{}'
         | 
| 201 177 | 
             
                headers:
         | 
| 202 178 | 
             
                  Authorization:
         | 
| 203 | 
            -
                  -  | 
| 179 | 
            +
                  - Bearer API KEY
         | 
| 204 180 | 
             
                  Content-Type:
         | 
| 205 181 | 
             
                  - application/json
         | 
| 206 182 | 
             
                  Accepts:
         | 
| @@ -217,38 +193,30 @@ http_interactions: | |
| 217 193 | 
             
                  Content-Type:
         | 
| 218 194 | 
             
                  - application/json; charset=utf-8
         | 
| 219 195 | 
             
                  Date:
         | 
| 220 | 
            -
                  - Mon,  | 
| 196 | 
            +
                  - Mon, 22 Apr 2013 22:26:19 GMT
         | 
| 221 197 | 
             
                  Etag:
         | 
| 222 | 
            -
                  - ! '" | 
| 198 | 
            +
                  - ! '"bb708aa9266df468c0edc85f94120a12"'
         | 
| 223 199 | 
             
                  Server:
         | 
| 224 200 | 
             
                  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
         | 
| 225 201 | 
             
                  Status:
         | 
| 226 202 | 
             
                  - '201'
         | 
| 227 | 
            -
                  X-Available-Hourly-Calls:
         | 
| 228 | 
            -
                  - '4999867'
         | 
| 229 | 
            -
                  X-Available-Monthly-Calls:
         | 
| 230 | 
            -
                  - '3719999808'
         | 
| 231 | 
            -
                  X-Max-Hourly-Calls:
         | 
| 232 | 
            -
                  - '5000000'
         | 
| 233 | 
            -
                  X-Max-Monthly-Calls:
         | 
| 234 | 
            -
                  - '3720000000'
         | 
| 235 203 | 
             
                  X-Powered-By:
         | 
| 236 204 | 
             
                  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
         | 
| 237 205 | 
             
                  X-Rack-Cache:
         | 
| 238 206 | 
             
                  - miss
         | 
| 239 207 | 
             
                  X-Request-Id:
         | 
| 240 | 
            -
                  -  | 
| 208 | 
            +
                  - 3da135c746d795d1869c574fcc83620f
         | 
| 241 209 | 
             
                  X-Runtime:
         | 
| 242 | 
            -
                  - '0. | 
| 210 | 
            +
                  - '0.029826'
         | 
| 243 211 | 
             
                  X-Ua-Compatible:
         | 
| 244 212 | 
             
                  - IE=Edge,chrome=1
         | 
| 245 213 | 
             
                  Content-Length:
         | 
| 246 | 
            -
                  - ' | 
| 214 | 
            +
                  - '154'
         | 
| 247 215 | 
             
                  Connection:
         | 
| 248 216 | 
             
                  - keep-alive
         | 
| 249 217 | 
             
                body:
         | 
| 250 218 | 
             
                  encoding: US-ASCII
         | 
| 251 | 
            -
                  string: ! '{"response":{"title":"Heart Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/ | 
| 219 | 
            +
                  string: ! '{"response":{"title":"Heart Count","version":2,"code":201,"href":"https://api.getchute.com/v2/albums/2412456/assets/79517672/hearts?"},"data":{"count":1}}'
         | 
| 252 220 | 
             
                http_version: 
         | 
| 253 | 
            -
              recorded_at: Mon,  | 
| 221 | 
            +
              recorded_at: Mon, 22 Apr 2013 22:26:19 GMT
         | 
| 254 222 | 
             
            recorded_with: VCR 2.2.5
         |