purdie 0.1.2 → 0.1.3

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/features/soundcloud.feature +11 -0
  3. data/features/support/env.rb +3 -3
  4. data/lib/purdie/exceptions.rb +9 -0
  5. data/lib/purdie/services/soundcloud.rb +17 -8
  6. data/lib/purdie/version.rb +1 -1
  7. data/spec/purdie/services/soundcloud_spec.rb +18 -0
  8. data/spec/vcr/Purdie_Services_SoundCloud/handle_missing_fields/behaves_gracefully_when_there_is_no_date.yml +98 -0
  9. data/spec/vcr/Purdie_Services_SoundCloud/handle_missing_fields/is_fine_when_there_is_no_location.yml +98 -0
  10. metadata +6 -36
  11. data/features/support/fixtures/vcr.nope/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml +0 -125
  12. data/features/support/fixtures/vcr.nope/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml +0 -536
  13. data/features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML.yml +0 -131
  14. data/features/support/fixtures/vcr.nope/Flickr/Generate_Flickr_YAML_with_lookups.yml +0 -129
  15. data/features/support/fixtures/vcr.nope/Flickr_album/Generate_Flickr_YAML_for_an_album.yml +0 -2280
  16. data/features/support/fixtures/vcr.nope/Handle_comments/Handle_comments_in_a_source_file.yml +0 -131
  17. data/features/support/fixtures/vcr.nope/Missing_or_bad_credentials/Bad_credentials_for_multiple_services.yml +0 -156
  18. data/features/support/fixtures/vcr.nope/Purdie/Generate_several_YAML.yml +0 -355
  19. data/features/support/fixtures/vcr.nope/Select_a_file_to_process/Choose_file_to_process.yml +0 -220
  20. data/features/support/fixtures/vcr.nope/Set_Flickr_picturesize/Generate_Flickr_YAML.yml +0 -131
  21. data/features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML.yml +0 -92
  22. data/features/support/fixtures/vcr.nope/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml +0 -181
  23. data/features/support/fixtures/vcr.nope/Soundcloud_set/Generate_YAML_for_a_SoundCloud_set.yml +0 -461
  24. data/features/support/fixtures/vcr.nope/Vimeo/Generate_Vimeo_YAML.yml +0 -53
  25. data/features/support/fixtures/vcr.nope/Vimeo_albums/Generate_YAML_for_a_Vimeo_album.yml +0 -210
  26. data/features/support/fixtures/vcr.nope/YouTube/Generate_YouTube_YAML.yml +0 -970
  27. data/features/support/fixtures/vcr.nope/YouTube_playlists/Generate_YAML_for_a_YouTube_playlist.yml +0 -9688
@@ -1,536 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.flickr.com/services/rest/
6
- body:
7
- encoding: US-ASCII
8
- string: photo_id=15950875724&method=flickr.photos.getInfo&format=json&nojsoncallback=1
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - FlickRaw/0.9.8
16
- Authorization:
17
- - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
18
- oauth_nonce="6%2BGrs%2Bn6FZ6ua9eHOBrzYpKVbz%2BNsl8cfLESnFHLe0E%3D", oauth_signature="<FLICKR_SECRET>%26",
19
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1427833105", oauth_token="",
20
- oauth_version="1.0"
21
- Content-Type:
22
- - application/x-www-form-urlencoded
23
- response:
24
- status:
25
- code: 200
26
- message: OK
27
- headers:
28
- Date:
29
- - Tue, 31 Mar 2015 20:18:26 GMT
30
- Content-Type:
31
- - application/json
32
- Content-Length:
33
- - '543'
34
- P3p:
35
- - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
36
- TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
37
- ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
38
- Cache-Control:
39
- - private
40
- X-Served-By:
41
- - www21.flickr.bf1.yahoo.com
42
- Vary:
43
- - Accept-Encoding
44
- Age:
45
- - '2'
46
- Via:
47
- - http/1.1 fts122.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
- http/1.1 r13.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
49
- Server:
50
- - ATS
51
- Strict-Transport-Security:
52
- - max-age=259200
53
- Connection:
54
- - keep-alive
55
- body:
56
- encoding: ASCII-8BIT
57
- string: '{"photo":{"id":"15950875724","secret":"23d58be214","server":"7398","farm":8,"dateuploaded":"1424289792","isfavorite":0,"license":"2","safety_level":"0","rotation":0,"originalsecret":"24a89b0cfe","originalformat":"jpg","owner":{"nsid":"54115632@N00","username":"cluttercup","realname":"Jane
58
- Dickson","location":"London, UK","iconserver":"7338","iconfarm":8,"path_alias":"cluttercup"},"title":{"_content":""},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1424289792","taken":"2015-02-18
59
- 16:56:20","takengranularity":"0","takenunknown":"0","lastupdate":"1424289832"},"views":"39","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/cluttercup\/15950875724\/"}]},"media":"photo"},"stat":"ok"}'
60
- http_version:
61
- recorded_at: Tue, 31 Mar 2015 20:18:26 GMT
62
- - request:
63
- method: post
64
- uri: https://api.flickr.com/services/rest/
65
- body:
66
- encoding: US-ASCII
67
- string: method=flickr.photos.licenses.getInfo&format=json&nojsoncallback=1
68
- headers:
69
- Accept-Encoding:
70
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
- Accept:
72
- - "*/*"
73
- User-Agent:
74
- - FlickRaw/0.9.8
75
- Authorization:
76
- - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
77
- oauth_nonce="dROaFhiz%2FgKYxlHUucU42NAFitV3J6o4YaTsWC%2BTh60%3D", oauth_signature="<FLICKR_SECRET>%26",
78
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1427833106", oauth_token="",
79
- oauth_version="1.0"
80
- Content-Type:
81
- - application/x-www-form-urlencoded
82
- response:
83
- status:
84
- code: 200
85
- message: OK
86
- headers:
87
- Date:
88
- - Tue, 31 Mar 2015 20:18:26 GMT
89
- Content-Type:
90
- - application/json
91
- Content-Length:
92
- - '371'
93
- P3p:
94
- - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
95
- TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
96
- ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
97
- Cache-Control:
98
- - private
99
- X-Served-By:
100
- - www298.flickr.bf1.yahoo.com
101
- Vary:
102
- - Accept-Encoding
103
- Age:
104
- - '0'
105
- Via:
106
- - http/1.1 fts119.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
107
- http/1.1 r05.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
108
- Server:
109
- - ATS
110
- Strict-Transport-Security:
111
- - max-age=259200
112
- Connection:
113
- - keep-alive
114
- body:
115
- encoding: ASCII-8BIT
116
- string: '{"licenses":{"license":[{"id":"0","name":"All Rights Reserved","url":""},{"id":"4","name":"Attribution
117
- License","url":"https:\/\/creativecommons.org\/licenses\/by\/2.0\/"},{"id":"6","name":"Attribution-NoDerivs
118
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nd\/2.0\/"},{"id":"3","name":"Attribution-NonCommercial-NoDerivs
119
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.0\/"},{"id":"2","name":"Attribution-NonCommercial
120
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nc\/2.0\/"},{"id":"1","name":"Attribution-NonCommercial-ShareAlike
121
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.0\/"},{"id":"5","name":"Attribution-ShareAlike
122
- License","url":"https:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/"},{"id":"7","name":"No
123
- known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
124
- States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"},{"id":"9","name":"Public
125
- Domain Dedication (CC0)","url":"https:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/"},{"id":"10","name":"Public
126
- Domain Mark","url":"https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\/"}]},"stat":"ok"}'
127
- http_version:
128
- recorded_at: Tue, 31 Mar 2015 20:18:26 GMT
129
- - request:
130
- method: post
131
- uri: https://api.flickr.com/services/rest/
132
- body:
133
- encoding: US-ASCII
134
- string: photo_id=16579675721&method=flickr.photos.getInfo&format=json&nojsoncallback=1
135
- headers:
136
- Accept-Encoding:
137
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
138
- Accept:
139
- - "*/*"
140
- User-Agent:
141
- - FlickRaw/0.9.8
142
- Authorization:
143
- - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
144
- oauth_nonce="Feaa37TfZQC6n%2Fu%2Bw%2FFvZnvi779gyYcybKXpul1FSyA%3D", oauth_signature="<FLICKR_SECRET>%26",
145
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1427833106", oauth_token="",
146
- oauth_version="1.0"
147
- Content-Type:
148
- - application/x-www-form-urlencoded
149
- response:
150
- status:
151
- code: 200
152
- message: OK
153
- headers:
154
- Date:
155
- - Tue, 31 Mar 2015 20:18:26 GMT
156
- Content-Type:
157
- - application/json
158
- Content-Length:
159
- - '546'
160
- P3p:
161
- - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
162
- TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
163
- ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
164
- Cache-Control:
165
- - private
166
- X-Served-By:
167
- - www313.flickr.bf1.yahoo.com
168
- Vary:
169
- - Accept-Encoding
170
- Age:
171
- - '0'
172
- Via:
173
- - http/1.1 fts107.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
174
- http/1.1 r05.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
175
- Server:
176
- - ATS
177
- Strict-Transport-Security:
178
- - max-age=259200
179
- Connection:
180
- - keep-alive
181
- body:
182
- encoding: ASCII-8BIT
183
- string: '{"photo":{"id":"16579675721","secret":"f765c42f99","server":"7418","farm":8,"dateuploaded":"1424360169","isfavorite":0,"license":"2","safety_level":"0","rotation":0,"originalsecret":"810967e8d9","originalformat":"jpg","owner":{"nsid":"54115632@N00","username":"cluttercup","realname":"Jane
184
- Dickson","location":"London, UK","iconserver":"7338","iconfarm":8,"path_alias":"cluttercup"},"title":{"_content":""},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1424360169","taken":"2015-02-18
185
- 16:28:17","takengranularity":"0","takenunknown":"0","lastupdate":"1424360294"},"views":"26","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/cluttercup\/16579675721\/"}]},"media":"photo"},"stat":"ok"}'
186
- http_version:
187
- recorded_at: Tue, 31 Mar 2015 20:18:26 GMT
188
- - request:
189
- method: post
190
- uri: https://api.flickr.com/services/rest/
191
- body:
192
- encoding: US-ASCII
193
- string: method=flickr.photos.licenses.getInfo&format=json&nojsoncallback=1
194
- headers:
195
- Accept-Encoding:
196
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
197
- Accept:
198
- - "*/*"
199
- User-Agent:
200
- - FlickRaw/0.9.8
201
- Authorization:
202
- - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
203
- oauth_nonce="xdypdSj8qelXLUVOW8dpku2BnnzAQKiIz%2BYR5PV1ur4%3D", oauth_signature="<FLICKR_SECRET>%26",
204
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1427833106", oauth_token="",
205
- oauth_version="1.0"
206
- Content-Type:
207
- - application/x-www-form-urlencoded
208
- response:
209
- status:
210
- code: 200
211
- message: OK
212
- headers:
213
- Date:
214
- - Tue, 31 Mar 2015 20:18:27 GMT
215
- Content-Type:
216
- - application/json
217
- Content-Length:
218
- - '371'
219
- P3p:
220
- - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
221
- TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
222
- ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
223
- Cache-Control:
224
- - private
225
- X-Served-By:
226
- - www15.flickr.bf1.yahoo.com
227
- Vary:
228
- - Accept-Encoding
229
- Age:
230
- - '0'
231
- Via:
232
- - http/1.1 fts104.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
233
- http/1.1 r09.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
234
- Server:
235
- - ATS
236
- Strict-Transport-Security:
237
- - max-age=259200
238
- Connection:
239
- - keep-alive
240
- body:
241
- encoding: ASCII-8BIT
242
- string: '{"licenses":{"license":[{"id":"0","name":"All Rights Reserved","url":""},{"id":"4","name":"Attribution
243
- License","url":"https:\/\/creativecommons.org\/licenses\/by\/2.0\/"},{"id":"6","name":"Attribution-NoDerivs
244
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nd\/2.0\/"},{"id":"3","name":"Attribution-NonCommercial-NoDerivs
245
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.0\/"},{"id":"2","name":"Attribution-NonCommercial
246
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nc\/2.0\/"},{"id":"1","name":"Attribution-NonCommercial-ShareAlike
247
- License","url":"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/2.0\/"},{"id":"5","name":"Attribution-ShareAlike
248
- License","url":"https:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/"},{"id":"7","name":"No
249
- known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
250
- States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"},{"id":"9","name":"Public
251
- Domain Dedication (CC0)","url":"https:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/"},{"id":"10","name":"Public
252
- Domain Mark","url":"https:\/\/creativecommons.org\/publicdomain\/mark\/1.0\/"}]},"stat":"ok"}'
253
- http_version:
254
- recorded_at: Tue, 31 Mar 2015 20:18:27 GMT
255
- - request:
256
- method: get
257
- uri: http://api.soundcloud.com/resolve?client_id=<SOUNDCLOUD_CLIENT_ID>&format=json&url=https://soundcloud.com/rawfunkmaharishi/hexaflexagon-1
258
- body:
259
- encoding: US-ASCII
260
- string: ''
261
- headers:
262
- User-Agent:
263
- - SoundCloud Ruby Wrapper 0.13.3
264
- response:
265
- status:
266
- code: 302
267
- message: Found
268
- headers:
269
- Access-Control-Allow-Headers:
270
- - Accept, Authorization, Content-Type, Origin
271
- Access-Control-Allow-Methods:
272
- - GET, PUT, POST, DELETE
273
- Access-Control-Allow-Origin:
274
- - "*"
275
- Access-Control-Expose-Headers:
276
- - Date
277
- Cache-Control:
278
- - no-cache
279
- Content-Type:
280
- - application/json; charset=utf-8
281
- Date:
282
- - Tue, 31 Mar 2015 20:18:27 GMT
283
- Location:
284
- - https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>
285
- Server:
286
- - am/2
287
- Content-Length:
288
- - '129'
289
- body:
290
- encoding: UTF-8
291
- string: '{"status":"302 - Found","location":"https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>"}'
292
- http_version:
293
- recorded_at: Tue, 31 Mar 2015 20:18:27 GMT
294
- - request:
295
- method: get
296
- uri: https://api.soundcloud.com/tracks/193008299.json?client_id=<SOUNDCLOUD_CLIENT_ID>
297
- body:
298
- encoding: US-ASCII
299
- string: ''
300
- headers:
301
- User-Agent:
302
- - SoundCloud Ruby Wrapper 0.13.3
303
- response:
304
- status:
305
- code: 200
306
- message: OK
307
- headers:
308
- Accept-Ranges:
309
- - bytes
310
- Access-Control-Allow-Headers:
311
- - Accept, Authorization, Content-Type, Origin
312
- Access-Control-Allow-Methods:
313
- - GET, PUT, POST, DELETE
314
- Access-Control-Allow-Origin:
315
- - "*"
316
- Access-Control-Expose-Headers:
317
- - Date
318
- Cache-Control:
319
- - max-age=600, public
320
- Content-Type:
321
- - application/json; charset=utf-8
322
- Date:
323
- - Tue, 31 Mar 2015 20:18:27 GMT
324
- Etag:
325
- - '"22a8481cd85e1e7be64128c639cc21b0"'
326
- Last-Modified:
327
- - Tue, 31 Mar 2015 16:20:04 GMT
328
- Server:
329
- - am/2
330
- Vary:
331
- - Accept-Encoding
332
- - Authorization, Accept
333
- X-Cache:
334
- - HIT
335
- Content-Length:
336
- - '1555'
337
- body:
338
- encoding: UTF-8
339
- string: '{"kind":"track","id":193008299,"created_at":"2015/02/25 19:24:51 +0000","user_id":56479293,"duration":209626,"commentable":true,"state":"finished","original_content_size":8436471,"last_modified":"2015/02/27
340
- 17:08:45 +0000","sharing":"public","tag_list":"\"islington academy sessions\"","permalink":"hexaflexagon-1","streamable":true,"embeddable_by":"all","downloadable":true,"purchase_url":null,"label_id":null,"purchase_title":null,"genre":"funk","title":"Hexaflexagon","description":"Islington
341
- Academy","label_name":null,"release":null,"track_type":null,"key_signature":null,"isrc":null,"video_url":null,"bpm":null,"release_year":2015,"release_month":2,"release_day":18,"original_format":"mp3","license":"cc-by-nc-sa","uri":"https://api.soundcloud.com/tracks/193008299","user":{"id":56479293,"kind":"user","permalink":"rawfunkmaharishi","username":"Raw
342
- Funk Maharishi","last_modified":"2015/03/23 09:26:53 +0000","uri":"https://api.soundcloud.com/users/56479293","permalink_url":"http://soundcloud.com/rawfunkmaharishi","avatar_url":"https://i1.sndcdn.com/avatars-000110957821-ac80gy-large.jpg"},"permalink_url":"http://soundcloud.com/rawfunkmaharishi/hexaflexagon-1","artwork_url":null,"waveform_url":"https://w1.sndcdn.com/CxyZz6RUbqZN_m.png","stream_url":"https://api.soundcloud.com/tracks/193008299/stream","download_url":"https://api.soundcloud.com/tracks/193008299/download","playback_count":59,"download_count":3,"favoritings_count":0,"comment_count":0,"attachments_uri":"https://api.soundcloud.com/tracks/193008299/attachments","policy":"ALLOW"}'
343
- http_version:
344
- recorded_at: Tue, 31 Mar 2015 20:18:27 GMT
345
- - request:
346
- method: get
347
- uri: http://api.soundcloud.com/resolve?client_id=<SOUNDCLOUD_CLIENT_ID>&format=json&url=https://soundcloud.com/rawfunkmaharishi/beer-of-course-but-why
348
- body:
349
- encoding: US-ASCII
350
- string: ''
351
- headers:
352
- User-Agent:
353
- - SoundCloud Ruby Wrapper 0.13.3
354
- response:
355
- status:
356
- code: 302
357
- message: Found
358
- headers:
359
- Access-Control-Allow-Headers:
360
- - Accept, Authorization, Content-Type, Origin
361
- Access-Control-Allow-Methods:
362
- - GET, PUT, POST, DELETE
363
- Access-Control-Allow-Origin:
364
- - "*"
365
- Access-Control-Expose-Headers:
366
- - Date
367
- Cache-Control:
368
- - no-cache
369
- Content-Type:
370
- - application/json; charset=utf-8
371
- Date:
372
- - Tue, 31 Mar 2015 20:18:27 GMT
373
- Location:
374
- - https://api.soundcloud.com/tracks/193006525.json?client_id=<SOUNDCLOUD_CLIENT_ID>
375
- Server:
376
- - am/2
377
- Content-Length:
378
- - '129'
379
- body:
380
- encoding: UTF-8
381
- string: '{"status":"302 - Found","location":"https://api.soundcloud.com/tracks/193006525.json?client_id=<SOUNDCLOUD_CLIENT_ID>"}'
382
- http_version:
383
- recorded_at: Tue, 31 Mar 2015 20:18:27 GMT
384
- - request:
385
- method: get
386
- uri: https://api.soundcloud.com/tracks/193006525.json?client_id=<SOUNDCLOUD_CLIENT_ID>
387
- body:
388
- encoding: US-ASCII
389
- string: ''
390
- headers:
391
- User-Agent:
392
- - SoundCloud Ruby Wrapper 0.13.3
393
- response:
394
- status:
395
- code: 200
396
- message: OK
397
- headers:
398
- Accept-Ranges:
399
- - bytes
400
- Access-Control-Allow-Headers:
401
- - Accept, Authorization, Content-Type, Origin
402
- Access-Control-Allow-Methods:
403
- - GET, PUT, POST, DELETE
404
- Access-Control-Allow-Origin:
405
- - "*"
406
- Access-Control-Expose-Headers:
407
- - Date
408
- Cache-Control:
409
- - max-age=600, public
410
- Content-Type:
411
- - application/json; charset=utf-8
412
- Date:
413
- - Tue, 31 Mar 2015 20:18:27 GMT
414
- Etag:
415
- - '"e670341711b788c7ec34c63c273258db"'
416
- Last-Modified:
417
- - Tue, 31 Mar 2015 16:20:05 GMT
418
- Server:
419
- - am/2
420
- Vary:
421
- - Accept-Encoding
422
- - Authorization, Accept
423
- X-Cache:
424
- - HIT
425
- Content-Length:
426
- - '1592'
427
- body:
428
- encoding: UTF-8
429
- string: '{"kind":"track","id":193006525,"created_at":"2015/02/25 19:13:37 +0000","user_id":56479293,"duration":190031,"commentable":true,"state":"finished","original_content_size":7652798,"last_modified":"2015/03/03
430
- 20:07:21 +0000","sharing":"public","tag_list":"afrobeat \"islington academy
431
- sessions\"","permalink":"beer-of-course-but-why","streamable":true,"embeddable_by":"all","downloadable":true,"purchase_url":null,"label_id":null,"purchase_title":null,"genre":"Funk","title":"Beer,
432
- Of Course, But Why","description":"Islington Academy","label_name":null,"release":null,"track_type":null,"key_signature":null,"isrc":null,"video_url":null,"bpm":null,"release_year":2015,"release_month":2,"release_day":18,"original_format":"mp3","license":"cc-by-nc-sa","uri":"https://api.soundcloud.com/tracks/193006525","user":{"id":56479293,"kind":"user","permalink":"rawfunkmaharishi","username":"Raw
433
- Funk Maharishi","last_modified":"2015/03/23 09:26:53 +0000","uri":"https://api.soundcloud.com/users/56479293","permalink_url":"http://soundcloud.com/rawfunkmaharishi","avatar_url":"https://i1.sndcdn.com/avatars-000110957821-ac80gy-large.jpg"},"permalink_url":"http://soundcloud.com/rawfunkmaharishi/beer-of-course-but-why","artwork_url":null,"waveform_url":"https://w1.sndcdn.com/qBjvlEuOtgIA_m.png","stream_url":"https://api.soundcloud.com/tracks/193006525/stream","download_url":"https://api.soundcloud.com/tracks/193006525/download","playback_count":47,"download_count":1,"favoritings_count":1,"comment_count":0,"attachments_uri":"https://api.soundcloud.com/tracks/193006525/attachments","policy":"ALLOW"}'
434
- http_version:
435
- recorded_at: Tue, 31 Mar 2015 20:18:28 GMT
436
- - request:
437
- method: get
438
- uri: https://api.vimeo.com/videos/117102891
439
- body:
440
- encoding: US-ASCII
441
- string: ''
442
- headers:
443
- Authorization:
444
- - bearer <VIMEO_BEARER_TOKEN>
445
- Accept:
446
- - application/json
447
- response:
448
- status:
449
- code: 200
450
- message: OK
451
- headers:
452
- Date:
453
- - Tue, 31 Mar 2015 20:18:29 GMT
454
- Server:
455
- - nginx
456
- Content-Type:
457
- - application/vnd.vimeo.video+json
458
- Cache-Control:
459
- - no-cache, max-age=315360000
460
- Expires:
461
- - Fri, 28 Mar 2025 20:18:28 GMT
462
- Content-Length:
463
- - '3714'
464
- Accept-Ranges:
465
- - bytes
466
- Via:
467
- - 1.1 varnish
468
- Age:
469
- - '0'
470
- X-Served-By:
471
- - cache-lcy1126-LCY
472
- X-Cache:
473
- - MISS
474
- X-Cache-Hits:
475
- - '0'
476
- X-Timer:
477
- - S1427833108.171735,VS0,VE1051
478
- Vary:
479
- - Accept,Vimeo-Client-Id,Accept-Encoding
480
- body:
481
- encoding: UTF-8
482
- string: '{"uri":"/videos/117102891","name":"Bernard","description":null,"link":"https://vimeo.com/rawfunkmaharishi/bernard","duration":239,"width":1280,"language":null,"height":720,"created_time":"2015-01-18T17:26:10+00:00","modified_time":"2015-03-23T22:11:19+00:00","content_rating":["unrated"],"license":"by-nc-sa","privacy":{"view":"anybody","embed":"public","download":true,"add":true,"comments":"anybody"},"pictures":{"uri":"/videos/117102891/pictures/503683214","active":true,"sizes":[{"width":100,"height":75,"link":"https://i.vimeocdn.com/video/503683214_100x75.jpg"},{"width":200,"height":150,"link":"https://i.vimeocdn.com/video/503683214_200x150.jpg"},{"width":295,"height":166,"link":"https://i.vimeocdn.com/video/503683214_295x166.jpg"},{"width":640,"height":360,"link":"https://i.vimeocdn.com/video/503683214_640x360.jpg"},{"width":960,"height":540,"link":"https://i.vimeocdn.com/video/503683214_960x540.jpg"},{"width":1280,"height":720,"link":"https://i.vimeocdn.com/video/503683214_1280x720.jpg"}]},"tags":[],"stats":{"plays":24},"metadata":{"connections":{"comments":{"uri":"/videos/117102891/comments","options":["GET","POST"],"total":0},"credits":{"uri":"/videos/117102891/credits","options":["GET","POST"],"total":1},"likes":{"uri":"/videos/117102891/likes","options":["GET"],"total":0},"pictures":{"uri":"/videos/117102891/pictures","options":["GET","POST"],"total":1},"texttracks":{"uri":"/videos/117102891/texttracks","options":["GET","POST"],"total":0}},"interactions":{"watchlater":{"added":false,"added_time":null,"uri":"/users/33772623/watchlater/117102891"}}},"user":{"uri":"/users/33772623","name":"Raw
483
- Funk Maharishi","link":"https://vimeo.com/rawfunkmaharishi","location":null,"bio":null,"created_time":"2014-10-27T12:06:25+00:00","account":"basic","pictures":{"uri":"/users/33772623/pictures/8588995","active":true,"sizes":[{"width":30,"height":30,"link":"https://i.vimeocdn.com/portrait/8588995_30x30.jpg"},{"width":75,"height":75,"link":"https://i.vimeocdn.com/portrait/8588995_75x75.jpg"},{"width":100,"height":100,"link":"https://i.vimeocdn.com/portrait/8588995_100x100.jpg"},{"width":300,"height":300,"link":"https://i.vimeocdn.com/portrait/8588995_300x300.jpg"}]},"websites":[{"name":"http://rawfunkmaharishi.uk/","link":"http://rawfunkmaharishi.uk/","description":null}],"metadata":{"connections":{"activities":{"uri":"/users/33772623/activities","options":["GET"]},"albums":{"uri":"/users/33772623/albums","options":["GET"],"total":1},"channels":{"uri":"/users/33772623/channels","options":["GET"],"total":0},"feed":{"uri":"/users/33772623/feed","options":["GET"]},"followers":{"uri":"/users/33772623/followers","options":["GET"],"total":0},"following":{"uri":"/users/33772623/following","options":["GET"],"total":0},"groups":{"uri":"/users/33772623/groups","options":["GET"],"total":0},"likes":{"uri":"/users/33772623/likes","options":["GET"],"total":0},"portfolios":{"uri":"/users/33772623/portfolios","options":["GET"],"total":0},"videos":{"uri":"/users/33772623/videos","options":["GET"],"total":4},"watchlater":{"uri":"/users/33772623/watchlater","options":["GET"],"total":0},"shared":{"uri":"/users/33772623/shared/videos","options":["GET"],"total":0},"pictures":{"uri":"/users/33772623/pictures","options":["GET","POST"],"total":1}}},"content_filter":["language","drugs","violence","nudity","safe","unrated"]},"embed":{"uri":null,"buttons":{"like":true,"watchlater":true,"share":true,"embed":true,"hd":false,"fullscreen":true,"scaling":true},"logos":{"vimeo":true,"custom":{"active":false,"link":null,"sticky":false}},"title":{"name":"user","owner":"user","portrait":"user"},"playbar":true,"volume":true,"color":"00adef"},"app":null,"status":"available","embed_presets":null}'
484
- http_version:
485
- recorded_at: Tue, 31 Mar 2015 20:18:29 GMT
486
- - request:
487
- method: get
488
- uri: https://api.vimeo.com/videos/110132671
489
- body:
490
- encoding: US-ASCII
491
- string: ''
492
- headers:
493
- Authorization:
494
- - bearer <VIMEO_BEARER_TOKEN>
495
- Accept:
496
- - application/json
497
- response:
498
- status:
499
- code: 200
500
- message: OK
501
- headers:
502
- Date:
503
- - Tue, 31 Mar 2015 20:18:29 GMT
504
- Server:
505
- - nginx
506
- Content-Type:
507
- - application/vnd.vimeo.video+json
508
- Cache-Control:
509
- - no-cache, max-age=315360000
510
- Expires:
511
- - Fri, 28 Mar 2025 20:18:29 GMT
512
- Content-Length:
513
- - '3659'
514
- Accept-Ranges:
515
- - bytes
516
- Via:
517
- - 1.1 varnish
518
- Age:
519
- - '0'
520
- X-Served-By:
521
- - cache-lcy1123-LCY
522
- X-Cache:
523
- - MISS
524
- X-Cache-Hits:
525
- - '0'
526
- X-Timer:
527
- - S1427833109.387655,VS0,VE193
528
- Vary:
529
- - Accept,Vimeo-Client-Id,Accept-Encoding
530
- body:
531
- encoding: UTF-8
532
- string: '{"uri":"/videos/110132671","name":"Discotheque Metamorphosis","description":null,"link":"https://vimeo.com/rawfunkmaharishi/discotheque-metamorphosis","duration":218,"width":640,"language":null,"height":360,"created_time":"2014-10-27T12:10:13+00:00","modified_time":"2015-03-23T22:08:53+00:00","content_rating":["unrated"],"license":"by-nc-sa","privacy":{"view":"anybody","embed":"public","download":true,"add":true,"comments":"anybody"},"pictures":{"uri":"/videos/110132671/pictures/494269097","active":true,"sizes":[{"width":100,"height":75,"link":"https://i.vimeocdn.com/video/494269097_100x75.jpg"},{"width":200,"height":150,"link":"https://i.vimeocdn.com/video/494269097_200x150.jpg"},{"width":295,"height":166,"link":"https://i.vimeocdn.com/video/494269097_295x166.jpg"},{"width":640,"height":360,"link":"https://i.vimeocdn.com/video/494269097_640x360.jpg"},{"width":960,"height":540,"link":"https://i.vimeocdn.com/video/494269097_960x540.jpg"}]},"tags":[],"stats":{"plays":9},"metadata":{"connections":{"comments":{"uri":"/videos/110132671/comments","options":["GET","POST"],"total":0},"credits":{"uri":"/videos/110132671/credits","options":["GET","POST"],"total":1},"likes":{"uri":"/videos/110132671/likes","options":["GET"],"total":0},"pictures":{"uri":"/videos/110132671/pictures","options":["GET","POST"],"total":1},"texttracks":{"uri":"/videos/110132671/texttracks","options":["GET","POST"],"total":0}},"interactions":{"watchlater":{"added":false,"added_time":null,"uri":"/users/33772623/watchlater/110132671"}}},"user":{"uri":"/users/33772623","name":"Raw
533
- Funk Maharishi","link":"https://vimeo.com/rawfunkmaharishi","location":null,"bio":null,"created_time":"2014-10-27T12:06:25+00:00","account":"basic","pictures":{"uri":"/users/33772623/pictures/8588995","active":true,"sizes":[{"width":30,"height":30,"link":"https://i.vimeocdn.com/portrait/8588995_30x30.jpg"},{"width":75,"height":75,"link":"https://i.vimeocdn.com/portrait/8588995_75x75.jpg"},{"width":100,"height":100,"link":"https://i.vimeocdn.com/portrait/8588995_100x100.jpg"},{"width":300,"height":300,"link":"https://i.vimeocdn.com/portrait/8588995_300x300.jpg"}]},"websites":[{"name":"http://rawfunkmaharishi.uk/","link":"http://rawfunkmaharishi.uk/","description":null}],"metadata":{"connections":{"activities":{"uri":"/users/33772623/activities","options":["GET"]},"albums":{"uri":"/users/33772623/albums","options":["GET"],"total":1},"channels":{"uri":"/users/33772623/channels","options":["GET"],"total":0},"feed":{"uri":"/users/33772623/feed","options":["GET"]},"followers":{"uri":"/users/33772623/followers","options":["GET"],"total":0},"following":{"uri":"/users/33772623/following","options":["GET"],"total":0},"groups":{"uri":"/users/33772623/groups","options":["GET"],"total":0},"likes":{"uri":"/users/33772623/likes","options":["GET"],"total":0},"portfolios":{"uri":"/users/33772623/portfolios","options":["GET"],"total":0},"videos":{"uri":"/users/33772623/videos","options":["GET"],"total":4},"watchlater":{"uri":"/users/33772623/watchlater","options":["GET"],"total":0},"shared":{"uri":"/users/33772623/shared/videos","options":["GET"],"total":0},"pictures":{"uri":"/users/33772623/pictures","options":["GET","POST"],"total":1}}},"content_filter":["language","drugs","violence","nudity","safe","unrated"]},"embed":{"uri":null,"buttons":{"like":true,"watchlater":true,"share":true,"embed":true,"hd":false,"fullscreen":true,"scaling":true},"logos":{"vimeo":true,"custom":{"active":false,"link":null,"sticky":false}},"title":{"name":"user","owner":"user","portrait":"user"},"playbar":true,"volume":true,"color":"00adef"},"app":null,"status":"available","embed_presets":null}'
534
- http_version:
535
- recorded_at: Tue, 31 Mar 2015 20:18:29 GMT
536
- recorded_with: VCR 2.9.3