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
@@ -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:51 GMT
28
+ - Mon, 22 Apr 2013 22:25:57 GMT
29
29
  Etag:
30
- - ! '"064d6bed1049626b58ed99ba77d8af92"'
30
+ - ! '"78b600f5cc984fc9a4d987166ddb4cbb"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:51 GMT
32
+ - Mon, 22 Apr 2013 22:25:57 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
- - '4999908'
39
- X-Available-Monthly-Calls:
40
- - '3719999849'
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
- - b1cf1ad63daa6a9fae8546d7ae42fa85
42
+ - 982bed575db472ab475c632eb79e4150
51
43
  X-Runtime:
52
- - '0.033060'
44
+ - '0.057064'
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":3719999849,"max_hourly_calls":5000000,"available_hourly_calls":4999908}},"data":{"id":2406193,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406193","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406193/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406193/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:51Z","updated_at":"2013-04-08T22:53:51Z","shortcut":"a5Xzncbm","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":2412448,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412448","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412448/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412448/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:25:57Z","updated_at":"2013-04-22T22:25:57Z","shortcut":"a7Aszoeg","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:51 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:25:57 GMT
69
61
  - request:
70
62
  method: get
71
- uri: https://api.getchute.com/v2/albums/2406193
63
+ uri: https://api.getchute.com/v2/albums/2412448
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,31 +83,23 @@ http_interactions:
91
83
  Content-Type:
92
84
  - application/json; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:53:51 GMT
86
+ - Mon, 22 Apr 2013 22:25:58 GMT
95
87
  Etag:
96
- - ! '"064d6bed1049626b58ed99ba77d8af92"'
88
+ - ! '"78b600f5cc984fc9a4d987166ddb4cbb"'
97
89
  Last-Modified:
98
- - Mon, 08 Apr 2013 22:53:51 GMT
90
+ - Mon, 22 Apr 2013 22:25:57 GMT
99
91
  Server:
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
- - '4999906'
105
- X-Available-Monthly-Calls:
106
- - '3719999847'
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
  - miss
115
99
  X-Request-Id:
116
- - 93c5959c76de7f0229b8b14860c528ed
100
+ - fdaab52b812b867797f4cb435e982788
117
101
  X-Runtime:
118
- - '0.027734'
102
+ - '0.048209'
119
103
  X-Ua-Compatible:
120
104
  - IE=Edge,chrome=1
121
105
  Transfer-Encoding:
@@ -124,12 +108,12 @@ http_interactions:
124
108
  - keep-alive
125
109
  body:
126
110
  encoding: US-ASCII
127
- string: ! '{"response":{"title":"Album Details","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406193?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999847,"max_hourly_calls":5000000,"available_hourly_calls":4999906}},"data":{"id":2406193,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406193","title":"Album
128
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406193/assets","title":"Asset
129
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406193/parcels","title":"Parcel
130
- Listing"}},"created_at":"2013-04-08T22:53:51Z","updated_at":"2013-04-08T22:53:51Z","shortcut":"a5Xzncbm","name":"Created
111
+ string: ! '{"response":{"title":"Album Details","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412448?"},"data":{"id":2412448,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412448","title":"Album
112
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412448/assets","title":"Asset
113
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412448/parcels","title":"Parcel
114
+ Listing"}},"created_at":"2013-04-22T22:25:57Z","updated_at":"2013-04-22T22:25:57Z","shortcut":"a7Aszoeg","name":"Created
131
115
  Album","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
132
116
  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}}'
133
117
  http_version:
134
- recorded_at: Mon, 08 Apr 2013 22:53:52 GMT
118
+ recorded_at: Mon, 22 Apr 2013 22:25:58 GMT
135
119
  recorded_with: VCR 2.2.5
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ! '{"page":null,"per_page":null}'
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:49 GMT
28
+ - Mon, 22 Apr 2013 22:25:55 GMT
29
29
  Etag:
30
- - ! '"7d7d97075218818f484ea5f92a9e56d6"'
30
+ - ! '"e389f2753dfd4db92fe114f0a411322e"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:28:03 GMT
32
+ - Mon, 22 Apr 2013 22:24:44 GMT
33
33
  Server:
34
34
  - nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
35
35
  Status:
36
36
  - '200'
37
- X-Available-Hourly-Calls:
38
- - '4999911'
39
- X-Available-Monthly-Calls:
40
- - '3719999852'
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
  - miss
49
41
  X-Request-Id:
50
- - 4248197f269802ab55c011cab1a11aeb
42
+ - 3ad7e4d1b04d0bb7c4d05f5a0b0237f6
51
43
  X-Runtime:
52
- - '0.063589'
44
+ - '0.065093'
53
45
  X-Ua-Compatible:
54
46
  - IE=Edge,chrome=1
55
47
  Transfer-Encoding:
@@ -58,32 +50,32 @@ http_interactions:
58
50
  - keep-alive
59
51
  body:
60
52
  encoding: US-ASCII
61
- string: ! '{"response":{"title":"Album Listing","version":2,"code":200,"href":"https://api.getchute.com/v2/albums?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999852,"max_hourly_calls":5000000,"available_hourly_calls":4999911}},"data":[{"id":2406176,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406176","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406176/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406176/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:28:03Z","updated_at":"2013-04-08T22:28:03Z","shortcut":"a5Xigefp","name":"Album
53
+ string: ! '{"response":{"title":"Album Listing","version":2,"code":200,"href":"https://api.getchute.com/v2/albums?"},"data":[{"id":2412445,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412445","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412445/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412445/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:24:44Z","updated_at":"2013-04-22T22:24:44Z","shortcut":"a7Apduiy","name":"Album
65
57
  for Votes","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},{"id":2406175,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406175","title":"Album
67
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406175/assets","title":"Asset
68
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406175/parcels","title":"Parcel
69
- Listing"}},"created_at":"2013-04-08T22:27:52Z","updated_at":"2013-04-08T22:27:52Z","shortcut":"a5Xhtcza","name":"Album
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},{"id":2412444,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412444","title":"Album
59
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412444/assets","title":"Asset
60
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412444/parcels","title":"Parcel
61
+ Listing"}},"created_at":"2013-04-22T22:24:34Z","updated_at":"2013-04-22T22:24:34Z","shortcut":"a7Aojgxw","name":"Album
70
62
  for Tags","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
71
- 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},{"id":2406174,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406174","title":"Album
72
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406174/assets","title":"Asset
73
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406174/parcels","title":"Parcel
74
- Listing"}},"created_at":"2013-04-08T22:27:50Z","updated_at":"2013-04-08T22:27:50Z","shortcut":"a5Xgncfp","name":"Album
63
+ 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},{"id":2412443,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412443","title":"Album
64
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412443/assets","title":"Asset
65
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412443/parcels","title":"Parcel
66
+ Listing"}},"created_at":"2013-04-22T22:24:32Z","updated_at":"2013-04-22T22:24:32Z","shortcut":"a7Anmrxf","name":"Album
75
67
  for Hearts","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
76
- 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},{"id":2406173,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406173","title":"Album
77
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406173/assets","title":"Asset
78
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406173/parcels","title":"Parcel
79
- Listing"}},"created_at":"2013-04-08T22:27:44Z","updated_at":"2013-04-08T22:27:44Z","shortcut":"a5Xfdxbs","name":"Album
68
+ 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},{"id":2412442,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412442","title":"Album
69
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412442/assets","title":"Asset
70
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412442/parcels","title":"Parcel
71
+ Listing"}},"created_at":"2013-04-22T22:24:29Z","updated_at":"2013-04-22T22:24:29Z","shortcut":"a7Amanwe","name":"Album
80
72
  for Flags","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
81
- 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},{"id":2406172,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406172","title":"Album
82
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406172/assets","title":"Asset
83
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406172/parcels","title":"Parcel
84
- Listing"}},"created_at":"2013-04-08T22:27:42Z","updated_at":"2013-04-08T22:27:42Z","shortcut":"a5Xepfnd","name":"Album
73
+ 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},{"id":2412441,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412441","title":"Album
74
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412441/assets","title":"Asset
75
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412441/parcels","title":"Parcel
76
+ Listing"}},"created_at":"2013-04-22T22:24:27Z","updated_at":"2013-04-22T22:24:27Z","shortcut":"a7Aldxna","name":"Album
85
77
  for Comments","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
86
78
  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}],"pagination":{"current_page":1,"next_page":"https://api.getchute.com/v2/albums?&page=2","previous_page":null,"first_page":"https://api.getchute.com/v2/albums?","per_page":5}}'
87
79
  http_version:
88
- recorded_at: Mon, 08 Apr 2013 22:53:49 GMT
80
+ recorded_at: Mon, 22 Apr 2013 22:25:56 GMT
89
81
  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:54 GMT
28
+ - Mon, 22 Apr 2013 22:26:00 GMT
29
29
  Etag:
30
- - ! '"0ea45be6ef8566661a68d1aa84bd9f73"'
30
+ - ! '"4cd192fa67dddd876b7910d117ac4db7"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:54 GMT
32
+ - Mon, 22 Apr 2013 22:26:00 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
- - '4999901'
39
- X-Available-Monthly-Calls:
40
- - '3719999842'
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
- - cd38b79b65ca8f9a5fb91729478aeb87
42
+ - 6fac644b99b316a218fa4697759ec1f1
51
43
  X-Runtime:
52
- - '0.032136'
44
+ - '0.067889'
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":3719999842,"max_hourly_calls":5000000,"available_hourly_calls":4999901}},"data":{"id":2406196,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406196","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406196/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406196/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:54Z","updated_at":"2013-04-08T22:53:54Z","shortcut":"a5XCzqnh","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":2412451,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412451","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412451/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412451/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:26:00Z","updated_at":"2013-04-22T22:26:00Z","shortcut":"a7Avamfj","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:54 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:26:00 GMT
69
61
  - request:
70
62
  method: get
71
- uri: https://api.getchute.com/v2/albums/2406196/stats
63
+ uri: https://api.getchute.com/v2/albums/2412451/stats
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,29 +83,21 @@ http_interactions:
91
83
  Content-Type:
92
84
  - application/json; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:53:55 GMT
86
+ - Mon, 22 Apr 2013 22:26:01 GMT
95
87
  Etag:
96
88
  - ! '"9c8dba3fdef8910a2b527f34fd9d6b97"'
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
- - '4999900'
103
- X-Available-Monthly-Calls:
104
- - '3719999841'
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
  - miss
113
97
  X-Request-Id:
114
- - 64361f2523427d738cfaa398ffcaf11e
98
+ - c70d30f3a98a2f31b350415f60ed2489
115
99
  X-Runtime:
116
- - '0.030902'
100
+ - '0.172689'
117
101
  X-Ua-Compatible:
118
102
  - IE=Edge,chrome=1
119
103
  Content-Length:
@@ -124,5 +108,5 @@ http_interactions:
124
108
  encoding: US-ASCII
125
109
  string: ! '{"data":{"user_counts":{"via_upload":0,"via_import":0},"source_counts":{"uploads":0,"imports":0}}}'
126
110
  http_version:
127
- recorded_at: Mon, 08 Apr 2013 22:53:55 GMT
111
+ recorded_at: Mon, 22 Apr 2013 22:26:01 GMT
128
112
  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:52 GMT
28
+ - Mon, 22 Apr 2013 22:25:58 GMT
29
29
  Etag:
30
- - ! '"0b89248480a8f026147466a353617b5c"'
30
+ - ! '"404a5e6de4cf9ed1ee40ac8d78e6783f"'
31
31
  Last-Modified:
32
- - Mon, 08 Apr 2013 22:53:52 GMT
32
+ - Mon, 22 Apr 2013 22:25:58 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
- - '4999905'
39
- X-Available-Monthly-Calls:
40
- - '3719999846'
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
- - 25d60ed62aa4565856a06e7080ce3ab1
42
+ - c48e8abbfec7f960c5ffbed20b53eda1
51
43
  X-Runtime:
52
- - '0.034835'
44
+ - '0.054299'
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":3719999846,"max_hourly_calls":5000000,"available_hourly_calls":4999905}},"data":{"id":2406194,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406194","title":"Album
62
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406194/assets","title":"Asset
63
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406194/parcels","title":"Parcel
64
- Listing"}},"created_at":"2013-04-08T22:53:52Z","updated_at":"2013-04-08T22:53:52Z","shortcut":"a5XAnyec","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":2412449,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412449","title":"Album
54
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412449/assets","title":"Asset
55
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412449/parcels","title":"Parcel
56
+ Listing"}},"created_at":"2013-04-22T22:25:58Z","updated_at":"2013-04-22T22:25:58Z","shortcut":"a7Atjblz","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:52 GMT
60
+ recorded_at: Mon, 22 Apr 2013 22:25:58 GMT
69
61
  - request:
70
62
  method: put
71
- uri: https://api.getchute.com/v2/albums/2406194
63
+ uri: https://api.getchute.com/v2/albums/2412449
72
64
  body:
73
65
  encoding: UTF-8
74
66
  string: ! '{"album":{"name":"Updated Album"}}'
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,31 +83,23 @@ http_interactions:
91
83
  Content-Type:
92
84
  - application/json; charset=utf-8
93
85
  Date:
94
- - Mon, 08 Apr 2013 22:53:53 GMT
86
+ - Mon, 22 Apr 2013 22:25:59 GMT
95
87
  Etag:
96
- - ! '"0b89248480a8f026147466a353617b5c"'
88
+ - ! '"404a5e6de4cf9ed1ee40ac8d78e6783f"'
97
89
  Last-Modified:
98
- - Mon, 08 Apr 2013 22:53:53 GMT
90
+ - Mon, 22 Apr 2013 22:25:59 GMT
99
91
  Server:
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
- - '4999904'
105
- X-Available-Monthly-Calls:
106
- - '3719999845'
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
- - dbea9cf86b3763c2bba8557afce79248
100
+ - a2e3c2547ccfa9323641537c6a431839
117
101
  X-Runtime:
118
- - '0.053786'
102
+ - '0.067417'
119
103
  X-Ua-Compatible:
120
104
  - IE=Edge,chrome=1
121
105
  Transfer-Encoding:
@@ -124,12 +108,12 @@ http_interactions:
124
108
  - keep-alive
125
109
  body:
126
110
  encoding: US-ASCII
127
- string: ! '{"response":{"title":"Album Details","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2406194?album%5Bname%5D=Updated+Album","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999845,"max_hourly_calls":5000000,"available_hourly_calls":4999904}},"data":{"id":2406194,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2406194","title":"Album
128
- Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2406194/assets","title":"Asset
129
- Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2406194/parcels","title":"Parcel
130
- Listing"}},"created_at":"2013-04-08T22:53:52Z","updated_at":"2013-04-08T22:53:53Z","shortcut":"a5XAnyec","name":"Updated
111
+ string: ! '{"response":{"title":"Album Details","version":2,"code":200,"href":"https://api.getchute.com/v2/albums/2412449?album%5Bname%5D=Updated+Album"},"data":{"id":2412449,"links":{"self":{"href":"http://api.getchute.com/v2/albums/2412449","title":"Album
112
+ Details"},"assets":{"href":"http://api.getchute.com/v2/albums/2412449/assets","title":"Asset
113
+ Listing"},"parcels":{"href":"http://api.getchute.com/v2/albums/2412449/parcels","title":"Parcel
114
+ Listing"}},"created_at":"2013-04-22T22:25:58Z","updated_at":"2013-04-22T22:25:59Z","shortcut":"a7Atjblz","name":"Updated
131
115
  Album","description":null,"user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
132
116
  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}}'
133
117
  http_version:
134
- recorded_at: Mon, 08 Apr 2013 22:53:53 GMT
118
+ recorded_at: Mon, 22 Apr 2013 22:25:59 GMT
135
119
  recorded_with: VCR 2.2.5