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.
Files changed (35) hide show
  1. data/Rakefile +0 -1
  2. data/chute.gemspec +3 -5
  3. data/lib/chute/connection.rb +1 -1
  4. data/lib/chute/v2/accounts.rb +13 -0
  5. data/lib/chute/version.rb +1 -1
  6. data/spec/chute/connection_spec.rb +1 -1
  7. data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +13 -21
  8. data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +23 -47
  9. data/spec/fixtures/chute_cassettes/albums/albums_create.yml +13 -21
  10. data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +20 -36
  11. data/spec/fixtures/chute_cassettes/albums/albums_get.yml +23 -39
  12. data/spec/fixtures/chute_cassettes/albums/albums_list.yml +27 -35
  13. data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +17 -33
  14. data/spec/fixtures/chute_cassettes/albums/albums_update.yml +23 -39
  15. data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +20 -36
  16. data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +24 -48
  17. data/spec/fixtures/chute_cassettes/assets/assets_get.yml +17 -33
  18. data/spec/fixtures/chute_cassettes/assets/assets_import.yml +8 -16
  19. data/spec/fixtures/chute_cassettes/assets/assets_list.yml +9 -17
  20. data/spec/fixtures/chute_cassettes/assets/assets_update.yml +18 -34
  21. data/spec/fixtures/chute_cassettes/comments/comments_create.yml +33 -57
  22. data/spec/fixtures/chute_cassettes/comments/comments_list.yml +44 -76
  23. data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +50 -90
  24. data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +41 -73
  25. data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +50 -90
  26. data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +7 -15
  27. data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +30 -54
  28. data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +10 -18
  29. data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +19 -35
  30. data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +12 -20
  31. data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +21 -37
  32. data/spec/fixtures/chute_cassettes/users/users_get.yml +14 -30
  33. data/spec/fixtures/chute_cassettes/users/users_me.yml +7 -15
  34. data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +50 -90
  35. metadata +4 -19
data/Rakefile CHANGED
@@ -25,7 +25,6 @@ Jeweler::Tasks.new do |gem|
25
25
  gem.authors = ["Darko Grozdanovski","Chris Burkhart","Petr Bela"]
26
26
  gem.version = Chute::Version::STRING
27
27
  # dependencies defined in Gemfile
28
- gem.add_dependency 'httparty'
29
28
  end
30
29
  Jeweler::RubygemsDotOrgTasks.new
31
30
 
data/chute.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "chute"
8
- s.version = "2.0.0"
8
+ s.version = "2.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darko Grozdanovski", "Chris Burkhart", "Petr Bela"]
12
- s.date = "2013-04-11"
12
+ s.date = "2013-04-22"
13
13
  s.description = "wrapper for the API for getchute.com"
14
14
  s.email = "support@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/chute/configuration.rb",
30
30
  "lib/chute/connection.rb",
31
31
  "lib/chute/response.rb",
32
+ "lib/chute/v2/accounts.rb",
32
33
  "lib/chute/v2/albums.rb",
33
34
  "lib/chute/v2/assets.rb",
34
35
  "lib/chute/v2/comments.rb",
@@ -101,7 +102,6 @@ Gem::Specification.new do |s|
101
102
  s.add_development_dependency(%q<bundler>, [">= 0"])
102
103
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
103
104
  s.add_development_dependency(%q<simplecov>, [">= 0"])
104
- s.add_runtime_dependency(%q<httparty>, [">= 0"])
105
105
  else
106
106
  s.add_dependency(%q<httparty>, [">= 0"])
107
107
  s.add_dependency(%q<hashie>, [">= 0"])
@@ -110,7 +110,6 @@ Gem::Specification.new do |s|
110
110
  s.add_dependency(%q<bundler>, [">= 0"])
111
111
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
112
112
  s.add_dependency(%q<simplecov>, [">= 0"])
113
- s.add_dependency(%q<httparty>, [">= 0"])
114
113
  end
115
114
  else
116
115
  s.add_dependency(%q<httparty>, [">= 0"])
@@ -120,7 +119,6 @@ Gem::Specification.new do |s|
120
119
  s.add_dependency(%q<bundler>, [">= 0"])
121
120
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
122
121
  s.add_dependency(%q<simplecov>, [">= 0"])
123
- s.add_dependency(%q<httparty>, [">= 0"])
124
122
  end
125
123
  end
126
124
 
@@ -13,7 +13,7 @@ module Chute
13
13
 
14
14
  def self.headers
15
15
  {
16
- 'Authorization' => "OAuth #{Chute.access_token}",
16
+ 'Authorization' => "Bearer #{Chute.access_token}",
17
17
  'Content-Type' => 'application/json',
18
18
  'Accepts' => 'application/json',
19
19
  'x-client_id' => Chute.app_id
@@ -0,0 +1,13 @@
1
+ module Chute
2
+ module V2
3
+ class Accounts
4
+ class << self
5
+ # Accounts Listing
6
+ def me
7
+ Chute::Client.get("/v2/me/accounts")
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+
data/lib/chute/version.rb CHANGED
@@ -2,7 +2,7 @@ module Chute
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -24,7 +24,7 @@ describe Chute::Connection do
24
24
  end
25
25
 
26
26
  it "must have Authorization set to Access Token value" do
27
- Chute::Connection.headers["Authorization"].should == "OAuth #{Chute.access_token}"
27
+ Chute::Connection.headers["Authorization"].should == "Bearer #{Chute.access_token}"
28
28
  end
29
29
 
30
30
  it "must have the Content-Type header" do
@@ -5,10 +5,10 @@ http_interactions:
5
5
  uri: https://api.getchute.com/v2/albums
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"album":{"name":"some new album 2013-04-08 15:53:50 -0700","permission_view":2}}'
8
+ string: ! '{"album":{"name":"some new album 2013-04-22 15:25:56 -0700","permission_view":2}}'
9
9
  headers:
10
10
  Authorization:
11
- - OAuth API KEY
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, 08 Apr 2013 22:53:50 GMT
28
+ - Mon, 22 Apr 2013 22:25:57 GMT
29
29
  Etag:
30
- - ! '"4e34e7716b664f331144a1911d88735d"'
30
+ - ! '"9ac9003a9dea72c183bf10128f636d18"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:50 GMT
32
+ - Mon, 22 Apr 2013 22:25:56 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '201'
37
- X-Available-Hourly-Calls:
38
- - '4999909'
39
- X-Available-Monthly-Calls:
40
- - '3719999850'
41
- X-Max-Hourly-Calls:
42
- - '5000000'
43
- X-Max-Monthly-Calls:
44
- - '3720000000'
45
37
  X-Powered-By:
46
38
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
47
39
  X-Rack-Cache:
48
40
  - invalidate, pass
49
41
  X-Request-Id:
50
- - 31a621d8adf8ee41863dbd3f8dc810ed
42
+ - bab2aa76abf1dfd224a81424bb3c0b50
51
43
  X-Runtime:
52
- - '0.103034'
44
+ - '0.053124'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,12 +50,12 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  encoding: US-ASCII
61
- string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=some+new+album+2013-04-08+15%3A53%3A50+-0700&album%5Bpermission_view%5D=2","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999850,"max_hourly_calls":5000000,"available_hourly_calls":4999909}},"data":{"id":2406192,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406192","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406192/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406192/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:50Z","updated_at":"2013-04-08T22:53:50Z","shortcut":"a5Xykyld","name":"some
65
- new album 2013-04-08 15:53:50 -0700","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=some+new+album+2013-04-22+15%3A25%3A56+-0700&album%5Bpermission_view%5D=2"},"data":{"id":2412447,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412447","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412447/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412447/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:25:56Z","updated_at":"2013-04-22T22:25:56Z","shortcut":"a7Aruyqt","name":"some
57
+ new album 2013-04-22 15:25:56 -0700","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
58
  Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null},"moderate_media":false,"moderate_comments":false,"parent_id":null}}'
67
59
  http_version:
68
- recorded_at: Mon, 08 Apr 2013 22:53:50 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:25:57 GMT
69
61
  recorded_with: VCR 2.2.5
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{"album":{"name":"Created Album"}}'
9
9
  headers:
10
10
  Authorization:
11
- - OAuth API KEY
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, 08 Apr 2013 22:53:55 GMT
28
+ - Mon, 22 Apr 2013 22:26:02 GMT
29
29
  Etag:
30
- - ! '"2e71d002c327629ac8035c6abfa30272"'
30
+ - ! '"16bec966c5e8757b28d1653e100c420a"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:55 GMT
32
+ - Mon, 22 Apr 2013 22:26:02 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '201'
37
- X-Available-Hourly-Calls:
38
- - '4999898'
39
- X-Available-Monthly-Calls:
40
- - '3719999839'
41
- X-Max-Hourly-Calls:
42
- - '5000000'
43
- X-Max-Monthly-Calls:
44
- - '3720000000'
45
37
  X-Powered-By:
46
38
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
47
39
  X-Rack-Cache:
48
40
  - invalidate, pass
49
41
  X-Request-Id:
50
- - 53646ae3430c52e590b01c5360acb460
42
+ - ac443c3a6b1853abb116c0c79d7d5b8e
51
43
  X-Runtime:
52
- - '0.031950'
44
+ - '0.059564'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,23 +50,23 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  encoding: US-ASCII
61
- string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Created+Album","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999839,"max_hourly_calls":5000000,"available_hourly_calls":4999898}},"data":{"id":2406197,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406197","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406197/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406197/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:55Z","updated_at":"2013-04-08T22:53:55Z","shortcut":"a5XDnwkc","name":"Created
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Created+Album"},"data":{"id":2412452,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412452","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412452/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412452/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:26:02Z","updated_at":"2013-04-22T22:26:02Z","shortcut":"a7Awughq","name":"Created
65
57
  Album","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
58
  Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null},"moderate_media":false,"moderate_comments":false,"parent_id":null}}'
67
59
  http_version:
68
- recorded_at: Mon, 08 Apr 2013 22:53:55 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:26:02 GMT
69
61
  - request:
70
62
  method: post
71
- uri: https://api.getchute.com/v2/albums/2406197/add_assets
63
+ uri: https://api.getchute.com/v2/albums/2412452/add_assets
72
64
  body:
73
65
  encoding: UTF-8
74
66
  string: ! '{"asset_ids":[[71907823]]}'
75
67
  headers:
76
68
  Authorization:
77
- - OAuth API KEY
69
+ - Bearer API KEY
78
70
  Content-Type:
79
71
  - application/json
80
72
  Accepts:
@@ -91,29 +83,21 @@ http_interactions:
91
83
  Content-Type:
92
84
  - text/html; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:53:56 GMT
86
+ - Mon, 22 Apr 2013 22:26:02 GMT
95
87
  Etag:
96
88
  - ! '"7215ee9c7d9dc229d2921a40e899ec5f"'
97
89
  Server:
98
90
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
99
91
  Status:
100
92
  - '200'
101
- X-Available-Hourly-Calls:
102
- - '4999897'
103
- X-Available-Monthly-Calls:
104
- - '3719999838'
105
- X-Max-Hourly-Calls:
106
- - '5000000'
107
- X-Max-Monthly-Calls:
108
- - '3720000000'
109
93
  X-Powered-By:
110
94
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
111
95
  X-Rack-Cache:
112
96
  - invalidate, pass
113
97
  X-Request-Id:
114
- - 58848554971f6eaef6657b7be15d6e09
98
+ - 21d87ad8eba8b7ffca51020976982cd6
115
99
  X-Runtime:
116
- - '0.173735'
100
+ - '0.110162'
117
101
  X-Ua-Compatible:
118
102
  - IE=Edge,chrome=1
119
103
  Content-Length:
@@ -124,16 +108,16 @@ http_interactions:
124
108
  encoding: US-ASCII
125
109
  string: ! ' '
126
110
  http_version:
127
- recorded_at: Mon, 08 Apr 2013 22:53:56 GMT
111
+ recorded_at: Mon, 22 Apr 2013 22:26:02 GMT
128
112
  - request:
129
113
  method: post
130
- uri: https://api.getchute.com/v2/albums/2406197/remove_assets
114
+ uri: https://api.getchute.com/v2/albums/2412452/remove_assets
131
115
  body:
132
116
  encoding: UTF-8
133
117
  string: ! '{"asset_ids":[[4342325,4342324,534543]]}'
134
118
  headers:
135
119
  Authorization:
136
- - OAuth API KEY
120
+ - Bearer API KEY
137
121
  Content-Type:
138
122
  - application/json
139
123
  Accepts:
@@ -150,29 +134,21 @@ http_interactions:
150
134
  Content-Type:
151
135
  - text/html; charset=utf-8
152
136
  Date:
153
- - Mon, 08 Apr 2013 22:53:57 GMT
137
+ - Mon, 22 Apr 2013 22:26:03 GMT
154
138
  Etag:
155
139
  - ! '"7215ee9c7d9dc229d2921a40e899ec5f"'
156
140
  Server:
157
141
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
158
142
  Status:
159
143
  - '200'
160
- X-Available-Hourly-Calls:
161
- - '4999895'
162
- X-Available-Monthly-Calls:
163
- - '3719999836'
164
- X-Max-Hourly-Calls:
165
- - '5000000'
166
- X-Max-Monthly-Calls:
167
- - '3720000000'
168
144
  X-Powered-By:
169
145
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
170
146
  X-Rack-Cache:
171
147
  - invalidate, pass
172
148
  X-Request-Id:
173
- - 2cc6f00ca116fb27bb6f0ee7b67b5bd2
149
+ - 9528ab35c3440882a24299f9d0ca4c18
174
150
  X-Runtime:
175
- - '0.028256'
151
+ - '0.047016'
176
152
  X-Ua-Compatible:
177
153
  - IE=Edge,chrome=1
178
154
  Content-Length:
@@ -183,5 +159,5 @@ http_interactions:
183
159
  encoding: US-ASCII
184
160
  string: ! ' '
185
161
  http_version:
186
- recorded_at: Mon, 08 Apr 2013 22:53:57 GMT
162
+ recorded_at: Mon, 22 Apr 2013 22:26:03 GMT
187
163
  recorded_with: VCR 2.2.5
@@ -5,10 +5,10 @@ http_interactions:
5
5
  uri: https://api.getchute.com/v2/albums
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"album":{"name":"some album 2013-04-08 15:53:49 -0700","moderate_comments":true}}'
8
+ string: ! '{"album":{"name":"some album 2013-04-22 15:25:56 -0700","moderate_comments":true}}'
9
9
  headers:
10
10
  Authorization:
11
- - OAuth API KEY
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, 08 Apr 2013 22:53:50 GMT
28
+ - Mon, 22 Apr 2013 22:25:56 GMT
29
29
  Etag:
30
- - ! '"f146acd211c8001b983e00821a473dc5"'
30
+ - ! '"dc92f8e032f74e63401962a39e0f47ce"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:50 GMT
32
+ - Mon, 22 Apr 2013 22:25:56 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '201'
37
- X-Available-Hourly-Calls:
38
- - '4999910'
39
- X-Available-Monthly-Calls:
40
- - '3719999851'
41
- X-Max-Hourly-Calls:
42
- - '5000000'
43
- X-Max-Monthly-Calls:
44
- - '3720000000'
45
37
  X-Powered-By:
46
38
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
47
39
  X-Rack-Cache:
48
40
  - invalidate, pass
49
41
  X-Request-Id:
50
- - f536695cd4e6448b9c0504959ec102a4
42
+ - 3acca19b655a3b9a813403fdb5428ad9
51
43
  X-Runtime:
52
- - '0.059971'
44
+ - '0.063955'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,12 +50,12 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  encoding: US-ASCII
61
- string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bmoderate_comments%5D=true&album%5Bname%5D=some+album+2013-04-08+15%3A53%3A49+-0700","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999851,"max_hourly_calls":5000000,"available_hourly_calls":4999910}},"data":{"id":2406191,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406191","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406191/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406191/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:50Z","updated_at":"2013-04-08T22:53:50Z","shortcut":"a5Xxnqza","name":"some
65
- album 2013-04-08 15:53:49 -0700","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bmoderate_comments%5D=true&album%5Bname%5D=some+album+2013-04-22+15%3A25%3A56+-0700"},"data":{"id":2412446,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412446","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412446/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412446/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:25:56Z","updated_at":"2013-04-22T22:25:56Z","shortcut":"a7Aqgwpb","name":"some
57
+ album 2013-04-22 15:25:56 -0700","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
58
  Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null},"moderate_media":false,"moderate_comments":true,"parent_id":null}}'
67
59
  http_version:
68
- recorded_at: Mon, 08 Apr 2013 22:53:50 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:25:56 GMT
69
61
  recorded_with: VCR 2.2.5
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{"album":{"name":"Created Album"}}'
9
9
  headers:
10
10
  Authorization:
11
- - OAuth API KEY
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, 08 Apr 2013 22:53:53 GMT
28
+ - Mon, 22 Apr 2013 22:25:59 GMT
29
29
  Etag:
30
- - ! '"2613cf878bd5872efb67be035aa0808c"'
30
+ - ! '"12112895ae64a551209df38a0a494609"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:53 GMT
32
+ - Mon, 22 Apr 2013 22:25:59 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '201'
37
- X-Available-Hourly-Calls:
38
- - '4999903'
39
- X-Available-Monthly-Calls:
40
- - '3719999844'
41
- X-Max-Hourly-Calls:
42
- - '5000000'
43
- X-Max-Monthly-Calls:
44
- - '3720000000'
45
37
  X-Powered-By:
46
38
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
47
39
  X-Rack-Cache:
48
40
  - invalidate, pass
49
41
  X-Request-Id:
50
- - b423c1ccbafd2989a9e43aa085324ad9
42
+ - a48b58a9e936a5ad8af0f948dc7a3e7e
51
43
  X-Runtime:
52
- - '0.031373'
44
+ - '0.057770'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,23 +50,23 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  encoding: US-ASCII
61
- string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Created+Album","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999844,"max_hourly_calls":5000000,"available_hourly_calls":4999903}},"data":{"id":2406195,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406195","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406195/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406195/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:53Z","updated_at":"2013-04-08T22:53:53Z","shortcut":"a5XBubak","name":"Created
53
+ string: ! '{"response":{"title":"Album Details","version":2,"code":201,"href":"https://api.getchute.com/v2/albums?album%5Bname%5D=Created+Album"},"data":{"id":2412450,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412450","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412450/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412450/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:25:59Z","updated_at":"2013-04-22T22:25:59Z","shortcut":"a7Auaprw","name":"Created
65
57
  Album","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
66
58
  Details"}},"created_at":"2012-01-17T19:53:39Z","updated_at":"2012-09-15T10:55:51Z","name":"darko1002001","username":"darko1002001","avatar":"http://static.getchute.com/v1/images/avatar-100x100.png","profile":null},"moderate_media":false,"moderate_comments":false,"parent_id":null}}'
67
59
  http_version:
68
- recorded_at: Mon, 08 Apr 2013 22:53:53 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:25:59 GMT
69
61
  - request:
70
62
  method: delete
71
- uri: https://api.getchute.com/v2/albums/2406195
63
+ uri: https://api.getchute.com/v2/albums/2412450
72
64
  body:
73
65
  encoding: UTF-8
74
66
  string: ! '{}'
75
67
  headers:
76
68
  Authorization:
77
- - OAuth API KEY
69
+ - Bearer API KEY
78
70
  Content-Type:
79
71
  - application/json
80
72
  Accepts:
@@ -91,38 +83,30 @@ http_interactions:
91
83
  Content-Type:
92
84
  - application/json; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:53:54 GMT
86
+ - Mon, 22 Apr 2013 22:26:00 GMT
95
87
  Etag:
96
- - ! '"f21a499aea9c9fb62997793fbdb00ad0"'
88
+ - ! '"555f90cebd11d996ae639c48e4b71dd9"'
97
89
  Server:
98
90
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
99
91
  Status:
100
92
  - '200'
101
- X-Available-Hourly-Calls:
102
- - '4999902'
103
- X-Available-Monthly-Calls:
104
- - '3719999843'
105
- X-Max-Hourly-Calls:
106
- - '5000000'
107
- X-Max-Monthly-Calls:
108
- - '3720000000'
109
93
  X-Powered-By:
110
94
  - Phusion Passenger (mod_rails/mod_rack) 3.0.18
111
95
  X-Rack-Cache:
112
96
  - invalidate, pass
113
97
  X-Request-Id:
114
- - c512527a0bb9f85e7bb9e680bb14b940
98
+ - 2b4681d3e852a689879c746774bd91f9
115
99
  X-Runtime:
116
- - '0.034592'
100
+ - '0.126568'
117
101
  X-Ua-Compatible:
118
102
  - IE=Edge,chrome=1
119
103
  Content-Length:
120
- - '257'
104
+ - '114'
121
105
  Connection:
122
106
  - keep-alive
123
107
  body:
124
108
  encoding: US-ASCII
125
- string: ! '{"response":{"title":"Album Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406195?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999843,"max_hourly_calls":5000000,"available_hourly_calls":4999902}}}'
109
+ string: ! '{"response":{"title":"Album Deleted","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412450?"}}'
126
110
  http_version:
127
- recorded_at: Mon, 08 Apr 2013 22:53:54 GMT
111
+ recorded_at: Mon, 22 Apr 2013 22:26:00 GMT
128
112
  recorded_with: VCR 2.2.5