chute 0.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +16 -2
- data/Gemfile.lock +52 -0
- data/LICENSE.txt +20 -0
- data/README.md +46 -0
- data/Rakefile +48 -6
- data/VERSION +1 -0
- data/chute.gemspec +120 -16
- data/lib/chute.rb +7 -20
- data/lib/chute/client.rb +42 -0
- data/lib/chute/configuration.rb +40 -0
- data/lib/chute/connection.rb +64 -0
- data/lib/chute/response.rb +22 -0
- data/lib/chute/v2/albums.rb +60 -0
- data/lib/chute/v2/assets.rb +55 -0
- data/lib/chute/v2/comments.rb +29 -0
- data/lib/chute/v2/flags.rb +21 -0
- data/lib/chute/v2/hearts.rb +21 -0
- data/lib/chute/v2/parcels.rb +21 -0
- data/lib/chute/v2/tags.rb +36 -0
- data/lib/chute/v2/triggers.rb +26 -0
- data/lib/chute/v2/users.rb +18 -0
- data/lib/chute/v2/votes.rb +21 -0
- data/lib/chute/version.rb +7 -1
- data/spec/chute/chute_spec.rb +64 -0
- data/spec/chute/client_spec.rb +82 -0
- data/spec/chute/connection_spec.rb +47 -0
- data/spec/chute/response_spec.rb +16 -0
- data/spec/chute/v2/albums_spec.rb +197 -0
- data/spec/chute/v2/assets_spec.rb +171 -0
- data/spec/chute/v2/comments_spec.rb +88 -0
- data/spec/chute/v2/flags_spec.rb +56 -0
- data/spec/chute/v2/hearts_spec.rb +57 -0
- data/spec/chute/v2/parcels_spec.rb +24 -0
- data/spec/chute/v2/tags_spec.rb +79 -0
- data/spec/chute/v2/trigger_spec.rb +127 -0
- data/spec/chute/v2/users_spec.rb +53 -0
- data/spec/chute/v2/votes_spec.rb +56 -0
- data/spec/fixtures/chute_cassettes/albums/album_create_with_permission_view.yml +69 -0
- data/spec/fixtures/chute_cassettes/albums/albums_add_remove_assets.yml +187 -0
- data/spec/fixtures/chute_cassettes/albums/albums_create.yml +69 -0
- data/spec/fixtures/chute_cassettes/albums/albums_delete.yml +128 -0
- data/spec/fixtures/chute_cassettes/albums/albums_get.yml +135 -0
- data/spec/fixtures/chute_cassettes/albums/albums_list.yml +89 -0
- data/spec/fixtures/chute_cassettes/albums/albums_stats.yml +128 -0
- data/spec/fixtures/chute_cassettes/albums/albums_update.yml +135 -0
- data/spec/fixtures/chute_cassettes/assets/assets_delete.yml +131 -0
- data/spec/fixtures/chute_cassettes/assets/assets_geo.yml +197 -0
- data/spec/fixtures/chute_cassettes/assets/assets_get.yml +138 -0
- data/spec/fixtures/chute_cassettes/assets/assets_import.yml +76 -0
- data/spec/fixtures/chute_cassettes/assets/assets_list.yml +77 -0
- data/spec/fixtures/chute_cassettes/assets/assets_update.yml +138 -0
- data/spec/fixtures/chute_cassettes/comments/comments_create.yml +196 -0
- data/spec/fixtures/chute_cassettes/comments/comments_list.yml +259 -0
- data/spec/fixtures/chute_cassettes/flags/flags_methods.yml +313 -0
- data/spec/fixtures/chute_cassettes/hearts/hearts_methods.yml +254 -0
- data/spec/fixtures/chute_cassettes/tags/tags_assets.yml +311 -0
- data/spec/fixtures/chute_cassettes/triggers/trigger_errors.yml +62 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_cleanup.yml +184 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_create.yml +65 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_delete.yml +124 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_list.yml +66 -0
- data/spec/fixtures/chute_cassettes/triggers/triggers_update.yml +127 -0
- data/spec/fixtures/chute_cassettes/users/users_get.yml +128 -0
- data/spec/fixtures/chute_cassettes/users/users_me.yml +66 -0
- data/spec/fixtures/chute_cassettes/votes/votes_methods.yml +313 -0
- data/spec/spec_helper.rb +27 -0
- metadata +210 -33
- data/.gitignore +0 -5
- data/README +0 -125
- data/config/chute.rb +0 -0
- data/lib/chute/account.rb +0 -58
- data/lib/chute/app.rb +0 -32
- data/lib/chute/asset.rb +0 -124
- data/lib/chute/bundle.rb +0 -72
- data/lib/chute/chute.rb +0 -203
- data/lib/chute/collection.rb +0 -47
- data/lib/chute/comment.rb +0 -32
- data/lib/chute/exception.rb +0 -7
- data/lib/chute/http_service.rb +0 -114
- data/lib/chute/inbox.rb +0 -41
- data/lib/chute/parcel.rb +0 -45
- data/lib/chute/resource.rb +0 -354
- data/lib/chute/user.rb +0 -113
- data/lib/chute/util.rb +0 -14
- data/test/test_sudoku.rb +0 -7
@@ -0,0 +1,131 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/assets/import
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"urls":"http://image.coloring.com/pictures/overlay/cat-and-fancy-mouse.gif"}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth API KEY
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accepts:
|
15
|
+
- application/json
|
16
|
+
X-Client-Id:
|
17
|
+
- 508fc620018d162a070000d6
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:01 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"3df895af1a4943a1db687cf2ec3f2d33"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:00 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
36
|
+
- '200'
|
37
|
+
X-Available-Hourly-Calls:
|
38
|
+
- '4999888'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999829'
|
41
|
+
X-Max-Hourly-Calls:
|
42
|
+
- '5000000'
|
43
|
+
X-Max-Monthly-Calls:
|
44
|
+
- '3720000000'
|
45
|
+
X-Powered-By:
|
46
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Request-Id:
|
50
|
+
- b447179cb4239cfdb71e4ec3b90e9019
|
51
|
+
X-Runtime:
|
52
|
+
- '0.340609'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Transfer-Encoding:
|
56
|
+
- chunked
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Imported Assets","warning":"Deprecated route:
|
62
|
+
This will be disabled soon. Please include an album in the route to access
|
63
|
+
an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/import?&urls=http%3A%2F%2Fimage.coloring.com%2Fpictures%2Foverlay%2Fcat-and-fancy-mouse.gif","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999829,"max_hourly_calls":5000000,"available_hourly_calls":4999888}},"data":[{"id":365323301,"links":{"self":{"href":"http://api.getchute.com/v2/assets/365323301","title":"Asset
|
64
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/assets/365323301/exif","title":"Exif
|
65
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/assets/365323301/geo","title":"Geo
|
66
|
+
Details"}},"created_at":"2013-04-08T22:54:00Z","updated_at":"2013-04-08T22:54:00Z","thumbnail":"http://media.getchute.com/media/oIRhjlwta/75x75","url":"http://media.getchute.com/media/oIRhjlwta","shortcut":"oIRhjlwta","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"import","source_id":null,"source_url":"http://image.coloring.com/pictures/overlay/cat-and-fancy-mouse.gif","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/oIRhjlwta"},"service":"uploaded","user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
|
67
|
+
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}}]}'
|
68
|
+
http_version:
|
69
|
+
recorded_at: Mon, 08 Apr 2013 22:54:01 GMT
|
70
|
+
- request:
|
71
|
+
method: delete
|
72
|
+
uri: https://api.getchute.com/v2/assets/365323301
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: ! '{}'
|
76
|
+
headers:
|
77
|
+
Authorization:
|
78
|
+
- OAuth API KEY
|
79
|
+
Content-Type:
|
80
|
+
- application/json
|
81
|
+
Accepts:
|
82
|
+
- application/json
|
83
|
+
X-Client-Id:
|
84
|
+
- 508fc620018d162a070000d6
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
Cache-Control:
|
91
|
+
- max-age=0, private, must-revalidate
|
92
|
+
Content-Type:
|
93
|
+
- application/json; charset=utf-8
|
94
|
+
Date:
|
95
|
+
- Mon, 08 Apr 2013 22:54:01 GMT
|
96
|
+
Etag:
|
97
|
+
- ! '"106edd281a42af24d3c0083a0cab84de"'
|
98
|
+
Server:
|
99
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
100
|
+
Status:
|
101
|
+
- '200'
|
102
|
+
X-Available-Hourly-Calls:
|
103
|
+
- '4999887'
|
104
|
+
X-Available-Monthly-Calls:
|
105
|
+
- '3719999828'
|
106
|
+
X-Max-Hourly-Calls:
|
107
|
+
- '5000000'
|
108
|
+
X-Max-Monthly-Calls:
|
109
|
+
- '3720000000'
|
110
|
+
X-Powered-By:
|
111
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
112
|
+
X-Rack-Cache:
|
113
|
+
- invalidate, pass
|
114
|
+
X-Request-Id:
|
115
|
+
- 0acc88a4c08495272dd3d65ef1d64ac4
|
116
|
+
X-Runtime:
|
117
|
+
- '0.031108'
|
118
|
+
X-Ua-Compatible:
|
119
|
+
- IE=Edge,chrome=1
|
120
|
+
Content-Length:
|
121
|
+
- '374'
|
122
|
+
Connection:
|
123
|
+
- keep-alive
|
124
|
+
body:
|
125
|
+
encoding: US-ASCII
|
126
|
+
string: ! '{"response":{"title":"Asset Deleted","warning":"Deprecated route:
|
127
|
+
This will be disabled soon. Please include an album in the route to access
|
128
|
+
an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/365323301?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999828,"max_hourly_calls":5000000,"available_hourly_calls":4999887}}}'
|
129
|
+
http_version:
|
130
|
+
recorded_at: Mon, 08 Apr 2013 22:54:01 GMT
|
131
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,197 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/assets/import
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"urls":["http://www.wix.com/blog/wp-content/uploads/2012/08/HowToGoBeyondStockPhotoCliches.jpg","http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2012/11/27/1354010019306/Brad-Pitt-010.jpg","http://datastore01.rediff.com/h1500-w1500/thumb/52605E5F6D6C65665C60665C696C7371/fuugfaw7icy0hq4j.D.0.Richa-Gangopadhyay-Latest-Hot-Photo.jpg"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth API KEY
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accepts:
|
15
|
+
- application/json
|
16
|
+
X-Client-Id:
|
17
|
+
- 508fc620018d162a070000d6
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:54:02 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"638e131880d8730e0c13e2a49e710c1c"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:54:00 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
36
|
+
- '200'
|
37
|
+
X-Available-Hourly-Calls:
|
38
|
+
- '4999886'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999827'
|
41
|
+
X-Max-Hourly-Calls:
|
42
|
+
- '5000000'
|
43
|
+
X-Max-Monthly-Calls:
|
44
|
+
- '3720000000'
|
45
|
+
X-Powered-By:
|
46
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Request-Id:
|
50
|
+
- 84e1dd019caa2cefaef1e108555f30a8
|
51
|
+
X-Runtime:
|
52
|
+
- '0.044426'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Transfer-Encoding:
|
56
|
+
- chunked
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Imported Assets","warning":"Deprecated route:
|
62
|
+
This will be disabled soon. Please include an album in the route to access
|
63
|
+
an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/import?&urls%5B%5D=http%3A%2F%2Fwww.wix.com%2Fblog%2Fwp-content%2Fuploads%2F2012%2F08%2FHowToGoBeyondStockPhotoCliches.jpg&urls%5B%5D=http%3A%2F%2Fstatic.guim.co.uk%2Fsys-images%2FGuardian%2FPix%2Fpictures%2F2012%2F11%2F27%2F1354010019306%2FBrad-Pitt-010.jpg&urls%5B%5D=http%3A%2F%2Fdatastore01.rediff.com%2Fh1500-w1500%2Fthumb%2F52605E5F6D6C65665C60665C696C7371%2Ffuugfaw7icy0hq4j.D.0.Richa-Gangopadhyay-Latest-Hot-Photo.jpg","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999827,"max_hourly_calls":5000000,"available_hourly_calls":4999886}},"data":[{"id":71907823,"links":{"self":{"href":"http://api.getchute.com/v2/assets/71907823","title":"Asset
|
64
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/assets/71907823/exif","title":"Exif
|
65
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/assets/71907823/geo","title":"Geo
|
66
|
+
Details"}},"created_at":"2012-11-28T11:12:02Z","updated_at":"2013-04-08T22:54:00Z","thumbnail":"http://media.getchute.com/media/4RIvBzgbp/75x75","url":"http://media.getchute.com/media/4RIvBzgbp","shortcut":"4RIvBzgbp","type":"image","caption":"New
|
67
|
+
Asset Title","dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://www.wix.com/blog/wp-content/uploads/2012/08/HowToGoBeyondStockPhotoCliches.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/4RIvBzgbp"},"service":"uploaded"},{"id":336387456,"links":{"self":{"href":"http://api.getchute.com/v2/assets/336387456","title":"Asset
|
68
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/assets/336387456/exif","title":"Exif
|
69
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/assets/336387456/geo","title":"Geo
|
70
|
+
Details"}},"created_at":"2013-03-25T18:27:00Z","updated_at":"2013-03-25T18:27:00Z","thumbnail":"http://media.getchute.com/media/mLrK8hvfb/75x75","url":"http://media.getchute.com/media/mLrK8hvfb","shortcut":"mLrK8hvfb","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"import","source_id":null,"source_url":"http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2012/11/27/1354010019306/Brad-Pitt-010.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/mLrK8hvfb"},"service":"uploaded"},{"id":336387457,"links":{"self":{"href":"http://api.getchute.com/v2/assets/336387457","title":"Asset
|
71
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/assets/336387457/exif","title":"Exif
|
72
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/assets/336387457/geo","title":"Geo
|
73
|
+
Details"}},"created_at":"2013-03-25T18:27:00Z","updated_at":"2013-03-25T18:27:00Z","thumbnail":"http://media.getchute.com/media/mLrK9uvyh/75x75","url":"http://media.getchute.com/media/mLrK9uvyh","shortcut":"mLrK9uvyh","type":"image","caption":null,"dimensions":{"width":null,"height":null},"location":null,"source":{"source":"import","source_id":null,"source_url":"http://datastore01.rediff.com/h1500-w1500/thumb/52605E5F6D6C65665C60665C696C7371/fuugfaw7icy0hq4j.D.0.Richa-Gangopadhyay-Latest-Hot-Photo.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/mLrK9uvyh"},"service":"uploaded"}]}'
|
74
|
+
http_version:
|
75
|
+
recorded_at: Mon, 08 Apr 2013 22:54:02 GMT
|
76
|
+
- request:
|
77
|
+
method: get
|
78
|
+
uri: https://api.getchute.com/v2/assets/71907823/geo
|
79
|
+
body:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: ! '{}'
|
82
|
+
headers:
|
83
|
+
Authorization:
|
84
|
+
- OAuth API KEY
|
85
|
+
Content-Type:
|
86
|
+
- application/json
|
87
|
+
Accepts:
|
88
|
+
- application/json
|
89
|
+
X-Client-Id:
|
90
|
+
- 508fc620018d162a070000d6
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 200
|
94
|
+
message: OK
|
95
|
+
headers:
|
96
|
+
Cache-Control:
|
97
|
+
- must-revalidate, private, max-age=0
|
98
|
+
Content-Type:
|
99
|
+
- application/json; charset=utf-8
|
100
|
+
Date:
|
101
|
+
- Mon, 08 Apr 2013 22:54:02 GMT
|
102
|
+
Etag:
|
103
|
+
- ! '"61eaaa7b2b3bfc455c9390922de79c88"'
|
104
|
+
Server:
|
105
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
106
|
+
Status:
|
107
|
+
- '200'
|
108
|
+
X-Available-Hourly-Calls:
|
109
|
+
- '4999885'
|
110
|
+
X-Available-Monthly-Calls:
|
111
|
+
- '3719999826'
|
112
|
+
X-Max-Hourly-Calls:
|
113
|
+
- '5000000'
|
114
|
+
X-Max-Monthly-Calls:
|
115
|
+
- '3720000000'
|
116
|
+
X-Powered-By:
|
117
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
118
|
+
X-Rack-Cache:
|
119
|
+
- miss
|
120
|
+
X-Request-Id:
|
121
|
+
- b32881545b86c39c9204755e76892573
|
122
|
+
X-Runtime:
|
123
|
+
- '0.023260'
|
124
|
+
X-Ua-Compatible:
|
125
|
+
- IE=Edge,chrome=1
|
126
|
+
Content-Length:
|
127
|
+
- '385'
|
128
|
+
Connection:
|
129
|
+
- keep-alive
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ! '{"response":{"title":"Geo Details","warning":"Deprecated route: This
|
133
|
+
will be disabled soon. Please include an album in the route to access an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/71907823/geo?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999826,"max_hourly_calls":5000000,"available_hourly_calls":4999885}},"data":{}}'
|
134
|
+
http_version:
|
135
|
+
recorded_at: Mon, 08 Apr 2013 22:54:02 GMT
|
136
|
+
- request:
|
137
|
+
method: get
|
138
|
+
uri: https://api.getchute.com/v2/assets/geo/-36.88155833,174.70791111/500
|
139
|
+
body:
|
140
|
+
encoding: UTF-8
|
141
|
+
string: ! '{}'
|
142
|
+
headers:
|
143
|
+
Authorization:
|
144
|
+
- OAuth API KEY
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
Accepts:
|
148
|
+
- application/json
|
149
|
+
X-Client-Id:
|
150
|
+
- 508fc620018d162a070000d6
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Cache-Control:
|
157
|
+
- must-revalidate, private, max-age=0
|
158
|
+
Content-Type:
|
159
|
+
- application/json; charset=utf-8
|
160
|
+
Date:
|
161
|
+
- Mon, 08 Apr 2013 22:54:03 GMT
|
162
|
+
Etag:
|
163
|
+
- ! '"789c5a2884658ad5439fcbccecaa16c2"'
|
164
|
+
Server:
|
165
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
166
|
+
Status:
|
167
|
+
- '200'
|
168
|
+
X-Available-Hourly-Calls:
|
169
|
+
- '4999884'
|
170
|
+
X-Available-Monthly-Calls:
|
171
|
+
- '3719999825'
|
172
|
+
X-Max-Hourly-Calls:
|
173
|
+
- '5000000'
|
174
|
+
X-Max-Monthly-Calls:
|
175
|
+
- '3720000000'
|
176
|
+
X-Powered-By:
|
177
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
178
|
+
X-Rack-Cache:
|
179
|
+
- miss
|
180
|
+
X-Request-Id:
|
181
|
+
- 35087201cc092bd7fb7450747b378cc0
|
182
|
+
X-Runtime:
|
183
|
+
- '0.031261'
|
184
|
+
X-Ua-Compatible:
|
185
|
+
- IE=Edge,chrome=1
|
186
|
+
Content-Length:
|
187
|
+
- '710'
|
188
|
+
Connection:
|
189
|
+
- keep-alive
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ! '{"response":{"title":"Assets for location: -36.88155833,174.70791111
|
193
|
+
within a 500 metres redius","warning":"Deprecated route: This will be disabled
|
194
|
+
soon. Please include an album in the route to access an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/geo/-36.88155833,174.70791111/500?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999825,"max_hourly_calls":5000000,"available_hourly_calls":4999884}},"data":[],"pagination":{"current_page":1,"next_page":"https://api.getchute.com/v2/assets/geo/-36.88155833,174.70791111/500?&page=2","previous_page":null,"first_page":"https://api.getchute.com/v2/assets/geo/-36.88155833,174.70791111/500?","per_page":5}}'
|
195
|
+
http_version:
|
196
|
+
recorded_at: Mon, 08 Apr 2013 22:54:03 GMT
|
197
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,138 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.getchute.com/v2/assets/import
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"urls":"http://www.wix.com/blog/wp-content/uploads/2012/08/HowToGoBeyondStockPhotoCliches.jpg"}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- OAuth API KEY
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accepts:
|
15
|
+
- application/json
|
16
|
+
X-Client-Id:
|
17
|
+
- 508fc620018d162a070000d6
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Mon, 08 Apr 2013 22:53:58 GMT
|
29
|
+
Etag:
|
30
|
+
- ! '"c9ca3f955bdf76e7d7643d1e2bd29108"'
|
31
|
+
Last-Modified:
|
32
|
+
- Mon, 08 Apr 2013 22:27:36 GMT
|
33
|
+
Server:
|
34
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
35
|
+
Status:
|
36
|
+
- '200'
|
37
|
+
X-Available-Hourly-Calls:
|
38
|
+
- '4999892'
|
39
|
+
X-Available-Monthly-Calls:
|
40
|
+
- '3719999833'
|
41
|
+
X-Max-Hourly-Calls:
|
42
|
+
- '5000000'
|
43
|
+
X-Max-Monthly-Calls:
|
44
|
+
- '3720000000'
|
45
|
+
X-Powered-By:
|
46
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Request-Id:
|
50
|
+
- 6ee842071732ac271bb5030411a75bf8
|
51
|
+
X-Runtime:
|
52
|
+
- '0.038201'
|
53
|
+
X-Ua-Compatible:
|
54
|
+
- IE=Edge,chrome=1
|
55
|
+
Transfer-Encoding:
|
56
|
+
- chunked
|
57
|
+
Connection:
|
58
|
+
- keep-alive
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: ! '{"response":{"title":"Imported Assets","warning":"Deprecated route:
|
62
|
+
This will be disabled soon. Please include an album in the route to access
|
63
|
+
an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/import?&urls=http%3A%2F%2Fwww.wix.com%2Fblog%2Fwp-content%2Fuploads%2F2012%2F08%2FHowToGoBeyondStockPhotoCliches.jpg","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999833,"max_hourly_calls":5000000,"available_hourly_calls":4999892}},"data":[{"id":71907823,"links":{"self":{"href":"http://api.getchute.com/v2/assets/71907823","title":"Asset
|
64
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/assets/71907823/exif","title":"Exif
|
65
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/assets/71907823/geo","title":"Geo
|
66
|
+
Details"}},"created_at":"2012-11-28T11:12:02Z","updated_at":"2013-04-08T22:27:36Z","thumbnail":"http://media.getchute.com/media/4RIvBzgbp/75x75","url":"http://media.getchute.com/media/4RIvBzgbp","shortcut":"4RIvBzgbp","type":"image","caption":"New
|
67
|
+
Asset Title","dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://www.wix.com/blog/wp-content/uploads/2012/08/HowToGoBeyondStockPhotoCliches.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/4RIvBzgbp"},"service":"uploaded"}]}'
|
68
|
+
http_version:
|
69
|
+
recorded_at: Mon, 08 Apr 2013 22:53:58 GMT
|
70
|
+
- request:
|
71
|
+
method: get
|
72
|
+
uri: https://api.getchute.com/v2/assets/71907823
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: ! '{}'
|
76
|
+
headers:
|
77
|
+
Authorization:
|
78
|
+
- OAuth API KEY
|
79
|
+
Content-Type:
|
80
|
+
- application/json
|
81
|
+
Accepts:
|
82
|
+
- application/json
|
83
|
+
X-Client-Id:
|
84
|
+
- 508fc620018d162a070000d6
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
Cache-Control:
|
91
|
+
- must-revalidate, private, max-age=0
|
92
|
+
Content-Type:
|
93
|
+
- text/html; charset=utf-8
|
94
|
+
Date:
|
95
|
+
- Mon, 08 Apr 2013 22:53:59 GMT
|
96
|
+
Etag:
|
97
|
+
- ! '"c9ca3f955bdf76e7d7643d1e2bd29108"'
|
98
|
+
Last-Modified:
|
99
|
+
- Mon, 08 Apr 2013 22:27:36 GMT
|
100
|
+
Server:
|
101
|
+
- nginx/1.2.7 + Phusion Passenger 3.0.18 (mod_rails/mod_rack)
|
102
|
+
Status:
|
103
|
+
- '200'
|
104
|
+
X-Available-Hourly-Calls:
|
105
|
+
- '4999891'
|
106
|
+
X-Available-Monthly-Calls:
|
107
|
+
- '3719999832'
|
108
|
+
X-Max-Hourly-Calls:
|
109
|
+
- '5000000'
|
110
|
+
X-Max-Monthly-Calls:
|
111
|
+
- '3720000000'
|
112
|
+
X-Powered-By:
|
113
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
114
|
+
X-Rack-Cache:
|
115
|
+
- miss
|
116
|
+
X-Request-Id:
|
117
|
+
- aa79293dd8328de582ea18eba54b524d
|
118
|
+
X-Runtime:
|
119
|
+
- '0.025763'
|
120
|
+
X-Ua-Compatible:
|
121
|
+
- IE=Edge,chrome=1
|
122
|
+
Content-Length:
|
123
|
+
- '1561'
|
124
|
+
Connection:
|
125
|
+
- keep-alive
|
126
|
+
body:
|
127
|
+
encoding: US-ASCII
|
128
|
+
string: ! '{"response":{"title":"Asset Details","warning":"Deprecated route:
|
129
|
+
This will be disabled soon. Please include an album in the route to access
|
130
|
+
an asset.","version":2,"code":200,"href":"https://api.getchute.com/v2/assets/71907823?","api_limits":{"max_monthly_calls":3720000000,"available_monthly_calls":3719999832,"max_hourly_calls":5000000,"available_hourly_calls":4999891}},"data":{"id":71907823,"links":{"self":{"href":"http://api.getchute.com/v2/assets/71907823","title":"Asset
|
131
|
+
Details"},"exif":{"href":"http://api.getchute.com/v2/assets/71907823/exif","title":"Exif
|
132
|
+
Details"},"geo":{"href":"http://api.getchute.com/v2/assets/71907823/geo","title":"Geo
|
133
|
+
Details"}},"created_at":"2012-11-28T11:12:02Z","updated_at":"2013-04-08T22:27:36Z","thumbnail":"http://media.getchute.com/media/4RIvBzgbp/75x75","url":"http://media.getchute.com/media/4RIvBzgbp","shortcut":"4RIvBzgbp","type":"image","caption":"New
|
134
|
+
Asset Title","dimensions":{"width":null,"height":null},"location":null,"source":{"source":"imported","source_id":null,"source_url":"http://www.wix.com/blog/wp-content/uploads/2012/08/HowToGoBeyondStockPhotoCliches.jpg","service":null,"import_id":null,"import_url":null,"original_url":"http://media.getchute.com/media/4RIvBzgbp"},"service":"uploaded","user":{"id":545,"links":{"self":{"href":"http://api.getchute.com/v2/users/545","title":"User
|
135
|
+
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}}}'
|
136
|
+
http_version:
|
137
|
+
recorded_at: Mon, 08 Apr 2013 22:53:59 GMT
|
138
|
+
recorded_with: VCR 2.2.5
|